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

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

Default PPP mode changed

File size: 4.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) {
[1536]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"
[3170]36 << "http://user:pass@www.igs-ip.net:2101"
37 << "http://user:pass@products.igs-ip.net:2101"));
[1536]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", "");
[2399]46 setValue("rawOutFile", "");
[1536]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", "");
[3356]59 setValue("sslCaCertPath", "");
60 setValue("ignoreSslErrors", "0");
[1536]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");
[1595]69 setValue("serialAutoNMEA", "Auto");
[1536]70 setValue("serialBaudRate", "9600");
71 setValue("serialDataBits", "8");
[1601]72 setValue("serialFileNMEA", "");
[1595]73 setValue("serialHeightNMEA", "");
[1536]74 setValue("serialMountPoint", "");
75 setValue("serialParity", "NONE");
76 setValue("serialPortName", "");
77 setValue("serialStopBits", "1");
[1636]78 setValue("serialFlowControl","OFF");
[1536]79 setValue("startTab", "0");
[1947]80 setValue("statusTab", "0");
[1536]81 setValue("waitTime", "5");
[2137]82 setValue("pppMount", "");
[2970]83 setValue("pppCorrMount", "");
[3818]84 setValue("pppSPP", "");
[3365]85 setValue("pppSigmaCode", "10.0");
[2725]86 setValue("pppSigmaPhase", "0.02");
[2750]87 setValue("pppQuickStart", "");
[3113]88 setValue("pppMaxSolGap", "");
[2725]89 setValue("pppSigCrd0", "100.0");
90 setValue("pppSigCrdP", "100.0");
91 setValue("pppSigTrp0", "0.1");
[3785]92 setValue("pppSigTrpP", "3e-6");
[2598]93 setValue("pppAverage", "");
[2137]94 setValue("pppUsePhase", "");
95 setValue("pppEstTropo", "");
96 setValue("pppGLONASS", "");
[2794]97 setValue("pppGalileo", "");
[2740]98 setValue("pppPlotCoordinates", "");
[2165]99 setValue("pppRefCrdX", "");
100 setValue("pppRefCrdY", "");
101 setValue("pppRefCrdZ", "");
[3285]102 setValue("pppRefdN", "");
103 setValue("pppRefdE", "");
104 setValue("pppRefdU", "");
[2948]105 setValue("pppAntenna", "");
106 setValue("pppAntex", "");
107 setValue("pppApplySatAnt", "0");
[2999]108 setValue("pppSync", "");
[2137]109 setValue("nmeaFile", "");
[2188]110 setValue("nmeaPort", "");
[2948]111 setValue("combineStreams", "");
[3271]112 setValue("uploadMountpointsOut","");
113 setValue("uploadIntr", "1 day");
[3586]114 setValue("uploadSampl", "5");
115 setValue("uploadSamplOrb", "0");
[3243]116 setValue("uploadEphHost", "");
117 setValue("uploadEphPort", "");
118 setValue("uploadEphPassword", "");
119 setValue("uploadEphMountpoint", "");
[3271]120 setValue("uploadEphSample", "5");
[3366]121 setValue("cmbMaxres", "");
[3798]122 setValue("teqcAction", "");
[1538]123 sync();
[1536]124 }
[1535]125}
126
[2948]127
Note: See TracBrowser for help on using the repository browser.