summaryrefslogtreecommitdiffstats
path: root/akregator/src/notificationmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/notificationmanager.cpp')
-rw-r--r--akregator/src/notificationmanager.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/akregator/src/notificationmanager.cpp b/akregator/src/notificationmanager.cpp
index ae1b2c88..b505b2b8 100644
--- a/akregator/src/notificationmanager.cpp
+++ b/akregator/src/notificationmanager.cpp
@@ -27,15 +27,15 @@
#include <kstaticdeleter.h>
#include <kurl.h>
-#include <qlabel.h>
-#include <qtimer.h>
+#include <tqlabel.h>
+#include <tqtimer.h>
#include "feed.h"
#include "notificationmanager.h"
namespace Akregator {
-NotificationManager::NotificationManager() : QObject()
+NotificationManager::NotificationManager() : TQObject()
{
m_intervalsLapsed = 0;
m_checkInterval = 2000;
@@ -52,7 +52,7 @@ NotificationManager::~NotificationManager()
m_self = 0;
}
-void NotificationManager::setWidget(QWidget* widget, KInstance* inst)
+void NotificationManager::setWidget(TQWidget* widget, KInstance* inst)
{
m_widget = widget;
m_instance = inst != NULL ? inst : KGlobal::instance();
@@ -67,11 +67,11 @@ void NotificationManager::slotNotifyArticle(const Article& article)
else if (!m_running)
{
m_running = true;
- QTimer::singleShot(m_checkInterval, this, SLOT(slotIntervalCheck()));
+ TQTimer::singleShot(m_checkInterval, this, TQT_SLOT(slotIntervalCheck()));
}
}
-void NotificationManager::slotNotifyFeeds(const QStringList& feeds)
+void NotificationManager::slotNotifyFeeds(const TQStringList& feeds)
{
if (feeds.count() == 1)
{
@@ -80,8 +80,8 @@ void NotificationManager::slotNotifyFeeds(const QStringList& feeds)
}
else if (feeds.count() > 1)
{
- QString message;
- for (QStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)
+ TQString message;
+ for (TQStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)
message += *it + "\n";
KNotifyClient::Instance inst(m_instance);
KNotifyClient::event(m_widget->winId(), "feed_added", i18n("Feeds added:\n %1").arg(message));
@@ -90,16 +90,16 @@ void NotificationManager::slotNotifyFeeds(const QStringList& feeds)
void NotificationManager::doNotify()
{
- QString message = "<html><body>";
- QString feedTitle;
- QValueList<Article>::ConstIterator it = m_articles.begin();
- QValueList<Article>::ConstIterator en = m_articles.end();
+ TQString message = "<html><body>";
+ TQString feedTitle;
+ TQValueList<Article>::ConstIterator it = m_articles.begin();
+ TQValueList<Article>::ConstIterator en = m_articles.end();
for (; it != en; ++it)
{
if (feedTitle != (*it).feed()->title())
{
feedTitle = (*it).feed()->title();
- message += QString("<p><b>%1:</b></p>").arg(feedTitle);
+ message += TQString("<p><b>%1:</b></p>").arg(feedTitle);
}
message += (*it).title() + "<br>";
}
@@ -123,7 +123,7 @@ void NotificationManager::slotIntervalCheck()
else
{
m_addedInLastInterval = false;
- QTimer::singleShot(m_checkInterval, this, SLOT(slotIntervalCheck()));
+ TQTimer::singleShot(m_checkInterval, this, TQT_SLOT(slotIntervalCheck()));
}
}