You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/arts/knotify
Michele Calgaro 8eb500c4e8
Replace Q_OBJECT with TQ_OBJECT
1 year ago
..
CMakeL10n.txt Desktop file translations: 5 years ago
CMakeLists.txt Desktop file translations: 5 years ago
Makefile.am LIB_QT -> LIB_TQT conversion to align to updated admin module 6 years ago
README Update knotify README with command line example. 4 years ago
knotify.cpp Removed code formatting modelines. 4 years ago
knotify.desktop Desktop file translations: 5 years ago
knotify.h Replace Q_OBJECT with TQ_OBJECT 1 year ago
knotifytest.cpp Rename common header files for consistency with class renaming 12 years ago

README

About KNotify 

Historic overview. From KDE-1 to KDE-2:
---------------------------------------
KDE-1 ships with a notification system for window manager events - a sound
could be played for example on startup or when a window closes. This was a
very limited notification system.

KNotify in contrast is a very flexible notification system. It can easily be
accessed by any application, and notifications can have several
presentations: Sound is still supported, but you can as well display a
message box, write a text to a log file or log window.

The notification presentation will be user configurable. Some people don't
like message boxes popping up at unexpected times, so they prefer sounds
instead. Deaf people on the otehr hand will not be happy about desktop
sounds.



Usage:
------
1. Compile
2. Start knotify
3. Test it with knotifyclient.

Ideas:
------
It might be useful to modify message presentation from time to time. For
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