summaryrefslogtreecommitdiffstats
path: root/src/client/util/util.h
blob: 1c91d566ddb0ec03b161b757ea5acb216ebb11ef (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
25
26
27
28
29
30
31
32
33
#ifndef UTIL_H_
#define UTIL_H_

// Helper for getting a settings object in various places, so if you ever change the organization, location,
// file format or anything, you won't have to edit in 100 places.
// Use like this:
// USER_SETTINGS(settings)
// settings.value("somekey")

#define SYSTEM_SETTINGS(name) QSettings name (QSettings::IniFormat, QSettings::SystemScope, "openslx/pvs2", "pvs2")

#include <QDir>
#include <QTextStream>


namespace Util
{
//#
//#
QDir settingsDir();
//#
//#
}


inline QTextStream& qStdout()
{
	static QTextStream r {stdout};
	return r;
}


#endif /* UTIL_H_ */