blob: 99d1c241616f6449e329f583f2208eadf16d6469 (
plain)
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
|
// -*- mode: c++; c-basic-offset: 2; -*-
#ifndef XDG_HH
#define XDG_HH
#include <string>
#include <vector>
class XDG {
public:
static std::string config_home();
// Returned list is sorted in order of importance, directories may not exist
static std::vector<std::string> config_dirs();
static std::string data_home();
// Returned list is sorted in order of importance, directories may not exist
static std::vector<std::string> data_dirs();
static std::string cache_home();
static std::string home();
private:
XDG() {}
~XDG() {}
};
#endif // XDG_HH
|