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.

41 lines
970B

  1. #ifndef __config__
  2. #define __config__
  3. #include <wx/xml/xml.h>
  4. #include <wx/window.h>
  5. #include <wx/msgdlg.h>
  6. #include <wx/filefn.h>
  7. #include "optionsGUI.h"
  8. class config
  9. {
  10. protected:
  11. dialog_Options* parent;
  12. wxXmlDocument* fichier_config;
  13. bool first_time;
  14. wxString dbpath;
  15. bool useproxy;
  16. wxString proxyurl;
  17. int proxyport;
  18. public:
  19. config(dialog_Options* parent);
  20. ~config();
  21. void createDefault();
  22. void load();
  23. void save();
  24. void SetDbpath(const wxString& dbpath) {this->dbpath = dbpath;}
  25. void SetProxyport(int proxyport) {this->proxyport = proxyport;}
  26. void SetProxyurl(const wxString& proxyurl) {this->proxyurl = proxyurl;}
  27. void SetUseproxy(bool useproxy) {this->useproxy = useproxy;}
  28. const wxString& GetDbpath() const {return dbpath;}
  29. int GetProxyport() const {return proxyport;}
  30. const wxString& GetProxyurl() const {return proxyurl;}
  31. bool IsUseproxy() const {return useproxy;}
  32. bool IsFirstTime() const {return first_time;}
  33. };
  34. #endif // __config__