1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00
Files
krfb/trayicon.h
Alessandro Praduroux f36b9aca9b - finished invitation dialog (delete and deleteall now work)
- some cleanup on the trayicon code
- fixed crash on exit
- dnssd support 

svn path=/trunk/KDE/kdenetwork/krfb/; revision=655612
2007-04-18 21:42:12 +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 <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(const QString &host);
void showDisconnectedMessage();
void setDesktopControlSetting(bool);
void showManageInvitations();
void showAbout();
private:
KAction* manageInvitationsAction;
KAction* aboutAction;
KToggleAction* enableControlAction;
bool quitting;
};
#endif