Line | |
---|
1 | /* -------------------------------------------------------------------------
|
---|
2 | * BKG NTRIP Server
|
---|
3 | * -------------------------------------------------------------------------
|
---|
4 | *
|
---|
5 | * Class: bns
|
---|
6 | *
|
---|
7 | * Purpose: This class implements the main application behaviour
|
---|
8 | *
|
---|
9 | * Author: L. Mervart
|
---|
10 | *
|
---|
11 | * Created: 29-Mar-2008
|
---|
12 | *
|
---|
13 | * Changes:
|
---|
14 | *
|
---|
15 | * -----------------------------------------------------------------------*/
|
---|
16 |
|
---|
17 | #include <iostream>
|
---|
18 |
|
---|
19 | #include "bns.h"
|
---|
20 |
|
---|
21 | using namespace std;
|
---|
22 |
|
---|
23 | // Constructor
|
---|
24 | ////////////////////////////////////////////////////////////////////////////
|
---|
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)));
|
---|
29 | }
|
---|
30 |
|
---|
31 | // Destructor
|
---|
32 | ////////////////////////////////////////////////////////////////////////////
|
---|
33 | t_bns::~t_bns() {
|
---|
34 | delete _bnseph;
|
---|
35 | }
|
---|
36 |
|
---|
37 | // Write a Program Message
|
---|
38 | ////////////////////////////////////////////////////////////////////////////
|
---|
39 | void t_bns::slotMessage(const QByteArray msg) {
|
---|
40 | cout << msg.data() << endl;
|
---|
41 | emit(newMessage(msg));
|
---|
42 | }
|
---|
43 |
|
---|
44 | // Start
|
---|
45 | ////////////////////////////////////////////////////////////////////////////
|
---|
46 | void t_bns::run() {
|
---|
47 | slotMessage("============ Start BNS ============");
|
---|
48 | _bnseph->start();
|
---|
49 | }
|
---|
50 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.