Index: /trunk/BNC/RTCM/GPSDecoder.cpp
===================================================================
--- /trunk/BNC/RTCM/GPSDecoder.cpp	(revision 3528)
+++ /trunk/BNC/RTCM/GPSDecoder.cpp	(revision 3529)
@@ -50,11 +50,20 @@
 //////////////////////////////////////////////////////////////////////////////
 GPSDecoder::GPSDecoder() {
+  _rnx = 0;
+}
+
+// Initialize RINEX Writer
+//////////////////////////////////////////////////////////////////////////////
+void GPSDecoder::initRinex(const QByteArray& staID, const QUrl& mountPoint,
+                           const QByteArray& latitude, 
+                           const QByteArray& longitude, const QByteArray& nmea,
+                           const QByteArray& ntripVersion) {
+  if (_rnx) {
+    return;
+  }
   bncSettings settings;
-  if ( settings.value("rnxPath").toString().isEmpty() ) { 
-    _rnx = 0;
-  }
-  else {
-//    _rnx = new bncRinex(_staID, _mountPoint, _latitude, _longitude, 
-//                        _nmea, _ntripVersion);
+  if ( !settings.value("rnxPath").toString().isEmpty() ) { 
+    _rnx = new bncRinex(staID, mountPoint, latitude, longitude, 
+                        nmea, ntripVersion);
   }
 } 
Index: /trunk/BNC/RTCM/GPSDecoder.h
===================================================================
--- /trunk/BNC/RTCM/GPSDecoder.h	(revision 3528)
+++ /trunk/BNC/RTCM/GPSDecoder.h	(revision 3529)
@@ -130,4 +130,8 @@
   virtual int corrGPSEpochTime() const {return -1;}
 
+  void initRinex(const QByteArray& staID, const QUrl& mountPoint,
+                 const QByteArray& latitude, const QByteArray& longitude, 
+                 const QByteArray& nmea, const QByteArray& ntripVersion);
+
   void dumpRinexEpoch(const t_obs& obs, const QByteArray& format);
 
