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

tdecore

knotifyclient.h

00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2000 Charles Samuels <charles@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 #ifndef _KNOTIFY_CLIENT
00019 #define _KNOTIFY_CLIENT
00020 #include <tqstring.h>
00021 #include "tdelibs_export.h"
00022 
00023 class TDEInstance;
00024 #undef None // X11 headers...
00025 
00079 namespace KNotifyClient
00080 {
00081     struct InstancePrivate;
00082     class InstanceStack;
00083 
00096     class TDECORE_EXPORT Instance
00097     {
00098     public:
00104         Instance(TDEInstance *instance);
00109         ~Instance();
00115     bool useSystemBell() const;
00120         static TDEInstance *current();
00121 
00126     static Instance *currentInstance();
00127     
00128     private:
00129         static InstanceStack *instances();
00130         InstancePrivate *d;
00131         static InstanceStack *s_instances;
00132     };
00133 
00134 
00138     enum {
00139         Default = -1,
00140         None = 0,
00141         Sound = 1,
00142         Messagebox = 2,
00143         Logfile = 4,
00144         Stderr = 8,
00145         PassivePopup = 16, 
00146         Execute = 32,      
00147         Taskbar = 64       
00148     };
00149 
00153     enum {
00154         Notification=1,
00155         Warning=2,
00156         Error=4,
00157         Catastrophe=8
00158     };
00159 
00163     enum StandardEvent {
00164         cannotOpenFile,
00165         notification,
00166         warning,
00167         fatalError,
00168         catastrophe
00169     };
00170 
00178     TDECORE_EXPORT bool startDaemon();
00179 
00180 //#ifndef KDE_NO_COMPAT
00188     TDECORE_EXPORT int event(const TQString &message, const TQString &text=TQString::null) KDE_DEPRECATED;
00189 
00197     TDECORE_EXPORT int event( StandardEvent event, const TQString& text=TQString::null ) KDE_DEPRECATED;
00198 
00209     TDECORE_EXPORT int userEvent(const TQString &text=TQString::null, int present=Default, int level=Default,
00210                                  const TQString &sound=TQString::null, const TQString &file=TQString::null) KDE_DEPRECATED;
00211     
00212 //#endif
00213 
00229     // KDE4: use WId instead of int
00230     TDECORE_EXPORT int event( int winId, const TQString& message,
00231                               const TQString& text = TQString::null );
00232 
00244     // KDE4: use WId instead of int
00245     TDECORE_EXPORT int event( int winId, StandardEvent event,
00246                               const TQString& text = TQString::null );
00247 
00262     // KDE4: use WId instead of int
00263     TDECORE_EXPORT int userEvent(int winId, const TQString &text=TQString::null, int present=Default, int level=Default,
00264                           const TQString &sound=TQString::null, const TQString &file=TQString::null);
00265     
00274     TDECORE_EXPORT void beep(const TQString& reason=TQString::null);
00275 
00285     TDECORE_EXPORT int getPresentation(const TQString &eventname);
00286     
00295     TDECORE_EXPORT TQString getFile(const TQString &eventname, int present);
00296     
00305     TDECORE_EXPORT int getDefaultPresentation(const TQString &eventname);
00306     
00316     TDECORE_EXPORT TQString getDefaultFile(const TQString &eventname, int present);
00317 
00322     TDECORE_EXPORT TDEInstance * instance();
00323 }
00324 
00325 #endif

tdecore

Skip menu "tdecore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdecore

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