summaryrefslogtreecommitdiffstats
path: root/arts/knotify
diff options
context:
space:
mode:
Diffstat (limited to 'arts/knotify')
-rw-r--r--arts/knotify/README14
-rw-r--r--arts/knotify/knotify.cpp8
-rw-r--r--arts/knotify/knotify.h2
3 files changed, 19 insertions, 5 deletions
diff --git a/arts/knotify/README b/arts/knotify/README
index 3257cdc33..676dcc25e 100644
--- a/arts/knotify/README
+++ b/arts/knotify/README
@@ -31,3 +31,17 @@ example, while the screen is locked, it is very likely that the user is not
present. Thus, he will not be able to hear a "You have mail" sound (or to
see a talk request). Re-routing this to a log window sounds like a very good
idea.
+
+Notes:
+------
+
+KNotify can be accessed directly using one of the available methods.
+ - void notify(TQString event, TQString fromApp, TQString text, TQString sound,
+ TQString file, int present, int level)
+ - void notify(TQString event, TQString fromApp, TQString text, TQString sound,
+ TQString file, int present, int level, int winId)
+ - void notify(TQString event, TQString fromApp, TQString text, TQString sound,
+ TQString file, int present, int level, int winId, int eventId)
+
+For example:
+ dcop knotify Notify notify event "Msg from MyApp" "Hello World!" "" "" 16 0
diff --git a/arts/knotify/knotify.cpp b/arts/knotify/knotify.cpp
index 101c7967b..14606b007 100644
--- a/arts/knotify/knotify.cpp
+++ b/arts/knotify/knotify.cpp
@@ -102,7 +102,7 @@ class KNotifyPrivate
#endif
extern "C"{
- KDE_EXPORT int kdemain(int argc, char **argv) {
+ TDE_EXPORT int kdemain(int argc, char **argv) {
TDEAboutData aboutdata("knotify", I18N_NOOP("KNotify"),
"3.0", I18N_NOOP("TDE Notification Server"),
TDEAboutData::License_GPL, "(C) 1997-2003, KDE Developers");
@@ -247,7 +247,7 @@ KNotify::KNotify( bool useArts )
d->playObjects.setAutoDelete(true);
d->audioManager = 0;
if( useArts ) {
- connect( soundServer, TQT_SIGNAL( restartedServer() ), this, TQT_SLOT( restartedArtsd() ) );
+ connect( soundServer, TQ_SIGNAL( restartedServer() ), this, TQ_SLOT( restartedArtsd() ) );
restartedArtsd(); //started allready need to initialize d->audioManager
}
#endif
@@ -530,7 +530,7 @@ bool KNotify::notifyBySound( const TQString &sound, const TQString &appname, int
if ( !d->playTimer ) {
d->playTimer = new TQTimer( this );
- connect( d->playTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( playTimeout() ) );
+ connect( d->playTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( playTimeout() ) );
}
if ( !d->playTimer->isActive() ) {
d->playTimer->start( 1000 );
@@ -543,7 +543,7 @@ bool KNotify::notifyBySound( const TQString &sound, const TQString &appname, int
TDEProcess *proc = d->externalPlayerProc;
if (!proc) {
proc = d->externalPlayerProc = new TDEProcess;
- connect( proc, TQT_SIGNAL( processExited( TDEProcess * )), TQT_SLOT( slotPlayerProcessExited( TDEProcess * )));
+ connect( proc, TQ_SIGNAL( processExited( TDEProcess * )), TQ_SLOT( slotPlayerProcessExited( TDEProcess * )));
}
if (proc->isRunning()) {
soundFinished( eventId, PlayerBusy );
diff --git a/arts/knotify/knotify.h b/arts/knotify/knotify.h
index 8348f3d40..b74fca3b2 100644
--- a/arts/knotify/knotify.h
+++ b/arts/knotify/knotify.h
@@ -30,7 +30,7 @@ class TDEConfig;
class KNotify : public TQObject, public DCOPObject
{
- Q_OBJECT
+ TQ_OBJECT
K_DCOP
public: