summaryrefslogtreecommitdiffstats
path: root/akregator/src/feed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/feed.cpp')
-rw-r--r--akregator/src/feed.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/akregator/src/feed.cpp b/akregator/src/feed.cpp
index 44d40977e..f24c48095 100644
--- a/akregator/src/feed.cpp
+++ b/akregator/src/feed.cpp
@@ -402,7 +402,7 @@ void Feed::slotMarkAllArticlesAsRead()
TQValueList<Article>::Iterator en = tarticles.end();
for (it = tarticles.begin(); it != en; ++it)
- (*it).setqStatus(Article::Read);
+ (*it).seStatus(Article::Read);
setNotificationMode(true, true);
}
}
@@ -412,7 +412,7 @@ void Feed::slotAddToFetchQueue(FetchQueue* queue, bool intervalFetchOnly)
queue->addFeed(this);
else
{
- uint now = TQDateTime::tqcurrentDateTime().toTime_t();
+ uint now = TQDateTime::currentDateTime().toTime_t();
// workaround for 3.5.x: if the last fetch went wrong, try again after 30 minutes
// this fixes annoying behaviour of akregator, especially when the host is reachable
@@ -464,9 +464,9 @@ void Feed::appendArticles(const RSS::Document &doc)
d->addedArticlesNotify.append(mya);
if (!mya.isDeleted() && !markImmediatelyAsRead())
- mya.setqStatus(Article::New);
+ mya.seStatus(Article::New);
else
- mya.setqStatus(Article::Read);
+ mya.seStatus(Article::Read);
changed = true;
}
@@ -479,12 +479,12 @@ void Feed::appendArticles(const RSS::Document &doc)
{
mya.setKeep(old.keep());
int oldstatus = old.status();
- old.setqStatus(Article::Read);
+ old.seStatus(Article::Read);
d->articles.remove(old.guid());
appendArticle(mya);
- mya.setqStatus(oldstatus);
+ mya.seStatus(oldstatus);
d->updatedArticlesNotify.append(mya);
changed = true;
@@ -519,7 +519,7 @@ bool Feed::usesExpiryByAge() const
bool Feed::isExpired(const Article& a) const
{
- TQDateTime now = TQDateTime::tqcurrentDateTime();
+ TQDateTime now = TQDateTime::currentDateTime();
int expiryAge = -1;
// check whether the feed uses the global default and the default is limitArticleAge
if ( d->archiveMode == globalDefault && Settings::archiveMode() == Settings::EnumArchiveMode::limitArticleAge)
@@ -558,7 +558,7 @@ void Feed::fetch(bool followDiscovery)
{
if ((*it).status() == Article::New)
{
- (*it).setqStatus(Article::Unread);
+ (*it).seStatus(Article::Unread);
}
}
@@ -579,7 +579,7 @@ void Feed::tryFetch()
{
d->fetchError = false;
- d->loader = RSS::Loader::create( this, TQT_SLOT(fetchCompleted(Loader *, Document, tqStatus)) );
+ d->loader = RSS::Loader::create( this, TQT_SLOT(fetchCompleted(Loader *, Document, Status)) );
//connect(d->loader, TQT_SIGNAL(progress(unsigned long)), this, TQT_SLOT(slotSetProgress(unsigned long)));
d->loader->loadFrom( d->xmlUrl, new RSS::FileRetriever );
}
@@ -595,7 +595,7 @@ void Feed::slotImageFetched(const TQPixmap& image)
nodeModified();
}
-void Feed::fetchCompleted(RSS::Loader *l, RSS::Document doc, RSS::tqStatus status)
+void Feed::fetchCompleted(RSS::Loader *l, RSS::Document doc, RSS::Status status)
{
// Note that loader instances delete themselves
d->loader = 0;
@@ -618,7 +618,7 @@ void Feed::fetchCompleted(RSS::Loader *l, RSS::Document doc, RSS::tqStatus statu
else
{
d->fetchError = true;
- d->lastErrorFetch = TQDateTime::tqcurrentDateTime().toTime_t();
+ d->lastErrorFetch = TQDateTime::currentDateTime().toTime_t();
emit fetchError(this);
}
return;
@@ -647,7 +647,7 @@ void Feed::fetchCompleted(RSS::Loader *l, RSS::Document doc, RSS::tqStatus statu
appendArticles(doc);
- d->archive->setLastFetch( TQDateTime::tqcurrentDateTime().toTime_t());
+ d->archive->setLastFetch( TQDateTime::currentDateTime().toTime_t());
emit fetched(this);
}
@@ -735,14 +735,14 @@ void Feed::setArticleDeleted(Article& a)
articlesModified();
}
-void Feed::setArticleChanged(Article& a, int oldtqStatus)
+void Feed::setArticleChanged(Article& a, int oldStatus)
{
- if (oldtqStatus != -1)
+ if (oldStatus != -1)
{
- int newtqStatus = a.status();
- if (oldtqStatus == Article::Read && newtqStatus != Article::Read)
+ int newStatus = a.status();
+ if (oldStatus == Article::Read && newStatus != Article::Read)
setUnread(unread()+1);
- else if (oldtqStatus != Article::Read && newtqStatus == Article::Read)
+ else if (oldStatus != Article::Read && newStatus == Article::Read)
setUnread(unread()-1);
}
d->updatedArticlesNotify.append(a);