Mercurial > code
comparison C++/modules/Xdg/Xdg.h @ 358:eb7723d8627a
Xdg:
- Add documentation
- Remove EXPORT thingy, will be set with the pre-processor feature
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Apr 2015 11:13:34 +0200 |
parents | 0b576ee64d45 |
children | d5ec1174b707 |
comparison
equal
deleted
inserted
replaced
357:3174c463af95 | 358:eb7723d8627a |
---|---|
20 #define _XDG_H_ | 20 #define _XDG_H_ |
21 | 21 |
22 #include <vector> | 22 #include <vector> |
23 #include <string> | 23 #include <string> |
24 | 24 |
25 #if defined(_WIN32) | |
26 # if defined(BUILDING_DLL) | |
27 # define EXPORT __declspec(dllexport) | |
28 # else | |
29 # define EXPORT __declspec(dllimport) | |
30 # endif | |
31 #else | |
32 # define EXPORT | |
33 #endif | |
34 | |
35 /** | 25 /** |
36 * @class Xdg | 26 * @class Xdg |
37 * @brief XDG specifications | 27 * @brief XDG specifications |
38 * | 28 * |
39 * Read and get XDG directories. This file contains exports thingies so it can | 29 * Read and get XDG directories. This file contains exports thingies so it can |
40 * compiles successfully on Windows but its usage is discouraged. | 30 * compiles successfully on Windows but its usage is discouraged. |
41 */ | 31 */ |
42 class EXPORT Xdg { | 32 class Xdg { |
43 public: | 33 public: |
44 using List = std::vector<std::string>; | 34 using List = std::vector<std::string>; |
45 | 35 |
46 private: | 36 private: |
47 std::string m_configHome; | 37 std::string m_configHome; |