mirror of
https://github.com/KDE/krfb
synced 2026-07-01 15:51:18 -07:00
notification -> statusnotifier
svn path=/trunk/KDE/kdenetwork/krfb/; revision=1042743
This commit is contained in:
@@ -31,13 +31,13 @@
|
||||
|
||||
|
||||
TrayIcon::TrayIcon(KDialog *d)
|
||||
: KNotificationItem(d),
|
||||
: KStatusNotifierItem(d),
|
||||
quitting(false)
|
||||
{
|
||||
setIconByPixmap(KIcon("krfb").pixmap(22, 22, KIcon::Disabled));
|
||||
|
||||
setToolTipTitle(i18n("Desktop Sharing - disconnected"));
|
||||
setCategory(KNotificationItem::ApplicationStatus);
|
||||
setCategory(KStatusNotifierItem::ApplicationStatus);
|
||||
// manageInvitationsAction = new KAction(i18n("Manage &Invitations"), &actionCollection);
|
||||
// actionCollection.addAction("manage_invitations", manageInvitationsAction);
|
||||
// connect(manageInvitationsAction, SIGNAL(triggered(bool)), SLOT(showManageInvitations()));
|
||||
@@ -80,7 +80,7 @@ void TrayIcon::showConnectedMessage(const QString &host)
|
||||
host));
|
||||
setToolTipTitle(i18n("Desktop Sharing - connected with %1", host));
|
||||
|
||||
setStatus(KNotificationItem::Active);
|
||||
setStatus(KStatusNotifierItem::Active);
|
||||
}
|
||||
|
||||
void TrayIcon::showDisconnectedMessage()
|
||||
@@ -92,7 +92,7 @@ void TrayIcon::showDisconnectedMessage()
|
||||
setIconByPixmap(KIcon("krfb").pixmap(22, 22, KIcon::Disabled));
|
||||
KNotification::event("ConnectionClosed", i18n("The remote user has closed the connection."));
|
||||
|
||||
setStatus(KNotificationItem::Passive);
|
||||
setStatus(KStatusNotifierItem::Passive);
|
||||
|
||||
Q_EMIT disconnectedMessageDisplayed();
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
#include <kpassivepopup.h>
|
||||
#include <KActionCollection>
|
||||
#include <KToggleAction>
|
||||
#include <knotificationitem.h>
|
||||
#include <kstatusnotifieritem.h>
|
||||
|
||||
class KDialog;
|
||||
|
||||
@@ -30,7 +30,7 @@ class KDialog;
|
||||
* @author Tim Jansen
|
||||
*/
|
||||
|
||||
class TrayIcon : public KNotificationItem {
|
||||
class TrayIcon : public KStatusNotifierItem {
|
||||
Q_OBJECT
|
||||
public:
|
||||
TrayIcon(KDialog*);
|
||||
|
||||
Reference in New Issue
Block a user