You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef __config__
- #define __config__
-
- #include <wx/xml/xml.h>
- #include <wx/window.h>
- #include <wx/msgdlg.h>
- #include <wx/filefn.h>
-
- #include "optionsGUI.h"
-
- class config
- {
- protected:
- dialog_Options* parent;
- wxXmlDocument* fichier_config;
- bool first_time;
- wxString dbpath;
- bool useproxy;
- wxString proxyurl;
- int proxyport;
-
- public:
- config(dialog_Options* parent);
- ~config();
- void createDefault();
- void load();
- void save();
-
- void SetDbpath(const wxString& dbpath) {this->dbpath = dbpath;}
- void SetProxyport(int proxyport) {this->proxyport = proxyport;}
- void SetProxyurl(const wxString& proxyurl) {this->proxyurl = proxyurl;}
- void SetUseproxy(bool useproxy) {this->useproxy = useproxy;}
- const wxString& GetDbpath() const {return dbpath;}
- int GetProxyport() const {return proxyport;}
- const wxString& GetProxyurl() const {return proxyurl;}
- bool IsUseproxy() const {return useproxy;}
- bool IsFirstTime() const {return first_time;}
- };
-
- #endif // __config__
|