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

Last change on this file since 3271 was 3271, checked in by mervart, 13 years ago
File size: 4.2 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", "");
59 setValue("rnxAppend", "0");
60 setValue("rnxIntr", "1 day");
61 setValue("rnxPath", "");
62 setValue("rnxSampl", "0");
63 setValue("rnxScript", "");
64 setValue("rnxSkel", "SKL");
65 setValue("rnxV3", "0");
66 setValue("scanRTCM", "0");
[1595]67 setValue("serialAutoNMEA", "Auto");
[1536]68 setValue("serialBaudRate", "9600");
69 setValue("serialDataBits", "8");
[1601]70 setValue("serialFileNMEA", "");
[1595]71 setValue("serialHeightNMEA", "");
[1536]72 setValue("serialMountPoint", "");
73 setValue("serialParity", "NONE");
74 setValue("serialPortName", "");
75 setValue("serialStopBits", "1");
[1636]76 setValue("serialFlowControl","OFF");
[1536]77 setValue("startTab", "0");
[1947]78 setValue("statusTab", "0");
[1536]79 setValue("waitTime", "5");
[2137]80 setValue("pppMount", "");
[2970]81 setValue("pppCorrMount", "");
[2341]82 setValue("pppSPP", "PPP");
[2481]83 setValue("pppSigmaCode", "5.0");
[2725]84 setValue("pppSigmaPhase", "0.02");
[2750]85 setValue("pppQuickStart", "");
[3113]86 setValue("pppMaxSolGap", "");
[2725]87 setValue("pppSigCrd0", "100.0");
88 setValue("pppSigCrdP", "100.0");
89 setValue("pppSigTrp0", "0.1");
90 setValue("pppSigTrpP", "1e-6");
[2598]91 setValue("pppAverage", "");
[2137]92 setValue("pppUsePhase", "");
93 setValue("pppEstTropo", "");
94 setValue("pppGLONASS", "");
[2794]95 setValue("pppGalileo", "");
[2740]96 setValue("pppPlotCoordinates", "");
[2165]97 setValue("pppRefCrdX", "");
98 setValue("pppRefCrdY", "");
99 setValue("pppRefCrdZ", "");
[2948]100 setValue("pppAntenna", "");
101 setValue("pppAntex", "");
102 setValue("pppApplySatAnt", "0");
[2999]103 setValue("pppSync", "");
[2137]104 setValue("nmeaFile", "");
[2188]105 setValue("nmeaPort", "");
[2948]106 setValue("combineStreams", "");
[3271]107 setValue("uploadMountpointsOut","");
108 setValue("uploadIntr", "1 day");
109 setValue("uploadSampl", "0");
[3243]110 setValue("uploadEphHost", "");
111 setValue("uploadEphPort", "");
112 setValue("uploadEphPassword", "");
113 setValue("uploadEphMountpoint", "");
[3271]114 setValue("uploadEphSample", "5");
[1538]115 sync();
[1536]116 }
[1535]117}
118
[2948]119
Note: See TracBrowser for help on using the repository browser.