24 #include <knotifyclient.h> 25 #include <dcopobject.h> 31 class KNotify :
public TQObject,
public DCOPObject
37 KNotify(
bool useArts );
40 enum PlayingFinishedStatus
54 void notify(
const TQString &event,
const TQString &fromApp,
55 const TQString &text, TQString sound, TQString file,
56 int present,
int level);
59 void notify(
const TQString &event,
const TQString &fromApp,
60 const TQString &text, TQString sound, TQString file,
61 int present,
int level,
int winId);
63 void notify(
const TQString &event,
const TQString &fromApp,
64 const TQString &text, TQString sound, TQString file,
65 int present,
int level,
int winId,
int eventId);
69 void setVolume(
int volume );
73 bool notifyBySound(
const TQString &sound,
const TQString &appname,
int eventId);
74 bool notifyByMessagebox(
const TQString &text,
int level, WId winId);
75 bool notifyByLogfile(
const TQString &text,
const TQString &file);
76 bool notifyByStderr(
const TQString &text);
77 bool notifyByPassivePopup(
const TQString &text,
const TQString &appName,
78 KConfig* eventsFile, WId winId );
79 bool notifyByExecute(
const TQString &command,
80 const TQString& event,
81 const TQString& fromApp,
85 bool notifyByTaskbar( WId winId );
87 bool isPlaying(
const TQString& soundFile )
const;
89 void soundFinished(
int eventId, PlayingFinishedStatus reason );
90 void abortFirstPlayObject();
92 WId checkWinId(
const TQString& appName, WId senderWinId );
97 bool isGlobal(
const TQString &eventname);
101 void slotPlayerProcessExited(
KProcess *proc );
102 void restartedArtsd();