| 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 | ////////////////////////////////////////////////////////////////////////////
|
|---|
| 25 | bncSettings::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("rawOutFile", "");
|
|---|
| 46 | setValue("miscMount", "");
|
|---|
| 47 | setValue("mountPoints", "");
|
|---|
| 48 | setValue("ntripVersion", "1");
|
|---|
| 49 | setValue("obsRate", "");
|
|---|
| 50 | setValue("onTheFlyInterval", "1 day");
|
|---|
| 51 | setValue("outEphPort", "");
|
|---|
| 52 | setValue("outFile", "");
|
|---|
| 53 | setValue("outPort", "");
|
|---|
| 54 | setValue("outUPort", "");
|
|---|
| 55 | setValue("perfIntr", "");
|
|---|
| 56 | setValue("proxyHost", "");
|
|---|
| 57 | setValue("proxyPort", "");
|
|---|
| 58 | setValue("rnxAppend", "0");
|
|---|
| 59 | setValue("rnxIntr", "1 day");
|
|---|
| 60 | setValue("rnxPath", "");
|
|---|
| 61 | setValue("rnxSampl", "0");
|
|---|
| 62 | setValue("rnxScript", "");
|
|---|
| 63 | setValue("rnxSkel", "SKL");
|
|---|
| 64 | setValue("rnxV3", "0");
|
|---|
| 65 | setValue("scanRTCM", "0");
|
|---|
| 66 | setValue("serialAutoNMEA", "Auto");
|
|---|
| 67 | setValue("serialBaudRate", "9600");
|
|---|
| 68 | setValue("serialDataBits", "8");
|
|---|
| 69 | setValue("serialFileNMEA", "");
|
|---|
| 70 | setValue("serialHeightNMEA", "");
|
|---|
| 71 | setValue("serialMountPoint", "");
|
|---|
| 72 | setValue("serialParity", "NONE");
|
|---|
| 73 | setValue("serialPortName", "");
|
|---|
| 74 | setValue("serialStopBits", "1");
|
|---|
| 75 | setValue("serialFlowControl","OFF");
|
|---|
| 76 | setValue("startTab", "0");
|
|---|
| 77 | setValue("statusTab", "0");
|
|---|
| 78 | setValue("waitTime", "5");
|
|---|
| 79 | setValue("pppMount", "");
|
|---|
| 80 | setValue("pppSPP", "PPP");
|
|---|
| 81 | setValue("pppSigmaCode", "5.0");
|
|---|
| 82 | setValue("pppStatic", "");
|
|---|
| 83 | setValue("pppUsePhase", "");
|
|---|
| 84 | setValue("pppEstTropo", "");
|
|---|
| 85 | setValue("pppGLONASS", "");
|
|---|
| 86 | setValue("pppOrigin", "");
|
|---|
| 87 | setValue("pppRefCrdX", "");
|
|---|
| 88 | setValue("pppRefCrdY", "");
|
|---|
| 89 | setValue("pppRefCrdZ", "");
|
|---|
| 90 | setValue("nmeaFile", "");
|
|---|
| 91 | setValue("nmeaPort", "");
|
|---|
| 92 | sync();
|
|---|
| 93 | }
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|