summaryrefslogtreecommitdiffstats
path: root/akregator/src/feedstoragedummyimpl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit4c6f8d69e2d1501837affb472c4eb8fec4462240 (patch)
tree766a8ad7939fcf3eec534184c36bd0e0f80489e2 /akregator/src/feedstoragedummyimpl.cpp
parent469cc56a805bd3d6940d54adbef554877c29853c (diff)
downloadtdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.tar.gz
tdepim-4c6f8d69e2d1501837affb472c4eb8fec4462240.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/feedstoragedummyimpl.cpp')
-rw-r--r--akregator/src/feedstoragedummyimpl.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/akregator/src/feedstoragedummyimpl.cpp b/akregator/src/feedstoragedummyimpl.cpp
index 9d7b8e125..5ae572a82 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.tqcontains(guid))
+ if (!d->entries.contains(guid))
{
d->entries[guid] = FeedStorageDummyImplPrivate::Entry();
setTotalCount(totalCount()+1);
}
}
-bool FeedStorageDummyImpl::tqcontains(const TQString& guid)
+bool FeedStorageDummyImpl::contains(const TQString& guid)
{
- return d->entries.tqcontains(guid);
+ return d->entries.contains(guid);
}
void FeedStorageDummyImpl::deleteArticle(const TQString& guid)
{
- if (!d->entries.tqcontains(guid))
+ if (!d->entries.contains(guid))
return;
setDeleted(guid);
@@ -172,33 +172,33 @@ void FeedStorageDummyImpl::deleteArticle(const TQString& guid)
int FeedStorageDummyImpl::comments(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].comments : 0;
+ return contains(guid) ? d->entries[guid].comments : 0;
}
TQString FeedStorageDummyImpl::commentsLink(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].commentsLink : "";
+ return contains(guid) ? d->entries[guid].commentsLink : "";
}
bool FeedStorageDummyImpl::guidIsHash(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].guidIsHash : false;
+ return contains(guid) ? d->entries[guid].guidIsHash : false;
}
bool FeedStorageDummyImpl::guidIsPermaLink(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].guidIsPermaLink : false;
+ return contains(guid) ? d->entries[guid].guidIsPermaLink : false;
}
uint FeedStorageDummyImpl::hash(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].hash : 0;
+ return contains(guid) ? d->entries[guid].hash : 0;
}
void FeedStorageDummyImpl::setDeleted(const TQString& guid)
{
- if (!tqcontains(guid))
+ if (!contains(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 tqcontains(guid) ? d->entries[guid].link : "";
+ return contains(guid) ? d->entries[guid].link : "";
}
uint FeedStorageDummyImpl::pubDate(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].pubDate : 0;
+ return contains(guid) ? d->entries[guid].pubDate : 0;
}
int FeedStorageDummyImpl::status(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].status : 0;
+ return contains(guid) ? d->entries[guid].status : 0;
}
void FeedStorageDummyImpl::setqStatus(const TQString& guid, int status)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].status = status;
}
TQString FeedStorageDummyImpl::title(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].title : "";
+ return contains(guid) ? d->entries[guid].title : "";
}
TQString FeedStorageDummyImpl::description(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].description : "";
+ return contains(guid) ? d->entries[guid].description : "";
}
void FeedStorageDummyImpl::setPubDate(const TQString& guid, uint pubdate)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].pubDate = pubdate;
}
void FeedStorageDummyImpl::setGuidIsHash(const TQString& guid, bool isHash)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].guidIsHash = isHash;
}
void FeedStorageDummyImpl::setLink(const TQString& guid, const TQString& link)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].link = link;
}
void FeedStorageDummyImpl::setHash(const TQString& guid, uint hash)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].hash = hash;
}
void FeedStorageDummyImpl::setTitle(const TQString& guid, const TQString& title)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].title = title;
}
void FeedStorageDummyImpl::setDescription(const TQString& guid, const TQString& description)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].description = description;
}
void FeedStorageDummyImpl::setCommentsLink(const TQString& guid, const TQString& commentsLink)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].commentsLink = commentsLink;
}
void FeedStorageDummyImpl::setComments(const TQString& guid, int comments)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].comments = comments;
}
void FeedStorageDummyImpl::setGuidIsPermaLink(const TQString& guid, bool isPermaLink)
{
- if (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].guidIsPermaLink = isPermaLink;
}
void FeedStorageDummyImpl::addTag(const TQString& guid, const TQString& tag)
{
- if (tqcontains(guid))
+ if (contains(guid))
{
d->entries[guid].tags.append(tag);
- if (!d->taggedArticles[tag].tqcontains(guid))
+ if (!d->taggedArticles[tag].contains(guid))
d->taggedArticles[tag].append(guid);
- if (!d->tags.tqcontains(tag))
+ if (!d->tags.contains(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 (!tqcontains(guid))
+ if (!contains(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 (tqcontains(guid))
+ if (contains(guid))
d->entries[guid].author = author;
}
TQString FeedStorageDummyImpl::author(const TQString& guid)
{
- return tqcontains(guid) ? d->entries[guid].author : TQString();
+ return contains(guid) ? d->entries[guid].author : TQString();
}
TQValueList<Category> FeedStorageDummyImpl::categories(const TQString& guid)
{
if (!guid.isNull())
- return tqcontains(guid) ? d->entries[guid].categories : TQValueList<Category>();
+ return contains(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 (tqcontains(guid))
+ if (contains(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 tqcontains(guid) ? d->entries[guid].tags : TQStringList();
+ return contains(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 (!tqcontains(guid))
+ if (!contains(guid))
addEntry(guid);
setComments(guid, source->comments(guid));
@@ -424,7 +424,7 @@ void FeedStorageDummyImpl::clear()
void FeedStorageDummyImpl::setEnclosure(const TQString& guid, const TQString& url, const TQString& type, int length)
{
- if (tqcontains(guid))
+ if (contains(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 (tqcontains(guid))
+ if (contains(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 (tqcontains(guid))
+ if (contains(guid))
{
FeedStorageDummyImplPrivate::Entry entry = d->entries[guid];
hasEnclosure = entry.hasEnclosure;