kremotecontrol
kremotecontroldaemon.cpp
Go to the documentation of this file.
46 KRemoteControlDaemon::KRemoteControlDaemon(QObject* parent, const QVariantList& ): KDEDModule(parent) {
49 KAboutData aboutData("kremotecontroldaemon", "kremotecontroldaemon", ki18n("K Remote Control Daemon"),
60 connect(RemoteControlManager::notifier(), SIGNAL(statusChanged(bool)), this, SLOT(slotStatusChanged(bool)));
61 connect(RemoteControlManager::notifier(), SIGNAL(remoteControlAdded(QString)), this, SLOT(slotRemoteControlAdded(QString)));
62 connect(RemoteControlManager::notifier(), SIGNAL(remoteControlRemoved(QString)), this, SLOT(slotRemoteControlRemoved(QString)));
104 kDebug()<< "Got message from remote " << button.remoteName() << " button " << button.name() << "repeat" << button.repeatCounter();
134 kDebug() << "executing " << action->name() << action->description() << "repeat" << action->repeat();
137 kDebug() << "not executing because of repeatblock. repeat:" << action->repeat() << "counter:" << button.repeatCounter();
203 KNotification *notification = KNotification::event(QLatin1String( "global_event" ), i18n("An unconfigured remote control %1 is now available.", name),
204 DesktopIcon(QLatin1String( "infrared-remote" )), 0, KNotification::Persistant, m_applicationData);
256 m_notification->setText(QLatin1String( "<b>" ) + remote->name() + QLatin1String( ":</b><br>" ) + i18n("Mode switched to %1" , remote->currentMode()->name()));
257 m_notification->setPixmap(DesktopIcon(remote->currentMode()->iconName().isEmpty() ? QLatin1String( "infrared-remote" ) : remote->currentMode()->iconName()));
262 QLatin1String( "<b>" ) + remote->name() + QLatin1String( ":</b><br>" ) + i18n("Mode switched to %1" , remote->currentMode()->name()),
263 DesktopIcon(remote->currentMode()->iconName().isEmpty() ? QLatin1String( "infrared-remote" ) : remote->currentMode()->iconName())
289 void KRemoteControlDaemon::notifyEvent(const QString& message, const QString& iconName, const QString& event) {
290 KNotification::event(event, message, DesktopIcon(iconName), 0, KNotification::CloseOnTimeout, m_applicationData);
QStringList configuredRemotes()
Definition: kremotecontroldaemon.cpp:246
void modeChanged(const QString &remoteName, const QString &modeName)
QStringList modesForRemote(const QString &remoteName)
Definition: kremotecontroldaemon.cpp:235
void remoteControlRemoved(const QString &remote)
virtual QString description() const =0
virtual ~KRemoteControlDaemon()
Definition: kremotecontroldaemon.cpp:84
static QStringList allRemoteNames()
Get the Names of the available remotes in the system.
Definition: remotecontrol.cpp:37
void buttonPressed()
void ignoreButtonEvents(const QString &remoteName)
Definition: kremotecontroldaemon.cpp:172
QString remoteName() const
Retrieves the name of the RemoteControl this button comes from.
Definition: remotecontrolbutton.cpp:305
void reloadConfiguration()
Definition: kremotecontroldaemon.cpp:143
Definition: action.h:30
QVector< Action * > actionsForButton(const QString &button) const
Definition: mode.cpp:93
void loadFromConfig(const QString &configName)
Definition: remotelist.cpp:74
virtual QString name() const =0
Definition: remotecontrol.h:35
QString currentMode(const QString &remoteName)
Definition: kremotecontroldaemon.cpp:270
bool eventsIgnored(const QString &remoteName)
Definition: kremotecontroldaemon.cpp:293
KREMOTECONTROL_EXPORT Notifier * notifier()
Definition: remotecontrolmanager.cpp:37
QString modeIcon(const QString &remoteName, const QString &modeName)
Definition: kremotecontroldaemon.cpp:278
void unloadTray()
void connectionChanged(bool connected)
void considerButtonEvents(const QString &remoteName)
Definition: kremotecontroldaemon.cpp:186
void remoteControlAdded(const QString &remote)
Definition: kremotecontroldaemon.h:41
void changeMode(const QString &remoteName, Mode *mode)
Definition: kremotecontroldaemon.cpp:165
KREMOTECONTROL_EXPORT bool connected()
Get the manager connection state.
Definition: remotecontrolmanager.cpp:32
int repeatCounter() const
Retrieves the repeat count for the buttonpress.
Definition: remotecontrolbutton.cpp:434
Definition: remotecontrolbutton.h:30
Definition: remote.h:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.