Changeset 758 in ntrip for trunk/BNS/bns.cpp


Ignore:
Timestamp:
Mar 30, 2008, 5:47:55 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r757 r758  
    2424////////////////////////////////////////////////////////////////////////////
    2525t_bns::t_bns(QObject* parent) : QThread(parent) {
     26  _bnseph = new t_bnseph(parent);
     27  connect(_bnseph, SIGNAL(newMessage(QByteArray)),
     28          this, SLOT(slotMessage(const QByteArray)));
    2629}
    2730
     
    2932////////////////////////////////////////////////////////////////////////////
    3033t_bns::~t_bns() {
     34  delete _bnseph;
    3135}
    3236
    3337// Write a Program Message
    3438////////////////////////////////////////////////////////////////////////////
    35 void t_bns::message(const QByteArray msg) {
     39void t_bns::slotMessage(const QByteArray msg) {
    3640  cout << msg.data() << endl;
    3741  emit(newMessage(msg));
     
    4145////////////////////////////////////////////////////////////////////////////
    4246void t_bns::run() {
    43   message("============ Start BNS ============");
     47  slotMessage("============ Start BNS ============");
     48  _bnseph->start();
    4449}
    4550
Note: See TracChangeset for help on using the changeset viewer.