summaryrefslogtreecommitdiffstats
path: root/knewsticker/common/newsengine.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /knewsticker/common/newsengine.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewsticker/common/newsengine.h')
-rw-r--r--knewsticker/common/newsengine.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/knewsticker/common/newsengine.h b/knewsticker/common/newsengine.h
index 342dd7fe..430efff7 100644
--- a/knewsticker/common/newsengine.h
+++ b/knewsticker/common/newsengine.h
@@ -18,9 +18,9 @@
#include "configiface.h"
#include "xmlnewsaccess.h"
-#include <qptrlist.h>
-#include <qmap.h>
-#include <qpixmap.h>
+#include <tqptrlist.h>
+#include <tqmap.h>
+#include <tqpixmap.h>
#include <kio/job.h>
#include <klocale.h>
@@ -40,9 +40,9 @@ class KDE_EXPORT Article : public XMLNewsArticle, public KShared
{
public:
typedef KSharedPtr<Article> Ptr;
- typedef QValueList<Ptr> List;
+ typedef TQValueList<Ptr> List;
- Article(NewsSourceBase *, const QString & = QString::null,
+ Article(NewsSourceBase *, const TQString & = TQString::null,
const KURL & = KURL());
bool operator==(const Article &other) const;
@@ -68,13 +68,13 @@ class KDE_EXPORT NewsSourceBase : public XMLNewsSource, public KShared
Reference, Science, Shopping, Society, Sports, Misc, Magazines
};
struct Data {
- Data(const QString &_name = I18N_NOOP("Unknown"),
- const QString &_sourceFile = QString::null,
- const QString &_icon = QString::null,
+ Data(const TQString &_name = I18N_NOOP("Unknown"),
+ const TQString &_sourceFile = TQString::null,
+ const TQString &_icon = TQString::null,
const Subject _subject = Computers,
unsigned int _maxArticles = 10,
bool _enabled = true, bool _isProgram = false,
- const QString &_language = QString::fromLatin1("C"))
+ const TQString &_language = TQString::fromLatin1("C"))
{
name = _name;
sourceFile = _sourceFile;
@@ -86,32 +86,32 @@ class KDE_EXPORT NewsSourceBase : public XMLNewsSource, public KShared
language = _language;
}
- QString name;
- QString sourceFile;
- QString icon;
+ TQString name;
+ TQString sourceFile;
+ TQString icon;
Subject subject;
unsigned int maxArticles;
bool enabled;
bool isProgram;
- QString language;
+ TQString language;
};
typedef KSharedPtr<NewsSourceBase> Ptr;
- typedef QValueList<Ptr> List;
+ typedef TQValueList<Ptr> List;
NewsSourceBase(const Data &, ConfigIface *);
- virtual QString newsSourceName() const;
- QString sourceFile() const { return m_data.sourceFile; }
+ virtual TQString newsSourceName() const;
+ TQString sourceFile() const { return m_data.sourceFile; }
unsigned int maxArticles() const { return m_data.maxArticles; }
- QPixmap icon() const { return m_icon; }
+ TQPixmap icon() const { return m_icon; }
void getIcon();
Data data() const { return m_data; }
Article::List articles() const { return m_articles; }
- Article::Ptr article(const QString &);
+ Article::Ptr article(const TQString &);
- static QString subjectText(const Subject);
+ static TQString subjectText(const Subject);
signals:
void newNewsAvailable(const NewsSourceBase::Ptr &, bool);
@@ -122,11 +122,11 @@ class KDE_EXPORT NewsSourceBase : public XMLNewsSource, public KShared
protected slots:
void slotProcessArticles(XMLNewsSource *, bool);
- void slotGotIcon(const KURL &, const QPixmap &);
+ void slotGotIcon(const KURL &, const TQPixmap &);
protected:
Data m_data;
- QPixmap m_icon;
+ TQPixmap m_icon;
ConfigAccess *m_cfg;
NewsIconMgr *m_newsIconMgr;
Article::List m_articles;
@@ -194,10 +194,10 @@ class KDE_EXPORT ProgramNewsSource : public NewsSourceBase
void slotProgramExited(KProcess *);
private:
- static QString errorMessage(const ErrorCode);
+ static TQString errorMessage(const ErrorCode);
KProcess *m_program;
- QBuffer *m_programOutput;
+ TQBuffer *m_programOutput;
};
#endif // NEWSENGINE_H