00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef QOMGOMLOGCALLBACK_H
00021 #define QOMGOMLOGCALLBACK_H
00022
00023
00024 #include <openmodeller/Log.hh>
00025
00026
00027 #include <string>
00028
00029
00030 #include <QTextStream>
00031 class QString;
00032
00039 class OMG_PLUGIN_EXPORT OmgOmLogCallback : public QObject, public Log::LogCallback
00040 {
00041 Q_OBJECT;
00042 public:
00043 OmgOmLogCallback();
00044 OmgOmLogCallback(QObject * parent);
00045 virtual ~OmgOmLogCallback();
00053 OmgOmLogCallback( QTextStream& theTextStream );
00062 void operator()(Log::Level theLevel, const std::string& theMessage );
00064 void setModelGuid(QString theModelGuid);
00065
00066 signals:
00071 void omLogMessage(QString theModelGuid, QString theLogMessage);
00076 void omLogError(QString theModelGuid, QString theLogMessage);
00077
00078 private:
00079
00082 QString mModelGuid;
00083
00084 };
00085 #endif //OMGOMLOGCALLBACK_H