00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019
00020 #ifndef OBJECT_H
00021 #define OBJECT_H
00022
00023 #ifdef HAVE_CONFIG_H
00024 #include <config.h>
00025 #endif
00026
00027 class QObject;
00028
00029 #include <qobject.h>
00030 #include <qstring.h>
00031 #include <qqueue.h>
00032 #include "exception.h"
00033
00034 namespace KDB {
00035
00046 class Object: public QObject {
00047
00048 Q_OBJECT
00049
00050 public:
00051
00052 Object( const char * name = 0, QObject *parent = 0);
00053 virtual ~Object();
00054
00055 void pushError(Exception *) const;
00056 Exception *popError() const;
00057 Exception *getError() const;
00058 void clearErrors() const;
00059
00060 bool error() const;
00061
00062 private:
00063
00064 static QQueue<Exception> m_errors;
00065
00066 };
00067
00068 }
00069
00070 #endif
00071
00072
00073
00074
00075
00076
00077
00078