00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef GENERAL_H
00021 #define GENERAL_H
00022
00023 #include <QObject>
00024 #include <QStringList>
00025 #include <QMap>
00026 #include "generalfactory.h"
00027
00031 class General : public QObject
00032 {
00033 Q_OBJECT
00034 public:
00039 General(QObject *parent = 0);
00043 ~General();
00047 static QList<GeneralFactory*> *factories();
00051 static QStringList files();
00057 static void setEnabled(GeneralFactory* factory, bool enable = true);
00062 static bool isEnabled(GeneralFactory* factory);
00063
00064 signals:
00068 void exitCalled();
00072 void toggleVisibilityCalled();
00073
00074 public slots:
00078 void exit();
00082 void toggleVisibility();
00083
00084 private:
00085 QMap <uint, QString> m_strValues;
00086 QMap <uint, uint> m_numValues;
00087 static QList<GeneralFactory*> *m_factories;
00088 static QStringList m_files;
00089 static void checkFactories();
00090 };
00091
00092 #endif