diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-01 23:15:51 +0000 |
commit | 6b1b516f42036cf9eff691dba3fd6e9eab82a7e1 (patch) | |
tree | 6830f75fd57d0fac7e33c097ee98b210e90c5239 /src/logger.h | |
parent | 6318b8bb3ef964cfa99ba454a2630779cc9ac3ec (diff) | |
download | soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.tar.gz soundkonverter-6b1b516f42036cf9eff691dba3fd6e9eab82a7e1.zip |
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
Diffstat (limited to 'src/logger.h')
-rwxr-xr-x | src/logger.h | 31 |
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(); |