summaryrefslogtreecommitdiffstats
path: root/src/parsers/parsers.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:38:25 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-04 21:38:25 +0000
commitf22f5c856d0ee7ec953825828bba094f14c9cade (patch)
tree1c89a4d4c420bce13c002b650e610bff026f6d06 /src/parsers/parsers.h
parent0bceb5251f3c826f8fc4ee021ab76ee29f1dfdd7 (diff)
downloadtdeio-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/parsers/parsers.h')
-rw-r--r--src/parsers/parsers.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/parsers/parsers.h b/src/parsers/parsers.h
index 26e0113..904ff00 100644
--- a/src/parsers/parsers.h
+++ b/src/parsers/parsers.h
@@ -11,13 +11,13 @@
#ifndef PARSERS_H
#define PARSERS_H
-#include <qstring.h>
+#include <tqstring.h>
namespace KIO
{
class SlaveBase;
}
-class QHtmlStream;
+class TQHtmlStream;
class AptProtocol;
/** Here are defined the functional objects that takes the tokens
@@ -29,20 +29,20 @@ namespace Parsers
protected:
int m_result_count;
- static void attribute_begin(QHtmlStream& stream, const QString& text);
- static void attribute_end(QHtmlStream& stream);
+ static void attribute_begin(TQHtmlStream& stream, const TQString& text);
+ static void attribute_end(TQHtmlStream& stream);
public:
Parser();
virtual ~Parser();
int result_count() const { return m_result_count; }
- virtual void operator () (AptProtocol* slave, const QString& tag, const QString& value) = 0;
+ virtual void operator () (AptProtocol* slave, const TQString& tag, const TQString& value) = 0;
};
class Search : public Parser
{
public:
- void operator () (AptProtocol* slave, const QString& tag, const QString& value);
+ void operator () (AptProtocol* slave, const TQString& tag, const TQString& value);
};
class List : public Parser
@@ -50,42 +50,42 @@ namespace Parsers
bool m_links;
public:
List(bool show_links);
- void operator () (AptProtocol* slave, const QString& tag, const QString& value);
+ void operator () (AptProtocol* slave, const TQString& tag, const TQString& value);
};
class FileSearch : public Parser
{
public:
- void operator () (AptProtocol* slave, const QString& tag, const QString& value);
+ void operator () (AptProtocol* slave, const TQString& tag, const TQString& value);
};
class Show : public Parser
{
- QString m_package, m_installed;
+ TQString m_package, m_installed;
bool m_act;
public:
- Show(const QString& package, const QString& installed, bool act);
- void operator () (AptProtocol* slave, const QString& tag, const QString& value);
+ Show(const TQString& package, const TQString& installed, bool act);
+ void operator () (AptProtocol* slave, const TQString& tag, const TQString& value);
};
class Policy : public Parser
{
- QString m_package, m_installed;
+ TQString m_package, m_installed;
bool m_has_adept_batch;
bool m_act;
public:
- Policy(const QString& package, bool act);
- QString getInstalled() const { return m_installed; }
- void operator () (AptProtocol* slave, const QString& tag, const QString& value);
+ Policy(const TQString& package, bool act);
+ TQString getInstalled() const { return m_installed; }
+ void operator () (AptProtocol* slave, const TQString& tag, const TQString& value);
};
- void operator << (KIO::SlaveBase& slave, const QCString& string);
- void operator << (KIO::SlaveBase& slave, const QString& string);
+ void operator << (KIO::SlaveBase& slave, const TQCString& string);
+ void operator << (KIO::SlaveBase& slave, const TQString& string);
void operator << (KIO::SlaveBase& slave, const char* string);
- QString mangle_version(QString version);
+ TQString mangle_version(TQString version);
}
#endif