summaryrefslogtreecommitdiffstats
path: root/src/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.h')
-rwxr-xr-xsrc/logger.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/logger.h b/src/logger.h
index c8d0076..53fbbc2 100755
--- a/src/logger.h
+++ b/src/logger.h
@@ -3,11 +3,11 @@
#ifndef LOGGER_H
#define LOGGER_H
-#include <qobject.h>
-#include <qstringlist.h>
-#include <qdatetime.h>
-#include <qfile.h>
-#include <qtextstream.h>
+#include <tqobject.h>
+#include <tqstringlist.h>
+#include <tqdatetime.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
/**
@@ -28,14 +28,14 @@ public:
*/
virtual ~LoggerItem();
- QString filename;
+ TQString filename;
int id;
- QStringList data;
+ TQStringList data;
bool completed;
int state; // 0 = ok, -1 = failed, 1 = other (soundKonverter)
- QTime time;
- QFile file;
- QTextStream textStream;
+ TQTime time;
+ TQFile file;
+ TQTextStream textStream;
};
@@ -45,9 +45,10 @@ public:
* @author Daniel Faust <hessijames@gmail.com>
* @version 0.3
*/
-class Logger : public QObject
+class Logger : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/**
* Constructor
@@ -64,12 +65,12 @@ public:
/**
* Creates a new logger item and returns the id of it, @p filename is added to the new logger item
*/
- int registerProcess( const QString& filename );
+ int registerProcess( const TQString& filename );
/**
* Adds the string @p data to the data of the logger item with id @p id
*/
- void log( int id, const QString& data );
+ void log( int id, const TQString& data );
/**
* Returns the logger item with id @p id
@@ -79,11 +80,11 @@ public:
/**
* Returns a list of all logger items
*/
- QValueList<LoggerItem*> getLogs();
+ TQValueList<LoggerItem*> getLogs();
private:
/** the list of all logger items */
- QValueList<LoggerItem*> processes;
+ TQValueList<LoggerItem*> processes;
/** returns an unused random id */
int getNewID();