KNotify
#include <knotifyconfig.h>
Public Member Functions | |
KNotifyConfig (const QString &appname, const ContextList &_contexts, const QString &_eventid) | |
~KNotifyConfig () | |
KNotifyConfig * | copy () const |
QString | readEntry (const QString &entry, bool path=false) |
Static Public Member Functions | |
static void | reparseConfiguration () |
Public Attributes | |
QStringList | actions |
QString | appname |
KSharedConfig::Ptr | configfile |
ContextList | contexts |
QString | eventid |
KSharedConfig::Ptr | eventsfile |
KNotifyImage | image |
QString | text |
int | timeout |
QString | title |
WId | winId |
Detailed Description
Represent the configuration for an event.
Definition at line 60 of file knotifyconfig.h.
Constructor & Destructor Documentation
KNotifyConfig::KNotifyConfig | ( | const QString & | appname, |
const ContextList & | _contexts, | ||
const QString & | _eventid | ||
) |
Definition at line 51 of file knotifyconfig.cpp.
KNotifyConfig::~KNotifyConfig | ( | ) |
Definition at line 60 of file knotifyconfig.cpp.
Member Function Documentation
KNotifyConfig * KNotifyConfig::copy | ( | ) | const |
Definition at line 64 of file knotifyconfig.cpp.
- Returns
- entry from the knotifyrc file
This will return the configuration from the user for the given key. It first look into the user config file, and then in the global config file.
return a null string if the entry doesn't exist
Definition at line 80 of file knotifyconfig.cpp.
|
static |
reparse the cached configs.
to be used when the config may have changed
Definition at line 43 of file knotifyconfig.cpp.
Member Data Documentation
QStringList KNotifyConfig::actions |
the user-readable list of action.
Definition at line 104 of file knotifyconfig.h.
QString KNotifyConfig::appname |
the name of the application that triggered the notification
Definition at line 109 of file knotifyconfig.h.
KSharedConfig::Ptr KNotifyConfig::configfile |
Definition at line 114 of file knotifyconfig.h.
ContextList KNotifyConfig::contexts |
Definition at line 115 of file knotifyconfig.h.
QString KNotifyConfig::eventid |
the name of the notification
Definition at line 120 of file knotifyconfig.h.
KSharedConfig::Ptr KNotifyConfig::eventsfile |
Definition at line 114 of file knotifyconfig.h.
KNotifyImage KNotifyConfig::image |
the pixmap to put on the notification
Definition at line 89 of file knotifyconfig.h.
QString KNotifyConfig::text |
the text of the notification
Definition at line 85 of file knotifyconfig.h.
int KNotifyConfig::timeout |
How long the notification should be presented (in seconds).
-1 means server decides, 0 means infinite.
Definition at line 95 of file knotifyconfig.h.
QString KNotifyConfig::title |
the title of the notification
Definition at line 81 of file knotifyconfig.h.
WId KNotifyConfig::winId |
The windowsID of the window that initiated the notification (it is a window in the client)
Definition at line 100 of file knotifyconfig.h.
The documentation for this class was generated from the following files:
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.