summaryrefslogtreecommitdiffstats
path: root/kioslaves/mbox/urlinfo.cc
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /kioslaves/mbox/urlinfo.cc
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 /?