[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"
|
---|
[1680] | 18 | #include "bnsapp.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", "");
|
---|
[1728] | 28 |
|
---|
[1668] | 29 | setValue("logFile", "");
|
---|
[1728] | 30 | setValue("fileAppend", "0");
|
---|
[1695] | 31 | setValue("autoStart", "0");
|
---|
[1728] | 32 |
|
---|
[1668] | 33 | setValue("ephHost", "");
|
---|
| 34 | setValue("ephPort", "");
|
---|
| 35 | setValue("ephEcho", "");
|
---|
[1728] | 36 |
|
---|
[1668] | 37 | setValue("clkPort", "");
|
---|
[1695] | 38 | setValue("inpEcho", "");
|
---|
[1728] | 39 |
|
---|
[1668] | 40 | setValue("outHost1", "");
|
---|
| 41 | setValue("outPort1", "");
|
---|
[1695] | 42 | setValue("mountpoint_1","");
|
---|
| 43 | setValue("password1", "");
|
---|
| 44 | setValue("refSys_1", "IGS05");
|
---|
[2102] | 45 | setValue("CoM_1", "0");
|
---|
[1695] | 46 | setValue("outFile_1", "");
|
---|
[1728] | 47 |
|
---|
[1668] | 48 | setValue("outHost2", "");
|
---|
| 49 | setValue("outPort2", "");
|
---|
| 50 | setValue("mountpoint_2","");
|
---|
[1695] | 51 | setValue("password2", "");
|
---|
| 52 | setValue("refSys_2", "IGS05");
|
---|
[2102] | 53 | setValue("CoM_2", "0");
|
---|
[1668] | 54 | setValue("outFile_2", "");
|
---|
[1728] | 55 |
|
---|
| 56 | setValue("outHost3", "");
|
---|
| 57 | setValue("outPort3", "");
|
---|
| 58 | setValue("mountpoint_3","");
|
---|
| 59 | setValue("password3", "");
|
---|
| 60 | setValue("refSys_3", "IGS05");
|
---|
[2102] | 61 | setValue("CoM_3", "0");
|
---|
[1728] | 62 | setValue("outFile_3", "");
|
---|
| 63 |
|
---|
[2327] | 64 | setValue("outHost4", "");
|
---|
| 65 | setValue("outPort4", "");
|
---|
| 66 | setValue("mountpoint_4","");
|
---|
| 67 | setValue("password4", "");
|
---|
| 68 | setValue("refSys_4", "IGS05");
|
---|
| 69 | setValue("CoM_4", "0");
|
---|
| 70 | setValue("outFile_4", "");
|
---|
| 71 |
|
---|
| 72 | setValue("outHost5", "");
|
---|
| 73 | setValue("outPort5", "");
|
---|
| 74 | setValue("mountpoint_5","");
|
---|
| 75 | setValue("password5", "");
|
---|
| 76 | setValue("refSys_5", "IGS05");
|
---|
| 77 | setValue("CoM_5", "0");
|
---|
| 78 | setValue("outFile_5", "");
|
---|
| 79 |
|
---|
| 80 | setValue("outHost6", "");
|
---|
| 81 | setValue("outPort6", "");
|
---|
| 82 | setValue("mountpoint_6","");
|
---|
| 83 | setValue("password6", "");
|
---|
| 84 | setValue("refSys_6", "IGS05");
|
---|
| 85 | setValue("CoM_6", "0");
|
---|
| 86 | setValue("outFile_6", "");
|
---|
| 87 |
|
---|
[1795] | 88 | setValue("outHostEph", "");
|
---|
| 89 | setValue("outPortEph", "");
|
---|
| 90 | setValue("mountpoint_Eph","");
|
---|
| 91 | setValue("passwordEph", "");
|
---|
[1805] | 92 | setValue("samplEph", "5");
|
---|
[1795] | 93 |
|
---|
[1772] | 94 | setValue("trafo_dx", "0.0541");
|
---|
| 95 | setValue("trafo_dy", "0.0502");
|
---|
| 96 | setValue("trafo_dz", "-0.0538");
|
---|
| 97 | setValue("trafo_dxr", "-0.0002");
|
---|
| 98 | setValue("trafo_dyr", "0.0001");
|
---|
| 99 | setValue("trafo_dzr", "-0.0018");
|
---|
| 100 | setValue("trafo_ox", "0.000891");
|
---|
| 101 | setValue("trafo_oy", "0.005390");
|
---|
| 102 | setValue("trafo_oz", "-0.008712");
|
---|
| 103 | setValue("trafo_oxr", "0.000081");
|
---|
| 104 | setValue("trafo_oyr", "0.000490");
|
---|
| 105 | setValue("trafo_ozr","-0.000792");
|
---|
| 106 | setValue("trafo_sc", "0.40");
|
---|
| 107 | setValue("trafo_scr", "0.08");
|
---|
| 108 | setValue("trafo_t0", "2000.0");
|
---|
[1771] | 109 |
|
---|
[1668] | 110 | setValue("rnxPath", "");
|
---|
| 111 | setValue("rnxIntr", "1 min");
|
---|
| 112 | setValue("rnxSampl", "0");
|
---|
[1728] | 113 |
|
---|
[1668] | 114 | setValue("sp3Path", "");
|
---|
| 115 | setValue("sp3Intr", "10 min");
|
---|
| 116 | setValue("sp3Sampl", "0");
|
---|
[1728] | 117 |
|
---|
[1668] | 118 | setValue("startTab", "0");
|
---|
| 119 | sync();
|
---|
| 120 | }
|
---|
| 121 | }
|
---|
| 122 |
|
---|