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

Last change on this file since 4067 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
RevLine 
[1535]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
[1537]17#include <QCoreApplication>
[1536]18#include <QStringList>
19
[1535]20#include "bncsettings.h"
[1538]21#include "bncapp.h"
[1535]22
23// Constructor
24////////////////////////////////////////////////////////////////////////////
[1769]25bncSettings::bncSettings(bool noInit) :
[1538]26 QSettings(((bncApp*) qApp)->confFileName(), QSettings::IniFormat) {
[1536]27
[1769]28 if (! noInit && allKeys().size() == 0) {
[3879]29//
30 setValue("startTab", "0");
31 setValue("statusTab", "0");
[1536]32 setValue("casterUrlList", (QStringList()
33 << "http://user:pass@www.euref-ip.net:2101"
[3170]34 << "http://user:pass@www.igs-ip.net:2101"
[3877]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");
[3879]39// Network
[3877]40 setValue("proxyHost", "");
41 setValue("proxyPort", "");
42 setValue("sslCaCertPath", "");
43 setValue("ignoreSslErrors", "0");
[3879]44// General
45 setValue("logFile", "");
[3877]46 setValue("rnxAppend", "0");
[3879]47 setValue("onTheFlyInterval", "1 day");
48 setValue("autoStart", "0");
49 setValue("rawOutFile", "");
50// RINEX Observations
51 setValue("rnxPath", "");
[3877]52 setValue("rnxIntr", "1 day");
53 setValue("rnxSampl", "0");
[3879]54 setValue("rnxSkel", "SKL");
[3877]55 setValue("rnxScript", "");
56 setValue("rnxV3", "0");
[3879]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");
[3880]67// Feed Engine
[3879]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", "");
[3877]76 setValue("serialBaudRate", "9600");
[3879]77 setValue("serialFlowControl", "OFF");
[3877]78 setValue("serialDataBits", "8");
[3879]79 setValue("serialParity", "NONE");
80 setValue("serialStopBits", "1");
81 setValue("serialAutoNMEA", "Auto");
[3877]82 setValue("serialFileNMEA", "");
83 setValue("serialHeightNMEA", "");
[3879]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", "");
[3877]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", "");
[3879]105 setValue("pppPlotCoordinates", "");
[3877]106 setValue("postObsFile", "");
107 setValue("postNavFile", "");
108 setValue("postCorrFile", "");
109 setValue("postOutFile", "");
[3879]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");
[3896]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", "");
[3879]144// Combination
[3877]145 setValue("combineStreams", "");
146 setValue("cmbMethod", "");
147 setValue("cmbMaxres", "");
[3879]148// Upload (clk)
[3271]149 setValue("uploadMountpointsOut","");
150 setValue("uploadIntr", "1 day");
[3586]151 setValue("uploadSampl", "5");
152 setValue("uploadSamplOrb", "0");
[3879]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)
[3243]169 setValue("uploadEphHost", "");
170 setValue("uploadEphPort", "");
[3879]171 setValue("uploadEphMountpoint", "");
[3243]172 setValue("uploadEphPassword", "");
[3271]173 setValue("uploadEphSample", "5");
[1538]174 sync();
[1536]175 }
[1535]176}
177
[2948]178
Note: See TracBrowser for help on using the repository browser.