summaryrefslogtreecommitdiffstats
path: root/kioslaves/mbox/urlinfo.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/mbox/urlinfo.cc')
-rw-r--r--kioslaves/mbox/urlinfo.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/kioslaves/mbox/urlinfo.cc b/kioslaves/mbox/urlinfo.cc
index 710dc6f0c..2153afb13 100644
--- a/kioslaves/mbox/urlinfo.cc
+++ b/kioslaves/mbox/urlinfo.cc
@@ -21,13 +21,13 @@
#include <kdebug.h>
#include <kurl.h>
-#include <qfileinfo.h>
-#include <qstring.h>
+#include <tqfileinfo.h>
+#include <tqstring.h>
UrlInfo::UrlInfo( const KURL& url, const UrlType type )
: m_type( invalid ),
- m_filename( new QString ),
- m_id( new QString )
+ m_filename( new TQString ),
+ m_id( new TQString )
{
calculateInfo( url, type );
}
@@ -38,7 +38,7 @@ UrlInfo::~UrlInfo()
delete m_id;
}
-QString UrlInfo::mimetype() const
+TQString UrlInfo::mimetype() const
{
switch( m_type )
{
@@ -52,17 +52,17 @@ QString UrlInfo::mimetype() const
}
}
-QString UrlInfo::filename() const
+TQString UrlInfo::filename() const
{
return *m_filename;
}
-QString UrlInfo::id() const
+TQString UrlInfo::id() const
{
return *m_id;
}
-QString UrlInfo::url() const
+TQString UrlInfo::url() const
{
return *m_filename + "/" + *m_id;
}
@@ -87,8 +87,8 @@ void UrlInfo::calculateInfo( const KURL& url, const UrlType type )
bool UrlInfo::isDirectory( const KURL& url )
{
//Check is url is in the form mbox://{filename}
- QString filename = url.path();
- QFileInfo info;
+ TQString filename = url.path();
+ TQFileInfo info;
//Remove ending /
while( filename.length() > 1 && filename.right( 1 ) == "/" )
@@ -101,7 +101,7 @@ bool UrlInfo::isDirectory( const KURL& url )
//Setting paramaters
*m_filename = filename;
- *m_id = QString::null;
+ *m_id = TQString::null;
m_type = directory;
kdDebug() << "urlInfo::isDirectory( " << url << " )" << endl;
return true;
@@ -109,8 +109,8 @@ bool UrlInfo::isDirectory( const KURL& url )
bool UrlInfo::isMessage( const KURL& url )
{
- QString path = url.path();
- QFileInfo info;
+ TQString path = url.path();
+ TQFileInfo info;
int cutindex = path.findRev( '/' );
//Does it contain at least one /?