Subversion Repositories tpanel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
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;
23
 
24
class QASettings
25
{
26
    public:
239 andreas 27
        // register default preferences from plist file
28
        void registerDefaultPrefs(void);
238 andreas 29
 
239 andreas 30
        // Settings for NetLinx
31
        QString getNetlinxIP(void);
32
        int getNetlinxPort(void);
33
        int getNetlinxChannel(void);
34
        QString getNetlinxPanelType(void);
35
        QString getFTPUser(void);
36
        QString getFTPPassword(void);
37
        bool getFTPPassive(void);
38
        QString getNetlinxSurface(void);
39
 
40
        // Settings for SIP
41
        QString getSipProxy(void);
42
        int getSipNetworkPort(void);
43
        int getSipNetworkTlsPort(void);
44
        QString getSipStun(void);
45
        QString getSipDomain(void);
46
        QString getSipUser(void);
47
        QString getSipPassword(void);
48
        bool getSipNetworkIpv4(void);
49
        bool getSipNetworkIpv6(void);
50
        bool getSipEnabled(void);
51
        bool getSipIntegratedPhone(void);
52
 
53
        // Settings for View
54
        bool getViewScale(void);
55
        bool getViewToolbarVisible(void);
56
        bool getViewToolbarForce(void);
57
        bool getViewRotation(void);
58
 
59
        // Settings for sound
60
        QString getSoundSystem(void);
61
        QString getSoundSingleBeep(void);
62
        QString getSoundDoubleBeep(void);
63
        bool getSoundEnabled(void);
64
        int getSoundVolume(void);
65
        int getSoundGain(void);
66
 
67
        // Settings for logging
68
        bool getLoggingInfo(void);
69
        bool getLoggingWarning(void);
70
        bool getLoggingError(void);
71
        bool getLoggingTrace(void);
72
        bool getLoggingDebug(void);
73
        bool getLoggingProfile(void);
74
        bool getLoggingLogFormat(void);
242 andreas 75
        bool getLoggingLogfileEnabled(void);
76
        QString getLoggingLogfile(void);
239 andreas 77
 
78
        // Some static methods
79
        static QString getLibraryPath(void);
242 andreas 80
        static QString getDocumentPath(void);
239 andreas 81
 
82
    private:        /// methods
83
 
238 andreas 84
};
85
 
86
#endif // QASETTINGS_H