summaryrefslogtreecommitdiffstats
path: root/knewsticker/common/newsengine.h
diff options
context:
space:
mode:
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