[1668] | 1 | /* -------------------------------------------------------------------------
|
---|
| 2 | * BKG NTRIP Server
|
---|
| 3 | * -------------------------------------------------------------------------
|
---|
| 4 | *
|
---|
| 5 | * Class: bnsSettings
|
---|
| 6 | *
|
---|
| 7 | * Purpose: Subclasses the QSettings
|
---|
| 8 | *
|
---|
| 9 | * Author: G. Weber
|
---|
| 10 | *
|
---|
| 11 | * Created: 27-Feb-2009
|
---|
| 12 | *
|
---|
| 13 | * Changes:
|
---|
| 14 | *
|
---|
| 15 | * -----------------------------------------------------------------------*/
|
---|
| 16 |
|
---|
| 17 | #include "bnssettings.h"
|
---|
[1669] | 18 | #include "bnsappw.h"
|
---|
[1668] | 19 |
|
---|
| 20 | // Constructor
|
---|
| 21 | ////////////////////////////////////////////////////////////////////////////
|
---|
| 22 | bnsSettings::bnsSettings() :
|
---|
| 23 | QSettings(((bnsApp*) qApp)->confFileName(), QSettings::IniFormat) {
|
---|
| 24 |
|
---|
| 25 | if (allKeys().size() == 0) {
|
---|
| 26 | setValue("proxyHost", "");
|
---|
| 27 | setValue("proxyPort", "");
|
---|
| 28 | setValue("logFile", "");
|
---|
| 29 | setValue("fileAppend", "0");
|
---|
| 30 | setValue("refSys_1", "IGS05");
|
---|
| 31 | setValue("refSys_2", "IGS05");
|
---|
| 32 | setValue("inpEcho", "");
|
---|
| 33 | setValue("ephHost", "");
|
---|
| 34 | setValue("ephPort", "");
|
---|
| 35 | setValue("ephEcho", "");
|
---|
| 36 | setValue("clkPort", "");
|
---|
| 37 | setValue("outHost1", "");
|
---|
| 38 | setValue("outPort1", "");
|
---|
| 39 | setValue("outHost2", "");
|
---|
| 40 | setValue("outPort2", "");
|
---|
| 41 | setValue("mountpoint_1","");
|
---|
| 42 | setValue("mountpoint_2","");
|
---|
| 43 | setValue("outFile_1", "");
|
---|
| 44 | setValue("outFile_2", "");
|
---|
| 45 | setValue("password1", "");
|
---|
| 46 | setValue("password2", "");
|
---|
| 47 | setValue("rnxPath", "");
|
---|
| 48 | setValue("rnxIntr", "1 min");
|
---|
| 49 | setValue("rnxSampl", "0");
|
---|
| 50 | setValue("sp3Path", "");
|
---|
| 51 | setValue("sp3Intr", "10 min");
|
---|
| 52 | setValue("sp3Sampl", "0");
|
---|
| 53 | setValue("startTab", "0");
|
---|
| 54 | setValue("autoStart", "0");
|
---|
| 55 | sync();
|
---|
| 56 | }
|
---|
| 57 | }
|
---|
| 58 |
|
---|