1
0
mirror of https://invent.kde.org/network/krfb synced 2024-07-01 07:24:29 +00:00
krfb/trayicon.h
Aurélien Gâteau 009e6457a0 notification -> statusnotifier
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1042743
2009-10-30 14:50:00 +00:00

62 lines
1.8 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 <kpassivepopup.h>
#include <KActionCollection>
#include <KToggleAction>
#include <kstatusnotifieritem.h>
class KDialog;
/**
* Implements the trayicon.
* @author Tim Jansen
*/
class TrayIcon : public KStatusNotifierItem {
Q_OBJECT
public:
TrayIcon(KDialog*);
~TrayIcon();
signals:
void disconnectedMessageDisplayed();
void enableDesktopControl(bool);
void quitApp();
public Q_SLOTS:
void prepareQuit();
void showConnectedMessage(const QString &host);
void showDisconnectedMessage();
void setDesktopControlSetting(bool);
void showManageInvitations();
void showAbout();
private:
KAction* manageInvitationsAction;
KAction* aboutAction;
KToggleAction* enableControlAction;
bool quitting;
};
#endif