Invitation works
diff --git a/src/contactpanel.h b/src/contactpanel.h
index 9803a6a..2f33b49 100644
--- a/src/contactpanel.h
+++ b/src/contactpanel.h
@@ -22,6 +22,7 @@
#include "startchatdialog.h"
#include "invitationdialog.h"
#include "settingdialog.h"
+#include "chatdialog.h"
#ifndef Q_MOC_RUN
#include "contact-manager.h"
@@ -34,7 +35,7 @@
class ContactPanel : public QDialog
{
- Q_OBJECT
+ Q_OBJECT
public:
explicit ContactPanel(ndn::Ptr<ContactManager> contactManager, QWidget *parent = 0);
@@ -83,6 +84,10 @@
const ndn::Name& inviterNameSpace,
ndn::Ptr<ndn::security::IdentityCertificate> certificate);
+signals:
+ void
+ newInvitationReady();
+
private slots:
void
updateSelection(const QItemSelection &selected,
@@ -107,6 +112,9 @@
openSettingDialog();
void
+ openInvitationDialog();
+
+ void
refreshContactList();
void
@@ -137,6 +145,7 @@
StartChatDialog* m_startChatDialog;
InvitationDialog* m_invitationDialog;
SettingDialog* m_settingDialog;
+ std::map<ndn::Name, ChatDialog*> m_chatDialogs;
QAction* m_menuInvite;
QAction* m_menuAlias;
std::vector<ndn::Ptr<ContactItem> > m_contactList;
@@ -146,6 +155,7 @@
ndn::Name m_defaultIdentity;
ndn::Name m_localPrefix;
+ ndn::Name m_inviteListenPrefix;
std::string m_currentSelectedContactAlias;
std::string m_currentSelectedContactNamespace;