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

Last change on this file since 2150 was 2137, checked in by weber, 15 years ago

* empty log message *

File size: 2.9 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 setValue("corrIntr", "1 day");
38 setValue("corrPath", "");
39 setValue("corrPort", "");
40 setValue("corrTime", "5");
41 setValue("ephIntr", "1 day");
42 setValue("ephPath", "");
43 setValue("ephV3", "0");
44 setValue("logFile", "");
45 setValue("miscMount", "");
46 setValue("mountPoints", "");
47 setValue("ntripVersion", "1");
48 setValue("obsRate", "");
49 setValue("onTheFlyInterval", "1 day");
50 setValue("outEphPort", "");
51 setValue("outFile", "");
52 setValue("outPort", "");
53 setValue("outUPort", "");
54 setValue("perfIntr", "");
55 setValue("proxyHost", "");
56 setValue("proxyPort", "");
57 setValue("rnxAppend", "0");
58 setValue("rnxIntr", "1 day");
59 setValue("rnxPath", "");
60 setValue("rnxSampl", "0");
61 setValue("rnxScript", "");
62 setValue("rnxSkel", "SKL");
63 setValue("rnxV3", "0");
64 setValue("scanRTCM", "0");
65 setValue("serialAutoNMEA", "Auto");
66 setValue("serialBaudRate", "9600");
67 setValue("serialDataBits", "8");
68 setValue("serialFileNMEA", "");
69 setValue("serialHeightNMEA", "");
70 setValue("serialMountPoint", "");
71 setValue("serialParity", "NONE");
72 setValue("serialPortName", "");
73 setValue("serialStopBits", "1");
74 setValue("serialFlowControl","OFF");
75 setValue("startTab", "0");
76 setValue("statusTab", "0");
77 setValue("waitTime", "5");
78 setValue("pppMount", "");
79 setValue("pppStatic", "");
80 setValue("pppUsePhase", "");
81 setValue("pppEstTropo", "");
82 setValue("pppGLONASS", "");
83 setValue("nmeaFile", "");
84
85 sync();
86 }
87}
88
Note: See TracBrowser for help on using the repository browser.