source: ntrip/trunk/BNC/bncsettings.cpp@ 3965

Last change on this file since 3965 was 3896, checked in by weber, 13 years ago

teqc changed to reqcteqc changed to reqcteqc changed to reqcteqc changed to reqcteqc changed to reqcteqc changed to reqcteqc changed to reqcteqc changed to reqc

File size: 6.4 KB
Line 
1/* -------------------------------------------------------------------------
2 * BKG NTRIP Client
3 * -------------------------------------------------------------------------
4 *
5 * Class: bncSettings
6 *
7 * Purpose: Subclasses the QSettings
8 *
9 * Author: L. Mervart
10 *
11 * Created: 25-Jan-2009
12 *
13 * Changes:
14 *
15 * -----------------------------------------------------------------------*/
16
17#include <QCoreApplication>
18#include <QStringList>
19
20#include "bncsettings.h"
21#include "bncapp.h"
22
23// Constructor
24////////////////////////////////////////////////////////////////////////////
25bncSettings::bncSettings(bool noInit) :
26 QSettings(((bncApp*) qApp)->confFileName(), QSettings::IniFormat) {
27
28 if (! noInit && allKeys().size() == 0) {
29//
30 setValue("startTab", "0");
31 setValue("statusTab", "0");
32 setValue("casterUrlList", (QStringList()
33 << "http://user:pass@www.euref-ip.net:2101"
34 << "http://user:pass@www.igs-ip.net:2101"
35 << "http://user:pass@products.igs-ip.net:2101"
36 << "http://user:pass@mgex.igs-ip.net:2101"));
37 setValue("mountPoints", "");
38 setValue("ntripVersion", "1");
39// Network
40 setValue("proxyHost", "");
41 setValue("proxyPort", "");
42 setValue("sslCaCertPath", "");
43 setValue("ignoreSslErrors", "0");
44// General
45 setValue("logFile", "");
46 setValue("rnxAppend", "0");
47 setValue("onTheFlyInterval", "1 day");
48 setValue("autoStart", "0");
49 setValue("rawOutFile", "");
50// RINEX Observations
51 setValue("rnxPath", "");
52 setValue("rnxIntr", "1 day");
53 setValue("rnxSampl", "0");
54 setValue("rnxSkel", "SKL");
55 setValue("rnxScript", "");
56 setValue("rnxV3", "0");
57// RINEX Ephemeris
58 setValue("ephPath", "");
59 setValue("ephIntr", "1 day");
60 setValue("outEphPort", "");
61 setValue("ephV3", "0");
62// Braodcast Corrections
63 setValue("corrPath", "");
64 setValue("corrIntr", "1 day");
65 setValue("corrPort", "");
66 setValue("corrTime", "5");
67// Feed Engine
68 setValue("outPort", "");
69 setValue("waitTime", "5");
70 setValue("binSampl", "0");
71 setValue("outFile", "");
72 setValue("outUPort", "");
73// Serial Output
74 setValue("serialMountPoint", "");
75 setValue("serialPortName", "");
76 setValue("serialBaudRate", "9600");
77 setValue("serialFlowControl", "OFF");
78 setValue("serialDataBits", "8");
79 setValue("serialParity", "NONE");
80 setValue("serialStopBits", "1");
81 setValue("serialAutoNMEA", "Auto");
82 setValue("serialFileNMEA", "");
83 setValue("serialHeightNMEA", "");
84// Outages
85 setValue("obsRate", "");
86 setValue("adviseFail", "15");
87 setValue("adviseReco", "5");
88 setValue("adviseScript", "");
89// Miscellaneous
90 setValue("miscMount", "");
91 setValue("perfIntr", "");
92 setValue("scanRTCM", "0");
93// PPP
94 setValue("pppSPP", "");
95 setValue("pppMount", "");
96 setValue("pppCorrMount", "");
97 setValue("pppRefCrdX", "");
98 setValue("pppRefCrdY", "");
99 setValue("pppRefCrdZ", "");
100 setValue("pppRefdN", "");
101 setValue("pppRefdE", "");
102 setValue("pppRefdU", "");
103 setValue("nmeaFile", "");
104 setValue("nmeaPort", "");
105 setValue("pppPlotCoordinates", "");
106 setValue("postObsFile", "");
107 setValue("postNavFile", "");
108 setValue("postCorrFile", "");
109 setValue("postOutFile", "");
110 setValue("pppAntenna", "");
111 setValue("pppAntex", "");
112 setValue("pppApplySatAnt", "0");
113 setValue("pppUsePhase", "");
114 setValue("pppEstTropo", "");
115 setValue("pppGLONASS", "");
116 setValue("pppGalileo", "");
117 setValue("pppSync", "");
118 setValue("pppAverage", "");
119 setValue("pppQuickStart", "");
120 setValue("pppMaxSolGap", "");
121 setValue("pppSigmaCode", "10.0");
122 setValue("pppSigmaPhase", "0.02");
123 setValue("pppSigCrd0", "100.0");
124 setValue("pppSigCrdP", "100.0");
125 setValue("pppSigTrp0", "0.1");
126 setValue("pppSigTrpP", "3e-6");
127// Reqc
128 setValue("reqcAction", "");
129 setValue("reqcObsFile", "");
130 setValue("reqcNavFile", "");
131 setValue("reqcOutObsFile", "");
132 setValue("reqcOutNavFile", "");
133 setValue("reqcOutLogFile", "");
134 setValue("reqcRnxVersion", "");
135 setValue("reqcSampling", "");
136 setValue("reqcStartDateTime", "");
137 setValue("reqcEndDateTime", "");
138 setValue("reqcOldMarkerName", "");
139 setValue("reqcNewMarkerName", "");
140 setValue("reqcOldAntennaName", "");
141 setValue("reqcNewAntennaName", "");
142 setValue("reqcOldReceiverName", "");
143 setValue("reqcNewReceiverName", "");
144// Combination
145 setValue("combineStreams", "");
146 setValue("cmbMethod", "");
147 setValue("cmbMaxres", "");
148// Upload (clk)
149 setValue("uploadMountpointsOut","");
150 setValue("uploadIntr", "1 day");
151 setValue("uploadSampl", "5");
152 setValue("uploadSamplOrb", "0");
153 setValue("trafo_dx", "");
154 setValue("trafo_dy", "");
155 setValue("trafo_dz", "");
156 setValue("trafo_dxr", "");
157 setValue("trafo_dyr", "");
158 setValue("trafo_dzr", "");
159 setValue("trafo_ox", "");
160 setValue("trafo_oy", "");
161 setValue("trafo_oz", "");
162 setValue("trafo_oxr", "");
163 setValue("trafo_oyr", "");
164 setValue("trafo_ozr", "");
165 setValue("trafo_sc", "");
166 setValue("trafo_scr", "");
167 setValue("trafo_t0", "");
168// Upload (eph)
169 setValue("uploadEphHost", "");
170 setValue("uploadEphPort", "");
171 setValue("uploadEphMountpoint", "");
172 setValue("uploadEphPassword", "");
173 setValue("uploadEphSample", "5");
174 sync();
175 }
176}
177
178
Note: See TracBrowser for help on using the repository browser.