KNotifications
knotifyconfig.cpp
16 static KSharedConfig::Ptr retrieve_from_cache(const QString &filename, QStandardPaths::StandardLocation type = QStandardPaths::GenericConfigLocation)
51 KNotifyConfig::KNotifyConfig(const QString &_appname, const ContextList &_contexts, const QString &_eventid)
56 eventsfile = retrieve_from_cache(QLatin1String("knotifications5/") + _appname + QLatin1String(".notifyrc"), QStandardPaths::GenericDataLocation);
76 const QString group = QLatin1String("Event/") + eventid + QLatin1Char('/') + context.first + QLatin1Char('/') + context.second;
QString readEntry(const char *key, const char *aDefault=nullptr) const
bool isNull() const const
QString appname
the name of the application that triggered the notification
Definition: knotifyconfig.h:84
NoGlobals
QList< Key > keys() const const
bool loadFromData(const uchar *data, int len, const char *format)
QString readEntry(const QString &entry, bool path=false)
Definition: knotifyconfig.cpp:73
Definition: knotifyconfig.h:58
KSharedConfigPtr config()
GenericDataLocation
int size() const const
QString readPathEntry(const char *key, const QString &aDefault) const
bool contains(const Key &key) const const
bool insert(const Key &key, T *object, int cost)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:49:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.