KNotify
knotify.cpp
Go to the documentation of this file.
69 //TODO reactivate on Mac/Win when KWindowSystem::demandAttention will implemented on this system.
98 connect(p,SIGNAL(actionInvoked( int , int )) , this , SIGNAL(notificationActivated( int , int ) ));
118 //this has to be called before plugin->close or we will get double deletion because of slotPluginFinished
134 int KNotify::event( const QString & event, const QString & appname, const ContextList & contexts, const QString & title, const QString & text, const KNotifyImage & image, const QStringList & actions, int timeout, WId winId )
162 void KNotify::update(int id, const QString &title, const QString &text, const KNotifyImage& image, const QStringList& actions)
203 kDebug() << "Context " << e->config.contexts << "present actions are invalid! Fallback to default present actions";
261 int KNotifyAdaptor::event(const QString &event, const QString &fromApp, const QVariantList& contexts,
289 return static_cast<KNotify *>(parent())->event(event, fromApp, contextlist, title, text, image, actions, timeout, WId(winId));
310 void KNotifyAdaptor::update(int id, const QString &title, const QString &text, const QByteArray& image, const QStringList& actions )
iterator insert(const Key &key, const T &value)
Definition: notifybytaskbar.h:29
int event(const QString &event, const QString &fromApp, const QVariantList &contexts, const QString &title, const QString &text, const QByteArray &pixmap, const QStringList &actions, int timeout, qlonglong winId)
Definition: knotify.cpp:261
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
Definition: notifybysound.h:29
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
void update(int id, const QString &title, const QString &text, const QByteArray &pixmap, const QStringList &actions)
Definition: knotify.cpp:310
void update(int id, const QString &title, const QString &text, const KNotifyImage &image, const QStringList &actions)
Definition: knotify.cpp:162
QDBusConnection sessionBus()
QSet< T > toSet() const
Definition: notifybyktts.h:30
virtual void update(int id, KNotifyConfig *config)
This function is called when the notification has changed (such as the text or the icon) ...
Definition: knotifyplugin.cpp:38
void notificationClosed(int id)
Definition: knotify.h:85
virtual void notify(int id, KNotifyConfig *config)=0
This function is called when the notification is sent.
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
T & first()
int remove(const Key &key)
Definition: notifybylogfile.h:29
void clear()
Definition: knotify.h:40
Definition: notifybypopup.h:33
void notificationActivated(int id, int action)
virtual void close(int id)
This function is called when the notification has been closed.
Definition: knotifyplugin.cpp:44
QString mid(int position, int n) const
bool remove(const T &value)
Definition: notifybyexecute.h:29
QList< T > toList() const
bool contains(const Key &key) const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QString toString() const
int event(const QString &event, const QString &fromApp, const ContextList &contexts, const QString &title, const QString &text, const KNotifyImage &image, const QStringList &actions, int timeout, WId winId=0)
Definition: knotify.cpp:134
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:08:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.