1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-10 04:56:28 +00:00
krfb/trayicon.h
Alessandro Praduroux 5cc6c452e8 big code reorganization:
- removed old libvncserver, we will depend on external lib
- removed krfb, srvloc, krfb_http subdirs, now everything is 
  in krfb main dir instead 

svn path=/trunk/KDE/kdenetwork/krfb/; revision=649168
2007-04-02 07:13:22 +00:00

66 lines
1.9 KiB
C++

/***************************************************************************
trayicon.h - description
-------------------
begin : Tue Dec 11 2001
copyright : (C) 2001-2002 by Tim Jansen
email : tim@tjansen.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef TRAYICON_H
#define TRAYICON_H
#include <ksystemtrayicon.h>
#include <kpassivepopup.h>
#include <KActionCollection>
#include <KToggleAction>
class KDialog;
/**
* Implements the trayicon.
* @author Tim Jansen
*/
class TrayIcon : public KSystemTrayIcon {
Q_OBJECT
public:
TrayIcon(KDialog*);
~TrayIcon();
signals:
void diconnectedMessageDisplayed();
void enableDesktopControl(bool);
void quitApp();
public Q_SLOTS:
void prepareQuit();
void showConnectedMessage(QString host);
void showDisconnectedMessage();
void setDesktopControlSetting(bool);
void showManageInvitations();
void showAbout();
protected:
void activated(QSystemTrayIcon::ActivationReason reason);
private:
KActionCollection actionCollection;
KAction* manageInvitationsAction;
KAction* aboutAction;
KToggleAction* enableControlAction;
bool quitting;
};
#endif