diff options
author | Simon Rettberg | 2019-06-03 15:47:47 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-03 15:47:47 +0200 |
commit | cf77e6923cae8b21b8319b7edf6102c80915b45a (patch) | |
tree | 95114958ec59569c91bf13d7df1caa7b4b820e62 /src/userconfig.h | |
parent | Add option to show the "disable screensaver" checkbox (diff) | |
download | vmchooser2-cf77e6923cae8b21b8319b7edf6102c80915b45a.tar.gz vmchooser2-cf77e6923cae8b21b8319b7edf6102c80915b45a.tar.xz vmchooser2-cf77e6923cae8b21b8319b7edf6102c80915b45a.zip |
Refactor user .ini class, support "recent VMs" tab, misc. cleanup
Diffstat (limited to 'src/userconfig.h')
-rw-r--r-- | src/userconfig.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/userconfig.h b/src/userconfig.h new file mode 100644 index 0000000..7f27e1b --- /dev/null +++ b/src/userconfig.h @@ -0,0 +1,21 @@ +#ifndef _USERCONFIG_H_ +#define _USERCONFIG_H_ + +#include <QString> +#include <QSet> + +class UserConfig { +public: + static QStringList getLastSessions(); + static int getLastTab(); + static uint getLastNewsTime(); + static void addLastSession(QString nameOrId); + static void setLastTab(int tab); + static void setLastNewsTime(uint t); + +private: + UserConfig() {} + static void init(); +}; + +#endif /* _USERCONFIG_H_ */ |