From 6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 23:15:51 +0000 Subject: TQt4 port soundkonverter This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1239038 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/logger.h | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) (limited to 'src/logger.h') 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 -#include -#include -#include -#include +#include +#include +#include +#include +#include /** @@ -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 * @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 getLogs(); + TQValueList getLogs(); private: /** the list of all logger items */ - QValueList processes; + TQValueList processes; /** returns an unused random id */ int getNewID(); -- cgit v1.2.1