Changeset 1536 in ntrip
- Timestamp:
- Jan 25, 2009, 9:04:48 AM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.h
r1383 r1536 43 43 void setCaster(bncCaster* caster) {_caster = caster;} 44 44 QDateTime* _currentDateAndTimeGPS; 45 void setWaitCoTime(int waitCoTime) {_waitCoTime = waitCoTime;}46 45 public slots: 47 46 void slotMessage(QByteArray msg, bool showOnScreen); -
trunk/BNC/bncmain.cpp
r1535 r1536 128 128 } 129 129 130 // Default Settings 131 // ---------------- 132 QStringList casterUrlList; 133 casterUrlList << "http://user:pass@www.euref-ip.net:2101" << "http://user:pass@www.igs-ip.net:2101"; 130 bncApp app(argc, argv, GUIenabled); 134 131 135 132 bncSettings settings; 136 if (settings.allKeys().size() == 0) {137 settings.setValue("adviseFail", "15");138 settings.setValue("adviseReco", "5");139 settings.setValue("adviseScript", "");140 settings.setValue("autoStart", "0");141 settings.setValue("binSampl", "0");142 settings.setValue("casterUrlList", casterUrlList);143 settings.setValue("corrIntr", "1 day");144 settings.setValue("corrPath", "");145 settings.setValue("corrPort", "");146 settings.setValue("corrTime", "5");147 settings.setValue("ephIntr", "1 day");148 settings.setValue("ephPath", "");149 settings.setValue("ephV3", "0");150 settings.setValue("logFile", "");151 settings.setValue("makePause", "0");152 settings.setValue("miscMount", "");153 settings.setValue("mountPoints", "");154 settings.setValue("ntripVersion", "1");155 settings.setValue("obsRate", "");156 settings.setValue("onTheFlyInterval", "1 day");157 settings.setValue("outEphPort", "");158 settings.setValue("outFile", "");159 settings.setValue("outPort", "");160 settings.setValue("outUPort", "");161 settings.setValue("perfIntr", "");162 settings.setValue("proxyHost", "");163 settings.setValue("proxyPort", "");164 settings.setValue("rnxAppend", "0");165 settings.setValue("rnxIntr", "1 day");166 settings.setValue("rnxPath", "");167 settings.setValue("rnxSampl", "0");168 settings.setValue("rnxScript", "");169 settings.setValue("rnxSkel", "SKL");170 settings.setValue("rnxV3", "0");171 settings.setValue("scanRTCM", "0");172 settings.setValue("serialAutoNMEA", "0");173 settings.setValue("serialBaudRate", "9600");174 settings.setValue("serialDataBits", "8");175 settings.setValue("serialMountPoint", "");176 settings.setValue("serialParity", "NONE");177 settings.setValue("serialPortName", "");178 settings.setValue("serialStopBits", "1");179 settings.setValue("startTab", "0");180 settings.setValue("waitTime", "5");181 182 }183 184 // Truncate list of casters185 // ------------------------186 int maxListSize = 5;187 QStringList casterHostList = settings.value("casterHostList").toStringList();188 if ( casterHostList.count() > maxListSize ) {189 QStringList listCopy;190 for (int ii = 0; ii < maxListSize; ii++) {191 listCopy.push_back(casterHostList[ii]);192 }193 settings.setValue("casterHostList", listCopy);194 }195 196 197 bncApp app(argc, argv, GUIenabled);198 199 int waitCoTime = settings.value("corrTime").toInt();200 if (waitCoTime < 1) {201 waitCoTime = 1;202 }203 app.setWaitCoTime(waitCoTime);204 133 205 134 // Interactive Mode - open the main window -
trunk/BNC/bncsettings.cpp
r1535 r1536 15 15 * -----------------------------------------------------------------------*/ 16 16 17 #include <QStringList> 18 17 19 #include "bncsettings.h" 18 20 … … 20 22 //////////////////////////////////////////////////////////////////////////// 21 23 bncSettings::bncSettings() : QSettings() { 24 25 if (allKeys().size() == 0) { 26 setValue("adviseFail", "15"); 27 setValue("adviseReco", "5"); 28 setValue("adviseScript", ""); 29 setValue("autoStart", "0"); 30 setValue("binSampl", "0"); 31 setValue("casterUrlList", (QStringList() 32 << "http://user:pass@www.euref-ip.net:2101" 33 << "http://user:pass@www.igs-ip.net:2101")); 34 setValue("corrIntr", "1 day"); 35 setValue("corrPath", ""); 36 setValue("corrPort", ""); 37 setValue("corrTime", "5"); 38 setValue("ephIntr", "1 day"); 39 setValue("ephPath", ""); 40 setValue("ephV3", "0"); 41 setValue("logFile", ""); 42 setValue("makePause", "0"); 43 setValue("miscMount", ""); 44 setValue("mountPoints", ""); 45 setValue("ntripVersion", "1"); 46 setValue("obsRate", ""); 47 setValue("onTheFlyInterval", "1 day"); 48 setValue("outEphPort", ""); 49 setValue("outFile", ""); 50 setValue("outPort", ""); 51 setValue("outUPort", ""); 52 setValue("perfIntr", ""); 53 setValue("proxyHost", ""); 54 setValue("proxyPort", ""); 55 setValue("rnxAppend", "0"); 56 setValue("rnxIntr", "1 day"); 57 setValue("rnxPath", ""); 58 setValue("rnxSampl", "0"); 59 setValue("rnxScript", ""); 60 setValue("rnxSkel", "SKL"); 61 setValue("rnxV3", "0"); 62 setValue("scanRTCM", "0"); 63 setValue("serialAutoNMEA", "0"); 64 setValue("serialBaudRate", "9600"); 65 setValue("serialDataBits", "8"); 66 setValue("serialMountPoint", ""); 67 setValue("serialParity", "NONE"); 68 setValue("serialPortName", ""); 69 setValue("serialStopBits", "1"); 70 setValue("startTab", "0"); 71 setValue("waitTime", "5"); 72 } 22 73 } 23 74
Note:
See TracChangeset
for help on using the changeset viewer.