Ignore:
Timestamp:
Sep 14, 2013, 3:28:51 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/monitor.cpp

    r5450 r5452  
    3232#include "worldplot.h"
    3333#include "thriftclient.h"
     34#include "settings.h"
    3435
    3536using namespace std;
     
    6364  connect(actStopThrift, SIGNAL(triggered()), this, SLOT(slotStopThrift()));
    6465
     66  // Host and Port
     67  // -------------
     68  t_settings settings;
     69  settings.beginGroup(pluginName);
     70  settings.setValue("host", "rtnet.rtcm-ntrip.org");
     71  settings.setValue("port", 7777);
     72  settings.endGroup();
     73  settings.sync();
     74
    6575  // Thrift Client;
    6676  // --------------
     
    8696void t_monitor::slotStartThrift() {
    8797  if (!_thriftClient) {
    88     _thriftClient = new t_thriftClient(this);
     98    t_settings settings;
     99    settings.beginGroup(pluginName);
     100    QString host = settings.value("host").toString();
     101    int     port = settings.value("port").toInt();
     102    settings.endGroup();
     103    _thriftClient = new t_thriftClient(this, host, port);
    89104    connect(_thriftClient, SIGNAL(finished()), this, SLOT(slotThriftFinished()));
    90105    _thriftClient->start();
Note: See TracChangeset for help on using the changeset viewer.