Handle VNC framebuffer size changes correctly. Such changes are for example used...
[kdenetwork.git] / krfb / trayicon.h
blob9ff6f4a6587e715b4489eef643ccfcfe8e094a30
1 /***************************************************************************
2 trayicon.h - description
3 -------------------
4 begin : Tue Dec 11 2001
5 copyright : (C) 2001-2002 by Tim Jansen
6 email : tim@tjansen.de
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
18 #ifndef TRAYICON_H
19 #define TRAYICON_H
21 #include <ksystemtrayicon.h>
22 #include <kpassivepopup.h>
23 #include <KActionCollection>
24 #include <KToggleAction>
26 class KDialog;
28 /**
29 * Implements the trayicon.
30 * @author Tim Jansen
33 class TrayIcon : public KSystemTrayIcon {
34 Q_OBJECT
35 public:
36 TrayIcon(KDialog*);
37 ~TrayIcon();
39 signals:
41 void diconnectedMessageDisplayed();
42 void enableDesktopControl(bool);
43 void quitApp();
45 public Q_SLOTS:
46 void prepareQuit();
47 void showConnectedMessage(const QString &host);
48 void showDisconnectedMessage();
49 void setDesktopControlSetting(bool);
50 void showManageInvitations();
51 void showAbout();
53 private:
54 KAction* manageInvitationsAction;
55 KAction* aboutAction;
56 KToggleAction* enableControlAction;
57 bool quitting;
61 #endif