source: ntrip/trunk/BNS/bnssettings.cpp@ 9228

Last change on this file since 9228 was 2349, checked in by weber, 14 years ago

* empty log message *

File size: 4.3 KB
Line 
1/* -------------------------------------------------------------------------
2 * BKG NTRIP Server
3 * -------------------------------------------------------------------------
4 *
5 * Class: bnsSettings
6 *
7 * Purpose: Subclasses the QSettings
8 *
9 * Author: G. Weber
10 *
11 * Created: 27-Feb-2009
12 *
13 * Changes:
14 *
15 * -----------------------------------------------------------------------*/
16
17#include "bnssettings.h"
18#include "bnsapp.h"
19
20// Constructor
21////////////////////////////////////////////////////////////////////////////
22bnsSettings::bnsSettings() :
23 QSettings(((bnsApp*) qApp)->confFileName(), QSettings::IniFormat) {
24
25 if (allKeys().size() == 0) {
26 setValue("proxyHost", "");
27 setValue("proxyPort", "");
28
29 setValue("logFile", "");
30 setValue("fileAppend", "0");
31 setValue("autoStart", "0");
32
33 setValue("ephHost", "");
34 setValue("ephPort", "");
35 setValue("ephEcho", "");
36
37 setValue("clkPort", "");
38 setValue("inpEcho", "");
39
40 setValue("outHost1", "");
41 setValue("outPort1", "");
42 setValue("mountpoint_1","");
43 setValue("password1", "");
44 setValue("refSys_1", "IGS05");
45 setValue("CoM_1", "0");
46 setValue("outFile_1", "");
47
48 setValue("outHost2", "");
49 setValue("outPort2", "");
50 setValue("mountpoint_2","");
51 setValue("password2", "");
52 setValue("refSys_2", "IGS05");
53 setValue("CoM_2", "0");
54 setValue("outFile_2", "");
55
56 setValue("outHost3", "");
57 setValue("outPort3", "");
58 setValue("mountpoint_3","");
59 setValue("password3", "");
60 setValue("refSys_3", "IGS05");
61 setValue("CoM_3", "0");
62 setValue("outFile_3", "");
63
64 setValue("outHost4", "");
65 setValue("outPort4", "");
66 setValue("mountpoint_4","");
67 setValue("password4", "");
68 setValue("refSys_4", "IGS05");
69 setValue("CoM_4", "0");
70 setValue("outFile_4", "");
71
72 setValue("outHost5", "");
73 setValue("outPort5", "");
74 setValue("mountpoint_5","");
75 setValue("password5", "");
76 setValue("refSys_5", "IGS05");
77 setValue("CoM_5", "0");
78 setValue("outFile_5", "");
79
80 setValue("outHost6", "");
81 setValue("outPort6", "");
82 setValue("mountpoint_6","");
83 setValue("password6", "");
84 setValue("refSys_6", "IGS05");
85 setValue("CoM_6", "0");
86 setValue("outFile_6", "");
87
88 setValue("outHost7", "");
89 setValue("outPort7", "");
90 setValue("mountpoint_7","");
91 setValue("password7", "");
92 setValue("refSys_7", "IGS05");
93 setValue("CoM_7", "0");
94 setValue("outFile_7", "");
95
96 setValue("outHost8", "");
97 setValue("outPort8", "");
98 setValue("mountpoint_8","");
99 setValue("password8", "");
100 setValue("refSys_8", "IGS05");
101 setValue("CoM_8", "0");
102 setValue("outFile_8", "");
103
104 setValue("outHost9", "");
105 setValue("outPort9", "");
106 setValue("mountpoint_9","");
107 setValue("password9", "");
108 setValue("refSys_9", "IGS05");
109 setValue("CoM_9", "0");
110 setValue("outFile_9", "");
111
112 setValue("outHost10", "");
113 setValue("outPort10", "");
114 setValue("mountpoint_10","");
115 setValue("password10", "");
116 setValue("refSys_10", "IGS05");
117 setValue("CoM_10", "0");
118 setValue("outFile_10", "");
119
120 setValue("outHostEph", "");
121 setValue("outPortEph", "");
122 setValue("mountpoint_Eph","");
123 setValue("passwordEph", "");
124 setValue("samplEph", "5");
125
126 setValue("trafo_dx", "0.0541");
127 setValue("trafo_dy", "0.0502");
128 setValue("trafo_dz", "-0.0538");
129 setValue("trafo_dxr", "-0.0002");
130 setValue("trafo_dyr", "0.0001");
131 setValue("trafo_dzr", "-0.0018");
132 setValue("trafo_ox", "0.000891");
133 setValue("trafo_oy", "0.005390");
134 setValue("trafo_oz", "-0.008712");
135 setValue("trafo_oxr", "0.000081");
136 setValue("trafo_oyr", "0.000490");
137 setValue("trafo_ozr","-0.000792");
138 setValue("trafo_sc", "0.40");
139 setValue("trafo_scr", "0.08");
140 setValue("trafo_t0", "2000.0");
141
142 setValue("rnxPath", "");
143 setValue("rnxIntr", "1 min");
144 setValue("rnxSampl", "0");
145
146 setValue("sp3Path", "");
147 setValue("sp3Intr", "10 min");
148 setValue("sp3Sampl", "0");
149
150 setValue("startTab", "0");
151 sync();
152 }
153}
154
Note: See TracBrowser for help on using the repository browser.