From cf77e6923cae8b21b8319b7edf6102c80915b45a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 3 Jun 2019 15:47:47 +0200 Subject: Refactor user .ini class, support "recent VMs" tab, misc. cleanup --- src/userconfig.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/userconfig.h (limited to 'src/userconfig.h') 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 +#include + +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_ */ -- cgit v1.2.3-55-g7522