• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdefile
 

tdeio/tdefile

Public Member Functions | Static Public Member Functions | List of all members
KNotifyDialog Class Reference

#include <knotifydialog.h>

Inherits KDialogBase.

Public Member Functions

 KNotifyDialog (TQWidget *parent=0, const char *name=0, bool modal=true, const TDEAboutData *aboutData=TDEGlobal::instance() ->aboutData())
 
virtual ~KNotifyDialog ()
 
virtual void addApplicationEvents (const char *appName)
 
virtual void addApplicationEvents (const TQString &path)
 
virtual void clearApplicationEvents ()
 

Static Public Member Functions

static int configure (TQWidget *parent=0, const char *name=0, const TDEAboutData *aboutData=TDEGlobal::instance() ->aboutData())
 

Detailed Description

KNotifyDialog presents an interface for configuring an application's KNotify events.

Rather than requiring the user to wade through the entire list of applications' events in KControl, your application can make the list of its own notifications available here.

Typical usage is calling the static configure() method:

(void) KNotifyDialog::configure( someParentWidget );
KNotifyDialog::configure
static int configure(TQWidget *parent=0, const char *name=0, const TDEAboutData *aboutData=TDEGlobal::instance() ->aboutData())
Convenience method to create exec() a modal KNotifyDialog.
Definition: knotifydialog.cpp:154
Since
3.1
Author
Carsten Pfeiffer pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg

Definition at line 52 of file knotifydialog.h.

Constructor & Destructor Documentation

◆ KNotifyDialog()

KNotifyDialog::KNotifyDialog ( TQWidget *  parent = 0,
const char *  name = 0,
bool  modal = true,
const TDEAboutData *  aboutData = TDEGlobal::instance()->aboutData() 
)

If you want a non-modal dialog, you need to instantiate KNotifyDialog yourself instead of using the configure() method.

KDE4.0 modal default will be false.

Parameters
parentThe parent widget for the dialog
nameThe widget name
modalIf true, this will be a modal dialog, otherwise non-modal.
aboutDataA pointer to a TDEAboutData object. TDEAboutData::appName() will be used to find the KNotify events (in the eventsrc file). Set this to 0L if you want to add all events yourself with addApplicationEvents().

Definition at line 161 of file knotifydialog.cpp.

◆ ~KNotifyDialog()

KNotifyDialog::~KNotifyDialog ( )
virtual

Destroys the KNotifyDialog.

Definition at line 177 of file knotifydialog.cpp.

Member Function Documentation

◆ addApplicationEvents() [1/2]

void KNotifyDialog::addApplicationEvents ( const char *  appName)
virtual

With this method, you can add the KNotify events of one eventsrc files to the view.

KNotifyDialog can handle events for multiple applications (i.e. eventsrc files). Successive calls with a different appName will add them.

Parameters
appNameThe application's name, i.e. the name passed to the TDEApplication constructor or TDEAboutData.
See also
clearApplicationEvents()

Definition at line 181 of file knotifydialog.cpp.

◆ addApplicationEvents() [2/2]

void KNotifyDialog::addApplicationEvents ( const TQString &  path)
virtual

With this method, you can add the KNotify events of one eventsrc files to the view.

KNotifyDialog can handle events for multiple applications (i.e. eventsrc files). Successive calls with a different path will add them.

Parameters
pathThe absolute or relative path to the eventsrc file to be configured. A relative path would be e.g. "twin/eventsrc".
See also
clearApplicationEvents()

Definition at line 187 of file knotifydialog.cpp.

◆ clearApplicationEvents()

void KNotifyDialog::clearApplicationEvents ( )
virtual

Removes all the events added with addApplicationEvents()

See also
addApplicationEvents()

Definition at line 197 of file knotifydialog.cpp.

◆ configure()

int KNotifyDialog::configure ( TQWidget *  parent = 0,
const char *  name = 0,
const TDEAboutData *  aboutData = TDEGlobal::instance()->aboutData() 
)
static

Convenience method to create exec() a modal KNotifyDialog.

Parameters
parentThe parent widget for the dialog
nameThe widget name
aboutDataA pointer to a TDEAboutData object. TDEAboutData::appName() will be used to find the KNotify events (in the eventsrc file).
See also
exec for the return values.
Returns
The value of TQDialog::exec()

Definition at line 154 of file knotifydialog.cpp.


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

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.9.4
This website is maintained by Timothy Pearson.