Index: trunk/GnssCenter/monitor/thriftclient.cpp
===================================================================
--- trunk/GnssCenter/monitor/thriftclient.cpp	(revision 5478)
+++ trunk/GnssCenter/monitor/thriftclient.cpp	(revision 5479)
@@ -58,8 +58,8 @@
   } 
   catch (TException& e) {
-    cerr << "Caught an exception generated by Thrift: " << e.what() << endl;
+    emit message(e.what());
   } 
   catch (...) {
-    cerr << "Unknown exception" << endl;
+    emit message("Unknown exception");
   }
 }
@@ -80,6 +80,5 @@
 void t_thriftHandler::
 handleSatelliteXYZ(const vector<SatelliteXYZ>& svXYZList) {
-  cout.setf(ios::fixed);
-  for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
+//  for (unsigned ii = 0; ii < svXYZList.size(); ii++) {
 //    const SatelliteXYZ& sat = svXYZList[ii];
 //    cout << unsigned(sat.ID) << ' '
@@ -87,6 +86,5 @@
 //         << setprecision(3) << sat.xyz.y << ' '
 //         << setprecision(3) << sat.xyz.z << endl;
-  }
-//  cout << endl;
+//  }
 }
 
Index: trunk/GnssCenter/monitor/thriftclient.h
===================================================================
--- trunk/GnssCenter/monitor/thriftclient.h	(revision 5478)
+++ trunk/GnssCenter/monitor/thriftclient.h	(revision 5479)
@@ -66,4 +66,5 @@
 
 class t_thriftClient : public QThread {
+ Q_OBJECT
  public:
   t_thriftClient(t_monitor* parent, const QString& host, int port);
@@ -74,5 +75,6 @@
     _stop = true;
   }
-
+ signals:
+  void message(QByteArray msg);
  private:
   QMutex      _mutex;
