Index: trunk/BNC/bncnetrequest.cpp
===================================================================
--- trunk/BNC/bncnetrequest.cpp	(revision 1342)
+++ trunk/BNC/bncnetrequest.cpp	(revision 1343)
@@ -19,4 +19,5 @@
 
 #include "bncnetrequest.h"
+#include "RTCM3/RTCM3Decoder.h"
 
 using namespace std;
@@ -27,4 +28,7 @@
   _manager = 0;
   _reply   = 0;
+  _decoder = new RTCM3Decoder("TEST1");
+  connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)), 
+          this, SIGNAL(slotNewMessage(QByteArray,bool)));
 }
 
@@ -88,5 +92,15 @@
   cout << "slotReadyRead" << endl;
   QByteArray buffer = _reply->readAll();
-  cerr << buffer.data();
+
+  vector<string> errmsg;
+  _decoder->Decode(buffer.data(), buffer.length(), errmsg);
+
+  QListIterator<p_obs> it(_decoder->_obsList);
+  while (it.hasNext()) {
+    p_obs obs = it.next();
+    cout << obs->_o.satNum << endl;
+    delete obs;
+  }
+  _decoder->_obsList.clear();
 }
 
@@ -104,2 +118,7 @@
 }
 
+// 
+////////////////////////////////////////////////////////////////////////////
+void bncNetRequest::slotNewMessage(QByteArray msg, bool) {
+  cout << "Message: " << msg.data() << endl;
+}
Index: trunk/BNC/bncnetrequest.h
===================================================================
--- trunk/BNC/bncnetrequest.h	(revision 1342)
+++ trunk/BNC/bncnetrequest.h	(revision 1343)
@@ -4,4 +4,5 @@
 #include <QtNetwork>
 #include "bncconst.h"
+#include "RTCM/GPSDecoder.h"
 
 class bncNetRequest : public QObject {
@@ -20,8 +21,10 @@
   void slotError(QNetworkReply::NetworkError);
   void slotSslErrors(const QList<QSslError>&);
+  void slotNewMessage(QByteArray,bool);
 
  private:
   QNetworkAccessManager* _manager;
   QNetworkReply*         _reply;
+  GPSDecoder*            _decoder;
 };
 
Index: trunk/BNC/ntrip2test.pro
===================================================================
--- trunk/BNC/ntrip2test.pro	(revision 1342)
+++ trunk/BNC/ntrip2test.pro	(revision 1343)
@@ -4,4 +4,6 @@
 CONFIG -= release
 CONFIG += debug
+
+DEFINES += NO_RTCM3_MAIN 
 
 # Get rid of mingwm10.dll
@@ -16,7 +18,17 @@
 release:MOC_DIR=.moc/release
 
-HEADERS =                bncnetrequest.h
+HEADERS =                bncnetrequest.h   bncutils.h   bncrinex.h    \
+          RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
+          RTCM/RTCM2_2021.h RTCM/rtcm_utils.h                         \
+          RTCM3/RTCM3Decoder.h RTCM3/rtcm3torinex.h                   \
+          RTCM3/RTCM3coDecoder.h RTCM3/clock_orbit_rtcm.h             \
+          RTCM3/ephemeris.h RTCM3/timeutils.h                         \
 
-SOURCES = ntrip2test.cpp bncnetrequest.cpp
+SOURCES = ntrip2test.cpp bncnetrequest.cpp bncutils.cpp bncrinex.cpp  \
+          RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
+          RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp                     \
+          RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex.c                 \
+          RTCM3/RTCM3coDecoder.cpp RTCM3/clock_orbit_rtcm.c           \
+          RTCM3/ephemeris.cpp RTCM3/timeutils.cpp                     
 
 QT += network
