Adding local prefix updating
diff --git a/src/chatdialog.h b/src/chatdialog.h
index 2e6ea1c..7058d87 100644
--- a/src/chatdialog.h
+++ b/src/chatdialog.h
@@ -111,6 +111,9 @@
void
initializeSetting();
+ QString
+ getRandomString();
+
void
updateLabels();
@@ -145,6 +148,12 @@
onTimeout(ndn::Ptr<ndn::Closure> closure,
ndn::Ptr<ndn::Interest> interest);
+ void
+ getLocalPrefix(ndn::Ptr<ndn::Data> data);
+
+ void
+ getLocalPrefixTimeout(ndn::Ptr<ndn::Closure> closure,
+ ndn::Ptr<ndn::Interest> interest);
// void
// fetchHistory(std::string name);
@@ -215,6 +224,9 @@
void
treeButtonPressed();
+ void
+ settingUpdated(QString, QString, QString);
+
void
sendJoin();
@@ -233,6 +245,9 @@
void
enableTreeDisplay();
+ void
+ updateLocalPrefix();
+
void
summonReaper();
@@ -269,6 +284,7 @@
ndn::Ptr<ndn::security::IdentityManager> m_identityManager;
ndn::Ptr<ndn::security::Keychain> m_keychain;
ndn::Ptr<ndn::Wrapper> m_handler;
+ ndn::Ptr<ndn::Wrapper> m_localPrefixHandler;
User m_user;
std::string m_nick;
@@ -286,6 +302,7 @@
QAction *minimizeAction;
QAction *maximizeAction;
QAction *restoreAction;
+ QAction *updateLocalPrefixAction;
QAction *quitAction;
QMenu *trayIconMenu;