[elvystrac] r2225 - fix of timestamper

  • From: elvys@xxxxxxxxxxxxxxxxxxxxxx
  • To: elvystrac@xxxxxxxxxxxxx
  • Date: Wed, 7 Apr 2010 08:58:56 +0200

Author: JirkaH
Date: 2010-04-07 08:58:56 +0200 (Wed, 07 Apr 2010)
New Revision: 2225

Modified:
   trunk/client/elvys-client/src/Makefile
   trunk/client/elvys-client/src/timestamper.cpp
Log:
fix of timestamper


Modified: trunk/client/elvys-client/src/Makefile
===================================================================
--- trunk/client/elvys-client/src/Makefile      2010-04-02 18:56:01 UTC (rev 
2224)
+++ trunk/client/elvys-client/src/Makefile      2010-04-07 06:58:56 UTC (rev 
2225)
@@ -1,6 +1,6 @@
 #############################################################################
 # Makefile for building: ../bin/elvys-client
-# Generated by qmake (2.01a) (Qt 4.6.2) on: Sat Mar 27 19:11:38 2010
+# Generated by qmake (2.01a) (Qt 4.6.2) on: Wed Apr 7 08:32:53 2010
 # Project:  src.pro
 # Template: app
 # Command: /usr/bin/qmake -spec /usr/share/qt4/mkspecs/linux-g++ -unix 
CONFIG+=release -o Makefile src.pro

Modified: trunk/client/elvys-client/src/timestamper.cpp
===================================================================
--- trunk/client/elvys-client/src/timestamper.cpp       2010-04-02 18:56:01 UTC 
(rev 2224)
+++ trunk/client/elvys-client/src/timestamper.cpp       2010-04-07 06:58:56 UTC 
(rev 2225)
@@ -8,6 +8,7 @@
        _fileName = fileN;
        _period = 300 * 1000;
        timer = new QTimer();
+       connect(timer, SIGNAL(timeout()), this, SLOT(touchFile()));
 }
 
 
@@ -91,6 +92,7 @@
        if (! file->open(QIODevice::Append) )  {
                qWarning() << "Cannot open file specified. Error: " << 
file->errorString();
        } else {
+               
file->write((QString("%1").arg(QDateTime::currentDateTime().toTime_t()) + 
"\n").toLocal8Bit().data());
                file->close();
        }
 


Other related posts:

  • » [elvystrac] r2225 - fix of timestamper - elvys