send periodic hello msg if no data msg
diff --git a/chatdialog.h b/chatdialog.h
index 3f75247..a825657 100644
--- a/chatdialog.h
+++ b/chatdialog.h
@@ -44,7 +44,6 @@
   void formChatMessage(const QString &text, SyncDemo::ChatMessage &msg);
   void formHelloMessage(SyncDemo::ChatMessage &msg);
   void sendMsg(SyncDemo::ChatMessage &msg);
-  void sendHello();
   bool readSettings();
   void writeSettings();
   void updateLabels();
@@ -60,6 +59,7 @@
   void buttonPressed();
   void checkSetting();
   void settingUpdated(QString, QString, QString);
+  void sendHello();
 
   // icon related
   void iconActivated(QSystemTrayIcon::ActivationReason reason);
@@ -78,6 +78,7 @@
   DigestTreeScene *m_scene;
   boost::mutex m_msgMutex;
   boost::mutex m_sceneMutex;
+  time_t m_lastMsgTime;
 
   // icon related
   QAction *minimizeAction;