diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /dcoprss/service.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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 'dcoprss/service.cpp')
-rw-r--r-- | dcoprss/service.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/dcoprss/service.cpp b/dcoprss/service.cpp index 74544dc1..54e987b2 100644 --- a/dcoprss/service.cpp +++ b/dcoprss/service.cpp @@ -34,16 +34,16 @@ RSSService::~RSSService() } -QStringList RSSService::list() +TQStringList RSSService::list() { - QStringList lst; - QDictIterator<RSSDocument> itr(m_list); + TQStringList lst; + TQDictIterator<RSSDocument> itr(m_list); for(; itr.current(); ++itr) lst.append(itr.currentKey()); return lst; } -DCOPRef RSSService::add(QString id) +DCOPRef RSSService::add(TQString id) { if(m_list.find(id) == 0L) { // add a new one only if we need to m_list.insert(id, new RSSDocument(id)); @@ -53,14 +53,14 @@ DCOPRef RSSService::add(QString id) return document(id); } -void RSSService::remove(QString id) +void RSSService::remove(TQString id) { m_list.remove(id); removed(id); saveLinks(); } -DCOPRef RSSService::document(QString id) +DCOPRef RSSService::document(TQString id) { if( m_list[id] ) return DCOPRef(m_list[id]); @@ -81,9 +81,9 @@ void RSSService::loadLinks() { KConfig *conf = kapp->config(); conf->setGroup("RSS Links"); - const QStringList links = conf->readListEntry ("links"); - QStringList::ConstIterator it = links.begin(); - QStringList::ConstIterator end = links.end(); + const TQStringList links = conf->readListEntry ("links"); + TQStringList::ConstIterator it = links.begin(); + TQStringList::ConstIterator end = links.end(); for ( ; it != end; ++it ) add( *it ); } @@ -92,8 +92,8 @@ void RSSService::saveLinks() { KConfig *conf = kapp->config(); conf->setGroup("RSS Links"); - QStringList lst; - QDictIterator<RSSDocument> itr(m_list); + TQStringList lst; + TQDictIterator<RSSDocument> itr(m_list); for(; itr.current(); ++itr) lst.append(itr.currentKey()); |