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

Last change on this file since 3837 was 3818, checked in by weber, 13 years ago

Default PPP mode changed

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