libyui
 
Loading...
Searching...
No Matches
YSettings.h
1/*
2 Copyright (c) 2012 Björn Esser
3
4 Permission is hereby granted, free of charge, to any person obtaining
5 a copy of this software and associated documentation files (the
6 "Software"), to deal in the Software without restriction, including
7 without limitation the rights to use, copy, modify, merge, publish,
8 distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11
12 The above copyright notice and this permission notice shall be
13 included in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
18 SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
19 DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
20 OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
21 THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22*/
23
24
25/*-/
26
27 File: YSettings.h
28
29 Author: Björn Esser <bjoern.esser@gmail.com>
30
31/-*/
32
33#ifndef YSettings_h
34#define YSettings_h
35
36#include <string>
37
38
42class YUILoader;
43
49class YSettings
50{
51 friend YUILoader;
52
53public:
61 static void setProgDir( std::string directory );
62
66 static std::string progDir();
67
75 static void setIconDir( std::string directory );
76
80 static std::string iconDir();
81
89 static void setThemeDir ( std::string directory );
90
94 static std::string themeDir ();
95
103 static void setLocaleDir( std::string directory );
104
108 static std::string localeDir();
109
116 static void loadedUI( std::string ui );
117
121 static std::string loadedUI();
122
123
124protected:
125
132 static void loadedUI ( std::string ui, bool force );
133
134private:
135
136 static std::string _progDir;
137 static std::string _iconDir;
138 static std::string _themeDir;
139 static std::string _localeDir;
140 static std::string _loadedUI;
141
142 YSettings();
143 YSettings( const YSettings & );
144 ~YSettings();
145};
146
147#endif // YSettings_h
static std::string progDir()
Definition YSettings.cc:74
static void setLocaleDir(std::string directory)
Definition YSettings.cc:147
static std::string iconDir()
Definition YSettings.cc:99
static void setProgDir(std::string directory)
Definition YSettings.cc:58
static std::string loadedUI()
Definition YSettings.cc:202
static void loadedUI(std::string ui, bool force)
static std::string themeDir()
Definition YSettings.cc:130
static std::string localeDir()
Definition YSettings.cc:163
static void loadedUI(std::string ui)
static void setThemeDir(std::string directory)
Definition YSettings.cc:113
static void setIconDir(std::string directory)
Definition YSettings.cc:82
Definition YUILoader.h:50