Index: /trunk/BNC/src/PPP/pppRun.cpp
===================================================================
--- /trunk/BNC/src/PPP/pppRun.cpp	(revision 5888)
+++ /trunk/BNC/src/PPP/pppRun.cpp	(revision 5889)
@@ -92,4 +92,9 @@
   }
   else {
+    _rnxObsFile = 0;
+    _rnxNavFile = 0;
+    _corrFile   = 0;
+    _maxSpeed   = 0;
+    _speed      = 0;
     processFiles();
   }
@@ -343,5 +348,5 @@
 
   try {
-    _rnxObsFile = new t_rnxObsFile(_opt->obsFileName, t_rnxObsFile::input);
+    _rnxObsFile = new t_rnxObsFile(QString(_opt->_rinexObs.c_str()), t_rnxObsFile::input);
   }
   catch (...) {
@@ -351,11 +356,10 @@
   }
 
-  _rnxNavFile = new t_rnxNavFile(_opt->navFileName, t_rnxNavFile::input);
-  _pppClient  = new bncPPPclient("POST", _opt, false);
-
-  if (!_opt->corrFileName.isEmpty()) {
-    _corrFile = new t_corrFile(_opt->corrFileName);
+  _rnxNavFile = new t_rnxNavFile(QString(_opt->_rinexNav.c_str()), t_rnxNavFile::input);
+
+  if (!_opt->_corrFile.empty()) {
+    _corrFile = new t_corrFile(QString(_opt->_corrFile.c_str()));
     connect(_corrFile, SIGNAL(newCorrections(QStringList)),
-            _pppClient, SLOT(slotNewCorrections(QStringList)));
+            this, SLOT(slotNewCorrections(QStringList)));
   }
 
@@ -371,5 +375,5 @@
       if (_speed < _maxSpeed) {
         double sleepTime = 0.02 * _maxSpeed / _speed;
-        msleep(sleepTime*1.e3);
+        //// msleep(sleepTime*1.e3);
       }
     }
@@ -386,16 +390,9 @@
     const QMap<QString, int>* corrIODs = _corrFile ? &_corrFile->corrIODs() : 0;
     while ( (eph = _rnxNavFile->getNextEph(epo->tt, corrIODs)) != 0 ) {
-      if (_pppClient->putNewEph(eph) != success) {
-        delete eph; eph = 0;
-      }
+      _pppClient->putEphemeris(eph);
+      delete eph; eph = 0;
     }
 
     for (unsigned iObs = 0; iObs < epo->rnxSat.size(); iObs++) {
-
-      if (_isToBeDeleted) {
-        QThread::exit(0);
-        return;
-      }
-
       const t_rnxObsFile::t_rnxSat& rnxSat = epo->rnxSat[iObs];
     
Index: /trunk/BNC/src/PPP/pppRun.h
===================================================================
--- /trunk/BNC/src/PPP/pppRun.h	(revision 5888)
+++ /trunk/BNC/src/PPP/pppRun.h	(revision 5889)
@@ -28,4 +28,6 @@
   void newPosition(bncTime time, QVector<double> xx);
   void newNMEAstr(QByteArray str);
+  void progress(int);
+  void finished();
 
  public slots:
@@ -35,4 +37,5 @@
   void slotNewCorrections(QStringList corrList);
   void slotNewObs(QByteArray staID, QList<t_obs> obsList);
+  void slotSetSpeed(int speed);
 
  private:
