summaryrefslogtreecommitdiffstats
path: root/src/fetch/imdbfetcher.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/fetch/imdbfetcher.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-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/fetch/imdbfetcher.h')
-rw-r--r--src/fetch/imdbfetcher.h87
1 files changed, 44 insertions, 43 deletions
diff --git a/src/fetch/imdbfetcher.h b/src/fetch/imdbfetcher.h
index 3dc19f2..fd68b62 100644
--- a/src/fetch/imdbfetcher.h
+++ b/src/fetch/imdbfetcher.h
@@ -21,14 +21,14 @@
#include <kurl.h>
#include <kio/job.h>
-#include <qcstring.h> // for QByteArray
-#include <qmap.h>
-#include <qguardedptr.h>
+#include <tqcstring.h> // for TQByteArray
+#include <tqmap.h>
+#include <tqguardedptr.h>
class KLineEdit;
class KIntSpinBox;
-class QCheckBox;
-class QRegExpr;
+class TQCheckBox;
+class TQRegExpr;
namespace Tellico {
namespace Fetch {
@@ -38,16 +38,17 @@ namespace Tellico {
*/
class IMDBFetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
public:
- IMDBFetcher(QObject* parent, const char* name=0);
+ IMDBFetcher(TQObject* tqparent, const char* name=0);
/**
*/
virtual ~IMDBFetcher();
- virtual QString source() const;
+ virtual TQString source() const;
virtual bool isSearching() const { return m_started; }
- virtual void search(FetchKey key, const QString& value);
+ virtual void search(FetchKey key, const TQString& value);
virtual void continueSearch();
// imdb can search title, person
virtual bool canSearch(FetchKey k) const { return k == Title || k == Person; }
@@ -59,77 +60,77 @@ public:
virtual void updateEntry(Data::EntryPtr entry);
- virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const;
+ virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const;
static StringMap customFields();
class ConfigWidget : public Fetch::ConfigWidget {
public:
- ConfigWidget(QWidget* parent_, const IMDBFetcher* fetcher = 0);
+ ConfigWidget(TQWidget* tqparent_, const IMDBFetcher* fetcher = 0);
virtual void saveConfig(KConfigGroup& config);
- virtual QString preferredName() const;
+ virtual TQString preferredName() const;
private:
KLineEdit* m_hostEdit;
- QCheckBox* m_fetchImageCheck;
+ TQCheckBox* m_fetchImageCheck;
KIntSpinBox* m_numCast;
};
friend class ConfigWidget;
- static QString defaultName();
+ static TQString defaultName();
private slots:
- void slotData(KIO::Job* job, const QByteArray& data);
+ void slotData(KIO::Job* job, const TQByteArray& data);
void slotComplete(KIO::Job* job);
void slotRedirection(KIO::Job* job, const KURL& toURL);
private:
static void initRegExps();
- static QRegExp* s_tagRx;
- static QRegExp* s_anchorRx;
- static QRegExp* s_anchorTitleRx;
- static QRegExp* s_anchorNameRx;
- static QRegExp* s_titleRx;
-
- void doTitle(const QString& s, Data::EntryPtr e);
- void doRunningTime(const QString& s, Data::EntryPtr e);
- void doAspectRatio(const QString& s, Data::EntryPtr e);
- void doAlsoKnownAs(const QString& s, Data::EntryPtr e);
- void doPlot(const QString& s, Data::EntryPtr e, const KURL& baseURL_);
- void doPerson(const QString& s, Data::EntryPtr e,
- const QString& imdbHeader, const QString& fieldName);
- void doCast(const QString& s, Data::EntryPtr e, const KURL& baseURL_);
- void doLists(const QString& s, Data::EntryPtr e);
- void doRating(const QString& s, Data::EntryPtr e);
- void doCover(const QString& s, Data::EntryPtr e, const KURL& baseURL);
+ static TQRegExp* s_tagRx;
+ static TQRegExp* s_anchorRx;
+ static TQRegExp* s_anchorTitleRx;
+ static TQRegExp* s_anchorNameRx;
+ static TQRegExp* s_titleRx;
+
+ void doTitle(const TQString& s, Data::EntryPtr e);
+ void doRunningTime(const TQString& s, Data::EntryPtr e);
+ void doAspectRatio(const TQString& s, Data::EntryPtr e);
+ void doAlsoKnownAs(const TQString& s, Data::EntryPtr e);
+ void doPlot(const TQString& s, Data::EntryPtr e, const KURL& baseURL_);
+ void doPerson(const TQString& s, Data::EntryPtr e,
+ const TQString& imdbHeader, const TQString& fieldName);
+ void doCast(const TQString& s, Data::EntryPtr e, const KURL& baseURL_);
+ void doLists(const TQString& s, Data::EntryPtr e);
+ void doRating(const TQString& s, Data::EntryPtr e);
+ void doCover(const TQString& s, Data::EntryPtr e, const KURL& baseURL);
void parseSingleTitleResult();
void parseSingleNameResult();
void parseMultipleTitleResults();
- void parseTitleBlock(const QString& str);
+ void parseTitleBlock(const TQString& str);
void parseMultipleNameResults();
- Data::EntryPtr parseEntry(const QString& str);
+ Data::EntryPtr parseEntry(const TQString& str);
- QByteArray m_data;
- QMap<int, Data::EntryPtr> m_entries;
- QMap<int, KURL> m_matches;
- QGuardedPtr<KIO::Job> m_job;
+ TQByteArray m_data;
+ TQMap<int, Data::EntryPtr> m_entries;
+ TQMap<int, KURL> m_matches;
+ TQGuardedPtr<KIO::Job> m_job;
FetchKey m_key;
- QString m_value;
+ TQString m_value;
bool m_started;
bool m_fetchImages;
- QString m_host;
+ TQString m_host;
int m_numCast;
KURL m_url;
bool m_redirected;
uint m_limit;
- QStringList m_fields;
+ TQStringList m_fields;
- QString m_popularTitles;
- QString m_exactTitles;
- QString m_partialTitles;
+ TQString m_popularTitles;
+ TQString m_exactTitles;
+ TQString m_partialTitles;
enum TitleBlock { Unknown = 0, Popular = 1, Exact = 2, Partial = 3, SinglePerson = 4};
TitleBlock m_currentTitleBlock;
int m_countOffset;