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.nosp@m.art@.nosp@m.kde.o.nosp@m.rg

Definition at line 58 of file knotifyconfig.h.

Member Function Documentation

◆ readEntry()

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.

◆ reparseConfiguration()

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

◆ appname

QString KNotifyConfig::appname

the name of the application that triggered the notification

Definition at line 84 of file knotifyconfig.h.

◆ eventid

QString KNotifyConfig::eventid

the name of the notification

Definition at line 95 of file knotifyconfig.h.

◆ eventsfile

KSharedConfig::Ptr KNotifyConfig::eventsfile

Definition at line 89 of file knotifyconfig.h.

◆ image

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-2023 The KDE developers.
Generated on Thu Nov 30 2023 03:57:31 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.