Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WsGlobalConfig.h
Go to the documentation of this file.
1 
13 #ifndef WS_GLOBAL_H__
14 #define WS_GLOBAL_H__
15 
16 
17 #include <iostream>
18 
19 namespace ErrorCode {
20  const int Success = 0;
21  const int Failure = -1;
22  const int NoAccess = -4;
23  const int NotLogged = -5;
24  const int NotFound = -3;
25  const int Locked = -2;
26 }
27 
28 namespace GlobalConfig {
29 
30  const int Read = 2;
31  const int ReadWrite = 6;
32 
33  const int On = 1;
34  const int Off = 0;
35  const int Delay = 30;
36  const int NbItems = 3;
37 
38  const std::string StdOut = "STDOUT";
39  const std::string StdErr = "STDERR";
40 
41  const std::string GlobalPropertiesPath = "/etc/wt/wittyshare-global.json";
42  const std::string LayoutPropertiesPath = "/etc/wt/wittyshare-layout.json";
43  const std::string PluginsPropertiesPath = "/etc/wt/wittyshare-plugins.json";
44  const std::string CrashLogPath = "/tmp/crashLogWs.log";
45  const std::string PathToLockFile = "/.config/freezetree";
46  const std::string PathToConfig = "/.config/";
47  const std::string PathToNodeProperties = "/.config/nodes/";
48  const std::string PathToNodeLock = "/.config/locks/";
49  const std::string PathToDirProperties = "/.config/properties.json";
50  const std::string PathToImages = "/ws.res/images/";
51  const std::string PathToTemplates = "/.config/templates/";
52  const std::string PathToIcones = "/ws.res/icones/";
53  const std::string ConfExt = ".json";
55 }
56 
57 
58 #endif
const std::string PathToConfig
const std::string PathToImages
const int On
const std::string SubFolders[NbItems]
const std::string CrashLogPath
const int ReadWrite
const int Off
const int Failure
const std::string PathToIcones
const std::string StdErr
const int Read
const std::string PathToNodeProperties
const std::string GlobalPropertiesPath
const std::string PluginsPropertiesPath
const int NotFound
const std::string PathToTemplates
const int NbItems
const int NotLogged
const int NoAccess
const std::string StdOut
const std::string PathToNodeLock
const std::string PathToLockFile
const int Locked
const std::string PathToDirProperties
const int Delay
const int Success
const std::string ConfExt
const std::string LayoutPropertiesPath