Index: trunk/BNC/src/PPP_free/bncmodel.cpp
===================================================================
--- trunk/BNC/src/PPP_free/bncmodel.cpp	(revision 6054)
+++ trunk/BNC/src/PPP_free/bncmodel.cpp	(revision 6055)
@@ -54,4 +54,5 @@
 #include "pppopt.h"
 
+using namespace BNC_PPP;
 using namespace std;
 
Index: trunk/BNC/src/PPP_free/bncmodel.h
===================================================================
--- trunk/BNC/src/PPP_free/bncmodel.h	(revision 6054)
+++ trunk/BNC/src/PPP_free/bncmodel.h	(revision 6055)
@@ -36,5 +36,8 @@
 class t_satData;
 class bncAntex;
-class t_pppOpt;
+
+namespace BNC_PPP {
+
+class t_pppOptions;
 class bncPPPclient;
 
@@ -143,5 +146,5 @@
 
   bncPPPclient*         _pppClient;
-  const t_pppOpt*       _opt;
+  const t_pppOptions*   _opt;
   bncTime               _time;
   bncTime               _lastTimeOK;
@@ -165,3 +168,5 @@
 };
 
+}
+
 #endif
Index: trunk/BNC/src/PPP_free/bncpppclient.cpp
===================================================================
--- trunk/BNC/src/PPP_free/bncpppclient.cpp	(revision 6054)
+++ trunk/BNC/src/PPP_free/bncpppclient.cpp	(revision 6055)
@@ -48,11 +48,12 @@
 #include "bncconst.h"
 #include "bncmodel.h"
-#include "pppopt.h"
-
+#include "pppOptions.h"
+
+using namespace BNC_PPP;
 using namespace std;
 
 // Constructor
 ////////////////////////////////////////////////////////////////////////////
-bncPPPclient::bncPPPclient(QByteArray staID, t_pppOpt* opt, bool connectSlots) :
+bncPPPclient::bncPPPclient(QByteArray staID, t_pppOptions* opt, bool connectSlots) :
   bncEphUser(connectSlots) {
 
@@ -62,5 +63,5 @@
   }
   else {
-    _opt      = new t_pppOpt();
+    _opt      = new t_pppOptions();
     _optOwner = true;
   }
@@ -111,8 +112,8 @@
 
   if      (obs.satSys == 'R') {
-    if (!_opt->useGlonass) return;
+    if (!_opt->useSystem('R')) return;
   }
   else if (obs.satSys == 'E') {
-    if (!_opt->useGalileo) return;
+    if (!_opt->useSystem('E')) return;
   }
   else if (obs.satSys != 'G') {
@@ -210,6 +211,8 @@
     if (satData->P1 != 0.0 && satData->P2 != 0.0 && 
         satData->L1 != 0.0 && satData->L2 != 0.0 ) {
-      double f1 = t_CST::f1(obs.satSys, obs.slotNum);
-      double f2 = t_CST::f2(obs.satSys, obs.slotNum);
+      t_frequency::type fType1 = t_lc::toFreq(obs.satSys,t_lc::l1);
+      t_frequency::type fType2 = t_lc::toFreq(obs.satSys,t_lc::l2);
+      double f1 = t_CST::freq(fType1, obs.slotNum);
+      double f2 = t_CST::freq(fType2, obs.slotNum);
       double a1 =   f1 * f1 / (f1 * f1 - f2 * f2);
       double a2 = - f2 * f2 / (f1 * f1 - f2 * f2);
@@ -235,6 +238,6 @@
     if (satData->P1 != 0.0 && satData->P5 != 0.0 && 
         satData->L1 != 0.0 && satData->L5 != 0.0 ) {
-      double f1 = t_CST::freq1;
-      double f5 = t_CST::freq5;
+      double f1 = t_CST::freq(t_frequency::E1, 0);
+      double f5 = t_CST::freq(t_frequency::E5, 0);
       double a1 =   f1 * f1 / (f1 * f1 - f5 * f5);
       double a5 = - f5 * f5 / (f1 * f1 - f5 * f5);
@@ -259,5 +262,5 @@
   // Check the Mountpoint (source of corrections)
   // --------------------------------------------
-  if (!_opt->pppCorrMount.isEmpty()) {
+  if (!_opt->_corrMount.empty()) {
     QMutableListIterator<QString> itm(corrList);
     while (itm.hasNext()) {
@@ -265,5 +268,5 @@
       if (hlp.size() > 0) {
         QString mountpoint = hlp[hlp.size()-1];
-        if (mountpoint != _opt->pppCorrMount) {
+        if (mountpoint != QString(_opt->_corrMount.c_str())) {
           itm.remove();     
         }
@@ -323,5 +326,5 @@
   if (_eph.contains(prn)) {
 
-    if (_opt->pppMode && prn[0] != 'E') {
+    if (_opt->useOrbClkCorr() && prn[0] != 'E') {
       if (_corr.contains(prn)) {
         t_corr* cc = _corr.value(prn);
@@ -514,5 +517,5 @@
     // No corrections yet, skip the epoch
     // ----------------------------------
-    if (_opt->corrSync != 0.0 && !_corr_tt.valid()) {
+    if (_opt->useOrbClkCorr() && !_corr_tt.valid()) {
       return;
     }
@@ -520,5 +523,5 @@
     // Process the front epoch
     // -----------------------
-    if (_opt->corrSync == 0 || frontEpoData->tt - _corr_tt < _opt->corrSync) {
+    if (_opt->_corrWaitTime == 0.0 || frontEpoData->tt - _corr_tt >= _opt->_corrWaitTime) {
       processFrontEpoch();
       delete _epoData.front();
@@ -536,5 +539,5 @@
   QMutexLocker locker(&_mutex);
 
-  if (mountPoint != _opt->pppCorrMount) {
+  if (mountPoint != QString(_opt->_corrMount.c_str())) {
     return;
   }
Index: trunk/BNC/src/PPP_free/bncpppclient.h
===================================================================
--- trunk/BNC/src/PPP_free/bncpppclient.h	(revision 6054)
+++ trunk/BNC/src/PPP_free/bncpppclient.h	(revision 6055)
@@ -28,8 +28,11 @@
 #include <queue>
 #include "bncephuser.h"
-#include "RTCM/GPSDecoder.h"
+#include "GPSDecoder.h"
 
+
+namespace BNC_PPP {
+  
 class bncModel;
-class t_pppOpt;
+class t_pppOptions;
 
 class t_satData {
@@ -117,5 +120,5 @@
 
  public:
-  bncPPPclient(QByteArray staID, t_pppOpt* opt = 0, bool connectSlots = true);
+  bncPPPclient(QByteArray staID, t_pppOptions* opt = 0, bool connectSlots = true);
   ~bncPPPclient();
   void putNewObs(const t_obs& pp);
@@ -123,5 +126,5 @@
                          ColumnVector& vv);
   QByteArray staID() const {return _staID;}
-  const t_pppOpt* opt() const {return _opt;}
+  const t_pppOptions* opt() const {return _opt;}
   void emitNewMessage(QByteArray msg, bool showOnScreen) {
     emit newMessage(msg, showOnScreen);
@@ -160,5 +163,5 @@
   t_irc cmpToT(t_satData* satData);
 
-  t_pppOpt*               _opt;
+  t_pppOptions*           _opt;
   bool                    _optOwner;
   QByteArray              _staID;
@@ -171,3 +174,5 @@
 };
 
+}
+
 #endif
