summaryrefslogtreecommitdiffstats
path: root/akregator/src/storagedummyimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/storagedummyimpl.cpp')
-rw-r--r--akregator/src/storagedummyimpl.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/akregator/src/storagedummyimpl.cpp b/akregator/src/storagedummyimpl.cpp
index cca08d75a..25d3f320f 100644
--- a/akregator/src/storagedummyimpl.cpp
+++ b/akregator/src/storagedummyimpl.cpp
@@ -24,9 +24,9 @@
#include "storagedummyimpl.h"
#include "feedstoragedummyimpl.h"
-#include <qmap.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
namespace Akregator {
namespace Backend {
@@ -43,7 +43,7 @@ class StorageDummyImpl::StorageDummyImplPrivate
FeedStorage* feedStorage;
};
- void addEntry(const QString& url, int unread, int totalCount, int lastFetch)
+ void addEntry(const TQString& url, int unread, int totalCount, int lastFetch)
{
Entry entry;
entry.unread = unread;
@@ -53,9 +53,9 @@ class StorageDummyImpl::StorageDummyImplPrivate
feeds[url] = entry;
}
- QString tagSet;
- QString feedList;
- QMap<QString, Entry> feeds;
+ TQString tagSet;
+ TQString feedList;
+ TQMap<TQString, Entry> feeds;
};
StorageDummyImpl::StorageDummyImpl() : d(new StorageDummyImplPrivate)
@@ -66,7 +66,7 @@ StorageDummyImpl::~StorageDummyImpl()
{
delete d; d = 0;
}
-void StorageDummyImpl::initialize(const QStringList&) {}
+void StorageDummyImpl::initialize(const TQStringList&) {}
bool StorageDummyImpl::open(bool /*autoCommit*/)
{
@@ -80,7 +80,7 @@ bool StorageDummyImpl::autoCommit() const
bool StorageDummyImpl::close()
{
- for (QMap<QString, StorageDummyImplPrivate::Entry>::ConstIterator it = d->feeds.begin(); it != d->feeds.end(); ++it)
+ for (TQMap<TQString, StorageDummyImplPrivate::Entry>::ConstIterator it = d->feeds.begin(); it != d->feeds.end(); ++it)
{
(*it).feedStorage->close();
delete (*it).feedStorage;
@@ -98,12 +98,12 @@ bool StorageDummyImpl::rollback()
return true;
}
-int StorageDummyImpl::unreadFor(const QString &url)
+int StorageDummyImpl::unreadFor(const TQString &url)
{
return d->feeds.contains(url) ? d->feeds[url].unread : 0;
}
-void StorageDummyImpl::setUnreadFor(const QString &url, int unread)
+void StorageDummyImpl::setUnreadFor(const TQString &url, int unread)
{
if (!d->feeds.contains(url))
d->addEntry(url, unread, unread, 0);
@@ -111,12 +111,12 @@ void StorageDummyImpl::setUnreadFor(const QString &url, int unread)
d->feeds[url].unread = unread;
}
-int StorageDummyImpl::totalCountFor(const QString &url)
+int StorageDummyImpl::totalCountFor(const TQString &url)
{
return d->feeds.contains(url) ? d->feeds[url].totalCount : 0;
}
-void StorageDummyImpl::setTotalCountFor(const QString &url, int total)
+void StorageDummyImpl::setTotalCountFor(const TQString &url, int total)
{
if (!d->feeds.contains(url))
d->addEntry(url, 0, total, 0);
@@ -124,12 +124,12 @@ void StorageDummyImpl::setTotalCountFor(const QString &url, int total)
d->feeds[url].totalCount = total;
}
-int StorageDummyImpl::lastFetchFor(const QString& url)
+int StorageDummyImpl::lastFetchFor(const TQString& url)
{
return d->feeds.contains(url) ? d->feeds[url].lastFetch : 0;
}
-void StorageDummyImpl::setLastFetchFor(const QString& url, int lastFetch)
+void StorageDummyImpl::setLastFetchFor(const TQString& url, int lastFetch)
{
if (!d->feeds.contains(url))
d->addEntry(url, 0, 0, lastFetch);
@@ -141,7 +141,7 @@ void StorageDummyImpl::slotCommit()
{
}
-FeedStorage* StorageDummyImpl::archiveFor(const QString& url)
+FeedStorage* StorageDummyImpl::archiveFor(const TQString& url)
{
if (!d->feeds.contains(url))
d->feeds[url].feedStorage = new FeedStorageDummyImpl(url, this);
@@ -149,15 +149,15 @@ FeedStorage* StorageDummyImpl::archiveFor(const QString& url)
return d->feeds[url].feedStorage;
}
-QStringList StorageDummyImpl::feeds() const
+TQStringList StorageDummyImpl::feeds() const
{
return d->feeds.keys();
}
void StorageDummyImpl::add(Storage* source)
{
- QStringList feeds = source->feeds();
- for (QStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)
+ TQStringList feeds = source->feeds();
+ for (TQStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)
{
FeedStorage* fa = archiveFor(*it);
fa->add(source->archiveFor(*it));
@@ -166,7 +166,7 @@ void StorageDummyImpl::add(Storage* source)
void StorageDummyImpl::clear()
{
- for (QMap<QString, StorageDummyImplPrivate::Entry>::ConstIterator it = d->feeds.begin(); it != d->feeds.end(); ++it)
+ for (TQMap<TQString, StorageDummyImplPrivate::Entry>::ConstIterator it = d->feeds.begin(); it != d->feeds.end(); ++it)
{
delete (*it).feedStorage;
}
@@ -174,22 +174,22 @@ void StorageDummyImpl::clear()
}
-void StorageDummyImpl::storeFeedList(const QString& opmlStr)
+void StorageDummyImpl::storeFeedList(const TQString& opmlStr)
{
d->feedList = opmlStr;
}
-QString StorageDummyImpl::restoreFeedList() const
+TQString StorageDummyImpl::restoreFeedList() const
{
return d->feedList;
}
-void StorageDummyImpl::storeTagSet(const QString& xmlStr)
+void StorageDummyImpl::storeTagSet(const TQString& xmlStr)
{
d->tagSet = xmlStr;
}
-QString StorageDummyImpl::restoreTagSet() const
+TQString StorageDummyImpl::restoreTagSet() const
{
return d->tagSet;
}