From ae364d9bed0589bf1a22cd5f530c563462379e3e Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 22 Feb 2010 18:23:26 +0000 Subject: Added old KDE3 version of kradio git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kradio@1094417 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kradio3/src/include/errorlog-interfaces.h | 64 +++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 kradio3/src/include/errorlog-interfaces.h (limited to 'kradio3/src/include/errorlog-interfaces.h') 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 +#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 -- cgit v1.2.1