Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -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 | * |
| 8 | * Author: Yingdi Yu <yingdi@cs.ucla.edu> |
| 9 | */ |
| 10 | |
| 11 | #ifndef CONTACTPANEL_H |
| 12 | #define CONTACTPANEL_H |
| 13 | |
| 14 | #include <QDialog> |
Yingdi Yu | 40eca75 | 2013-10-10 15:00:58 -0700 | [diff] [blame] | 15 | #include <QStringListModel> |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 16 | #include <QtSql/QSqlDatabase> |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 17 | #include <QMenu> |
Yingdi Yu | 8e13583 | 2013-11-09 20:12:31 -0800 | [diff] [blame] | 18 | #include <QMessageBox> |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 19 | |
| 20 | #include "profileeditor.h" |
Yingdi Yu | 0269c87 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 21 | #include "addcontactpanel.h" |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 22 | #include "setaliasdialog.h" |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 23 | #include "startchatdialog.h" |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 24 | #include "invitationdialog.h" |
| 25 | #include "settingdialog.h" |
Yingdi Yu | eda39aa | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 26 | #include "chatdialog.h" |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 27 | #include "endorse-combobox-delegate.h" |
Yingdi Yu | ae8217c | 2013-11-09 00:03:26 -0800 | [diff] [blame] | 28 | #include "browsecontactdialog.h" |
Yingdi Yu | b5a0fd3 | 2013-11-10 16:26:52 -0800 | [diff] [blame] | 29 | #include "warningdialog.h" |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 30 | |
| 31 | #ifndef Q_MOC_RUN |
Yingdi Yu | 9236c43 | 2013-10-18 11:29:25 -0700 | [diff] [blame] | 32 | #include "contact-manager.h" |
Yingdi Yu | 7989eb2 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 33 | #include "chronos-invitation.h" |
Yingdi Yu | 9b34b1f | 2013-11-01 17:37:51 -0700 | [diff] [blame] | 34 | #include "panel-policy-manager.h" |
Yingdi Yu | 6eabbd7 | 2013-12-27 08:44:12 +0800 | [diff] [blame] | 35 | #include <boost/thread/locks.hpp> |
| 36 | #include <boost/thread/recursive_mutex.hpp> |
| 37 | #include <boost/thread/thread.hpp> |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 38 | #endif |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 39 | |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 40 | |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 41 | namespace Ui { |
| 42 | class ContactPanel; |
| 43 | } |
| 44 | |
| 45 | class ContactPanel : public QDialog |
| 46 | { |
Yingdi Yu | eda39aa | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 47 | Q_OBJECT |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 48 | |
| 49 | public: |
Yingdi Yu | 8e13583 | 2013-11-09 20:12:31 -0800 | [diff] [blame] | 50 | explicit ContactPanel(QWidget *parent = 0); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 51 | |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 52 | ~ContactPanel(); |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 53 | |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 54 | private: |
Yingdi Yu | 6eabbd7 | 2013-12-27 08:44:12 +0800 | [diff] [blame] | 55 | |
| 56 | void |
| 57 | startFace(); |
| 58 | |
| 59 | void |
| 60 | shutdownFace(); |
| 61 | |
| 62 | void |
| 63 | eventLoop(); |
| 64 | |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 65 | void |
| 66 | connectToDaemon(); |
| 67 | |
| 68 | void |
| 69 | onConnectionData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 70 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
| 71 | |
| 72 | void |
| 73 | onConnectionDataTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest); |
| 74 | |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 75 | void |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 76 | createAction(); |
| 77 | |
| 78 | void |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 79 | openDB(); |
| 80 | |
| 81 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 82 | loadTrustAnchor(); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 83 | |
| 84 | void |
Yingdi Yu | fdb8ab8 | 2013-11-10 01:38:21 -0800 | [diff] [blame] | 85 | setLocalPrefix(int retry = 10); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 86 | |
| 87 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 88 | onLocalPrefix(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 89 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 90 | |
| 91 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 92 | onLocalPrefixTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
Yingdi Yu | fdb8ab8 | 2013-11-10 01:38:21 -0800 | [diff] [blame] | 93 | int retry); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 94 | |
| 95 | void |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 96 | setInvitationListener(); |
| 97 | |
| 98 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 99 | onInvitation(const ndn::ptr_lib::shared_ptr<const ndn::Name>& prefix, |
| 100 | const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 101 | ndn::Transport& transport, |
| 102 | uint64_t registeredPrefixI); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 103 | |
| 104 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 105 | onInvitationRegisterFailed(const ndn::ptr_lib::shared_ptr<const ndn::Name>& prefix); |
| 106 | |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 107 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 108 | sendInterest(const ndn::Interest& interest, |
| 109 | const ndn::OnVerified& onVerified, |
| 110 | const ndn::OnVerifyFailed& onVerifyFailed, |
| 111 | const TimeoutNotify& timeoutNotify, |
| 112 | int retry = 1, |
| 113 | int stepCount = 0); |
| 114 | |
| 115 | void |
| 116 | onTargetData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 117 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data, |
| 118 | int stepCount, |
| 119 | const ndn::OnVerified& onVerified, |
| 120 | const ndn::OnVerifyFailed& onVerifyFailed, |
| 121 | const TimeoutNotify& timeoutNotify); |
| 122 | |
| 123 | void |
| 124 | onTargetTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 125 | int retry, |
| 126 | int stepCount, |
| 127 | const ndn::OnVerified& onVerified, |
| 128 | const ndn::OnVerifyFailed& onVerifyFailed, |
| 129 | const TimeoutNotify& timeoutNotify); |
| 130 | |
| 131 | |
| 132 | void |
| 133 | onCertData(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 134 | const ndn::ptr_lib::shared_ptr<ndn::Data>& cert, |
| 135 | ndn::ptr_lib::shared_ptr<ndn::ValidationRequest> previousStep); |
| 136 | |
| 137 | void |
| 138 | onCertTimeout(const ndn::ptr_lib::shared_ptr<const ndn::Interest>& interest, |
| 139 | const ndn::OnVerifyFailed& onVerifyFailed, |
| 140 | const ndn::ptr_lib::shared_ptr<ndn::Data>& data, |
| 141 | ndn::ptr_lib::shared_ptr<ndn::ValidationRequest> nextStep); |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 142 | |
| 143 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 144 | onInvitationCertVerified(const ndn::ptr_lib::shared_ptr<ndn::Data>& data, |
| 145 | ndn::ptr_lib::shared_ptr<ChronosInvitation> invitation); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 146 | |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 147 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 148 | onInvitationCertVerifyFailed(const ndn::ptr_lib::shared_ptr<ndn::Data>& data); |
| 149 | |
| 150 | void |
| 151 | onInvitationCertTimeoutNotify(); |
| 152 | |
| 153 | void |
| 154 | popChatInvitation(ndn::ptr_lib::shared_ptr<ChronosInvitation> invitation, |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 155 | const ndn::Name& inviterNameSpace, |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 156 | ndn::ptr_lib::shared_ptr<ndn::IdentityCertificate> certificate); |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 157 | |
| 158 | void |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 159 | collectEndorsement(); |
| 160 | |
| 161 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 162 | onDnsEndorseeVerified(const ndn::ptr_lib::shared_ptr<ndn::Data>& data, int count); |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 163 | |
| 164 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 165 | onDnsEndorseeVerifyFailed(const ndn::ptr_lib::shared_ptr<ndn::Data>& data, int count); |
| 166 | |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 167 | void |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 168 | onDnsEndorseeTimeoutNotify(int count); |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 169 | |
| 170 | void |
| 171 | updateCollectStatus(int count); |
| 172 | |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 173 | std::string |
| 174 | getRandomString(); |
| 175 | |
Yingdi Yu | eda39aa | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 176 | signals: |
| 177 | void |
| 178 | newInvitationReady(); |
| 179 | |
Yingdi Yu | ae8217c | 2013-11-09 00:03:26 -0800 | [diff] [blame] | 180 | void |
| 181 | refreshCertDirectory(); |
| 182 | |
Yingdi Yu | 40eca75 | 2013-10-10 15:00:58 -0700 | [diff] [blame] | 183 | private slots: |
| 184 | void |
Yingdi Yu | 8e13583 | 2013-11-09 20:12:31 -0800 | [diff] [blame] | 185 | showError(const QString& msg); |
| 186 | |
| 187 | void |
Yingdi Yu | e433a50 | 2013-11-10 01:34:57 -0800 | [diff] [blame] | 188 | showWarning(const QString& msg); |
| 189 | |
| 190 | void |
Yingdi Yu | 40eca75 | 2013-10-10 15:00:58 -0700 | [diff] [blame] | 191 | updateSelection(const QItemSelection &selected, |
| 192 | const QItemSelection &deselected); |
| 193 | |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 194 | void |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 195 | updateDefaultIdentity(const QString& identity, |
| 196 | const QString& nickName); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 197 | |
| 198 | void |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 199 | openProfileEditor(); |
| 200 | |
Yingdi Yu | 0269c87 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 201 | void |
| 202 | openAddContactPanel(); |
Yingdi Yu | ae8217c | 2013-11-09 00:03:26 -0800 | [diff] [blame] | 203 | |
| 204 | void |
| 205 | openBrowseContactDialog(); |
Yingdi Yu | 0269c87 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 206 | |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 207 | void |
| 208 | openSetAliasDialog(); |
Yingdi Yu | ae8217c | 2013-11-09 00:03:26 -0800 | [diff] [blame] | 209 | |
| 210 | void |
| 211 | removeContactButton(); |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 212 | |
| 213 | void |
| 214 | openStartChatDialog(); |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 215 | |
| 216 | void |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 217 | openSettingDialog(); |
| 218 | |
| 219 | void |
Yingdi Yu | eda39aa | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 220 | openInvitationDialog(); |
| 221 | |
| 222 | void |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 223 | refreshContactList(); |
| 224 | |
| 225 | void |
| 226 | showContextMenu(const QPoint& pos); |
| 227 | |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 228 | void |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 229 | startChatroom(const QString& chatroom, |
| 230 | const QString& invitee, |
| 231 | bool isIntroducer); |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 232 | |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 233 | void |
Yingdi Yu | 7989eb2 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 234 | startChatroom2(const ChronosInvitation& invitation, |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 235 | const ndn::IdentityCertificate& identityCertificate); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 236 | |
| 237 | void |
Yingdi Yu | 7989eb2 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 238 | acceptInvitation(const ChronosInvitation& invitation, |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 239 | const ndn::IdentityCertificate& identityCertificate); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 240 | |
| 241 | void |
Yingdi Yu | 7989eb2 | 2013-10-31 17:38:22 -0700 | [diff] [blame] | 242 | rejectInvitation(const ChronosInvitation& invitation); |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 243 | |
Yingdi Yu | ec5e72a | 2013-11-03 15:05:26 -0800 | [diff] [blame] | 244 | void |
| 245 | isIntroducerChanged(int state); |
| 246 | |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 247 | void |
| 248 | addScopeClicked(); |
| 249 | |
| 250 | void |
| 251 | deleteScopeClicked(); |
| 252 | |
| 253 | void |
| 254 | saveScopeClicked(); |
| 255 | |
| 256 | void |
| 257 | endorseButtonClicked(); |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 258 | |
| 259 | void |
| 260 | removeChatDialog(const ndn::Name& chatroomName); |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 261 | |
Yingdi Yu | 7223269 | 2013-11-12 17:50:21 -0800 | [diff] [blame] | 262 | void |
| 263 | addContactIntoPanelPolicy(const ndn::Name& nameSpace); |
| 264 | |
| 265 | void |
| 266 | removeContactFromPanelPolicy(const ndn::Name& keyName); |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 267 | |
| 268 | |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 269 | private: |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 270 | Ui::ContactPanel *ui; |
Yingdi Yu | 8e13583 | 2013-11-09 20:12:31 -0800 | [diff] [blame] | 271 | WarningDialog* m_warningDialog; |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 272 | ndn::ptr_lib::shared_ptr<ContactManager> m_contactManager; |
Yingdi Yu | 3b318c1 | 2013-10-15 17:54:00 -0700 | [diff] [blame] | 273 | QStringListModel* m_contactListModel; |
| 274 | ProfileEditor* m_profileEditor; |
Yingdi Yu | 0269c87 | 2013-10-16 13:16:49 -0700 | [diff] [blame] | 275 | AddContactPanel* m_addContactPanel; |
Yingdi Yu | ae8217c | 2013-11-09 00:03:26 -0800 | [diff] [blame] | 276 | BrowseContactDialog* m_browseContactDialog; |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 277 | SetAliasDialog* m_setAliasDialog; |
Yingdi Yu | 595aadc | 2013-10-21 15:01:40 -0700 | [diff] [blame] | 278 | StartChatDialog* m_startChatDialog; |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 279 | InvitationDialog* m_invitationDialog; |
| 280 | SettingDialog* m_settingDialog; |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 281 | std::map<ndn::Name, ChatDialog*, ndn::Name::BreadthFirstLess> m_chatDialogs; |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 282 | QAction* m_menuInvite; |
| 283 | QAction* m_menuAlias; |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 284 | std::vector<ndn::ptr_lib::shared_ptr<ContactItem> > m_contactList; |
| 285 | ndn::ptr_lib::shared_ptr<std::vector<bool> > m_collectStatus; |
Yingdi Yu | 2ac40fb | 2013-10-21 13:38:38 -0700 | [diff] [blame] | 286 | |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 287 | ndn::ptr_lib::shared_ptr<PanelPolicyManager> m_policyManager; |
Yingdi Yu | f8f572d | 2014-01-13 11:19:47 -0800 | [diff] [blame^] | 288 | ndn::ptr_lib::shared_ptr<ndn::KeyChain> m_keyChain; |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 289 | ndn::ptr_lib::shared_ptr<ndn::Face> m_face; |
Yingdi Yu | 6eabbd7 | 2013-12-27 08:44:12 +0800 | [diff] [blame] | 290 | |
| 291 | boost::recursive_mutex m_mutex; |
| 292 | boost::thread m_thread; |
| 293 | bool m_running; |
| 294 | |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 295 | uint64_t m_invitationListenerId; |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 296 | |
| 297 | ndn::Name m_defaultIdentity; |
Yingdi Yu | 4694828 | 2013-11-06 18:43:31 -0800 | [diff] [blame] | 298 | std::string m_nickName; |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 299 | ndn::Name m_localPrefix; |
Yingdi Yu | eda39aa | 2013-10-23 23:07:29 -0700 | [diff] [blame] | 300 | ndn::Name m_inviteListenPrefix; |
Yingdi Yu | 978b3ae | 2013-10-23 11:50:51 -0700 | [diff] [blame] | 301 | |
Yingdi Yu | 76dd800 | 2013-12-24 11:16:32 +0800 | [diff] [blame] | 302 | ndn::ptr_lib::shared_ptr<ContactItem> m_currentSelectedContact; |
Yingdi Yu | b2e747d | 2013-11-05 23:06:43 -0800 | [diff] [blame] | 303 | QSqlTableModel* m_trustScopeModel; |
| 304 | QSqlTableModel* m_endorseDataModel; |
| 305 | EndorseComboBoxDelegate* m_endorseComboBoxDelegate; |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 306 | }; |
| 307 | |
| 308 | #endif // CONTACTPANEL_H |