isettings.h 409 B

1234567891011121314151617181920
  1. #ifndef ISETTINGS_H
  2. #define ISETTINGS_H
  3. #include <QObject>
  4. #include <QtXml>
  5. #include "fscomm.h"
  6. class ISettings : public QObject {
  7. Q_OBJECT
  8. public:
  9. ISettings(QObject *parent = 0);
  10. QDomElement getConfigNode(QString module);
  11. void setConfigNode(QDomElement node, QString module);
  12. void saveToFile();
  13. private:
  14. static QDomDocument *xml;
  15. static QMutex *mutex;
  16. };
  17. #endif // ISETTINGS_H