00001 #ifndef QERRORMESSAGE_H
00002 #define QERRORMESSAGE_H
00003
00010 #include <QObject>
00011 #include <QMetaType>
00012
00013 #define APP_LIBRARY_EXCEPTION_CODE "001"
00014 #define APP_LIBRARY_WRONG_RESPONSE "002"
00015 #define APP_FILE_READ_ERROR "003"
00016 #define APP_FUNCTION_WRONG_ARGS "004"
00017
00023 class QErrorMessage : public QObject
00024 {
00025 Q_OBJECT
00026
00027 public:
00032 QErrorMessage();
00033
00037 QErrorMessage(const QErrorMessage&);
00038
00046 QErrorMessage(QString code, QString text);
00047
00051 QString code;
00052
00056 QString text;
00057
00061 QString comment;
00062
00070 static void copyData(QErrorMessage *dst, const QErrorMessage *src);
00071 };
00072
00073 Q_DECLARE_METATYPE(QErrorMessage)
00074
00075 #endif // QERRORMESSAGE_H