HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/Manager/settingsmanager.h Source File

| HP Views Designer Assistant 1.0.0 TFG - Alberto Gutierrez Perez - Universidad de Valladolid |

settingsmanager.h
1 #ifndef SETTINGSMANAGER_H
2 #define SETTINGSMANAGER_H
3
4 #include <QString>
5
6
10 class SettingsManager
11 {
12 public:
13
17 SettingsManager();
18
24 static bool saveDefaultDir(QString dir);
25
30 static void saveAlwaysAsk(bool isAlwaysAsk);
31
36 static void saveLanguage(QString language);
37
42 static void saveShowInitTips(bool show);
43
47 static void clearValues();
48
53 static QString getCurrentLanguage();
54
59 static QString getDefaultDir();
60
65 static bool getIsAlwaysAsk();
66
71 static bool getShowInitTips();
72
73 private:
74
79 static QString getSettingsPath();
80
81 };
82
83 #endif // SETTINGSMANAGER_H
SettingsManager::getDefaultDir
static QString getDefaultDir()
getDefaultDir obtains the default save folder path.
Definition: settingsmanager.cpp:58
SettingsManager::getCurrentLanguage
static QString getCurrentLanguage()
getCurrentLanguage obtains the current language.
Definition: settingsmanager.cpp:52
SettingsManager::saveAlwaysAsk
static void saveAlwaysAsk(bool isAlwaysAsk)
saveAlwaysAsk save always ask vale.
Definition: settingsmanager.cpp:28
SettingsManager::getSettingsPath
static QString getSettingsPath()
getSettingsPath obtains settings file path.
Definition: settingsmanager.cpp:82
SettingsManager
The SettingsManager class.
Definition: settingsmanager.h:10
SettingsManager::getIsAlwaysAsk
static bool getIsAlwaysAsk()
getIsAlwaysAsk obtains if the app has to ask for the save folder.
Definition: settingsmanager.cpp:64
SettingsManager::saveShowInitTips
static void saveShowInitTips(bool show)
saveShowInitTips save init tips not show again option.
Definition: settingsmanager.cpp:40
SettingsManager::clearValues
static void clearValues()
clearValues reset settings value.
Definition: settingsmanager.cpp:46
SettingsManager::getShowInitTips
static bool getShowInitTips()
getShowInitTips obtains if the app has to show init tips.
Definition: settingsmanager.cpp:70
SettingsManager::SettingsManager
SettingsManager()
SettingsManager constructor.
Definition: settingsmanager.cpp:8
SettingsManager::saveLanguage
static void saveLanguage(QString language)
saveLanguage save current app language.
Definition: settingsmanager.cpp:34
SettingsManager::saveDefaultDir
static bool saveDefaultDir(QString dir)
saveDefaultDir save default folder path.
Definition: settingsmanager.cpp:13