summaryrefslogtreecommitdiffstats
path: root/akregator/src/feedstoragedummyimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/feedstoragedummyimpl.cpp')
-rw-r--r--akregator/src/feedstoragedummyimpl.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/akregator/src/feedstoragedummyimpl.cpp b/akregator/src/feedstoragedummyimpl.cpp
index 6712d7482..b7200b0e0 100644
--- a/akregator/src/feedstoragedummyimpl.cpp
+++ b/akregator/src/feedstoragedummyimpl.cpp
@@ -147,21 +147,21 @@ TQStringList FeedStorageDummyImpl::articles(const Category& cat)
void FeedStorageDummyImpl::addEntry(const TQString& guid)
{
- if (!d->entries.contains(guid))
+ if (!d->entries.tqcontains(guid))
{
d->entries[guid] = FeedStorageDummyImplPrivate::Entry();
setTotalCount(totalCount()+1);
}
}
-bool FeedStorageDummyImpl::contains(const TQString& guid)
+bool FeedStorageDummyImpl::tqcontains(const TQString& guid)
{
- return d->entries.contains(guid);
+ return d->entries.tqcontains(guid);
}
void FeedStorageDummyImpl::deleteArticle(const TQString& guid)
{
- if (!d->entries.contains(guid))
+ if (!d->entries.tqcontains(guid))
return;
setDeleted(guid);
@@ -172,33 +172,33 @@ void FeedStorageDummyImpl::deleteArticle(const TQString& guid)
int FeedStorageDummyImpl::comments(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].comments : 0;
+ return tqcontains(guid) ? d->entries[guid].comments : 0;
}
TQString FeedStorageDummyImpl::commentsLink(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].commentsLink : "";
+ return tqcontains(guid) ? d->entries[guid].commentsLink : "";
}
bool FeedStorageDummyImpl::guidIsHash(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].guidIsHash : false;
+ return tqcontains(guid) ? d->entries[guid].guidIsHash : false;
}
bool FeedStorageDummyImpl::guidIsPermaLink(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].guidIsPermaLink : false;
+ return tqcontains(guid) ? d->entries[guid].guidIsPermaLink : false;
}
uint FeedStorageDummyImpl::hash(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].hash : 0;
+ return tqcontains(guid) ? d->entries[guid].hash : 0;
}
void FeedStorageDummyImpl::setDeleted(const TQString& guid)
{
- if (!contains(guid))
+ if (!tqcontains(guid))
return;
FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
@@ -233,99 +233,99 @@ void FeedStorageDummyImpl::setDeleted(const TQString& guid)
TQString FeedStorageDummyImpl::link(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].link : "";
+ return tqcontains(guid) ? d->entries[guid].link : "";
}
uint FeedStorageDummyImpl::pubDate(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].pubDate : 0;
+ return tqcontains(guid) ? d->entries[guid].pubDate : 0;
}
int FeedStorageDummyImpl::status(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].status : 0;
+ return tqcontains(guid) ? d->entries[guid].status : 0;
}
-void FeedStorageDummyImpl::setStatus(const TQString& guid, int status)
+void FeedStorageDummyImpl::seStatus(const TQString& guid, int status)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].status = status;
}
TQString FeedStorageDummyImpl::title(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].title : "";
+ return tqcontains(guid) ? d->entries[guid].title : "";
}
TQString FeedStorageDummyImpl::description(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].description : "";
+ return tqcontains(guid) ? d->entries[guid].description : "";
}
void FeedStorageDummyImpl::setPubDate(const TQString& guid, uint pubdate)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].pubDate = pubdate;
}
void FeedStorageDummyImpl::setGuidIsHash(const TQString& guid, bool isHash)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].guidIsHash = isHash;
}
void FeedStorageDummyImpl::setLink(const TQString& guid, const TQString& link)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].link = link;
}
void FeedStorageDummyImpl::setHash(const TQString& guid, uint hash)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].hash = hash;
}
void FeedStorageDummyImpl::setTitle(const TQString& guid, const TQString& title)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].title = title;
}
void FeedStorageDummyImpl::setDescription(const TQString& guid, const TQString& description)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].description = description;
}
void FeedStorageDummyImpl::setCommentsLink(const TQString& guid, const TQString& commentsLink)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].commentsLink = commentsLink;
}
void FeedStorageDummyImpl::setComments(const TQString& guid, int comments)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].comments = comments;
}
void FeedStorageDummyImpl::setGuidIsPermaLink(const TQString& guid, bool isPermaLink)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].guidIsPermaLink = isPermaLink;
}
void FeedStorageDummyImpl::addTag(const TQString& guid, const TQString& tag)
{
- if (contains(guid))
+ if (tqcontains(guid))
{
d->entries[guid].tags.append(tag);
- if (!d->taggedArticles[tag].contains(guid))
+ if (!d->taggedArticles[tag].tqcontains(guid))
d->taggedArticles[tag].append(guid);
- if (!d->tags.contains(tag))
+ if (!d->tags.tqcontains(tag))
d->tags.append(tag);
}
@@ -333,7 +333,7 @@ void FeedStorageDummyImpl::addTag(const TQString& guid, const TQString& tag)
void FeedStorageDummyImpl::addCategory(const TQString& guid, const Category& cat)
{
- if (!contains(guid))
+ if (!tqcontains(guid))
return;
d->entries[guid].categories.append(cat);
@@ -345,19 +345,19 @@ void FeedStorageDummyImpl::addCategory(const TQString& guid, const Category& cat
void FeedStorageDummyImpl::setAuthor(const TQString& guid, const TQString& author)
{
- if (contains(guid))
+ if (tqcontains(guid))
d->entries[guid].author = author;
}
TQString FeedStorageDummyImpl::author(const TQString& guid)
{
- return contains(guid) ? d->entries[guid].author : TQString();
+ return tqcontains(guid) ? d->entries[guid].author : TQString();
}
TQValueList<Category> FeedStorageDummyImpl::categories(const TQString& guid)
{
if (!guid.isNull())
- return contains(guid) ? d->entries[guid].categories : TQValueList<Category>();
+ return tqcontains(guid) ? d->entries[guid].categories : TQValueList<Category>();
else
return d->categories;
}
@@ -365,7 +365,7 @@ TQValueList<Category> FeedStorageDummyImpl::categories(const TQString& guid)
void FeedStorageDummyImpl::removeTag(const TQString& guid, const TQString& tag)
{
- if (contains(guid))
+ if (tqcontains(guid))
{
d->entries[guid].tags.remove(tag);
d->taggedArticles[tag].remove(guid);
@@ -377,7 +377,7 @@ void FeedStorageDummyImpl::removeTag(const TQString& guid, const TQString& tag)
TQStringList FeedStorageDummyImpl::tags(const TQString& guid)
{
if (!guid.isNull())
- return contains(guid) ? d->entries[guid].tags : TQStringList();
+ return tqcontains(guid) ? d->entries[guid].tags : TQStringList();
else
{
return d->tags;
@@ -396,7 +396,7 @@ void FeedStorageDummyImpl::add(FeedStorage* source)
void FeedStorageDummyImpl::copyArticle(const TQString& guid, FeedStorage* source)
{
- if (!contains(guid))
+ if (!tqcontains(guid))
addEntry(guid);
setComments(guid, source->comments(guid));
@@ -407,7 +407,7 @@ void FeedStorageDummyImpl::copyArticle(const TQString& guid, FeedStorage* source
setHash(guid, source->hash(guid));
setLink(guid, source->link(guid));
setPubDate(guid, source->pubDate(guid));
- setStatus(guid, source->status(guid));
+ seStatus(guid, source->status(guid));
setTitle(guid, source->title(guid));
TQStringList tags = source->tags(guid);
@@ -424,7 +424,7 @@ void FeedStorageDummyImpl::clear()
void FeedStorageDummyImpl::setEnclosure(const TQString& guid, const TQString& url, const TQString& type, int length)
{
- if (contains(guid))
+ if (tqcontains(guid))
{
FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
entry.hasEnclosure = true;
@@ -436,7 +436,7 @@ void FeedStorageDummyImpl::setEnclosure(const TQString& guid, const TQString& ur
void FeedStorageDummyImpl::removeEnclosure(const TQString& guid)
{
- if (contains(guid))
+ if (tqcontains(guid))
{
FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
entry.hasEnclosure = false;
@@ -448,7 +448,7 @@ void FeedStorageDummyImpl::removeEnclosure(const TQString& guid)
void FeedStorageDummyImpl::enclosure(const TQString& guid, bool& hasEnclosure, TQString& url, TQString& type, int& length)
{
- if (contains(guid))
+ if (tqcontains(guid))
{
FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
hasEnclosure = entry.hasEnclosure;