• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

KNotify

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
KNotifyConfig Class Reference

#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.

Author
Olivier Goffart ogoff.nosp@m.art@.nosp@m.kde.o.nosp@m.rg

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.

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

void KNotifyConfig::reparseConfiguration ( )
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:
  • knotifyconfig.h
  • knotifyconfig.cpp
This file is part of the KDE documentation.
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.

KNotify

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

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal