Changeset 3356 in ntrip


Ignore:
Timestamp:
Aug 22, 2011, 4:03:49 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsettings.cpp

    r3285 r3356  
    5757    setValue("proxyHost",        "");
    5858    setValue("proxyPort",        "");
     59    setValue("sslCaCertPath",    "");
     60    setValue("ignoreSslErrors",  "0");
    5961    setValue("rnxAppend",        "0");
    6062    setValue("rnxIntr",          "1 day");
  • trunk/BNC/bncwindow.cpp

    r3345 r3356  
    127127  bncSettings settings;
    128128
    129   // Proxy Options
    130   // -------------
     129  // Netowrk Options
     130  // ---------------
    131131  _proxyHostLineEdit  = new QLineEdit(settings.value("proxyHost").toString());
    132132  _proxyPortLineEdit  = new QLineEdit(settings.value("proxyPort").toString());
     
    134134  connect(_proxyHostLineEdit, SIGNAL(textChanged(const QString &)),
    135135          this, SLOT(slotBncTextChanged()));
     136
     137  _sslCaCertPathLineEdit   = new QLineEdit(settings.value("sslCaCertPath").toString());
     138  _ignoreSslErrorsCheckBox = new QCheckBox();
     139  _ignoreSslErrorsCheckBox->setCheckState(Qt::CheckState(
     140                                          settings.value("ignoreSslErrors").toInt()));
    136141
    137142  // General Options
     
    644649  QWidget* uploadgroup = new QWidget();
    645650  QWidget* uploadEphgroup = new QWidget();
    646   _aogroup->addTab(pgroup,tr("Proxy"));
     651  _aogroup->addTab(pgroup,tr("Network"));
    647652  _aogroup->addTab(ggroup,tr("General"));
    648653  _aogroup->addTab(ogroup,tr("RINEX Observations"));
     
    669674  _loggroup->addTab(_bncFigurePPP,tr("PPP Plot"));
    670675
    671   // Proxy Tab
    672   // ---------
     676  // Netowork (Proxy and SSL) Tab
     677  // ----------------------------
    673678  QGridLayout* pLayout = new QGridLayout;
    674679  pLayout->setColumnMinimumWidth(0,13*ww);
     
    682687  pLayout->addWidget(new QLabel("    "),3,0);
    683688  pLayout->addWidget(new QLabel("    "),4,0);
    684   pLayout->addWidget(new QLabel("    "),5,0);
     689  pLayout->addWidget(new QLabel("Path to SSL Certificates"),     5, 0);
     690  pLayout->addWidget(_sslCaCertPathLineEdit,                     5, 1, 1,10);
     691  pLayout->addWidget(new QLabel("Ignore SSL Authorization Errors"), 6,0);
     692  pLayout->addWidget(_ignoreSslErrorsCheckBox,                     6, 1, 1,10);
     693  pLayout->addWidget(new QLabel("Settings for SSL Authorization."),7, 0, 1, 50, Qt::AlignLeft);
    685694  pgroup->setLayout(pLayout);
    686695
     
    14261435  settings.setValue("proxyHost",   _proxyHostLineEdit->text());
    14271436  settings.setValue("proxyPort",   _proxyPortLineEdit->text());
     1437  settings.setValue("sslCaCertPath",   _sslCaCertPathLineEdit->text());
     1438  settings.setValue("ignoreSslErrors",  _ignoreSslErrorsCheckBox->checkState());
    14281439  settings.setValue("rnxAppend",   _rnxAppendCheckBox->checkState());
    14291440  settings.setValue("rnxIntr",     _rnxIntrComboBox->currentText());
  • trunk/BNC/bncwindow.h

    r3328 r3356  
    113113    QLineEdit* _proxyHostLineEdit;
    114114    QLineEdit* _proxyPortLineEdit;
     115    QLineEdit* _sslCaCertPathLineEdit;
     116    QCheckBox* _ignoreSslErrorsCheckBox;
    115117    QLineEdit* _outFileLineEdit;
    116118    QLineEdit* _outPortLineEdit;
Note: See TracChangeset for help on using the changeset viewer.