Ignore:
Timestamp:
Sep 10, 2013, 5:55:53 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/map_stations/thriftclient.cpp

    r5415 r5416  
    55
    66#include "thriftclient.h"
     7#include "map_stations.h"
    78
    89using namespace apache::thrift;
     
    1617// Constructor
    1718//////////////////////////////////////////////////////////////////////////////
    18 t_thriftClient::t_thriftClient() {
    19   _stop = false;
    20   qRegisterMetaType<t_thriftResult>("t_thriftResult");
     19t_thriftClient::t_thriftClient(GnssCenter::t_map_stations* parent) {
     20  _stop   = false;
     21  _parent = parent;
    2122}
    2223
     
    3637  shared_ptr<TTransport>  transport(new TBufferedTransport(socket));
    3738  shared_ptr<TProtocol>   protocol(new TBinaryProtocol(transport));
    38   shared_ptr<RtnetDataIf> dataHandler(new t_thriftClient());
     39  shared_ptr<RtnetDataIf> dataHandler(new t_thriftClient(_parent));
    3940  shared_ptr<TProcessor>  processor(new RtnetDataProcessor(dataHandler));
    4041
     
    9798      result._z = _stationCrd[staRes.stationName]._z;
    9899    }
    99 
    100     emit newThriftResult(result);
    101 
    102     cout << result._name << ' ' << result._nGPS << ' ' << result._nGLO << endl;
     100    _parent->slotNewThriftResult(&result);
    103101  }
    104102}
Note: See TracChangeset for help on using the changeset viewer.