summaryrefslogtreecommitdiffstats
path: root/src/fetch/yahoofetcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/yahoofetcher.h')
-rw-r--r--src/fetch/yahoofetcher.h31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/fetch/yahoofetcher.h b/src/fetch/yahoofetcher.h
index 7ff5733..d7b2082 100644
--- a/src/fetch/yahoofetcher.h
+++ b/src/fetch/yahoofetcher.h
@@ -22,8 +22,8 @@ namespace Tellico {
#include "configwidget.h"
#include "../datavectors.h"
-#include <qcstring.h> // for QByteArray
-#include <qguardedptr.h>
+#include <tqcstring.h> // for TQByteArray
+#include <tqguardedptr.h>
namespace KIO {
class Job;
@@ -37,20 +37,21 @@ namespace Tellico {
*/
class YahooFetcher : public Fetcher {
Q_OBJECT
+ TQ_OBJECT
public:
/**
*/
- YahooFetcher(QObject* parent, const char* name = 0);
+ YahooFetcher(TQObject* tqparent, const char* name = 0);
/**
*/
virtual ~YahooFetcher();
/**
*/
- 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();
virtual bool canSearch(FetchKey k) const { return k == Title || k == Person; }
virtual void stop();
@@ -64,39 +65,39 @@ public:
/**
* Returns a widget for modifying the fetcher's config.
*/
- virtual Fetch::ConfigWidget* configWidget(QWidget* parent) const;
+ virtual Fetch::ConfigWidget* configWidget(TQWidget* tqparent) const;
class ConfigWidget : public Fetch::ConfigWidget {
public:
- ConfigWidget(QWidget* parent_, const YahooFetcher* fetcher = 0);
+ ConfigWidget(TQWidget* tqparent_, const YahooFetcher* fetcher = 0);
virtual void saveConfig(KConfigGroup&) {}
- virtual QString preferredName() const;
+ virtual TQString preferredName() const;
};
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);
private:
void initXSLTHandler();
void doSearch();
void getTracks(Data::EntryPtr entry);
- QString insertValue(const QString& str, const QString& value, uint pos);
+ TQString insertValue(const TQString& str, const TQString& value, uint pos);
XSLTHandler* m_xsltHandler;
int m_limit;
int m_start;
int m_total;
- QByteArray m_data;
- QMap<int, Data::EntryPtr> m_entries; // they get modified after collection is created, so can't be const
- QGuardedPtr<KIO::Job> m_job;
+ TQByteArray m_data;
+ TQMap<int, Data::EntryPtr> m_entries; // they get modified after collection is created, so can't be const
+ TQGuardedPtr<KIO::Job> m_job;
FetchKey m_key;
- QString m_value;
+ TQString m_value;
bool m_started;
};