knotifyclient.cpp
99 if ( client->send(daemonName, "Notify", "notify(TQString,TQString,TQString,TQString,TQString,int,int,int,int)", data) )
199 KConfig eventsfile( KNotifyClient::instance()->instanceName()+"/eventsrc", true, false, "data");
211 KConfig eventsfile( KNotifyClient::instance()->instanceName()+"/eventsrc", true, false, "data");
int event(const TQString &message, const TQString &text=TQString::null) KDE_DEPRECATED
Definition: knotifyclient.cpp:112
bool startDaemon()
This starts the KNotify Daemon, if it's not already started.
Definition: knotifyclient.cpp:225
bool isApplicationRegistered(const TQCString &remApp)
static int startServiceByDesktopName(const TQString &_name, const TQString &URL, TQString *error=0, TQCString *dcopService=0, int *pid=0, const TQCString &startup_id="", bool noWait=false)
Starts a service based on the desktop name of the service.
Definition: kapplication.cpp:3122
void beep(const TQString &reason=TQString::null)
This is a simple substitution for TQApplication::beep().
Definition: knotifyclient.cpp:239
~Instance()
Destructs the KNotifyClient::Instance and resets KNotifyClient to the previously used KInstance...
Definition: knotifyclient.cpp:327
bool attach()
Little helper class to clean up static objects that are held as pointer.
Definition: kstaticdeleter.h:74
int userEvent(const TQString &text=TQString::null, int present=Default, int level=Default, const TQString &sound=TQString::null, const TQString &file=TQString::null) KDE_DEPRECATED
Definition: knotifyclient.cpp:117
bool send(const TQCString &remApp, const TQCString &remObj, const TQCString &remFun, const TQByteArray &data)
KConfig * config() const
Returns the general config object ("appnamerc").
Definition: kinstance.cpp:177
void setGroup(const TQString &group)
Specifies the group in which keys will be read and written.
Definition: kconfigbase.cpp:80
TQString readPathEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads a path.
Definition: kconfigbase.cpp:608
KDE_DEPRECATED type * setObject(type *obj, bool isArray=false)
Sets the object to delete and registers the object to be deleted to KGlobal.
Definition: kstaticdeleter.h:85
int getDefaultPresentation(const TQString &eventname)
Gets the default presentation for the event of this program.
Definition: knotifyclient.cpp:194
bool readBoolEntry(const TQString &pKey, bool bDefault=false) const
Reads a boolean entry.
Definition: kconfigbase.cpp:771
Instance(KInstance *instance)
Constructs a KNotifyClient::Instance to make KNotifyClient use the specified KInstance for the event ...
Definition: knotifyclient.cpp:316
Makes it possible to use KNotifyClient with a KInstance that is not the application.
Definition: knotifyclient.h:96
TQString getFile(const TQString &eventname, int present)
Gets the default file associated with a certain event name The control panel module will list all the...
Definition: knotifyclient.cpp:176
static KInstance * current()
Returns the currently active KInstance.
Definition: knotifyclient.cpp:360
int getPresentation(const TQString &eventname)
Gets the presentation associated with a certain event name Remeber that they may be ORed: ...
Definition: knotifyclient.cpp:163
Helper class to facilitate working with KConfig / KSimpleConfig groups.
Definition: kconfigbase.h:2059
TQString getDefaultFile(const TQString &eventname, int present)
Gets the default File for the event of this program.
Definition: knotifyclient.cpp:207
bool useSystemBell() const
Checks whether the system bell should be used.
Definition: knotifyclient.cpp:341
int readNumEntry(const TQString &pKey, int nDefault=0) const
Reads a numerical value.
Definition: kconfigbase.cpp:636
bool isAttached() const
KInstance * instance()
Shortcut to KNotifyClient::Instance::current() :)
Definition: knotifyclient.cpp:267
static Instance * currentInstance()
Returns the current KNotifyClient::Instance (not the KInstance).
Definition: knotifyclient.cpp:355