00001 #ifndef SETTINGS_H_ 00002 #define SETTINGS_H_ 00003 #include <QtGui> 00004 00005 typedef struct { 00006 // general 00007 bool systemTray; 00008 // other 00009 bool firstrun; 00010 // language 00011 QString language; 00012 bool otherLanuage; 00013 } SConfiguration; 00014 00015 class CSettings { 00016 public: 00017 CSettings(); 00018 ~CSettings() {} 00019 00020 void read(); 00021 void write(); 00022 void writeValue( const QString key, const QVariant value ); 00023 00024 static SConfiguration settings; 00025 }; 00026 00027 #endif /*SETTINGS_H_*/
1.5.4