Index: trunk/BNC/bncmodel.cpp
===================================================================
--- trunk/BNC/bncmodel.cpp	(revision 3637)
+++ trunk/BNC/bncmodel.cpp	(revision 3638)
@@ -45,4 +45,5 @@
 
 #include "bncmodel.h"
+#include "bncpppclient.h"
 #include "bncapp.h"
 #include "bncpppclient.h"
@@ -138,8 +139,9 @@
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-bncModel::bncModel(QByteArray staID, const t_pppOpt* opt) {
-
-  _staID = staID;
-  _opt   = opt;
+bncModel::bncModel(bncPPPclient* pppClient) {
+
+  _pppClient = pppClient;
+  _staID     = pppClient->staID();
+  _opt       = pppClient->opt();
 
   connect(this, SIGNAL(newMessage(QByteArray,bool)), 
@@ -171,5 +173,5 @@
     _antex = new bncAntex();
     if (_antex->readFile(_opt->antexFile) != success) {
-      emit newMessage("wrong ANTEX file", true);
+      _pppClient->emitNewMessage("wrong ANTEX file", true);
       delete _antex;
       _antex = 0;
@@ -338,5 +340,5 @@
     phaseCenter = _antex->pco(_opt->antennaName, satData->eleSat, found);
     if (!found) {
-      emit newMessage("ANTEX: antenna >" 
+      _pppClient->emitNewMessage("ANTEX: antenna >" 
                       + _opt->antennaName.toAscii() + "< not found", true);
     }
@@ -577,5 +579,5 @@
   // ----------------------
   if (update_p(epoData) != success) {
-    emit newMessage(_log, false);
+    _pppClient->emitNewMessage(_log, false);
     return failure;
   }
@@ -624,5 +626,5 @@
   strB << '\n';
   _log += strB.str().c_str();
-  emit newMessage(_log, false);
+  _pppClient->emitNewMessage(_log, false);
 
   // Final Message (both log file and screen)
@@ -657,5 +659,5 @@
   }
 
-  emit newMessage(QByteArray(strC.str().c_str()), true);
+  _pppClient->emitNewMessage(QByteArray(strC.str().c_str()), true);
 
   if (_opt->pppAverage == 0.0) {
@@ -714,5 +716,5 @@
              << setw(14) << setprecision(3) << mean[2] + _opt->refCrd[2] << " +- "
              << setw(6)  << setprecision(3) << std[2];
-        emit newMessage(QByteArray(strD.str().c_str()), true);
+        _pppClient->emitNewMessage(QByteArray(strD.str().c_str()), true);
 
         ostringstream strE; strE.setf(ios::fixed);
@@ -725,5 +727,5 @@
              << setw(14) << setprecision(3) << mean[5]  << " +- "
              << setw(6)  << setprecision(3) << std[5];
-        emit newMessage(QByteArray(strE.str().c_str()), true);
+        _pppClient->emitNewMessage(QByteArray(strE.str().c_str()), true);
 
         if (_opt->estTropo) {
@@ -733,5 +735,5 @@
                << setw(13) << setprecision(3) << mean[6]  << " +- "
                << setw(6)  << setprecision(3) << std[6]   << endl;
-          emit newMessage(QByteArray(strF.str().c_str()), true);
+          _pppClient->emitNewMessage(QByteArray(strF.str().c_str()), true);
         }
       }
@@ -852,5 +854,5 @@
   }
 
-  emit newNMEAstr(outStr.toAscii());
+  _pppClient->emitNewNMEAstr(outStr.toAscii());
 }
 
Index: trunk/BNC/bncmodel.h
===================================================================
--- trunk/BNC/bncmodel.h	(revision 3637)
+++ trunk/BNC/bncmodel.h	(revision 3638)
@@ -37,4 +37,5 @@
 class bncAntex;
 class t_pppOpt;
+class bncPPPclient;
 
 class bncParam {
@@ -56,7 +57,6 @@
 
 class bncModel : public QObject {
- Q_OBJECT
  public:
-  bncModel(QByteArray staID, const t_pppOpt* opt);
+  bncModel(bncPPPclient* pppClient);
   ~bncModel();
   t_irc update(t_epoData* epoData);
@@ -88,8 +88,4 @@
                      const DiagonalMatrix& PP, 
                      SymmetricMatrix& QQ, ColumnVector& dx);
-
- signals:
-  void newMessage(QByteArray msg, bool showOnScreen);
-  void newNMEAstr(QByteArray str);
 
  private:
@@ -136,4 +132,5 @@
   };
 
+  bncPPPclient*         _pppClient;
   const t_pppOpt*       _opt;
   bncTime               _time;
Index: trunk/BNC/bncpppclient.cpp
===================================================================
--- trunk/BNC/bncpppclient.cpp	(revision 3637)
+++ trunk/BNC/bncpppclient.cpp	(revision 3638)
@@ -66,5 +66,6 @@
 
   _staID = staID;
-  _model = new bncModel(staID, _opt);
+
+  _model = new bncModel(this);
 
   connect(this, SIGNAL(newMessage(QByteArray,bool)), 
Index: trunk/BNC/bncpppclient.h
===================================================================
--- trunk/BNC/bncpppclient.h	(revision 3637)
+++ trunk/BNC/bncpppclient.h	(revision 3638)
@@ -128,4 +128,11 @@
                          ColumnVector& vv);
   QByteArray staID() const {return _staID;}
+  const t_pppOpt* opt() const {return _opt;}
+  void emitNewMessage(QByteArray msg, bool showOnScreen) {
+    emit newMessage(msg, showOnScreen);
+  }
+  void emitNewNMEAstr(QByteArray str) {
+    emit newNMEAstr(str);
+  }
 
  public slots:
