Changeset 3336 in ntrip


Ignore:
Timestamp:
Jul 19, 2011, 4:28:37 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnctabledlg.cpp

    r3335 r3336  
    378378void bncTableDlg::select() {
    379379
    380   bncSettings settings;
    381380  QString ntripVersion = _ntripVersionComboBox->currentText();
    382   settings.setValue("ntripVersion", ntripVersion);
     381
    383382  QUrl url;
    384383  if (ntripVersion == "2s") {
     
    477476  _casterPortLineEdit->setText(newCasterPort);
    478477
     478  QString ntripVersion = _ntripVersionComboBox->currentText();
     479
    479480  QUrl url;
    480   url.setScheme("http");
     481  if (ntripVersion == "2s") {
     482    url.setScheme("https");
     483  }
     484  else {
     485    url.setScheme("http");
     486  }
    481487  url.setHost(newCasterHost);
    482488  url.setPort(newCasterPort.toInt());
     
    537543  QUrl url;
    538544  url.setHost("www.rtcm-ntrip.org");
    539   url.setPort(2101);
    540   url.setScheme("http");
    541545  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  }
    542554
    543555  bncNetQuery* query = 0;
Note: See TracChangeset for help on using the changeset viewer.