Changeset 758 in ntrip for trunk/BNS/bns.cpp
- Timestamp:
- Mar 30, 2008, 5:47:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r757 r758 24 24 //////////////////////////////////////////////////////////////////////////// 25 25 t_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))); 26 29 } 27 30 … … 29 32 //////////////////////////////////////////////////////////////////////////// 30 33 t_bns::~t_bns() { 34 delete _bnseph; 31 35 } 32 36 33 37 // Write a Program Message 34 38 //////////////////////////////////////////////////////////////////////////// 35 void t_bns:: message(const QByteArray msg) {39 void t_bns::slotMessage(const QByteArray msg) { 36 40 cout << msg.data() << endl; 37 41 emit(newMessage(msg)); … … 41 45 //////////////////////////////////////////////////////////////////////////// 42 46 void t_bns::run() { 43 message("============ Start BNS ============"); 47 slotMessage("============ Start BNS ============"); 48 _bnseph->start(); 44 49 } 45 50
Note:
See TracChangeset
for help on using the changeset viewer.