summaryrefslogtreecommitdiffstats
path: root/kttsd/libkttsd/notify.h
diff options
context:
space:
mode:
Diffstat (limited to 'kttsd/libkttsd/notify.h')
-rw-r--r--kttsd/libkttsd/notify.h85
1 files changed, 85 insertions, 0 deletions
diff --git a/kttsd/libkttsd/notify.h b/kttsd/libkttsd/notify.h
new file mode 100644
index 0000000..2a8162d
--- /dev/null
+++ b/kttsd/libkttsd/notify.h
@@ -0,0 +1,85 @@
+/***************************************************** vim:set ts=4 sw=4 sts=4:
+ Notification Action constants and utility functions.
+ -------------------
+ Copyright : (C) 2005 by Gary Cramblitt <garycramblitt@comcast.net>
+ -------------------
+ Original author: Gary Cramblitt <garycramblitt@comcast.net>
+ Current Maintainer: 2004 by Gary Cramblitt <garycramblitt@comcast.net>
+ ******************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; version 2 of the License. *
+ * *
+ ***************************************************************************/
+
+#ifndef _NOTIFYACTION_H
+#define _NOTIFYACTION_H
+
+#include <kdemacros.h>
+
+class QString;
+
+class KDE_EXPORT NotifyAction
+{
+
+public:
+
+ enum NotifyActions
+ {
+ SpeakEventName,
+ SpeakMsg,
+ DoNotSpeak,
+ SpeakCustom
+ };
+
+ static int count();
+ static QString actionName( const int action );
+ static int action( const QString& actionName );
+ static QString actionDisplayName( const int action );
+ static QString actionDisplayName( const QString& actionName );
+};
+
+// --------------------------------------------------------------------
+
+class KDE_EXPORT NotifyPresent
+{
+
+public:
+
+ enum NotifyPresentations
+ {
+ None,
+ Dialog,
+ Passive,
+ DialogAndPassive,
+ All
+ };
+
+ static int count();
+ static QString presentName( const int present );
+ static int present( const QString& presentName );
+ static QString presentDisplayName( const int present );
+ static QString presentDisplayName( const QString& presentName );
+};
+
+// --------------------------------------------------------------------
+
+class KDE_EXPORT NotifyEvent
+{
+
+public:
+ /**
+ * Retrieves the displayable name for an event source.
+ */
+ static QString getEventSrcName(const QString& eventSrc, QString& iconName);
+
+ /**
+ * Retrieves the displayable name for an event from an event source.
+ */
+ static QString getEventName(const QString& eventSrc, const QString& event);
+};
+
+#endif // _NOTIFYACTION_H