• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • arts
 

arts

  • arts
  • knotify
knotify.h
1 /*
2  Copyright (c) 1997 Christian Esken (esken@kde.org)
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2, or (at your option)
7  any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18 */
19 
20 #ifndef KNOTIFY_H
21 #define KNOTIFY_H
22 
23 #include <tqobject.h>
24 #include <knotifyclient.h>
25 #include <dcopobject.h>
26 
27 class KNotifyPrivate;
28 class TDEProcess;
29 class TDEConfig;
30 
31 class KNotify : public TQObject, public DCOPObject
32 {
33  Q_OBJECT
34  K_DCOP
35 
36  public:
37  KNotify( bool useArts );
38  ~KNotify();
39 
40  enum PlayingFinishedStatus {
41  PlayedOK = 0, // success, all following mean failure
42  NoSoundFile,
43  FileAlreadyPlaying,
44  NoSoundSupport,
45  PlayerBusy,
46  Aborted,
47  Unknown = 5000
48  };
49 
50  protected:
51  k_dcop:
52  // deprecated
53  void notify(const TQString &event, const TQString &fromApp, const TQString &text, TQString sound, TQString file, int present, int level);
54 
55  // deprecated
56  void notify(const TQString &event, const TQString &fromApp, const TQString &text, TQString sound, TQString file, int present, int level, int winId);
57 
58  void notify(const TQString &event, const TQString &fromApp, const TQString &text, TQString sound, TQString file, int present, int level, int winId, int eventId);
59 
60 
61  void reconfigure();
62  void setVolume( int volume );
63  void sessionReady(); // from ksmserver
64 
65  private:
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 );
73 
74  bool isPlaying( const TQString& soundFile ) const;
75 
76  void soundFinished( int eventId, PlayingFinishedStatus reason );
77  void abortFirstPlayObject();
78 
79  WId checkWinId( const TQString& appName, WId senderWinId );
80 
84  bool isGlobal(const TQString &eventname);
85 
86  private slots:
87  void playTimeout();
88  void slotPlayerProcessExited( TDEProcess *proc );
89  void restartedArtsd();
90 
91  private:
92  KNotifyPrivate* d;
93  void loadConfig();
94 };
95 
96 
97 #endif
98 
TDEConfig
TDEProcess

arts

Skip menu "arts"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

arts

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