krfb
trayicon.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 trayicon.h - description 00003 ------------------- 00004 begin : Tue Dec 11 2001 00005 copyright : (C) 2001-2002 by Tim Jansen 00006 email : tim@tjansen.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef TRAYICON_H 00019 #define TRAYICON_H 00020 00021 #include <ksystemtrayicon.h> 00022 #include <kpassivepopup.h> 00023 #include <KActionCollection> 00024 #include <KToggleAction> 00025 00026 class KDialog; 00027 00033 class TrayIcon : public KSystemTrayIcon { 00034 Q_OBJECT 00035 public: 00036 TrayIcon(KDialog*); 00037 ~TrayIcon(); 00038 00039 signals: 00040 00041 void diconnectedMessageDisplayed(); 00042 void enableDesktopControl(bool); 00043 void quitApp(); 00044 00045 public Q_SLOTS: 00046 void prepareQuit(); 00047 void showConnectedMessage(const QString &host); 00048 void showDisconnectedMessage(); 00049 void setDesktopControlSetting(bool); 00050 void showManageInvitations(); 00051 void showAbout(); 00052 00053 private: 00054 KAction* manageInvitationsAction; 00055 KAction* aboutAction; 00056 KToggleAction* enableControlAction; 00057 bool quitting; 00058 00059 }; 00060 00061 #endif
KDE 4.2 API Reference