Changeset 5452 in ntrip for trunk/GnssCenter/monitor/monitor.cpp
- Timestamp:
- Sep 14, 2013, 3:28:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GnssCenter/monitor/monitor.cpp
r5450 r5452 32 32 #include "worldplot.h" 33 33 #include "thriftclient.h" 34 #include "settings.h" 34 35 35 36 using namespace std; … … 63 64 connect(actStopThrift, SIGNAL(triggered()), this, SLOT(slotStopThrift())); 64 65 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 65 75 // Thrift Client; 66 76 // -------------- … … 86 96 void t_monitor::slotStartThrift() { 87 97 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); 89 104 connect(_thriftClient, SIGNAL(finished()), this, SLOT(slotThriftFinished())); 90 105 _thriftClient->start();
Note:
See TracChangeset
for help on using the changeset viewer.