summaryrefslogtreecommitdiffstats
path: root/dcoprss/document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dcoprss/document.cpp')
-rw-r--r--dcoprss/document.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/dcoprss/document.cpp b/dcoprss/document.cpp
index b43f600e..fb5cd904 100644
--- a/dcoprss/document.cpp
+++ b/dcoprss/document.cpp
@@ -16,20 +16,20 @@
* *
***************************************************************************/
#include <kdebug.h>
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <kurl.h>
#include "service.h"
-RSSDocument::RSSDocument(const QString& url) :
- QObject(), DCOPObject(), m_Url(url)
+RSSDocument::RSSDocument(const TQString& url) :
+ TQObject(), DCOPObject(), m_Url(url)
{
m_list.setAutoDelete( true );
m_Doc = 0L;
- m_pix = QPixmap();
+ m_pix = TQPixmap();
m_isLoading = false;
m_maxAge = 60;
- m_Timeout = QDateTime::currentDateTime();
+ m_Timeout = TQDateTime::currentDateTime();
m_state.clear();
}
@@ -79,8 +79,8 @@ void RSSDocument::loadingComplete(Loader *ldr, Document doc, Status stat)
Image *img = m_Doc->image();
if ( img )
{
- connect(img, SIGNAL(gotPixmap(const QPixmap &)),
- SLOT(pixmapLoaded(const QPixmap &)));
+ connect(img, TQT_SIGNAL(gotPixmap(const TQPixmap &)),
+ TQT_SLOT(pixmapLoaded(const TQPixmap &)));
img->getPixmap();
pixmapUpdating(DCOPRef(this));
}
@@ -94,13 +94,13 @@ void RSSDocument::loadingComplete(Loader *ldr, Document doc, Status stat)
}
}
-void RSSDocument::pixmapLoaded(const QPixmap &pix )
+void RSSDocument::pixmapLoaded(const TQPixmap &pix )
{
m_pix = pix;
pixmapUpdated(DCOPRef(this));
}
-QString RSSDocument::webMaster()
+TQString RSSDocument::webMaster()
{
if( m_Doc != 0L)
return m_Doc->webMaster();
@@ -108,7 +108,7 @@ QString RSSDocument::webMaster()
return "";
}
-QString RSSDocument::managingEditor()
+TQString RSSDocument::managingEditor()
{
if( m_Doc != 0L)
return m_Doc->managingEditor();
@@ -116,7 +116,7 @@ QString RSSDocument::managingEditor()
return "";
}
-QString RSSDocument::rating()
+TQString RSSDocument::rating()
{
if( m_Doc != 0L)
return m_Doc->rating();
@@ -124,23 +124,23 @@ QString RSSDocument::rating()
return "";
}
-QDateTime RSSDocument::lastBuildDate()
+TQDateTime RSSDocument::lastBuildDate()
{
if( m_Doc != 0L)
return m_Doc->lastBuildDate();
else
- return QDateTime::currentDateTime();
+ return TQDateTime::currentDateTime();
}
-QDateTime RSSDocument::pubDate()
+TQDateTime RSSDocument::pubDate()
{
if( m_Doc != 0L)
return m_Doc->pubDate();
else
- return QDateTime::currentDateTime();
+ return TQDateTime::currentDateTime();
}
-QString RSSDocument::copyright()
+TQString RSSDocument::copyright()
{
if( m_Doc != 0L)
return m_Doc->copyright();
@@ -148,20 +148,20 @@ QString RSSDocument::copyright()
return "";
}
-QStringList RSSDocument::articles()
+TQStringList RSSDocument::articles()
{
if( m_Doc != 0L)
{
kdDebug() << "Document giving articles..." << endl;
Article::List list = m_Doc->articles();
- QStringList stringList;
+ TQStringList stringList;
for(Article::List::ConstIterator it = list.begin(); it != list.end(); ++it)
stringList.append((*it).title());
return stringList;
}
else
- return QStringList();
+ return TQStringList();
}
DCOPRef RSSDocument::article(int idx)
@@ -179,7 +179,7 @@ int RSSDocument::count()
return 0;
}
-QString RSSDocument::link()
+TQString RSSDocument::link()
{
if( m_Doc != 0L)
return m_Doc->link().prettyURL();
@@ -187,7 +187,7 @@ QString RSSDocument::link()
return "";
}
-QString RSSDocument::description()
+TQString RSSDocument::description()
{
if( m_Doc != 0L)
return m_Doc->description();
@@ -195,7 +195,7 @@ QString RSSDocument::description()
return "";
}
-QString RSSDocument::title()
+TQString RSSDocument::title()
{
if( m_Doc != 0L)
return m_Doc->title();
@@ -203,7 +203,7 @@ QString RSSDocument::title()
return "";
}
-QString RSSDocument::verbVersion()
+TQString RSSDocument::verbVersion()
{
if( m_Doc != 0L)
return m_Doc->verbVersion();
@@ -211,7 +211,7 @@ QString RSSDocument::verbVersion()
return "";
}
-QString RSSDocument::pixmapURL()
+TQString RSSDocument::pixmapURL()
{
if( m_Doc != 0L)
if( m_Doc->image() )
@@ -222,7 +222,7 @@ QString RSSDocument::pixmapURL()
return "";
}
-QPixmap RSSDocument::pixmap()
+TQPixmap RSSDocument::pixmap()
{
return m_pix;
}
@@ -243,14 +243,14 @@ bool RSSDocument::pixmapValid()
void RSSDocument::refresh()
{
kdDebug() << "Mod time " << m_Timeout.toString() << endl;
- kdDebug() << "Current time " << QDateTime::currentDateTime().toString() << endl;
+ kdDebug() << "Current time " << TQDateTime::currentDateTime().toString() << endl;
- if(!m_isLoading && (QDateTime::currentDateTime() >= m_Timeout))
+ if(!m_isLoading && (TQDateTime::currentDateTime() >= m_Timeout))
{
kdDebug() << "Document going to refresh" << endl;
m_isLoading = true;
Loader *loader = Loader::create(this,
- SLOT(loadingComplete(Loader *, Document, Status)));
+ TQT_SLOT(loadingComplete(Loader *, Document, Status)));
loader->loadFrom(KURL( m_Url ), new FileRetriever());
documentUpdating(DCOPRef(this));
}
@@ -266,8 +266,8 @@ void RSSDocument::refresh()
Image *img = m_Doc->image();
if ( img )
{
- connect(img, SIGNAL(gotPixmap(const QPixmap &)),
- SLOT(pixmapLoaded(const QPixmap &)));
+ connect(img, TQT_SIGNAL(gotPixmap(const TQPixmap &)),
+ TQT_SLOT(pixmapLoaded(const TQPixmap &)));
img->getPixmap();
pixmapUpdating(DCOPRef(this));
}
@@ -289,17 +289,17 @@ void RSSDocument::setMaxAge(int _min)
m_Timeout.addSecs(m_maxAge);
}
-int RSSDocument::state( const QString &title) const
+int RSSDocument::state( const TQString &title) const
{
return m_state[title];
}
-void RSSDocument::setState( const QString &title, int s )
+void RSSDocument::setState( const TQString &title, int s )
{
m_state[title] = s;
}
-void RSSDocument::read( const QString &title)
+void RSSDocument::read( const TQString &title)
{
m_state[title] = 3;
}