aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/mainDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/GuiClient/mainDialog.h')
-rw-r--r--examples/GuiClient/mainDialog.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/GuiClient/mainDialog.h b/examples/GuiClient/mainDialog.h
index 2f603633..2e679f4f 100644
--- a/examples/GuiClient/mainDialog.h
+++ b/examples/GuiClient/mainDialog.h
@@ -36,6 +36,8 @@
#include "vCardManager.h"
#include "capabilitiesCollection.h"
#include "accountsCache.h"
+#include <QSystemTrayIcon>
+#include <QMenu>
namespace Ui
{
@@ -81,8 +83,11 @@ private slots:
void userNameCompleter_activated(const QString&);
void addAccountToCache();
+ void action_quit();
+
private:
void loadAccounts();
+ void createTrayIconAndMenu();
chatDialog* getChatDialog(const QString& bareJid);
@@ -97,6 +102,10 @@ private:
// map of bare jids and respective chatdlg
QMap<QString, chatDialog*> m_chatDlgsList;
+
+ QSystemTrayIcon m_trayIcon;
+ QMenu m_trayIconMenu;
+ QAction m_quitAction;
};
#endif // MAINDIALOG_H