Index: trunk/BNC/bncgetthread.cpp
===================================================================
--- trunk/BNC/bncgetthread.cpp	(revision 1766)
+++ trunk/BNC/bncgetthread.cpp	(revision 1768)
@@ -650,2 +650,28 @@
   }
 }
+
+//
+//////////////////////////////////////////////////////////////////////////////
+void bncGetThread::slotNewEphGPS(gpsephemeris gpseph) {
+  RTCM2Decoder* decoder = dynamic_cast<RTCM2Decoder*>(_decoder);
+
+  if ( decoder ) {
+    QMutexLocker locker(&_mutex);
+  
+    string storedPRN;
+    vector<int> IODs;
+    
+    if ( decoder->storeEph(gpseph, storedPRN, IODs) ) {
+#ifdef DEBUG_RTCM2_2021
+      QString msg = _staID + QString(": stored eph %1 IODs").arg(storedPRN.c_str());
+      
+      for (unsigned ii = 0; ii < IODs.size(); ii++) {
+        msg += QString(" %1").arg(IODs[ii],4);
+      }
+      
+      emit(newMessage(msg.toAscii()));
+#endif
+    }
+  }
+}
+
Index: trunk/BNC/bncgetthread.h
===================================================================
--- trunk/BNC/bncgetthread.h	(revision 1766)
+++ trunk/BNC/bncgetthread.h	(revision 1768)
@@ -74,4 +74,7 @@
    virtual void run();
 
+ public slots:
+   void slotNewEphGPS(gpsephemeris gpseph);
+
  private slots:
    void slotSerialReadyRead();
@@ -107,4 +110,5 @@
    QFile*          _serialOutFile;
    t_serialNMEA    _serialNMEA;
+   QMutex          _mutex;
 };
 
