• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

KNotify

KNotifyConfig Class Reference

Represent the configuration for an event. More...

#include <knotifyconfig.h>

List of all members.


Public Member Functions

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

Static Public Member Functions

static void clearCache ()

Public Attributes

QStringList actions
QString appname
KSharedConfig::Ptr configfile
ContextList contexts
QString eventid
KSharedConfig::Ptr eventsfile
QPixmap pix
QString text
WId winId

Detailed Description

Represent the configuration for an event.

Author:
Olivier Goffart <ogoffart@kde.org>

Definition at line 36 of file knotifyconfig.h.


Constructor & Destructor Documentation

KNotifyConfig::KNotifyConfig ( const QString &  appname,
const ContextList &  _contexts,
const QString &  _eventid 
)

Definition at line 48 of file knotifyconfig.cpp.

KNotifyConfig::~KNotifyConfig (  ) 

Definition at line 57 of file knotifyconfig.cpp.


Member Function Documentation

void KNotifyConfig::clearCache (  )  [static]

clear the config cache.

to be used when the config may have changed

Definition at line 42 of file knotifyconfig.cpp.

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 61 of file knotifyconfig.cpp.


Member Data Documentation

QStringList KNotifyConfig::actions

the user-readable list of action.

Definition at line 68 of file knotifyconfig.h.

QString KNotifyConfig::appname

the name of the application that triggered the notification

Definition at line 73 of file knotifyconfig.h.

KSharedConfig::Ptr KNotifyConfig::configfile

Definition at line 78 of file knotifyconfig.h.

ContextList KNotifyConfig::contexts

Definition at line 79 of file knotifyconfig.h.

QString KNotifyConfig::eventid

the name of the notification

Definition at line 84 of file knotifyconfig.h.

KSharedConfig::Ptr KNotifyConfig::eventsfile

For internal use only.

Definition at line 78 of file knotifyconfig.h.

QPixmap KNotifyConfig::pix

the pixmap to put on the notification

Definition at line 59 of file knotifyconfig.h.

QString KNotifyConfig::text

the text of the notification

Definition at line 55 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 64 of file knotifyconfig.h.


The documentation for this class was generated from the following files:
  • knotifyconfig.h
  • knotifyconfig.cpp

KNotify

Skip menu "KNotify"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KCMShell
  • KNotify
  • KStyles
  • Nepomuk Daemons
Generated for API Reference by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal