/* ------------------------------------------------------------------------- * BKG NTRIP Client * ------------------------------------------------------------------------- * * Class: bncSettings * * Purpose: Subclasses the QSettings * * Author: L. Mervart * * Created: 25-Jan-2009 * * Changes: * * -----------------------------------------------------------------------*/ #include #include #include "bncsettings.h" #include "bncapp.h" // Constructor //////////////////////////////////////////////////////////////////////////// bncSettings::bncSettings(bool noInit) : QSettings(((bncApp*) qApp)->confFileName(), QSettings::IniFormat) { if (! noInit && allKeys().size() == 0) { setValue("adviseFail", "15"); setValue("adviseReco", "5"); setValue("adviseScript", ""); setValue("autoStart", "0"); setValue("binSampl", "0"); setValue("casterUrlList", (QStringList() << "http://user:pass@www.euref-ip.net:2101" << "http://user:pass@www.igs-ip.net:2101" << "http://user:pass@products.igs-ip.net:2101")); setValue("corrIntr", "1 day"); setValue("corrPath", ""); setValue("corrPort", ""); setValue("corrTime", "5"); setValue("ephIntr", "1 day"); setValue("ephPath", ""); setValue("ephV3", "0"); setValue("logFile", ""); setValue("rawOutFile", ""); setValue("miscMount", ""); setValue("mountPoints", ""); setValue("ntripVersion", "1"); setValue("obsRate", ""); setValue("onTheFlyInterval", "1 day"); setValue("outEphPort", ""); setValue("outFile", ""); setValue("outPort", ""); setValue("outUPort", ""); setValue("perfIntr", ""); setValue("proxyHost", ""); setValue("proxyPort", ""); setValue("sslCaCertPath", ""); setValue("ignoreSslErrors", "0"); setValue("rnxAppend", "0"); setValue("rnxIntr", "1 day"); setValue("rnxPath", ""); setValue("rnxSampl", "0"); setValue("rnxScript", ""); setValue("rnxSkel", "SKL"); setValue("rnxV3", "0"); setValue("scanRTCM", "0"); setValue("serialAutoNMEA", "Auto"); setValue("serialBaudRate", "9600"); setValue("serialDataBits", "8"); setValue("serialFileNMEA", ""); setValue("serialHeightNMEA", ""); setValue("serialMountPoint", ""); setValue("serialParity", "NONE"); setValue("serialPortName", ""); setValue("serialStopBits", "1"); setValue("serialFlowControl","OFF"); setValue("startTab", "0"); setValue("statusTab", "0"); setValue("waitTime", "5"); setValue("pppMount", ""); setValue("pppCorrMount", ""); setValue("pppSPP", "PPP"); setValue("pppSigmaCode", "10.0"); setValue("pppSigmaPhase", "0.02"); setValue("pppQuickStart", ""); setValue("pppMaxSolGap", ""); setValue("pppSigCrd0", "100.0"); setValue("pppSigCrdP", "100.0"); setValue("pppSigTrp0", "0.1"); setValue("pppSigTrpP", "5e-6"); setValue("pppAverage", ""); setValue("pppUsePhase", ""); setValue("pppEstTropo", ""); setValue("pppGLONASS", ""); setValue("pppGalileo", ""); setValue("pppPlotCoordinates", ""); setValue("pppRefCrdX", ""); setValue("pppRefCrdY", ""); setValue("pppRefCrdZ", ""); setValue("pppRefdN", ""); setValue("pppRefdE", ""); setValue("pppRefdU", ""); setValue("pppAntenna", ""); setValue("pppAntex", ""); setValue("pppApplySatAnt", "0"); setValue("pppSync", ""); setValue("nmeaFile", ""); setValue("nmeaPort", ""); setValue("combineStreams", ""); setValue("uploadMountpointsOut",""); setValue("uploadIntr", "1 day"); setValue("uploadSampl", "0"); setValue("uploadEphHost", ""); setValue("uploadEphPort", ""); setValue("uploadEphPassword", ""); setValue("uploadEphMountpoint", ""); setValue("uploadEphSample", "5"); setValue("cmbMaxres", ""); sync(); } }