summaryrefslogtreecommitdiffstats
path: root/src/userconfig.h
blob: 4fdf6386cb9b6a37eeb592e8b3e88179643c5132 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _USERCONFIG_H_
#define _USERCONFIG_H_

#include <QString>
#include <QSet>

class UserConfig {
public:
	 static QStringList getLastSessions();
	 static int getLastTab();
	 static uint getLastNewsTime();
	 static bool isNewsHelpOpen();
	 static void addLastSession(QString nameOrId);
	 static void setLastTab(int tab);
	 static void setLastNewsTime(uint t);
	 static void setNewsHelpOpen(bool b);
     static void sync();

private:
	 UserConfig() {}
	 static void init();
};

#endif /* _USERCONFIG_H_ */