summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/errorlog-interfaces.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/src/include/errorlog-interfaces.h')
-rw-r--r--kradio3/src/include/errorlog-interfaces.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/kradio3/src/include/errorlog-interfaces.h b/kradio3/src/include/errorlog-interfaces.h
new file mode 100644
index 0000000..a480927
--- /dev/null
+++ b/kradio3/src/include/errorlog-interfaces.h
@@ -0,0 +1,64 @@
+/***************************************************************************
+ errorlog-interfaces.h - description
+ -------------------
+ begin : Sa Sep 13 2003
+ copyright : (C) 2003 by Martin Witte
+ email : witte@kawo1.rwth-aachen.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KRADIO_ERRORLOG_INTERFACES_H
+#define KRADIO_ERRORLOG_INTERFACES_H
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "interfaces.h"
+
+INTERFACE(IErrorLog, IErrorLogClient)
+{
+public :
+ IErrorLog();
+ virtual ~IErrorLog();
+
+RECEIVERS:
+ IF_RECEIVER( logError (const QString &) )
+ IF_RECEIVER( logWarning(const QString &) )
+ IF_RECEIVER( logInfo (const QString &) )
+ IF_RECEIVER( logDebug (const QString &) )
+};
+
+
+INTERFACE(IErrorLogClient, IErrorLog)
+{
+public :
+ IF_CON_DESTRUCTOR(IErrorLogClient, -1)
+
+public:
+ IF_SENDER ( sendLogError (const QString &) )
+ IF_SENDER ( sendLogWarning(const QString &) )
+ IF_SENDER ( sendLogInfo (const QString &) )
+ IF_SENDER ( sendLogDebug (const QString &) )
+
+ void logError (const QString &s) const { sendLogError(s); }
+ void logWarning(const QString &s) const { sendLogWarning(s); }
+ void logInfo (const QString &s) const { sendLogInfo(s); }
+ void logDebug (const QString &s) const { sendLogDebug(s); }
+
+ static void staticLogError (const QString &s);
+ static void staticLogWarning(const QString &s);
+ static void staticLogInfo (const QString &s);
+ static void staticLogDebug (const QString &s);
+};
+
+
+#endif