From ddccc1a81948a3dabc95609f0d356d67d26c4bc3 Mon Sep 17 00:00:00 2001 From: Manjeet Dahiya Date: Sun, 26 Sep 2010 05:20:07 +0000 Subject: add system icon --- examples/GuiClient/mainDialog.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'examples/GuiClient/mainDialog.h') 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 +#include 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 m_chatDlgsList; + + QSystemTrayIcon m_trayIcon; + QMenu m_trayIconMenu; + QAction m_quitAction; }; #endif // MAINDIALOG_H -- cgit v1.2.3