diff options
author | Simon Rettberg | 2018-06-15 14:05:25 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-06-15 14:05:25 +0200 |
commit | ba3c5aa40274c11f9cefd4e9842be3488cad07b4 (patch) | |
tree | 2865703ae78ed397f24fa32fca642332ac7b3a49 /src/choosersettings.h | |
parent | fileDownloader.* -> filedownloader.* (diff) | |
download | vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.gz vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.tar.xz vmchooser2-ba3c5aa40274c11f9cefd4e9842be3488cad07b4.zip |
Fix indentation, cleanup, refactoring, deletions
* Remove unused methods for adding hostname and user to xml
* Avoid copying/(de)serializing XML a thousand times
* Fix Session::isValid() or rather make it a bit more usable
(although it's unused currently)
* baseDir is global, not per VSession, which doesn't make any
sense without the legacy approach of recusively loading
one xml file per entry
Diffstat (limited to 'src/choosersettings.h')
-rw-r--r-- | src/choosersettings.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/choosersettings.h b/src/choosersettings.h index 28bf619..ea0bb76 100644 --- a/src/choosersettings.h +++ b/src/choosersettings.h @@ -15,17 +15,17 @@ // TODO: Proper name. This is the user specific settings, not global class ChooserSettings { public: - static QString getSetting(QString key); - static bool setSetting(QString key, QString value); + static QString getSetting(QString key); + static bool setSetting(QString key, QString value); private: - static ChooserSettings* chooserSettings; - static bool settingsLoaded; + static ChooserSettings* chooserSettings; + static bool settingsLoaded; - QSettings* settings; + QSettings* settings; - ChooserSettings(); - virtual ~ChooserSettings(); + ChooserSettings(); + virtual ~ChooserSettings(); }; #endif /* CHOOSERSETTINGS_H_ */ |