Changeset 3336 in ntrip
- Timestamp:
- Jul 19, 2011, 4:28:37 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnctabledlg.cpp
r3335 r3336 378 378 void bncTableDlg::select() { 379 379 380 bncSettings settings;381 380 QString ntripVersion = _ntripVersionComboBox->currentText(); 382 settings.setValue("ntripVersion", ntripVersion); 381 383 382 QUrl url; 384 383 if (ntripVersion == "2s") { … … 477 476 _casterPortLineEdit->setText(newCasterPort); 478 477 478 QString ntripVersion = _ntripVersionComboBox->currentText(); 479 479 480 QUrl url; 480 url.setScheme("http"); 481 if (ntripVersion == "2s") { 482 url.setScheme("https"); 483 } 484 else { 485 url.setScheme("http"); 486 } 481 487 url.setHost(newCasterHost); 482 488 url.setPort(newCasterPort.toInt()); … … 537 543 QUrl url; 538 544 url.setHost("www.rtcm-ntrip.org"); 539 url.setPort(2101);540 url.setScheme("http");541 545 url.setPath("/"); 546 if (ntripVersion == "2s") { 547 url.setPort(443); 548 url.setScheme("https"); 549 } 550 else { 551 url.setPort(2101); 552 url.setScheme("http"); 553 } 542 554 543 555 bncNetQuery* query = 0;
Note:
See TracChangeset
for help on using the changeset viewer.