diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:38:25 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-04 21:38:25 +0000 |
commit | f22f5c856d0ee7ec953825828bba094f14c9cade (patch) | |
tree | 1c89a4d4c420bce13c002b650e610bff026f6d06 /src/aptcache.h | |
parent | 0bceb5251f3c826f8fc4ee021ab76ee29f1dfdd7 (diff) | |
download | tdeio-apt-f22f5c856d0ee7ec953825828bba094f14c9cade.tar.gz tdeio-apt-f22f5c856d0ee7ec953825828bba094f14c9cade.zip |
TQt4 port kio-apt
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kio-apt@1239302 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/aptcache.h')
-rw-r--r-- | src/aptcache.h | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/src/aptcache.h b/src/aptcache.h index c209507..08636e5 100644 --- a/src/aptcache.h +++ b/src/aptcache.h @@ -10,9 +10,9 @@ #ifndef KIOAPT_APTCACHE_H #define KIOAPT_APTCACHE_H -#include <qvaluelist.h> -#include <qmap.h> -#include <qstring.h> +#include <tqvaluelist.h> +#include <tqmap.h> +#include <tqstring.h> #include <kprocess.h> class AptProtocol; @@ -20,19 +20,20 @@ class AptProtocol; /** @author Sylvain Joyeux */ -class AptCache : public QObject { +class AptCache : public TQObject { Q_OBJECT + TQ_OBJECT - typedef void (AptCache::*ReceiveMethod) (const QStringList& lines); + typedef void (AptCache::*ReceiveMethod) (const TQStringList& lines); ReceiveMethod m_receive; // KProcIO messes the stderr and the stdout lines :( KProcess m_process; - QString m_received_out, m_received_err; + TQString m_received_out, m_received_err; - QString m_attribute; + TQString m_attribute; - QString m_installed, m_candidate; + TQString m_installed, m_candidate; private slots: void receivedStdErr(KProcess* process, char* buffer, int len); @@ -40,21 +41,21 @@ private slots: private: void clear(); - void receiveSearch(const QStringList& lines); - void receiveShow(const QStringList& lines); - void receivePolicy(const QStringList& lines); - void parse_pkgfield(const QString& data); + void receiveSearch(const TQStringList& lines); + void receiveShow(const TQStringList& lines); + void receivePolicy(const TQStringList& lines); + void parse_pkgfield(const TQString& data); public: AptCache(); ~AptCache(); - bool search(const QString& expression); - bool show(const QString& package); - bool policy(const QString& package); + bool search(const TQString& expression); + bool show(const TQString& package); + bool policy(const TQString& package); - QString policy_installed() const; - QString policy_candidate() const; + TQString policy_installed() const; + TQString policy_candidate() const; signals: /** Tags: @@ -75,7 +76,7 @@ signals: * file (file_name) [for dpkg] * end */ - void token(const QString& tag, const QString& value); + void token(const TQString& tag, const TQString& value); }; #endif |