Changeset 1354 in ntrip
- Timestamp:
- Dec 27, 2008, 2:18:56 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsocket.cpp
r1353 r1354 19 19 20 20 #include "bncsocket.h" 21 #include "bncapp.h" 21 22 22 23 using namespace std; … … 27 28 //////////////////////////////////////////////////////////////////////////// 28 29 bncSocket::bncSocket() { 30 bncApp* app = (bncApp*) qApp; 31 app->connect(this, SIGNAL(newMessage(QByteArray,bool)), 32 app, SLOT(slotMessage(const QByteArray,bool))); 29 33 _socket = 0; 30 34 } … … 158 162 const QByteArray& ntripVersion, 159 163 int timeOut, QString& msg) { 164 165 if (ntripVersion == "AUTO") { 166 emit newMessage("NTRIP Version AUTO not yet implemented", "true"); 167 return failure; 168 } 169 else if (ntripVersion == "2") { 170 171 } 172 else if (ntripVersion != "1") { 173 emit newMessage("Unknown NTRIP Version " + ntripVersion, "true"); 174 return failure; 175 } 160 176 161 177 delete _socket; -
trunk/BNC/bncsocket.h
r1353 r1354 6 6 7 7 class bncSocket : public QObject { 8 Q_OBJECT 8 9 9 10 public: … … 28 29 const QByteArray& ntripVersion, int timeOut, QString& msg); 29 30 31 signals: 32 void newMessage(QByteArray msg, bool showOnScreen); 33 30 34 private: 31 35 QTcpSocket* _socket;
Note:
See TracChangeset
for help on using the changeset viewer.