summaryrefslogtreecommitdiffstats
path: root/src/server/util/util.h
blob: dfb70b4ef1ac3d2f6f9a4cb2a29f90e3c053f1f9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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:
// settings.value("somekey")

#define CERTSTORAGE ".config/openslx/pvs2/"

#define SETTINGS(name) \
	QSettings name (QSettings::IniFormat, QSettings::SystemScope, "openslx/pvs2", "pvs2"); \
	name.setIniCodec("UTF-8");

namespace Util
{

}

#endif /* UTIL_H_ */