24 #include <knotifyclient.h>
25 #include <dcopobject.h>
31 class KNotify :
public TQObject,
public DCOPObject
37 KNotify(
bool useArts );
40 enum PlayingFinishedStatus {
53 void notify(
const TQString &event,
const TQString &fromApp,
const TQString &text, TQString sound, TQString file,
int present,
int level);
56 void notify(
const TQString &event,
const TQString &fromApp,
const TQString &text, TQString sound, TQString file,
int present,
int level,
int winId);
58 void notify(
const TQString &event,
const TQString &fromApp,
const TQString &text, TQString sound, TQString file,
int present,
int level,
int winId,
int eventId);
62 void setVolume(
int volume );
66 bool notifyBySound(
const TQString &sound,
const TQString &appname,
int eventId);
67 bool notifyByMessagebox(
const TQString &text,
int level, WId winId);
68 bool notifyByLogfile(
const TQString &text,
const TQString &file);
69 bool notifyByStderr(
const TQString &text);
70 bool notifyByPassivePopup(
const TQString &text,
const TQString &appName,
TDEConfig* eventsFile, WId winId );
71 bool notifyByExecute(
const TQString &command,
const TQString& event,
const TQString& fromApp,
const TQString& text,
int winId,
int eventId );
72 bool notifyByTaskbar( WId winId );
74 bool isPlaying(
const TQString& soundFile )
const;
76 void soundFinished(
int eventId, PlayingFinishedStatus reason );
77 void abortFirstPlayObject();
79 WId checkWinId(
const TQString& appName, WId senderWinId );
84 bool isGlobal(
const TQString &eventname);
88 void slotPlayerProcessExited(
TDEProcess *proc );
89 void restartedArtsd();