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

Last change on this file since 3878 was 3877, checked in by weber, 13 years ago

Default values completed

File size: 5.5 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) {
[3877]29 setValue("adviseFail", "15");
30 setValue("adviseReco", "5");
31 setValue("adviseScript", "");
32 setValue("autoStart", "0");
33 setValue("binSampl", "0");
[1536]34 setValue("casterUrlList", (QStringList()
35 << "http://user:pass@www.euref-ip.net:2101"
[3170]36 << "http://user:pass@www.igs-ip.net:2101"
[3877]37 << "http://user:pass@products.igs-ip.net:2101"
38 << "http://user:pass@mgex.igs-ip.net:2101"));
39 setValue("corrIntr", "1 day");
40 setValue("corrPath", "");
41 setValue("corrPort", "");
42 setValue("corrTime", "5");
43 setValue("ephIntr", "1 day");
44 setValue("ephPath", "");
45 setValue("ephV3", "0");
46 setValue("logFile", "");
47 setValue("rawOutFile", "");
48 setValue("miscMount", "");
49 setValue("mountPoints", "");
50 setValue("ntripVersion", "1");
51 setValue("obsRate", "");
52 setValue("onTheFlyInterval", "1 day");
53 setValue("outEphPort", "");
54 setValue("outFile", "");
55 setValue("outPort", "");
56 setValue("outUPort", "");
57 setValue("perfIntr", "");
58 setValue("proxyHost", "");
59 setValue("proxyPort", "");
60 setValue("sslCaCertPath", "");
61 setValue("ignoreSslErrors", "0");
62 setValue("rnxAppend", "0");
63 setValue("rnxIntr", "1 day");
64 setValue("rnxPath", "");
65 setValue("rnxSampl", "0");
66 setValue("rnxScript", "");
67 setValue("rnxSkel", "SKL");
68 setValue("rnxV3", "0");
69 setValue("scanRTCM", "0");
70 setValue("serialAutoNMEA", "Auto");
71 setValue("serialBaudRate", "9600");
72 setValue("serialDataBits", "8");
73 setValue("serialFileNMEA", "");
74 setValue("serialHeightNMEA", "");
75 setValue("serialMountPoint", "");
76 setValue("serialParity", "NONE");
77 setValue("serialPortName", "");
78 setValue("serialStopBits", "1");
79 setValue("serialFlowControl", "OFF");
80 setValue("startTab", "0");
81 setValue("statusTab", "0");
82 setValue("waitTime", "5");
83 setValue("pppMount", "");
84 setValue("pppCorrMount", "");
85 setValue("pppSPP", "");
86 setValue("pppSigmaCode", "10.0");
87 setValue("pppSigmaPhase", "0.02");
88 setValue("pppQuickStart", "");
89 setValue("pppMaxSolGap", "");
90 setValue("pppSigCrd0", "100.0");
91 setValue("pppSigCrdP", "100.0");
92 setValue("pppSigTrp0", "0.1");
93 setValue("pppSigTrpP", "3e-6");
94 setValue("pppAverage", "");
95 setValue("pppUsePhase", "");
96 setValue("pppEstTropo", "");
97 setValue("pppGLONASS", "");
98 setValue("pppGalileo", "");
99 setValue("pppPlotCoordinates", "");
100 setValue("pppRefCrdX", "");
101 setValue("pppRefCrdY", "");
102 setValue("pppRefCrdZ", "");
103 setValue("pppRefdN", "");
104 setValue("pppRefdE", "");
105 setValue("pppRefdU", "");
106 setValue("pppAntenna", "");
107 setValue("pppAntex", "");
108 setValue("pppApplySatAnt", "0");
109 setValue("pppSync", "");
110 setValue("nmeaFile", "");
111 setValue("nmeaPort", "");
112 setValue("postObsFile", "");
113 setValue("postNavFile", "");
114 setValue("postCorrFile", "");
115 setValue("postOutFile", "");
116 setValue("teqcAction", "");
117 setValue("teqcObsFile", "");
118 setValue("teqcNavFile", "");
119 setValue("teqcOutObsFile", "");
120 setValue("teqcOutNavFile", "");
121 setValue("teqcOutLogFile", "");
122 setValue("teqcStartDateTime", "");
123 setValue("teqcEndDateTime", "");
124 setValue("teqcOldMarkerName", "");
125 setValue("teqcNewMarkerName", "");
126 setValue("teqcOldAntennaName", "");
127 setValue("teqcNewAntennaName", "");
128 setValue("teqcOldReceiverName", "");
129 setValue("teqcNewReceiverName", "");
130 setValue("combineStreams", "");
131 setValue("cmbMethod", "");
132 setValue("cmbMaxres", "");
[3271]133 setValue("uploadMountpointsOut","");
134 setValue("uploadIntr", "1 day");
[3586]135 setValue("uploadSampl", "5");
136 setValue("uploadSamplOrb", "0");
[3243]137 setValue("uploadEphHost", "");
138 setValue("uploadEphPort", "");
139 setValue("uploadEphPassword", "");
140 setValue("uploadEphMountpoint", "");
[3271]141 setValue("uploadEphSample", "5");
[1538]142 sync();
[1536]143 }
[1535]144}
145
[2948]146
Note: See TracBrowser for help on using the repository browser.