238 |
andreas |
1 |
/*
|
|
|
2 |
* Copyright (C) 2022 by Andreas Theofilu <andreas@theosys.at>
|
|
|
3 |
*
|
|
|
4 |
* This program is free software; you can redistribute it and/or modify
|
|
|
5 |
* it under the terms of the GNU General Public License as published by
|
|
|
6 |
* the Free Software Foundation; either version 3 of the License, or
|
|
|
7 |
* (at your option) any later version.
|
|
|
8 |
*
|
|
|
9 |
* This program is distributed in the hope that it will be useful,
|
|
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
12 |
* GNU General Public License for more details.
|
|
|
13 |
*
|
|
|
14 |
* You should have received a copy of the GNU General Public License
|
|
|
15 |
* along with this program; if not, write to the Free Software Foundation,
|
|
|
16 |
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
17 |
*/
|
|
|
18 |
|
|
|
19 |
#ifndef QASETTINGS_H
|
|
|
20 |
#define QASETTINGS_H
|
|
|
21 |
|
|
|
22 |
class QString;
|
247 |
andreas |
23 |
class QRect;
|
238 |
andreas |
24 |
|
|
|
25 |
class QASettings
|
|
|
26 |
{
|
|
|
27 |
public:
|
239 |
andreas |
28 |
// register default preferences from plist file
|
|
|
29 |
void registerDefaultPrefs(void);
|
238 |
andreas |
30 |
|
239 |
andreas |
31 |
// Settings for NetLinx
|
|
|
32 |
QString getNetlinxIP(void);
|
|
|
33 |
int getNetlinxPort(void);
|
|
|
34 |
int getNetlinxChannel(void);
|
|
|
35 |
QString getNetlinxPanelType(void);
|
|
|
36 |
QString getFTPUser(void);
|
|
|
37 |
QString getFTPPassword(void);
|
|
|
38 |
bool getFTPPassive(void);
|
|
|
39 |
QString getNetlinxSurface(void);
|
|
|
40 |
|
|
|
41 |
// Settings for SIP
|
|
|
42 |
QString getSipProxy(void);
|
|
|
43 |
int getSipNetworkPort(void);
|
|
|
44 |
int getSipNetworkTlsPort(void);
|
|
|
45 |
QString getSipStun(void);
|
|
|
46 |
QString getSipDomain(void);
|
|
|
47 |
QString getSipUser(void);
|
|
|
48 |
QString getSipPassword(void);
|
|
|
49 |
bool getSipNetworkIpv4(void);
|
|
|
50 |
bool getSipNetworkIpv6(void);
|
|
|
51 |
bool getSipEnabled(void);
|
|
|
52 |
bool getSipIntegratedPhone(void);
|
|
|
53 |
|
|
|
54 |
// Settings for View
|
|
|
55 |
bool getViewScale(void);
|
|
|
56 |
bool getViewToolbarVisible(void);
|
|
|
57 |
bool getViewToolbarForce(void);
|
|
|
58 |
bool getViewRotation(void);
|
|
|
59 |
|
|
|
60 |
// Settings for sound
|
|
|
61 |
QString getSoundSystem(void);
|
|
|
62 |
QString getSoundSingleBeep(void);
|
|
|
63 |
QString getSoundDoubleBeep(void);
|
|
|
64 |
bool getSoundEnabled(void);
|
|
|
65 |
int getSoundVolume(void);
|
|
|
66 |
int getSoundGain(void);
|
|
|
67 |
|
|
|
68 |
// Settings for logging
|
|
|
69 |
bool getLoggingInfo(void);
|
|
|
70 |
bool getLoggingWarning(void);
|
|
|
71 |
bool getLoggingError(void);
|
|
|
72 |
bool getLoggingTrace(void);
|
|
|
73 |
bool getLoggingDebug(void);
|
|
|
74 |
bool getLoggingProfile(void);
|
|
|
75 |
bool getLoggingLogFormat(void);
|
242 |
andreas |
76 |
bool getLoggingLogfileEnabled(void);
|
|
|
77 |
QString getLoggingLogfile(void);
|
239 |
andreas |
78 |
|
|
|
79 |
// Some static methods
|
|
|
80 |
static QString getLibraryPath(void);
|
242 |
andreas |
81 |
static QString getDocumentPath(void);
|
247 |
andreas |
82 |
static QRect getNotchSize();
|
239 |
andreas |
83 |
|
|
|
84 |
private: /// methods
|
|
|
85 |
|
238 |
andreas |
86 |
};
|
|
|
87 |
|
|
|
88 |
#endif // QASETTINGS_H
|