From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: TQt4 port ktorrent This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- plugins/rssfeed/rssfeed.h | 51 ++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'plugins/rssfeed/rssfeed.h') diff --git a/plugins/rssfeed/rssfeed.h b/plugins/rssfeed/rssfeed.h index 9bcd2f7..279862b 100644 --- a/plugins/rssfeed/rssfeed.h +++ b/plugins/rssfeed/rssfeed.h @@ -20,12 +20,12 @@ #ifndef RSSFEED_H #define RSSFEED_H -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include @@ -45,16 +45,17 @@ namespace kt * */ - class RssFeed : public QObject + class RssFeed : public TQObject { Q_OBJECT + TQ_OBJECT public: /** * Default constructor. */ - RssFeed(QObject * parent = 0); - RssFeed(KURL feedUrl, QString title = "", bool active = false, int articleAge = 3, bool ignoreTTL = false, QTime autoRefresh = QTime()); + RssFeed(TQObject * tqparent = 0); + RssFeed(KURL feedUrl, TQString title = "", bool active = false, int articleAge = 3, bool ignoreTTL = false, TQTime autoRefresh = TQTime()); RssFeed(const RssFeed &other); RssFeed &operator=(const RssFeed &other); ~RssFeed(); @@ -62,8 +63,8 @@ namespace kt KURL feedUrl() const { return m_feedUrl; } bool active() const { return m_active; } int articleAge() const { return m_articleAge; } - QString title() const { return m_title; } - QTime autoRefresh() const { return m_autoRefresh; } + TQString title() const { return m_title; } + TQTime autoRefresh() const { return m_autoRefresh; } bool ignoreTTL() const { return m_ignoreTTL; } @@ -72,28 +73,28 @@ namespace kt public slots: void refreshFeed(); - void feedLoaded(Loader *feedLoader, Document doc, Status status); + void feedLoaded(Loader *feedLoader, Document doc, tqStatus status); void clearArticles(); void setFeedUrl( const KURL& url ); - void setFeedUrl( const QString& url ); + void setFeedUrl( const TQString& url ); void setActive( bool active ); void setArticleAge( int articleAge ); - void setTitle( const QString& title ); - void setAutoRefresh( const QTime& autoRefresh ); + void setTitle( const TQString& title ); + void setAutoRefresh( const TQTime& autoRefresh ); void setIgnoreTTL( bool ignoreTTL ); void saveArticles(); - void setDownloaded(QString link, int downloaded); + void setDownloaded(TQString link, int downloaded); signals: void feedUrlChanged( const KURL& url ); void activeChanged( bool active ); void articleAgeChanged( int articleAge ); - void titleChanged( const QString& title ); - void updateTitle( const QString& title ); - void autoRefreshChanged( const QTime& autoRefresh ); + void titleChanged( const TQString& title ); + void updateTitle( const TQString& title ); + void autoRefreshChanged( const TQTime& autoRefresh ); void ignoreTTLChanged( bool ignoreTTL ); void articlesChanged( const RssArticle::List& articles ); @@ -104,23 +105,23 @@ namespace kt KURL m_feedUrl; bool m_active; int m_articleAge; - QString m_title; - QTime m_autoRefresh; + TQString m_title; + TQTime m_autoRefresh; bool m_ignoreTTL; RssArticle::List m_articles; - QTimer refreshTimer; + TQTimer refreshTimer; bool feedLoading; - QString getFilename(); + TQString getFilename(); void initialize(); void startFeed(); void cleanArticles(); void loadArticles(); }; - QDataStream &operator<<( QDataStream &out, const RssFeed &feed ); - QDataStream &operator>>( QDataStream &in, RssFeed &feed ); + TQDataStream &operator<<( TQDataStream &out, const RssFeed &feed ); + TQDataStream &operator>>( TQDataStream &in, RssFeed &feed ); } -- cgit v1.2.1