diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 06:40:27 +0000 |
commit | 2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch) | |
tree | 18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/translators/tellicoimporter.h | |
parent | 1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff) | |
download | tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip |
TQt4 port tellico
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/translators/tellicoimporter.h')
-rw-r--r-- | src/translators/tellicoimporter.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/src/translators/tellicoimporter.h b/src/translators/tellicoimporter.h index d4c6e13..a794c8a 100644 --- a/src/translators/tellicoimporter.h +++ b/src/translators/tellicoimporter.h @@ -14,7 +14,7 @@ #ifndef TELLICO_IMPORTER_H #define TELLICO_IMPORTER_H -class QBuffer; +class TQBuffer; class KZip; class KArchiveDirectory; @@ -22,7 +22,7 @@ class KArchiveDirectory; #include "../datavectors.h" #include "../stringset.h" -class QDomElement; +class TQDomElement; namespace Tellico { namespace Import { @@ -34,6 +34,7 @@ namespace Tellico { */ class TellicoImporter : public DataImporter { Q_OBJECT + TQ_OBJECT public: enum Format { Unknown, Error, XML, Zip, Cancel }; @@ -47,7 +48,7 @@ public: * * @param text The text */ - TellicoImporter(const QString& text); + TellicoImporter(const TQString& text); virtual ~TellicoImporter(); /** @@ -61,7 +62,7 @@ public: Format format() const { return m_format; } bool hasImages() const { return m_hasImages; } - bool loadImage(const QString& id_); + bool loadImage(const TQString& id_); static bool loadAllImages(const KURL& url); @@ -71,26 +72,26 @@ public slots: private: static bool versionConversion(uint from, uint to); - void loadXMLData(const QByteArray& data, bool loadImages); + void loadXMLData(const TQByteArray& data, bool loadImages); void loadZipData(); - void readField(uint syntaxVersion, const QDomElement& elem); - void readEntry(uint syntaxVersion, const QDomElement& elem); - void readImage(const QDomElement& elem, bool loadImage); - void readFilter(const QDomElement& elem); - void readBorrower(const QDomElement& elem); + void readField(uint syntaxVersion, const TQDomElement& elem); + void readEntry(uint syntaxVersion, const TQDomElement& elem); + void readImage(const TQDomElement& elem, bool loadImage); + void readFilter(const TQDomElement& elem); + void readBorrower(const TQDomElement& elem); void addDefaultFilters(); Data::CollPtr m_coll; bool m_loadAllImages; - QString m_namespace; + TQString m_namespace; Format m_format; bool m_modified : 1; bool m_cancelled : 1; bool m_hasImages : 1; StringSet m_images; - QBuffer* m_buffer; + TQBuffer* m_buffer; KZip* m_zip; const KArchiveDirectory* m_imgDir; }; |