source: ntrip/trunk/BNS/bnssettings.cpp@ 1680

Last change on this file since 1680 was 1680, checked in by mervart, 15 years ago

* empty log message *

File size: 1.7 KB
Line 
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"
18#include "bnsapp.h"
19
20// Constructor
21////////////////////////////////////////////////////////////////////////////
22bnsSettings::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 setValue("beClocks1", "0");
56 setValue("beClocks2", "0");
57 sync();
58 }
59}
60
Note: See TracBrowser for help on using the repository browser.