KNotifyConfig

Search for usage in LXR

#include <KNotifyConfig>

Public Member Functions

 KNotifyConfig (const QString &appname, const ContextList &_contexts, const QString &_eventid)
 
KNotifyConfigcopy () const
 
QString readEntry (const QString &entry, bool path=false)
 

Static Public Member Functions

static void reparseConfiguration ()
 
static void reparseSingleConfiguration (const QString &app)
 

Public Attributes

QString appname
 
KSharedConfig::Ptr configfile
 
ContextList contexts
 
QString eventid
 
KSharedConfig::Ptr eventsfile
 
KNotifyImage image
 

Detailed Description

Represent the configuration for an event.

Author
Olivier Goffart ogoff[email protected][email protected][email protected]kde.o[email protected]rg

Definition at line 58 of file knotifyconfig.h.

Member Function Documentation

QString KNotifyConfig::readEntry ( const QString entry,
bool  path = false 
)
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 73 of file knotifyconfig.cpp.

void KNotifyConfig::reparseConfiguration ( )
static

reparse the cached configs.

to be used when the config may have changed

Definition at line 33 of file knotifyconfig.cpp.

Member Data Documentation

QString KNotifyConfig::appname

the name of the application that triggered the notification

Definition at line 84 of file knotifyconfig.h.

QString KNotifyConfig::eventid

the name of the notification

Definition at line 95 of file knotifyconfig.h.

KSharedConfig::Ptr KNotifyConfig::eventsfile

Definition at line 89 of file knotifyconfig.h.

KNotifyImage KNotifyConfig::image

the pixmap to put on the notification

Definition at line 79 of file knotifyconfig.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 22:44:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.