aboutsummaryrefslogtreecommitdiff
path: root/examples/GuiClient/mainDialog.h
diff options
context:
space:
mode:
authorManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-26 05:20:07 +0000
committerManjeet Dahiya <manjeetdahiya@gmail.com>2010-09-26 05:20:07 +0000
commitddccc1a81948a3dabc95609f0d356d67d26c4bc3 (patch)
tree764c5027fbdff79c80d3b77aefcecc84ddacc8dd /examples/GuiClient/mainDialog.h
parent2e87a2bbfa262efa7031bbabcbb19b4ee4754f1f (diff)
downloadqxmpp-ddccc1a81948a3dabc95609f0d356d67d26c4bc3.tar.gz
add system icon
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