diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/articlefilter.h | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/articlefilter.h')
-rw-r--r-- | akregator/src/articlefilter.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/akregator/src/articlefilter.h b/akregator/src/articlefilter.h index 6acdcbc4f..9a9b4a76d 100644 --- a/akregator/src/articlefilter.h +++ b/akregator/src/articlefilter.h @@ -28,9 +28,9 @@ #ifndef ARTICLEFILTER_H #define ARTICLEFILTER_H -#include <qstring.h> -#include <qvaluelist.h> -#include <qvariant.h> +#include <tqstring.h> +#include <tqvaluelist.h> +#include <tqvariant.h> class KConfig; @@ -63,8 +63,8 @@ class ArticleFilter /** name of the filter, for display in filter list */ - const QString& name() const; - void setName(const QString& name); + const TQString& name() const; + void setName(const TQString& name); int id() const; @@ -86,7 +86,7 @@ class ArticleFilter }; -class ArticleFilterList : public QValueList<ArticleFilter> +class ArticleFilterList : public TQValueList<ArticleFilter> { public: @@ -119,7 +119,7 @@ class TagMatcher : public AbstractMatcher public: TagMatcher(); - TagMatcher(const QString& tagID); + TagMatcher(const TQString& tagID); TagMatcher(const TagMatcher& other); virtual ~TagMatcher(); @@ -190,11 +190,11 @@ class AssignTagAction : public AbstractAction { public: - AssignTagAction(const QString& tagID=QString::null); + AssignTagAction(const TQString& tagID=TQString::null); virtual void exec(Article& article); - const QString& tagID() const; - void setTagID(const QString& tagID); + const TQString& tagID() const; + void setTagID(const TQString& tagID); virtual void writeConfig(KConfig* config) const; virtual void readConfig(KConfig* config); @@ -203,7 +203,7 @@ class AssignTagAction : public AbstractAction virtual bool operator==(const AbstractAction& other); private: - QString m_tagID; + TQString m_tagID; }; /** a powerful matcher supporting multiple criterions, which can be combined via logical OR or AND @@ -218,7 +218,7 @@ class ArticleMatcher : public AbstractMatcher }; ArticleMatcher(); - ArticleMatcher( const QValueList<Criterion> &criteria, Association assoc); + ArticleMatcher( const TQValueList<Criterion> &criteria, Association assoc); ArticleMatcher(const ArticleMatcher& other); virtual ~ArticleMatcher(); @@ -241,13 +241,13 @@ class ArticleMatcher : public AbstractMatcher private: - static Association stringToAssociation(const QString& assocStr); - static QString associationToString(Association association); + static Association stringToAssociation(const TQString& assocStr); + static TQString associationToString(Association association); bool anyCriterionMatches( const Article &a ) const; bool allCriteriaMatch( const Article &a ) const; - QValueList<Criterion> m_criteria; + TQValueList<Criterion> m_criteria; Association m_association; }; @@ -262,8 +262,8 @@ class Criterion Title, Description, Author, Link, Status, KeepFlag }; - static QString subjectToString(Subject subj); - static Subject stringToSubject(const QString& subjStr); + static TQString subjectToString(Subject subj); + static Subject stringToSubject(const TQString& subjStr); enum Predicate { Contains = 0x01, @@ -272,11 +272,11 @@ class Criterion Negation = 0x80 }; - static QString predicateToString(Predicate pred); - static Predicate stringToPredicate(const QString& predStr); + static TQString predicateToString(Predicate pred); + static Predicate stringToPredicate(const TQString& predStr); Criterion(); - Criterion( Subject subject, Predicate predicate, const QVariant &object ); + Criterion( Subject subject, Predicate predicate, const TQVariant &object ); bool satisfiedBy( const Article &article ) const; @@ -285,14 +285,14 @@ class Criterion Subject subject() const; Predicate predicate() const; - QVariant object() const; + TQVariant object() const; bool operator==(const Criterion& other) const { return m_subject == other.m_subject && m_predicate == other.m_predicate && m_object == other.m_object; } private: Subject m_subject; Predicate m_predicate; - QVariant m_object; + TQVariant m_object; }; } // namespace Filters |