00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef KRADIO_ERRORLOG_INTERFACES_H
00019 #define KRADIO_ERRORLOG_INTERFACES_H
00020
00021 #ifdef HAVE_CONFIG_H
00022 #include <config.h>
00023 #endif
00024
00025 #include "interfaces.h"
00026
00027 INTERFACE(IErrorLog, IErrorLogClient)
00028 {
00029 public :
00030 IErrorLog();
00031 virtual ~IErrorLog();
00032
00033 RECEIVERS:
00034 IF_RECEIVER( logError (const QString &) )
00035 IF_RECEIVER( logWarning(const QString &) )
00036 IF_RECEIVER( logInfo (const QString &) )
00037 IF_RECEIVER( logDebug (const QString &) )
00038 };
00039
00040
00041 INTERFACE(IErrorLogClient, IErrorLog)
00042 {
00043 public :
00044 IF_CON_DESTRUCTOR(IErrorLogClient, -1)
00045
00046 public:
00047 IF_SENDER ( sendLogError (const QString &) )
00048 IF_SENDER ( sendLogWarning(const QString &) )
00049 IF_SENDER ( sendLogInfo (const QString &) )
00050 IF_SENDER ( sendLogDebug (const QString &) )
00051
00052 void logError (const QString &s) const { sendLogError(s); }
00053 void logWarning(const QString &s) const { sendLogWarning(s); }
00054 void logInfo (const QString &s) const { sendLogInfo(s); }
00055 void logDebug (const QString &s) const { sendLogDebug(s); }
00056
00057 static void staticLogError (const QString &s);
00058 static void staticLogWarning(const QString &s);
00059 static void staticLogInfo (const QString &s);
00060 static void staticLogDebug (const QString &s);
00061 };
00062
00063
00064 #endif