diff options
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 |