Index: trunk/BNC/upload/bncrtnetdecoder.cpp
===================================================================
--- trunk/BNC/upload/bncrtnetdecoder.cpp	(revision 3176)
+++ trunk/BNC/upload/bncrtnetdecoder.cpp	(revision 3179)
@@ -43,4 +43,6 @@
 #include "bncutils.h"
 #include "bncsettings.h"
+#include "bncclockrinex.h"
+#include "bncsp3.h"
 
 using namespace std;
@@ -51,4 +53,33 @@
   bncSettings settings;
   _year = 0;
+  _append = Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked;
+
+  // RINEX writer
+  // ------------
+  if ( settings.value("rnxPath").toString().isEmpty() ) { 
+    _rnx = 0;
+  }
+  else {
+    QString prep  = "BNC";
+    QString ext   = ".clk";
+    QString path  = settings.value("rnxPath").toString();
+    QString intr  = settings.value("rnxIntr").toString();
+    int     sampl = settings.value("rnxSampl").toInt();
+    _rnx = new bncClockRinex(prep, ext, path, intr, sampl);
+  }
+
+  // SP3 writer
+  // ----------
+  if ( settings.value("sp3Path").toString().isEmpty() ) { 
+    _sp3 = 0;
+  }
+  else {
+    QString prep  = "BNC";
+    QString ext   = ".sp3";
+    QString path  = settings.value("sp3Path").toString();
+    QString intr  = settings.value("sp3Intr").toString();
+    int     sampl = settings.value("sp3Sampl").toInt();
+    _sp3 = new bncSP3(prep, ext, path, intr, sampl);
+  }
 }
 
@@ -56,4 +87,6 @@
 //////////////////////////////////////////////////////////////////////// 
 bncRtnetDecoder::~bncRtnetDecoder() {
+  delete _rnx;
+  delete _sp3;
 }
 
Index: trunk/BNC/upload/bncrtnetdecoder.h
===================================================================
--- trunk/BNC/upload/bncrtnetdecoder.h	(revision 3176)
+++ trunk/BNC/upload/bncrtnetdecoder.h	(revision 3179)
@@ -32,4 +32,7 @@
 #include "RTCM/GPSDecoder.h"
 
+class bncClockRinex;
+class bncSP3;
+
 class bncRtnetDecoder: public GPSDecoder, public bncEphUser {
  public:
@@ -48,30 +51,32 @@
                 const QString& trafo);
 
-  QString _buffer;
   QList<bncUploadCaster*> _caster;
-  int    _GPSweek;
-  double _GPSweeks;
-  int    _year;
-  int    _month;
-  int    _day;
-  int    _hour;
-  int    _min;
-  double _sec;
-
-  double _dx;
-  double _dy;
-  double _dz;
-  double _dxr;
-  double _dyr;
-  double _dzr;
-  double _ox;
-  double _oy;
-  double _oz;
-  double _oxr;
-  double _oyr;
-  double _ozr;
-  double _sc;
-  double _scr;
-  double _t0;
+  bool                    _append;
+  QString                 _buffer;
+  int                     _GPSweek;
+  double                  _GPSweeks;
+  int                     _year;
+  int                     _month;
+  int                     _day;
+  int                     _hour;
+  int                     _min;
+  double                  _sec;
+  double                  _dx;
+  double                  _dy;
+  double                  _dz;
+  double                  _dxr;
+  double                  _dyr;
+  double                  _dzr;
+  double                  _ox;
+  double                  _oy;
+  double                  _oz;
+  double                  _oxr;
+  double                  _oyr;
+  double                  _ozr;
+  double                  _sc;
+  double                  _scr;
+  double                  _t0;
+  bncClockRinex*          _rnx;
+  bncSP3*                 _sp3;
 };
 
Index: trunk/BNC/upload/bncuploadcaster.h
===================================================================
--- trunk/BNC/upload/bncuploadcaster.h	(revision 3176)
+++ trunk/BNC/upload/bncuploadcaster.h	(revision 3179)
@@ -3,7 +3,4 @@
 
 #include <QtNetwork>
-
-class bncClockRinex;
-class bncSP3;
 
 class bncUploadCaster : public QObject {
@@ -39,6 +36,4 @@
   QFile*         _outFile;
   QTextStream*   _outStream;
-  bncClockRinex* _rnx;
-  bncSP3*        _sp3;
 };
 
