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 | ////////////////////////////////////////////////////////////////////////////
|
---|
22 | bnsSettings::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("beClocks1", "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("beClocks2", "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("beClocks3", "0");
|
---|
62 | setValue("outFile_3", "");
|
---|
63 |
|
---|
64 | setValue("dx", "0.0541");
|
---|
65 | setValue("dy", "0.0502");
|
---|
66 | setValue("dz", "-0.0538");
|
---|
67 | setValue("dxr", "-0.0002");
|
---|
68 | setValue("dyr", "0.0001");
|
---|
69 | setValue("dzr", "-0.0018");
|
---|
70 | setValue("ox", "0.891");
|
---|
71 | setValue("oy", "5.390");
|
---|
72 | setValue("oz", "-8.712");
|
---|
73 | setValue("oxr", "0.081");
|
---|
74 | setValue("oyr", "0.490");
|
---|
75 | setValue("ozr", "-0.792");
|
---|
76 | setValue("sc", "0.40");
|
---|
77 | setValue("scr", "0.08");
|
---|
78 | setValue("t0", "2000.0");
|
---|
79 |
|
---|
80 | setValue("rnxPath", "");
|
---|
81 | setValue("rnxIntr", "1 min");
|
---|
82 | setValue("rnxSampl", "0");
|
---|
83 |
|
---|
84 | setValue("sp3Path", "");
|
---|
85 | setValue("sp3Intr", "10 min");
|
---|
86 | setValue("sp3Sampl", "0");
|
---|
87 |
|
---|
88 | setValue("startTab", "0");
|
---|
89 | sync();
|
---|
90 | }
|
---|
91 | }
|
---|
92 |
|
---|