errorlog-interfaces.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           errorlog-interfaces.h  -  description
00003                              -------------------
00004     begin                : Sa Sep 13 2003
00005     copyright            : (C) 2003 by Martin Witte
00006     email                : witte@kawo1.rwth-aachen.de
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 28 Jan 2011 for kradio by  doxygen 1.6.1