Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| 2 | /* |
| 3 | * Copyright (c) 2013, Regents of the University of California |
| 4 | * Yingdi Yu |
| 5 | * |
| 6 | * BSD license, See the LICENSE file for more information |
| 7 | * |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 8 | * Author: Zhenkai Zhu <zhenkai@cs.ucla.edu> |
| 9 | * Alexander Afanasyev <alexander.afanasyev@ucla.edu> |
| 10 | * Yingdi Yu <yingdi@cs.ucla.edu> |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef CHATDIALOG_H |
| 14 | #define CHATDIALOG_H |
| 15 | |
| 16 | #include <QDialog> |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 17 | #include <QTextTable> |
| 18 | #include <QStringListModel> |
| 19 | #include <QTimer> |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 20 | #include <QSystemTrayIcon> |
Yingdi Yu | 07b5b09 | 2013-11-07 17:00:54 -0800 | [diff] [blame] | 21 | #include <QMenu> |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 22 | |
| 23 | #include "invitelistdialog.h" |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 24 | |
| 25 | #ifndef Q_MOC_RUN |
Yingdi Yu | 6df6125 | 2014-01-21 11:05:11 -0800 | [diff] [blame^] | 26 | #include <ndn-cpp-dev/data.hpp> |
| 27 | #include <ndn-cpp-dev/face.hpp> |
| 28 | #include <ndn-cpp-dev/security/key-chain.hpp> |
Yingdi Yu | eaa84e2 | 2014-01-16 10:30:26 -0800 | [diff] [blame] | 29 | #include "sec-policy-chrono-chat-invitation.h" |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 30 | #include "contact-item.h" |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 31 | |
Alexander Afanasyev | 4f04c55 | 2013-11-07 15:30:05 -0800 | [diff] [blame] | 32 | #include <sync-socket.h> |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 33 | #include <sync-seq-no.h> |
| 34 | #include "chatbuf.pb.h" |
| 35 | #include "digesttreescene.h" |
Yingdi Yu | accbda9 | 2013-12-27 08:44:12 +0800 | [diff] [blame] | 36 | |
| 37 | #include <boost/thread/locks.hpp> |
| 38 | #include <boost/thread/recursive_mutex.hpp> |
| 39 | #include <boost/thread/thread.hpp> |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 40 | #endif |
| 41 | |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 42 | typedef ndn::func_lib::function<void()> OnEventualTimeout; |
| 43 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 44 | #define MAX_HISTORY_ENTRY 20 |
| 45 | |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 46 | namespace Ui { |
| 47 | class ChatDialog; |
| 48 | } |
| 49 | |
| 50 | class ChatDialog : public QDialog |
| 51 | { |
| 52 | Q_OBJECT |
| 53 | |
| 54 | public: |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 55 | explicit ChatDialog(ndn::ptr_lib::shared_ptr<ContactManager> contactManager, |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 56 | const ndn::Name& chatroomPrefix, |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 57 | const ndn::Name& localPrefix, |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 58 | const ndn::Name& defaultIdentity, |
Yingdi Yu | 4237244 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 59 | const std::string& nick, |
| 60 | bool trial = false, |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 61 | QWidget *parent = 0); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 62 | |
| 63 | // explicit ChatDialog(const ndn::Name& chatroomPrefix, |
| 64 | // const ndn::Name& localPrefix, |
| 65 | // const ndn::Name& defaultIdentity, |
| 66 | // const ndn::security::IdentityCertificate& identityCertificate, |
| 67 | // QWidget *parent = 0); |
| 68 | |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 69 | ~ChatDialog(); |
| 70 | |
| 71 | const ndn::Name& |
| 72 | getChatroomPrefix() const |
| 73 | { return m_chatroomPrefix; } |
| 74 | |
| 75 | const ndn::Name& |
| 76 | getLocalPrefix() const |
| 77 | { return m_localPrefix; } |
| 78 | |
| 79 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 80 | sendInvitation(ndn::ptr_lib::shared_ptr<ContactItem> contact, bool isIntroducer); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 81 | |
| 82 | void |
| 83 | addTrustAnchor(const EndorseCertificate& selfEndorseCertificate); |
| 84 | |
| 85 | void |
| 86 | addChatDataRule(const ndn::Name& prefix, |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 87 | const ndn::IdentityCertificate& identityCertificate, |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 88 | bool isIntroducer); |
| 89 | |
| 90 | void |
| 91 | appendMessage(const SyncDemo::ChatMessage msg, bool isHistory = false); |
| 92 | |
| 93 | void |
| 94 | processTreeUpdateWrapper(const std::vector<Sync::MissingDataInfo>, Sync::SyncSocket *); |
| 95 | |
| 96 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 97 | processDataWrapper(const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 98 | |
| 99 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 100 | processDataNoShowWrapper(const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 101 | |
| 102 | void |
| 103 | processRemoveWrapper(std::string); |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 104 | |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 105 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 106 | publishIntroCert(const ndn::IdentityCertificate& dskCertificate, bool isIntroducer); |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 107 | |
Yingdi Yu | 4237244 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 108 | protected: |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 109 | void |
| 110 | closeEvent(QCloseEvent *e); |
| 111 | |
| 112 | void |
| 113 | changeEvent(QEvent *e); |
Yingdi Yu | 4237244 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 114 | |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 115 | private: |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 116 | |
Yingdi Yu | accbda9 | 2013-12-27 08:44:12 +0800 | [diff] [blame] | 117 | void |
| 118 | startFace(); |
| 119 | |
| 120 | void |
| 121 | shutdownFace(); |
| 122 | |
| 123 | void |
| 124 | eventLoop(); |
| 125 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 126 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 127 | connectToDaemon(); |
| 128 | |
| 129 | void |
| 130 | onConnectionData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 131 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
| 132 | |
| 133 | void |
| 134 | onConnectionDataTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest); |
| 135 | |
| 136 | void |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 137 | initializeSetting(); |
| 138 | |
Yingdi Yu | 2ab22e7 | 2013-11-10 01:38:21 -0800 | [diff] [blame] | 139 | QString |
| 140 | getRandomString(); |
| 141 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 142 | void |
| 143 | updateLabels(); |
| 144 | |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 145 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 146 | initializeSync(); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 147 | |
| 148 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 149 | onTargetData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 150 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data, |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 151 | const ndn::OnVerified& onVerified, |
Yingdi Yu | 7630f64 | 2014-01-16 19:13:03 -0800 | [diff] [blame] | 152 | const ndn::OnVerifyFailed& onVerifyFailed); |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 153 | |
| 154 | void |
| 155 | onTargetTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 156 | int retry, |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 157 | const ndn::OnVerified& onVerified, |
| 158 | const ndn::OnVerifyFailed& onVerifyFailed, |
Yingdi Yu | 7630f64 | 2014-01-16 19:13:03 -0800 | [diff] [blame] | 159 | const OnEventualTimeout& timeoutNotify); |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 160 | |
| 161 | void |
| 162 | sendInterest(const ndn::Interest& interest, |
| 163 | const ndn::OnVerified& onVerified, |
| 164 | const ndn::OnVerifyFailed& onVerifyFailed, |
| 165 | const OnEventualTimeout& timeoutNotify, |
Yingdi Yu | 7630f64 | 2014-01-16 19:13:03 -0800 | [diff] [blame] | 166 | int retry = 1); |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 167 | |
| 168 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 169 | onInviteReplyVerified(const ndn::ptr_lib::shared_ptr<ndn::Data>& data, |
| 170 | const ndn::Name& identity, |
| 171 | bool isIntroduce); |
| 172 | |
| 173 | void |
| 174 | onInviteReplyVerifyFailed(const ndn::ptr_lib::shared_ptr<ndn::Data>& data, |
| 175 | const ndn::Name& identity); |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 176 | |
| 177 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 178 | onInviteReplyTimeout(const ndn::Name& identity); |
| 179 | |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 180 | |
| 181 | void |
| 182 | invitationRejected(const ndn::Name& identity); |
| 183 | |
| 184 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 185 | invitationAccepted(const ndn::Name& identity, |
| 186 | ndn::ptr_lib::shared_ptr<ndn::Data> data, |
| 187 | const std::string& inviteePrefix, |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 188 | bool isIntroducer); |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 189 | |
| 190 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 191 | onLocalPrefix(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 192 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 193 | |
Yingdi Yu | 4237244 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 194 | void |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 195 | onLocalPrefixTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest); |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 196 | |
| 197 | // void |
| 198 | // fetchHistory(std::string name); |
| 199 | |
| 200 | void |
| 201 | formChatMessage(const QString &text, SyncDemo::ChatMessage &msg); |
| 202 | |
| 203 | void |
| 204 | formControlMessage(SyncDemo::ChatMessage &msg, SyncDemo::ChatMessage::ChatMessageType type); |
| 205 | |
| 206 | void |
| 207 | sendMsg(SyncDemo::ChatMessage &msg); |
| 208 | |
| 209 | void |
| 210 | resizeEvent(QResizeEvent *); |
| 211 | |
| 212 | void |
| 213 | showEvent(QShowEvent *); |
| 214 | |
| 215 | void |
| 216 | fitView(); |
| 217 | |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 218 | void |
| 219 | createActions(); |
| 220 | |
| 221 | void |
| 222 | createTrayIcon(); |
| 223 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 224 | QString |
| 225 | formatTime(time_t); |
| 226 | |
| 227 | void |
| 228 | printTimeInCell(QTextTable *, time_t); |
| 229 | |
| 230 | void |
| 231 | disableTreeDisplay(); |
| 232 | |
| 233 | signals: |
| 234 | void |
| 235 | dataReceived(QString name, const char *buf, size_t len, bool show, bool isHistory); |
| 236 | |
| 237 | void |
| 238 | treeUpdated(const std::vector<Sync::MissingDataInfo>); |
| 239 | |
| 240 | void |
| 241 | removeReceived(QString prefix); |
| 242 | |
Yingdi Yu | 4237244 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 243 | void |
| 244 | closeChatDialog(const ndn::Name& chatroomPrefix); |
| 245 | |
Yingdi Yu | b29f78c | 2013-11-09 20:12:31 -0800 | [diff] [blame] | 246 | void |
| 247 | noNdnConnection(const QString& msg); |
Yingdi Yu | 3e87bd8 | 2013-11-10 10:47:44 -0800 | [diff] [blame] | 248 | |
| 249 | void |
| 250 | inivationRejection(const QString& msg); |
Yingdi Yu | b29f78c | 2013-11-09 20:12:31 -0800 | [diff] [blame] | 251 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 252 | public slots: |
| 253 | void |
| 254 | processTreeUpdate(const std::vector<Sync::MissingDataInfo>); |
| 255 | |
| 256 | void |
| 257 | processData(QString name, const char *buf, size_t len, bool show, bool isHistory); |
| 258 | |
| 259 | void |
| 260 | processRemove(QString prefix); |
| 261 | |
| 262 | private slots: |
| 263 | void |
| 264 | returnPressed(); |
| 265 | |
| 266 | void |
| 267 | treeButtonPressed(); |
| 268 | |
Yingdi Yu | 2ab22e7 | 2013-11-10 01:38:21 -0800 | [diff] [blame] | 269 | void |
| 270 | settingUpdated(QString, QString, QString); |
| 271 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 272 | void |
| 273 | sendJoin(); |
| 274 | |
| 275 | void |
| 276 | sendHello(); |
| 277 | |
| 278 | void |
| 279 | sendLeave(); |
| 280 | |
| 281 | void |
| 282 | replot(); |
| 283 | |
| 284 | void |
| 285 | updateRosterList(QStringList); |
| 286 | |
| 287 | void |
| 288 | enableTreeDisplay(); |
| 289 | |
Yingdi Yu | 2ab22e7 | 2013-11-10 01:38:21 -0800 | [diff] [blame] | 290 | void |
| 291 | updateLocalPrefix(); |
| 292 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 293 | void |
| 294 | summonReaper(); |
| 295 | |
| 296 | void |
| 297 | reap(); |
| 298 | |
| 299 | void |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 300 | iconActivated(QSystemTrayIcon::ActivationReason reason); |
| 301 | |
| 302 | void |
| 303 | messageClicked(); |
| 304 | |
| 305 | void |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 306 | showMessage(QString, QString); |
| 307 | |
| 308 | void |
| 309 | openInviteListDialog(); |
| 310 | |
| 311 | void |
| 312 | sendInvitationWrapper(QString, bool); |
Yingdi Yu | 07b5b09 | 2013-11-07 17:00:54 -0800 | [diff] [blame] | 313 | |
| 314 | void |
| 315 | quit(); |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 316 | |
| 317 | private: |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 318 | Ui::ChatDialog *ui; |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 319 | ndn::ptr_lib::shared_ptr<ContactManager> m_contactManager; |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 320 | ndn::Name m_chatroomPrefix; |
| 321 | ndn::Name m_localPrefix; |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 322 | ndn::Name m_localChatPrefix; |
Yingdi Yu | c4d08d2 | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 323 | ndn::Name m_defaultIdentity; |
Yingdi Yu | eaa84e2 | 2014-01-16 10:30:26 -0800 | [diff] [blame] | 324 | ndn::ptr_lib::shared_ptr<SecPolicyChronoChatInvitation> m_invitationPolicy; |
| 325 | ndn::ptr_lib::shared_ptr<SecPolicySync> m_syncPolicy; |
Yingdi Yu | 7630f64 | 2014-01-16 19:13:03 -0800 | [diff] [blame] | 326 | ndn::ptr_lib::shared_ptr<ndn::Verifier> m_verifier; |
Yingdi Yu | c9ffa9f | 2014-01-13 11:19:47 -0800 | [diff] [blame] | 327 | ndn::ptr_lib::shared_ptr<ndn::KeyChain> m_keyChain; |
Yingdi Yu | 6420611 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 328 | ndn::ptr_lib::shared_ptr<ndn::Face> m_face; |
Yingdi Yu | 0a953c3 | 2013-11-10 10:32:18 -0800 | [diff] [blame] | 329 | |
Yingdi Yu | accbda9 | 2013-12-27 08:44:12 +0800 | [diff] [blame] | 330 | boost::recursive_mutex m_mutex; |
| 331 | boost::thread m_thread; |
| 332 | bool m_running; |
| 333 | |
Yingdi Yu | 0a953c3 | 2013-11-10 10:32:18 -0800 | [diff] [blame] | 334 | ndn::Name m_newLocalPrefix; |
| 335 | bool m_newLocalPrefixReady; |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 336 | |
| 337 | User m_user; |
Yingdi Yu | 4237244 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 338 | std::string m_nick; |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 339 | Sync::SyncSocket *m_sock; |
| 340 | uint32_t m_session; |
| 341 | DigestTreeScene *m_scene; |
| 342 | boost::recursive_mutex m_msgMutex; |
| 343 | boost::recursive_mutex m_sceneMutex; |
| 344 | time_t m_lastMsgTime; |
| 345 | int m_randomizedInterval; |
| 346 | QTimer *m_timer; |
| 347 | QStringListModel *m_rosterModel; |
Yingdi Yu | a059409 | 2013-11-06 22:07:38 -0800 | [diff] [blame] | 348 | QSystemTrayIcon *trayIcon; |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 349 | |
Yingdi Yu | 07b5b09 | 2013-11-07 17:00:54 -0800 | [diff] [blame] | 350 | QAction *minimizeAction; |
| 351 | QAction *maximizeAction; |
| 352 | QAction *restoreAction; |
Yingdi Yu | 2ab22e7 | 2013-11-10 01:38:21 -0800 | [diff] [blame] | 353 | QAction *updateLocalPrefixAction; |
Yingdi Yu | 07b5b09 | 2013-11-07 17:00:54 -0800 | [diff] [blame] | 354 | QAction *quitAction; |
| 355 | QMenu *trayIconMenu; |
| 356 | |
Yingdi Yu | 42f6646 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 357 | // QQueue<SyncDemo::ChatMessage> m_history; |
| 358 | // bool m_historyInitialized; |
| 359 | bool m_joined; |
| 360 | |
| 361 | QList<QString> m_zombieList; |
| 362 | int m_zombieIndex; |
| 363 | |
| 364 | InviteListDialog* m_inviteListDialog; |
Yingdi Yu | 0484223 | 2013-10-23 14:03:09 -0700 | [diff] [blame] | 365 | }; |
| 366 | |
| 367 | #endif // ChatDIALOG_H |