Changeset 1170 in ntrip for trunk/BNC/bncmain.cpp
- Timestamp:
- Oct 27, 2008, 3:35:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmain.cpp
r1166 r1170 169 169 ((bncApp*)qApp)->slotMessage("============ Start BNC ============"); 170 170 171 if (fileInput) { 171 // Normal case - data from Internet 172 // -------------------------------- 173 if (!fileInput) { 174 caster->slotReadMountpoints(); 175 if (caster->numStations() == 0) { 176 return 0; 177 } 178 } 179 180 // Special case - data from file 181 // ----------------------------- 182 else { 172 183 if ( fileName.isEmpty() || format.isEmpty() || 173 184 dateString.isEmpty() || timeString.isEmpty() ) { … … 187 198 188 199 caster->addGetThread(getThread); 189 190 getThread->start();191 }192 else {193 int iMount = -1;194 QListIterator<QString> it(settings.value("mountPoints").toStringList());195 while (it.hasNext()) {196 ++iMount;197 QStringList hlp = it.next().split(" ");198 if (hlp.size() <= 1) continue;199 QUrl url(hlp[0]);200 QByteArray format = hlp[1].toAscii();201 QByteArray latitude = hlp[2].toAscii();202 QByteArray longitude = hlp[3].toAscii();203 QByteArray nmea = hlp[4].toAscii();204 205 bncGetThread* getThread = new bncGetThread(url, format, latitude, longitude, nmea, iMount);206 207 app.connect(getThread, SIGNAL(newMessage(QByteArray)),208 &app, SLOT(slotMessage(const QByteArray)));209 210 caster->addGetThread(getThread);211 212 getThread->start();213 }214 if (caster->numStations() == 0) {215 return 0;216 }217 200 } 218 201 }
Note:
See TracChangeset
for help on using the changeset viewer.