summaryrefslogtreecommitdiffstats
path: root/kioslaves/mbox/stat.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves/mbox/stat.cc')
-rw-r--r--kioslaves/mbox/stat.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/kioslaves/mbox/stat.cc b/kioslaves/mbox/stat.cc
index 00285b149..c5d9a3bdf 100644
--- a/kioslaves/mbox/stat.cc
+++ b/kioslaves/mbox/stat.cc
@@ -26,20 +26,20 @@
#include <sys/stat.h>
-KIO::UDSEntry Stat::stat( const UrlInfo& info )
+TDEIO::UDSEntry Stat::stat( const UrlInfo& info )
{
if( info.type() == UrlInfo::message )
return Stat::statMessage( info );
else if( info.type() == UrlInfo::directory )
return Stat::statDirectory( info );
else
- return KIO::UDSEntry();
+ return TDEIO::UDSEntry();
}
-KIO::UDSEntry Stat::stat( ReadMBox& mbox, const UrlInfo& info )
+TDEIO::UDSEntry Stat::stat( ReadMBox& mbox, const UrlInfo& info )
{
kdDebug() << "Stat::stat()" << endl;
- KIO::UDSEntry entry;
+ TDEIO::UDSEntry entry;
TQString url;
if( info.type() == UrlInfo::invalid )
@@ -47,54 +47,54 @@ KIO::UDSEntry Stat::stat( ReadMBox& mbox, const UrlInfo& info )
else if( info.type() == UrlInfo::message )
mbox.searchMessage( info.id() );
- Stat::addAtom( entry, KIO::UDS_FILE_TYPE, S_IFREG );
- Stat::addAtom( entry, KIO::UDS_MIME_TYPE, "message/rfc822" );
+ Stat::addAtom( entry, TDEIO::UDS_FILE_TYPE, S_IFREG );
+ Stat::addAtom( entry, TDEIO::UDS_MIME_TYPE, "message/rfc822" );
url = TQString( "mbox:%1/%2" ).arg( info.filename(), mbox.currentID() );
- Stat::addAtom( entry, KIO::UDS_URL, url );
+ Stat::addAtom( entry, TDEIO::UDS_URL, url );
if( mbox.currentID().isEmpty() )
- Stat::addAtom( entry, KIO::UDS_NAME, "foobar" );
+ Stat::addAtom( entry, TDEIO::UDS_NAME, "foobar" );
else
- Stat::addAtom( entry, KIO::UDS_NAME, mbox.currentID() );
+ Stat::addAtom( entry, TDEIO::UDS_NAME, mbox.currentID() );
- Stat::addAtom( entry, KIO::UDS_SIZE, mbox.skipMessage() );
+ Stat::addAtom( entry, TDEIO::UDS_SIZE, mbox.skipMessage() );
return entry;
}
-KIO::UDSEntry Stat::statDirectory( const UrlInfo& info )
+TDEIO::UDSEntry Stat::statDirectory( const UrlInfo& info )
{
kdDebug() << "statDirectory()" << endl;
- KIO::UDSEntry entry;
+ TDEIO::UDSEntry entry;
//Specific things for a directory
- Stat::addAtom( entry, KIO::UDS_FILE_TYPE, S_IFDIR );
- Stat::addAtom( entry, KIO::UDS_NAME, info.filename() );
+ Stat::addAtom( entry, TDEIO::UDS_FILE_TYPE, S_IFDIR );
+ Stat::addAtom( entry, TDEIO::UDS_NAME, info.filename() );
return entry;
}
-KIO::UDSEntry Stat::statMessage( const UrlInfo& info )
+TDEIO::UDSEntry Stat::statMessage( const UrlInfo& info )
{
kdDebug() << "statMessage( " << info.url() << " )" << endl;
- KIO::UDSEntry entry;
+ TDEIO::UDSEntry entry;
TQString url = TQString( "mbox:%1" ).arg( info.url() );
//Specific things for a message
- Stat::addAtom( entry, KIO::UDS_FILE_TYPE, S_IFREG );
- Stat::addAtom( entry, KIO::UDS_MIME_TYPE, "message/rfc822" );
+ Stat::addAtom( entry, TDEIO::UDS_FILE_TYPE, S_IFREG );
+ Stat::addAtom( entry, TDEIO::UDS_MIME_TYPE, "message/rfc822" );
- Stat::addAtom( entry, KIO::UDS_URL, url );
+ Stat::addAtom( entry, TDEIO::UDS_URL, url );
url = url.right( url.length() - url.findRev( "/" ) - 1 );
- Stat::addAtom( entry, KIO::UDS_NAME, url );
+ Stat::addAtom( entry, TDEIO::UDS_NAME, url );
return entry;
}
-void Stat::addAtom( KIO::UDSEntry& entry, unsigned int uds, const TQString& str )
+void Stat::addAtom( TDEIO::UDSEntry& entry, unsigned int uds, const TQString& str )
{
- KIO::UDSAtom atom;
+ TDEIO::UDSAtom atom;
atom.m_uds = uds;
atom.m_str = str;
atom.m_long = 0;
@@ -103,9 +103,9 @@ void Stat::addAtom( KIO::UDSEntry& entry, unsigned int uds, const TQString& str
}
-void Stat::addAtom( KIO::UDSEntry& entry, unsigned int uds, long lng )
+void Stat::addAtom( TDEIO::UDSEntry& entry, unsigned int uds, long lng )
{
- KIO::UDSAtom atom;
+ TDEIO::UDSAtom atom;
atom.m_uds = uds;
atom.m_str = TQString();
atom.m_long = lng;