summaryrefslogtreecommitdiffstats
path: root/kio/kio
diff options
context:
space:
mode:
Diffstat (limited to 'kio/kio')
-rw-r--r--kio/kio/authinfo.cpp6
-rw-r--r--kio/kio/authinfo.h2
-rw-r--r--kio/kio/chmodjob.cpp40
-rw-r--r--kio/kio/chmodjob.h12
-rw-r--r--kio/kio/connection.cpp6
-rw-r--r--kio/kio/connection.h8
-rw-r--r--kio/kio/dataprotocol.cpp2
-rw-r--r--kio/kio/dataprotocol.h4
-rw-r--r--kio/kio/dataslave.cpp6
-rw-r--r--kio/kio/dataslave.h8
-rw-r--r--kio/kio/davjob.cpp20
-rw-r--r--kio/kio/davjob.h12
-rw-r--r--kio/kio/defaultprogress.cpp54
-rw-r--r--kio/kio/defaultprogress.h54
-rw-r--r--kio/kio/forwardingslavebase.cpp142
-rw-r--r--kio/kio/forwardingslavebase.h50
-rw-r--r--kio/kio/global.cpp320
-rw-r--r--kio/kio/global.h24
-rw-r--r--kio/kio/http_slave_defaults.h2
-rw-r--r--kio/kio/job.cpp458
-rw-r--r--kio/kio/job.h6
-rw-r--r--kio/kio/jobclasses.h314
-rw-r--r--kio/kio/kautomount.cpp16
-rw-r--r--kio/kio/kautomount.h10
-rw-r--r--kio/kio/kdirlister.cpp164
-rw-r--r--kio/kio/kdirlister.h26
-rw-r--r--kio/kio/kdirlister_p.h24
-rw-r--r--kio/kio/kdirwatch.cpp6
-rw-r--r--kio/kio/kemailsettings.cpp4
-rw-r--r--kio/kio/kfileitem.cpp118
-rw-r--r--kio/kio/kfileitem.h20
-rw-r--r--kio/kio/kfilemetainfo.cpp8
-rw-r--r--kio/kio/kimageio.cpp2
-rw-r--r--kio/kio/kmimetype.cpp16
-rw-r--r--kio/kio/kmimetype.h6
-rw-r--r--kio/kio/kmimetypechooser.cpp6
-rw-r--r--kio/kio/knfsshare.cpp2
-rw-r--r--kio/kio/kprotocolmanager.cpp64
-rw-r--r--kio/kio/kprotocolmanager.h8
-rw-r--r--kio/kio/kremoteencoding.h6
-rw-r--r--kio/kio/krun.cpp52
-rw-r--r--kio/kio/krun.h14
-rw-r--r--kio/kio/kservice.cpp4
-rw-r--r--kio/kio/kservicegroup.cpp2
-rw-r--r--kio/kio/kshred.h4
-rw-r--r--kio/kio/ktrader.cpp6
-rw-r--r--kio/kio/ktraderparse.cpp6
-rw-r--r--kio/kio/ktraderparsetree.cpp2
-rw-r--r--kio/kio/ktraderparsetree.h2
-rw-r--r--kio/kio/kurifilter.h4
-rw-r--r--kio/kio/kurlcompletion.cpp36
-rw-r--r--kio/kio/kurlcompletion.h4
-rw-r--r--kio/kio/kuserprofile.cpp2
-rw-r--r--kio/kio/metainfojob.cpp20
-rw-r--r--kio/kio/metainfojob.h8
-rw-r--r--kio/kio/netaccess.cpp102
-rw-r--r--kio/kio/netaccess.h54
-rw-r--r--kio/kio/observer.cpp92
-rw-r--r--kio/kio/observer.h68
-rw-r--r--kio/kio/passdlg.cpp6
-rw-r--r--kio/kio/passdlg.h2
-rw-r--r--kio/kio/paste.cpp42
-rw-r--r--kio/kio/paste.h2
-rw-r--r--kio/kio/pastedialog.cpp8
-rw-r--r--kio/kio/pastedialog.h2
-rw-r--r--kio/kio/previewjob.cpp42
-rw-r--r--kio/kio/previewjob.h8
-rw-r--r--kio/kio/progressbase.cpp138
-rw-r--r--kio/kio/progressbase.h76
-rw-r--r--kio/kio/renamedlg.cpp30
-rw-r--r--kio/kio/renamedlg.h12
-rw-r--r--kio/kio/renamedlgplugin.h6
-rw-r--r--kio/kio/scheduler.cpp46
-rw-r--r--kio/kio/scheduler.h66
-rw-r--r--kio/kio/sessiondata.cpp4
-rw-r--r--kio/kio/sessiondata.h4
-rw-r--r--kio/kio/skipdlg.cpp4
-rw-r--r--kio/kio/skipdlg.h2
-rw-r--r--kio/kio/slave.cpp34
-rw-r--r--kio/kio/slave.h26
-rw-r--r--kio/kio/slavebase.cpp38
-rw-r--r--kio/kio/slavebase.h24
-rw-r--r--kio/kio/slaveconfig.cpp12
-rw-r--r--kio/kio/slaveconfig.h2
-rw-r--r--kio/kio/slaveinterface.cpp46
-rw-r--r--kio/kio/slaveinterface.h40
-rw-r--r--kio/kio/statusbarprogress.cpp12
-rw-r--r--kio/kio/statusbarprogress.h14
-rw-r--r--kio/kio/tcpslavebase.cpp16
-rw-r--r--kio/kio/tcpslavebase.h2
-rw-r--r--kio/kio/thumbcreator.h2
91 files changed, 1653 insertions, 1653 deletions
diff --git a/kio/kio/authinfo.cpp b/kio/kio/authinfo.cpp
index 6f0592ac4..483bc682f 100644
--- a/kio/kio/authinfo.cpp
+++ b/kio/kio/authinfo.cpp
@@ -39,7 +39,7 @@
#define NETRC_READ_BUF_SIZE 4096
-using namespace KIO;
+using namespace TDEIO;
AuthInfo::AuthInfo()
{
@@ -72,7 +72,7 @@ AuthInfo& AuthInfo::operator= ( const AuthInfo& info )
return *this;
}
-TQDataStream& KIO::operator<< (TQDataStream& s, const AuthInfo& a)
+TQDataStream& TDEIO::operator<< (TQDataStream& s, const AuthInfo& a)
{
s << a.url << a.username << a.password << a.prompt << a.caption
<< a.comment << a.commentLabel << a.realmValue << a.digestInfo
@@ -81,7 +81,7 @@ TQDataStream& KIO::operator<< (TQDataStream& s, const AuthInfo& a)
return s;
}
-TQDataStream& KIO::operator>> (TQDataStream& s, AuthInfo& a)
+TQDataStream& TDEIO::operator>> (TQDataStream& s, AuthInfo& a)
{
TQ_UINT8 verify = 0;
TQ_UINT8 ro = 0;
diff --git a/kio/kio/authinfo.h b/kio/kio/authinfo.h
index 3f92e58d1..130db0857 100644
--- a/kio/kio/authinfo.h
+++ b/kio/kio/authinfo.h
@@ -26,7 +26,7 @@
#include <kurl.h>
-namespace KIO {
+namespace TDEIO {
/**
* This class is intended to make it easier to prompt for, cache
diff --git a/kio/kio/chmodjob.cpp b/kio/kio/chmodjob.cpp
index e1d343c10..e1c8a64e4 100644
--- a/kio/kio/chmodjob.cpp
+++ b/kio/kio/chmodjob.cpp
@@ -38,12 +38,12 @@
#include <kdirnotify_stub.h>
-using namespace KIO;
+using namespace TDEIO;
ChmodJob::ChmodJob( const KFileItemList& lstItems, int permissions, int mask,
int newOwner, int newGroup,
bool recursive, bool showProgressInfo )
- : KIO::Job( showProgressInfo ), state( STATE_LISTING ),
+ : TDEIO::Job( showProgressInfo ), state( STATE_LISTING ),
m_permissions( permissions ), m_mask( mask ),
m_newOwner( newOwner ), m_newGroup( newGroup ),
m_recursive( recursive ), m_lstItems( lstItems )
@@ -76,11 +76,11 @@ void ChmodJob::processList()
if ( item->isDir() && m_recursive )
{
//kdDebug(7007) << "ChmodJob::processList dir -> listing" << endl;
- KIO::ListJob * listJob = KIO::listRecursive( item->url(), false /* no GUI */ );
- connect( listJob, TQT_SIGNAL(entries( KIO::Job *,
- const KIO::UDSEntryList& )),
- TQT_SLOT( slotEntries( KIO::Job*,
- const KIO::UDSEntryList& )));
+ TDEIO::ListJob * listJob = TDEIO::listRecursive( item->url(), false /* no GUI */ );
+ connect( listJob, TQT_SIGNAL(entries( TDEIO::Job *,
+ const TDEIO::UDSEntryList& )),
+ TQT_SLOT( slotEntries( TDEIO::Job*,
+ const TDEIO::UDSEntryList& )));
addSubjob( listJob );
return; // we'll come back later, when this one's finished
}
@@ -93,28 +93,28 @@ void ChmodJob::processList()
chmodNextFile();
}
-void ChmodJob::slotEntries( KIO::Job*, const KIO::UDSEntryList & list )
+void ChmodJob::slotEntries( TDEIO::Job*, const TDEIO::UDSEntryList & list )
{
- KIO::UDSEntryListConstIterator it = list.begin();
- KIO::UDSEntryListConstIterator end = list.end();
+ TDEIO::UDSEntryListConstIterator it = list.begin();
+ TDEIO::UDSEntryListConstIterator end = list.end();
for (; it != end; ++it) {
- KIO::UDSEntry::ConstIterator it2 = (*it).begin();
+ TDEIO::UDSEntry::ConstIterator it2 = (*it).begin();
mode_t permissions = 0;
bool isDir = false;
bool isLink = false;
TQString relativePath;
for( ; it2 != (*it).end(); it2++ ) {
switch( (*it2).m_uds ) {
- case KIO::UDS_NAME:
+ case TDEIO::UDS_NAME:
relativePath = (*it2).m_str;
break;
- case KIO::UDS_FILE_TYPE:
+ case TDEIO::UDS_FILE_TYPE:
isDir = S_ISDIR((*it2).m_long);
break;
- case KIO::UDS_LINK_DEST:
+ case TDEIO::UDS_LINK_DEST:
isLink = !(*it2).m_str.isEmpty();
break;
- case KIO::UDS_ACCESS:
+ case TDEIO::UDS_ACCESS:
permissions = (mode_t)((*it2).m_long);
break;
default:
@@ -182,7 +182,7 @@ void ChmodJob::chmodNextFile()
kdDebug(7007) << "ChmodJob::chmodNextFile chmod'ing " << info.url.prettyURL()
<< " to " << TQString::number(info.permissions,8) << endl;
- KIO::SimpleJob * job = KIO::chmod( info.url, info.permissions );
+ TDEIO::SimpleJob * job = TDEIO::chmod( info.url, info.permissions );
// copy the metadata for acl and default acl
const TQString aclString = queryMetaData( "ACL_STRING" );
const TQString defaultAclString = queryMetaData( "DEFAULT_ACL_STRING" );
@@ -197,7 +197,7 @@ void ChmodJob::chmodNextFile()
emitResult();
}
-void ChmodJob::slotResult( KIO::Job * job )
+void ChmodJob::slotResult( TDEIO::Job * job )
{
if ( job->error() )
{
@@ -206,7 +206,7 @@ void ChmodJob::slotResult( KIO::Job * job )
emitResult();
return;
}
- //kdDebug(7007) << " ChmodJob::slotResult( KIO::Job * job ) m_lstItems:" << m_lstItems.count() << endl;
+ //kdDebug(7007) << " ChmodJob::slotResult( TDEIO::Job * job ) m_lstItems:" << m_lstItems.count() << endl;
switch ( state )
{
case STATE_LISTING:
@@ -227,7 +227,7 @@ void ChmodJob::slotResult( KIO::Job * job )
}
// antlarr: KDE 4: Make owner and group be const TQString &
-KIO_EXPORT ChmodJob *KIO::chmod( const KFileItemList& lstItems, int permissions, int mask,
+KIO_EXPORT ChmodJob *TDEIO::chmod( const KFileItemList& lstItems, int permissions, int mask,
TQString owner, TQString group,
bool recursive, bool showProgressInfo )
{
@@ -253,6 +253,6 @@ KIO_EXPORT ChmodJob *KIO::chmod( const KFileItemList& lstItems, int permissions,
}
void ChmodJob::virtual_hook( int id, void* data )
-{ KIO::Job::virtual_hook( id, data ); }
+{ TDEIO::Job::virtual_hook( id, data ); }
#include "chmodjob.moc"
diff --git a/kio/kio/chmodjob.h b/kio/kio/chmodjob.h
index fdb873b17..c501add6a 100644
--- a/kio/kio/chmodjob.h
+++ b/kio/kio/chmodjob.h
@@ -28,19 +28,19 @@
#include <kio/job.h>
#include <kfileitem.h>
-namespace KIO {
+namespace TDEIO {
/**
* This job changes permissions on a list of files or directories,
* optionally in a recursive manner.
- * @see KIO::chmod()
+ * @see TDEIO::chmod()
*/
- class KIO_EXPORT ChmodJob : public KIO::Job
+ class KIO_EXPORT ChmodJob : public TDEIO::Job
{
Q_OBJECT
public:
/**
- * Create new ChmodJobs using the KIO::chmod() function.
+ * Create new ChmodJobs using the TDEIO::chmod() function.
*/
ChmodJob( const KFileItemList & lstItems, int permissions, int mask,
int newOwner, int newGroup,
@@ -51,8 +51,8 @@ namespace KIO {
protected slots:
- virtual void slotResult( KIO::Job *job );
- void slotEntries( KIO::Job * , const KIO::UDSEntryList & );
+ virtual void slotResult( TDEIO::Job *job );
+ void slotEntries( TDEIO::Job * , const TDEIO::UDSEntryList & );
void processList();
private:
diff --git a/kio/kio/connection.cpp b/kio/kio/connection.cpp
index b2a84a798..d85f4921c 100644
--- a/kio/kio/connection.cpp
+++ b/kio/kio/connection.cpp
@@ -43,7 +43,7 @@
#include <kdebug.h>
#include <tqsocketnotifier.h>
-using namespace KIO;
+using namespace TDEIO;
Connection::Connection()
{
@@ -83,7 +83,7 @@ void Connection::close()
delete socket;
socket = 0;
- // KSocket has already closed the file descriptor, but we need to
+ // TDESocket has already closed the file descriptor, but we need to
// close the file-stream as well otherwise we leak memory.
// As a result we close the file descriptor twice, but that should
// be harmless
@@ -121,7 +121,7 @@ void Connection::dequeue()
}
}
-void Connection::init(KSocket *sock)
+void Connection::init(TDESocket *sock)
{
delete notifier;
notifier = 0;
diff --git a/kio/kio/connection.h b/kio/kio/connection.h
index a30131af8..720e4e935 100644
--- a/kio/kio/connection.h
+++ b/kio/kio/connection.h
@@ -30,10 +30,10 @@
#include <tqptrlist.h>
#include <tqobject.h>
-class KSocket;
+class TDESocket;
class TQSocketNotifier;
-namespace KIO {
+namespace TDEIO {
struct KIO_EXPORT Task {
int cmd;
@@ -62,7 +62,7 @@ namespace KIO {
* @param sock the socket to use
* @see inited()
*/
- void init(KSocket *sock);
+ void init(TDESocket *sock);
/**
* Initialize the connection to use the given file
* descriptors.
@@ -143,7 +143,7 @@ namespace KIO {
private:
int fd_in;
FILE *f_out;
- KSocket *socket;
+ TDESocket *socket;
TQSocketNotifier *notifier;
TQObject *receiver;
const char *member;
diff --git a/kio/kio/dataprotocol.cpp b/kio/kio/dataprotocol.cpp
index 0ee463d87..1e3db04d7 100644
--- a/kio/kio/dataprotocol.cpp
+++ b/kio/kio/dataprotocol.cpp
@@ -42,7 +42,7 @@
# define DISPATCH(f) f
#endif
-using namespace KIO;
+using namespace TDEIO;
#ifdef DATAKIOSLAVE
extern "C" {
diff --git a/kio/kio/dataprotocol.h b/kio/kio/dataprotocol.h
index 44dccfcce..472b42886 100644
--- a/kio/kio/dataprotocol.h
+++ b/kio/kio/dataprotocol.h
@@ -37,14 +37,14 @@ class KURL;
# include "kio/dataslave.h"
#endif
-namespace KIO {
+namespace TDEIO {
/** This kioslave provides support of data urls as specified by rfc 2397
* @see http://www.ietf.org/rfc/rfc2397.txt
* @author Leo Savernik
*/
#if defined(DATAKIOSLAVE)
-class DataProtocol : public KIO::SlaveBase {
+class DataProtocol : public TDEIO::SlaveBase {
#elif defined(TESTKIO)
class DataProtocol : public TestSlave {
#else
diff --git a/kio/kio/dataslave.cpp b/kio/kio/dataslave.cpp
index d16ecc0d4..528368ba5 100644
--- a/kio/kio/dataslave.cpp
+++ b/kio/kio/dataslave.cpp
@@ -28,7 +28,7 @@
#include <tqtimer.h>
-using namespace KIO;
+using namespace TDEIO;
#define KIO_DATA_POLL_INTERVAL 0
@@ -198,12 +198,12 @@ void DataSlave::virtual_hook( int id, void* data ) {
return;
}
default:
- KIO::Slave::virtual_hook( id, data );
+ TDEIO::Slave::virtual_hook( id, data );
}
}
DISPATCH_IMPL1(mimeType, const TQString &, s)
-DISPATCH_IMPL1(totalSize, KIO::filesize_t, size)
+DISPATCH_IMPL1(totalSize, TDEIO::filesize_t, size)
DISPATCH_IMPL(sendMetaData)
DISPATCH_IMPL1(data, const TQByteArray &, ba)
diff --git a/kio/kio/dataslave.h b/kio/kio/dataslave.h
index 71eae6cd3..3567f3faf 100644
--- a/kio/kio/dataslave.h
+++ b/kio/kio/dataslave.h
@@ -35,7 +35,7 @@ class TQTimer;
#define DISPATCH_DECL1(type, paramtype, param) \
void dispatch_##type(paramtype param);
-namespace KIO {
+namespace TDEIO {
/**
* This class provides a high performance implementation for the data
@@ -46,7 +46,7 @@ namespace KIO {
* detail of KIO and subject to change without notice.
* @author Leo Savernik
*/
- class DataSlave : public KIO::Slave {
+ class DataSlave : public TDEIO::Slave {
Q_OBJECT
public:
DataSlave();
@@ -90,7 +90,7 @@ namespace KIO {
struct QueueStruct {
QueueType type;
TQString s;
- KIO::filesize_t size;
+ TDEIO::filesize_t size;
TQByteArray ba;
QueueStruct() {}
@@ -100,7 +100,7 @@ namespace KIO {
DispatchQueue dispatchQueue;
DISPATCH_DECL1(mimeType, const TQString &, s)
- DISPATCH_DECL1(totalSize, KIO::filesize_t, size)
+ DISPATCH_DECL1(totalSize, TDEIO::filesize_t, size)
DISPATCH_DECL(sendMetaData)
DISPATCH_DECL1(data, const TQByteArray &, ba)
DISPATCH_DECL(finished)
diff --git a/kio/kio/davjob.cpp b/kio/kio/davjob.cpp
index 1f3b208a6..f1ba2d2d4 100644
--- a/kio/kio/davjob.cpp
+++ b/kio/kio/davjob.cpp
@@ -40,7 +40,7 @@
#define KIO_ARGS TQByteArray packedArgs; TQDataStream stream( packedArgs, IO_WriteOnly ); stream
-using namespace KIO;
+using namespace TDEIO;
class DavJob::DavJobPrivate
{
@@ -50,7 +50,7 @@ public:
};
DavJob::DavJob( const KURL& url, int method, const TQString& request, bool showProgressInfo )
- : TransferJob( url, KIO::CMD_SPECIAL, TQByteArray(), TQByteArray(), showProgressInfo )
+ : TransferJob( url, TDEIO::CMD_SPECIAL, TQByteArray(), TQByteArray(), showProgressInfo )
{
d = new DavJobPrivate;
// We couldn't set the args when calling the parent constructor,
@@ -86,10 +86,10 @@ void DavJob::slotFinished()
istream >> s_url;
istream >> s_method;
// PROPFIND
- if ( (s_cmd == 7) && (s_method == (int)KIO::DAV_PROPFIND) ) {
+ if ( (s_cmd == 7) && (s_method == (int)TDEIO::DAV_PROPFIND) ) {
m_packedArgs.truncate(0);
TQDataStream stream( m_packedArgs, IO_WriteOnly );
- stream << (int)7 << m_redirectionURL << (int)KIO::DAV_PROPFIND;
+ stream << (int)7 << m_redirectionURL << (int)TDEIO::DAV_PROPFIND;
}
} else if ( ! m_response.setContent( d->str_response, true ) ) {
// An error occurred parsing the XML response
@@ -114,20 +114,20 @@ void DavJob::slotFinished()
/* Convenience methods */
// KDE 4: Make it const TQString &
-DavJob* KIO::davPropFind( const KURL& url, const TQDomDocument& properties, TQString depth, bool showProgressInfo )
+DavJob* TDEIO::davPropFind( const KURL& url, const TQDomDocument& properties, TQString depth, bool showProgressInfo )
{
- DavJob *job = new DavJob( url, (int) KIO::DAV_PROPFIND, properties.toString(), showProgressInfo );
+ DavJob *job = new DavJob( url, (int) TDEIO::DAV_PROPFIND, properties.toString(), showProgressInfo );
job->addMetaData( "davDepth", depth );
return job;
}
-DavJob* KIO::davPropPatch( const KURL& url, const TQDomDocument& properties, bool showProgressInfo )
+DavJob* TDEIO::davPropPatch( const KURL& url, const TQDomDocument& properties, bool showProgressInfo )
{
- return new DavJob( url, (int) KIO::DAV_PROPPATCH, properties.toString(), showProgressInfo );
+ return new DavJob( url, (int) TDEIO::DAV_PROPPATCH, properties.toString(), showProgressInfo );
}
-DavJob* KIO::davSearch( const KURL& url, const TQString& nsURI, const TQString& qName, const TQString& query, bool showProgressInfo )
+DavJob* TDEIO::davSearch( const KURL& url, const TQString& nsURI, const TQString& qName, const TQString& query, bool showProgressInfo )
{
TQDomDocument doc;
TQDomElement searchrequest = doc.createElementNS( "DAV:", "searchrequest" );
@@ -136,7 +136,7 @@ DavJob* KIO::davSearch( const KURL& url, const TQString& nsURI, const TQString&
searchelement.appendChild( text );
searchrequest.appendChild( searchelement );
doc.appendChild( searchrequest );
- return new DavJob( url, KIO::DAV_SEARCH, doc.toString(), showProgressInfo );
+ return new DavJob( url, TDEIO::DAV_SEARCH, doc.toString(), showProgressInfo );
}
#include "davjob.moc"
diff --git a/kio/kio/davjob.h b/kio/kio/davjob.h
index 98d0fe702..3232f9e00 100644
--- a/kio/kio/davjob.h
+++ b/kio/kio/davjob.h
@@ -39,7 +39,7 @@
class Observer;
class TQTimer;
-namespace KIO {
+namespace TDEIO {
class Slave;
class SlaveInterface;
@@ -49,9 +49,9 @@ namespace KIO {
* Data is sent to the slave on request of the slave ( dataReq).
* If data coming from the slave can not be handled, the
* reading of data from the slave should be suspended.
- * @see KIO::davPropFind()
- * @see KIO::davPropPatch()
- * @see KIO::davSearch()
+ * @see TDEIO::davPropFind()
+ * @see TDEIO::davPropPatch()
+ * @see TDEIO::davSearch()
* @since 3.1
*/
class KIO_EXPORT DavJob : public TransferJob {
@@ -59,8 +59,8 @@ namespace KIO {
public:
/**
- * Use KIO::davPropFind(), KIO::davPropPatch() and
- * KIO::davSearch() to create a new DavJob.
+ * Use TDEIO::davPropFind(), TDEIO::davPropPatch() and
+ * TDEIO::davSearch() to create a new DavJob.
*/
DavJob(const KURL& url, int method,
const TQString& request, bool showProgressInfo);
diff --git a/kio/kio/defaultprogress.cpp b/kio/kio/defaultprogress.cpp
index 3f16f565f..72bec0cfc 100644
--- a/kio/kio/defaultprogress.cpp
+++ b/kio/kio/defaultprogress.cpp
@@ -42,7 +42,7 @@
#include "jobclasses.h"
#include "defaultprogress.h"
-namespace KIO {
+namespace TDEIO {
class DefaultProgress::DefaultProgressPrivate
{
@@ -184,7 +184,7 @@ DefaultProgress::~DefaultProgress()
delete d;
}
-void DefaultProgress::slotTotalSize( KIO::Job*, KIO::filesize_t size )
+void DefaultProgress::slotTotalSize( TDEIO::Job*, TDEIO::filesize_t size )
{
// size is measured in bytes
if ( m_iTotalSize == size )
@@ -195,7 +195,7 @@ void DefaultProgress::slotTotalSize( KIO::Job*, KIO::filesize_t size )
}
-void DefaultProgress::slotTotalFiles( KIO::Job*, unsigned long files )
+void DefaultProgress::slotTotalFiles( TDEIO::Job*, unsigned long files )
{
if ( m_iTotalFiles == files )
return;
@@ -204,7 +204,7 @@ void DefaultProgress::slotTotalFiles( KIO::Job*, unsigned long files )
}
-void DefaultProgress::slotTotalDirs( KIO::Job*, unsigned long dirs )
+void DefaultProgress::slotTotalDirs( TDEIO::Job*, unsigned long dirs )
{
if ( m_iTotalDirs == dirs )
return;
@@ -232,18 +232,18 @@ void DefaultProgress::showTotals()
//static
TQString DefaultProgress::makePercentString( unsigned long percent,
- KIO::filesize_t totalSize,
+ TDEIO::filesize_t totalSize,
unsigned long totalFiles )
{
if ( totalSize )
- return i18n( "%1 % of %2 " ).arg( TQString::number(percent) , KIO::convertSize( totalSize ) );
+ return i18n( "%1 % of %2 " ).arg( TQString::number(percent) , TDEIO::convertSize( totalSize ) );
else if ( totalFiles )
return i18n( "%1 % of 1 file", "%1 % of %n files", totalFiles ).arg( percent );
else
return i18n( "%1 %" ).arg( percent );
}
-void DefaultProgress::slotPercent( KIO::Job*, unsigned long percent )
+void DefaultProgress::slotPercent( TDEIO::Job*, unsigned long percent )
{
TQString caption = makePercentString( percent, m_iTotalSize, m_iTotalFiles );
m_pProgressBar->setValue( percent );
@@ -270,26 +270,26 @@ void DefaultProgress::slotPercent( KIO::Job*, unsigned long percent )
}
-void DefaultProgress::slotInfoMessage( KIO::Job*, const TQString & msg )
+void DefaultProgress::slotInfoMessage( TDEIO::Job*, const TQString & msg )
{
speedLabel->setText( msg );
speedLabel->setAlignment( speedLabel->alignment() & ~TQt::WordBreak );
}
-void DefaultProgress::slotProcessedSize( KIO::Job*, KIO::filesize_t bytes ) {
+void DefaultProgress::slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t bytes ) {
if ( m_iProcessedSize == bytes )
return;
m_iProcessedSize = bytes;
TQString tmp = i18n( "%1 of %2 complete")
- .arg( KIO::convertSize(bytes) )
- .arg( KIO::convertSize(m_iTotalSize));
+ .arg( TDEIO::convertSize(bytes) )
+ .arg( TDEIO::convertSize(m_iTotalSize));
sizeLabel->setText( tmp );
}
-void DefaultProgress::slotProcessedDirs( KIO::Job*, unsigned long dirs )
+void DefaultProgress::slotProcessedDirs( TDEIO::Job*, unsigned long dirs )
{
if ( m_iProcessedDirs == dirs )
return;
@@ -303,7 +303,7 @@ void DefaultProgress::slotProcessedDirs( KIO::Job*, unsigned long dirs )
}
-void DefaultProgress::slotProcessedFiles( KIO::Job*, unsigned long files )
+void DefaultProgress::slotProcessedFiles( TDEIO::Job*, unsigned long files )
{
if ( m_iProcessedFiles == files )
return;
@@ -319,18 +319,18 @@ void DefaultProgress::slotProcessedFiles( KIO::Job*, unsigned long files )
}
-void DefaultProgress::slotSpeed( KIO::Job*, unsigned long speed )
+void DefaultProgress::slotSpeed( TDEIO::Job*, unsigned long speed )
{
if ( speed == 0 ) {
speedLabel->setText( i18n( "Stalled") );
} else {
- speedLabel->setText( i18n( "%1/s ( %2 remaining )").arg( KIO::convertSize( speed ))
- .arg( KIO::convertSeconds( KIO::calculateRemainingSeconds( m_iTotalSize, m_iProcessedSize, speed ))) );
+ speedLabel->setText( i18n( "%1/s ( %2 remaining )").arg( TDEIO::convertSize( speed ))
+ .arg( TDEIO::convertSeconds( TDEIO::calculateRemainingSeconds( m_iTotalSize, m_iProcessedSize, speed ))) );
}
}
-void DefaultProgress::slotCopying( KIO::Job*, const KURL& from, const KURL& to )
+void DefaultProgress::slotCopying( TDEIO::Job*, const KURL& from, const KURL& to )
{
if ( d->noCaptionYet ) {
setCaption(i18n("Copy File(s) Progress"));
@@ -344,7 +344,7 @@ void DefaultProgress::slotCopying( KIO::Job*, const KURL& from, const KURL& to )
}
-void DefaultProgress::slotMoving( KIO::Job*, const KURL& from, const KURL& to )
+void DefaultProgress::slotMoving( TDEIO::Job*, const KURL& from, const KURL& to )
{
if ( d->noCaptionYet ) {
setCaption(i18n("Move File(s) Progress"));
@@ -358,7 +358,7 @@ void DefaultProgress::slotMoving( KIO::Job*, const KURL& from, const KURL& to )
}
-void DefaultProgress::slotCreatingDir( KIO::Job*, const KURL& dir )
+void DefaultProgress::slotCreatingDir( TDEIO::Job*, const KURL& dir )
{
if ( d->noCaptionYet ) {
setCaption(i18n("Creating Folder"));
@@ -370,7 +370,7 @@ void DefaultProgress::slotCreatingDir( KIO::Job*, const KURL& dir )
}
-void DefaultProgress::slotDeleting( KIO::Job*, const KURL& url )
+void DefaultProgress::slotDeleting( TDEIO::Job*, const KURL& url )
{
if ( d->noCaptionYet ) {
setCaption(i18n("Delete File(s) Progress"));
@@ -381,7 +381,7 @@ void DefaultProgress::slotDeleting( KIO::Job*, const KURL& url )
setDestVisible( false );
}
-void DefaultProgress::slotTransferring( KIO::Job*, const KURL& url )
+void DefaultProgress::slotTransferring( TDEIO::Job*, const KURL& url )
{
if ( d->noCaptionYet ) {
setCaption(i18n("Loading Progress"));
@@ -391,31 +391,31 @@ void DefaultProgress::slotTransferring( KIO::Job*, const KURL& url )
setDestVisible( false );
}
-void DefaultProgress::slotStating( KIO::Job*, const KURL& url )
+void DefaultProgress::slotStating( TDEIO::Job*, const KURL& url )
{
setCaption(i18n("Examining File Progress"));
sourceEdit->setText(url.prettyURL());
setDestVisible( false );
}
-void DefaultProgress::slotMounting( KIO::Job*, const TQString & dev, const TQString & point )
+void DefaultProgress::slotMounting( TDEIO::Job*, const TQString & dev, const TQString & point )
{
setCaption(i18n("Mounting %1").arg(dev));
sourceEdit->setText(point);
setDestVisible( false );
}
-void DefaultProgress::slotUnmounting( KIO::Job*, const TQString & point )
+void DefaultProgress::slotUnmounting( TDEIO::Job*, const TQString & point )
{
setCaption(i18n("Unmounting"));
sourceEdit->setText(point);
setDestVisible( false );
}
-void DefaultProgress::slotCanResume( KIO::Job*, KIO::filesize_t resume )
+void DefaultProgress::slotCanResume( TDEIO::Job*, TDEIO::filesize_t resume )
{
if ( resume ) {
- resumeLabel->setText( i18n("Resuming from %1").arg(KIO::number(resume)) );
+ resumeLabel->setText( i18n("Resuming from %1").arg(TDEIO::number(resume)) );
} else {
resumeLabel->setText( i18n("Not resumable") );
}
@@ -453,7 +453,7 @@ void DefaultProgress::slotClean() {
int s = d->startTime.elapsed();
if (!s)
s = 1;
- speedLabel->setText(i18n("%1/s (done)").arg(KIO::convertSize(1000 * m_iTotalSize / s)));
+ speedLabel->setText(i18n("%1/s (done)").arg(TDEIO::convertSize(1000 * m_iTotalSize / s)));
}
setOnlyClean(false);
}
diff --git a/kio/kio/defaultprogress.h b/kio/kio/defaultprogress.h
index 8dca499bd..68d405b24 100644
--- a/kio/kio/defaultprogress.h
+++ b/kio/kio/defaultprogress.h
@@ -28,7 +28,7 @@
class KLineEdit;
-namespace KIO {
+namespace TDEIO {
/*
* A default implementation of the progress dialog ProgressBase.
@@ -58,59 +58,59 @@ public:
/// Shared with uiserver.cpp
static TQString makePercentString( unsigned long percent,
- KIO::filesize_t totalSize,
+ TDEIO::filesize_t totalSize,
unsigned long totalFiles );
public slots:
- virtual void slotTotalSize( KIO::Job *job, KIO::filesize_t size );
- virtual void slotTotalFiles( KIO::Job *job, unsigned long files );
- virtual void slotTotalDirs( KIO::Job *job, unsigned long dirs );
+ virtual void slotTotalSize( TDEIO::Job *job, TDEIO::filesize_t size );
+ virtual void slotTotalFiles( TDEIO::Job *job, unsigned long files );
+ virtual void slotTotalDirs( TDEIO::Job *job, unsigned long dirs );
- virtual void slotProcessedSize( KIO::Job *job, KIO::filesize_t bytes );
- virtual void slotProcessedFiles( KIO::Job *job, unsigned long files );
- virtual void slotProcessedDirs( KIO::Job *job, unsigned long dirs );
+ virtual void slotProcessedSize( TDEIO::Job *job, TDEIO::filesize_t bytes );
+ virtual void slotProcessedFiles( TDEIO::Job *job, unsigned long files );
+ virtual void slotProcessedDirs( TDEIO::Job *job, unsigned long dirs );
- virtual void slotSpeed( KIO::Job *job, unsigned long speed );
- virtual void slotPercent( KIO::Job *job, unsigned long percent );
+ virtual void slotSpeed( TDEIO::Job *job, unsigned long speed );
+ virtual void slotPercent( TDEIO::Job *job, unsigned long percent );
/**
* Called to set an information message.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param msg the message to set
*/
- virtual void slotInfoMessage( KIO::Job *job, const TQString & msg );
+ virtual void slotInfoMessage( TDEIO::Job *job, const TQString & msg );
- virtual void slotCopying( KIO::Job* job, const KURL& src, const KURL& dest );
- virtual void slotMoving( KIO::Job* job, const KURL& src, const KURL& dest );
- virtual void slotDeleting( KIO::Job* job, const KURL& url );
+ virtual void slotCopying( TDEIO::Job* job, const KURL& src, const KURL& dest );
+ virtual void slotMoving( TDEIO::Job* job, const KURL& src, const KURL& dest );
+ virtual void slotDeleting( TDEIO::Job* job, const KURL& url );
/**
* Called when the job is transferring.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param url the url to transfer
* @since 3.1
*/
- void slotTransferring( KIO::Job* job, const KURL& url );
- virtual void slotCreatingDir( KIO::Job* job, const KURL& dir );
+ void slotTransferring( TDEIO::Job* job, const KURL& url );
+ virtual void slotCreatingDir( TDEIO::Job* job, const KURL& dir );
/**
* Called when the job is requesting a stat.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param dir the dir to stat
* @since 3.1
*/
- virtual void slotStating( KIO::Job* job, const KURL& dir );
+ virtual void slotStating( TDEIO::Job* job, const KURL& dir );
/**
* Called when the job is mounting.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param dev the device to mount
* @param point the mount point
*/
- virtual void slotMounting( KIO::Job* job, const TQString & dev, const TQString & point );
+ virtual void slotMounting( TDEIO::Job* job, const TQString & dev, const TQString & point );
/**
* Called when the job is unmounting.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param point the mount point
*/
- virtual void slotUnmounting( KIO::Job* job, const TQString & point );
- virtual void slotCanResume( KIO::Job* job, KIO::filesize_t from);
+ virtual void slotUnmounting( TDEIO::Job* job, const TQString & point );
+ virtual void slotCanResume( TDEIO::Job* job, TDEIO::filesize_t from);
/**
* Called when the job is cleaned.
@@ -136,11 +136,11 @@ protected:
KProgress* m_pProgressBar;
- KIO::filesize_t m_iTotalSize;
+ TDEIO::filesize_t m_iTotalSize;
unsigned long m_iTotalFiles;
unsigned long m_iTotalDirs;
- KIO::filesize_t m_iProcessedSize;
+ TDEIO::filesize_t m_iProcessedSize;
unsigned long m_iProcessedDirs;
unsigned long m_iProcessedFiles;
diff --git a/kio/kio/forwardingslavebase.cpp b/kio/kio/forwardingslavebase.cpp
index 17f12900a..53121986d 100644
--- a/kio/kio/forwardingslavebase.cpp
+++ b/kio/kio/forwardingslavebase.cpp
@@ -27,7 +27,7 @@
#include "forwardingslavebase.h"
-namespace KIO
+namespace TDEIO
{
class ForwardingSlaveBasePrivate
@@ -63,7 +63,7 @@ bool ForwardingSlaveBase::internalRewriteURL(const KURL &url, KURL &newURL)
return result;
}
-void ForwardingSlaveBase::prepareUDSEntry(KIO::UDSEntry &entry,
+void ForwardingSlaveBase::prepareUDSEntry(TDEIO::UDSEntry &entry,
bool listing) const
{
kdDebug() << "ForwardingSlaveBase::prepareUDSEntry: listing=="
@@ -73,8 +73,8 @@ void ForwardingSlaveBase::prepareUDSEntry(KIO::UDSEntry &entry,
TQString name;
KURL url;
- KIO::UDSEntry::iterator it = entry.begin();
- KIO::UDSEntry::iterator end = entry.end();
+ TDEIO::UDSEntry::iterator it = entry.begin();
+ TDEIO::UDSEntry::iterator end = entry.end();
for(; it!=end; ++it)
{
@@ -82,11 +82,11 @@ void ForwardingSlaveBase::prepareUDSEntry(KIO::UDSEntry &entry,
switch( (*it).m_uds )
{
- case KIO::UDS_NAME:
+ case TDEIO::UDS_NAME:
name = (*it).m_str;
kdDebug() << "Name = " << name << endl;
break;
- case KIO::UDS_URL:
+ case TDEIO::UDS_URL:
url_found = true;
url = (*it).m_str;
if (listing)
@@ -108,8 +108,8 @@ void ForwardingSlaveBase::prepareUDSEntry(KIO::UDSEntry &entry,
new_url.addPath( name );
}
- KIO::UDSAtom atom;
- atom.m_uds = KIO::UDS_LOCAL_PATH;
+ TDEIO::UDSAtom atom;
+ atom.m_uds = TDEIO::UDS_LOCAL_PATH;
atom.m_long = 0;
atom.m_str = new_url.path();
entry.append(atom);
@@ -123,7 +123,7 @@ void ForwardingSlaveBase::get(const KURL &url)
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::TransferJob *job = KIO::get(new_url, false, false);
+ TDEIO::TransferJob *job = TDEIO::get(new_url, false, false);
connectTransferJob(job);
tqApp->eventLoop()->enterLoop();
@@ -138,7 +138,7 @@ void ForwardingSlaveBase::put(const KURL &url, int permissions,
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::TransferJob *job = KIO::put(new_url, permissions, overwrite,
+ TDEIO::TransferJob *job = TDEIO::put(new_url, permissions, overwrite,
resume, false);
connectTransferJob(job);
@@ -153,7 +153,7 @@ void ForwardingSlaveBase::stat(const KURL &url)
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::SimpleJob *job = KIO::stat(new_url, false);
+ TDEIO::SimpleJob *job = TDEIO::stat(new_url, false);
connectSimpleJob(job);
tqApp->eventLoop()->enterLoop();
@@ -167,7 +167,7 @@ void ForwardingSlaveBase::mimetype(const KURL &url)
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::TransferJob *job = KIO::mimetype(new_url, false);
+ TDEIO::TransferJob *job = TDEIO::mimetype(new_url, false);
connectTransferJob(job);
tqApp->eventLoop()->enterLoop();
@@ -181,7 +181,7 @@ void ForwardingSlaveBase::listDir(const KURL &url)
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::ListJob *job = KIO::listDir(new_url, false);
+ TDEIO::ListJob *job = TDEIO::listDir(new_url, false);
connectListJob(job);
tqApp->eventLoop()->enterLoop();
@@ -195,7 +195,7 @@ void ForwardingSlaveBase::mkdir(const KURL &url, int permissions)
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::SimpleJob *job = KIO::mkdir(new_url, permissions);
+ TDEIO::SimpleJob *job = TDEIO::mkdir(new_url, permissions);
connectSimpleJob(job);
tqApp->eventLoop()->enterLoop();
@@ -210,7 +210,7 @@ void ForwardingSlaveBase::rename(const KURL &src, const KURL &dest,
KURL new_src, new_dest;
if ( internalRewriteURL(src, new_src) && internalRewriteURL(dest, new_dest) )
{
- KIO::Job *job = KIO::rename(new_src, new_dest, overwrite);
+ TDEIO::Job *job = TDEIO::rename(new_src, new_dest, overwrite);
connectJob(job);
tqApp->eventLoop()->enterLoop();
@@ -225,7 +225,7 @@ void ForwardingSlaveBase::symlink(const TQString &target, const KURL &dest,
KURL new_dest;
if ( internalRewriteURL(dest, new_dest) )
{
- KIO::SimpleJob *job = KIO::symlink(target, new_dest, overwrite, false);
+ TDEIO::SimpleJob *job = TDEIO::symlink(target, new_dest, overwrite, false);
connectSimpleJob(job);
tqApp->eventLoop()->enterLoop();
@@ -239,7 +239,7 @@ void ForwardingSlaveBase::chmod(const KURL &url, int permissions)
KURL new_url;
if ( internalRewriteURL(url, new_url) )
{
- KIO::SimpleJob *job = KIO::chmod(new_url, permissions);
+ TDEIO::SimpleJob *job = TDEIO::chmod(new_url, permissions);
connectSimpleJob(job);
tqApp->eventLoop()->enterLoop();
@@ -254,7 +254,7 @@ void ForwardingSlaveBase::copy(const KURL &src, const KURL &dest,
KURL new_src, new_dest;
if ( internalRewriteURL(src, new_src) && internalRewriteURL(dest, new_dest) )
{
- KIO::Job *job = KIO::file_copy(new_src, new_dest, permissions,
+ TDEIO::Job *job = TDEIO::file_copy(new_src, new_dest, permissions,
overwrite, false);
connectJob(job);
@@ -271,12 +271,12 @@ void ForwardingSlaveBase::del(const KURL &url, bool isfile)
{
if (isfile)
{
- KIO::DeleteJob *job = KIO::del(new_url, false, false);
+ TDEIO::DeleteJob *job = TDEIO::del(new_url, false, false);
connectJob(job);
}
else
{
- KIO::SimpleJob *job = KIO::rmdir(new_url);
+ TDEIO::SimpleJob *job = TDEIO::rmdir(new_url);
connectSimpleJob(job);
}
@@ -291,7 +291,7 @@ void ForwardingSlaveBase::localURL(const KURL& remoteURL)
KURL new_url;
if ( internalRewriteURL(remoteURL, new_url) )
{
- KIO::LocalURLJob *job = KIO::localURL(new_url);
+ TDEIO::LocalURLJob *job = TDEIO::localURL(new_url);
connectLocalURLJob(job);
tqApp->eventLoop()->enterLoop();
@@ -305,7 +305,7 @@ void ForwardingSlaveBase::localURL(const KURL& remoteURL)
//////////////////////////////////////////////////////////////////////////////
-void ForwardingSlaveBase::connectJob(KIO::Job *job)
+void ForwardingSlaveBase::connectJob(TDEIO::Job *job)
{
// We will forward the warning message, no need to let the job
// display it itself
@@ -320,57 +320,57 @@ void ForwardingSlaveBase::connectJob(KIO::Job *job)
kdDebug() << it.key() << " = " << it.data() << endl;
#endif
- connect( job, TQT_SIGNAL( result(KIO::Job *) ),
- this, TQT_SLOT( slotResult(KIO::Job *) ) );
- connect( job, TQT_SIGNAL( warning(KIO::Job *, const TQString &) ),
- this, TQT_SLOT( slotWarning(KIO::Job *, const TQString &) ) );
- connect( job, TQT_SIGNAL( infoMessage(KIO::Job *, const TQString &) ),
- this, TQT_SLOT( slotInfoMessage(KIO::Job *, const TQString &) ) );
- connect( job, TQT_SIGNAL( totalSize(KIO::Job *, KIO::filesize_t) ),
- this, TQT_SLOT( slotTotalSize(KIO::Job *, KIO::filesize_t) ) );
- connect( job, TQT_SIGNAL( processedSize(KIO::Job *, KIO::filesize_t) ),
- this, TQT_SLOT( slotProcessedSize(KIO::Job *, KIO::filesize_t) ) );
- connect( job, TQT_SIGNAL( speed(KIO::Job *, unsigned long) ),
- this, TQT_SLOT( slotSpeed(KIO::Job *, unsigned long) ) );
+ connect( job, TQT_SIGNAL( result(TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult(TDEIO::Job *) ) );
+ connect( job, TQT_SIGNAL( warning(TDEIO::Job *, const TQString &) ),
+ this, TQT_SLOT( slotWarning(TDEIO::Job *, const TQString &) ) );
+ connect( job, TQT_SIGNAL( infoMessage(TDEIO::Job *, const TQString &) ),
+ this, TQT_SLOT( slotInfoMessage(TDEIO::Job *, const TQString &) ) );
+ connect( job, TQT_SIGNAL( totalSize(TDEIO::Job *, TDEIO::filesize_t) ),
+ this, TQT_SLOT( slotTotalSize(TDEIO::Job *, TDEIO::filesize_t) ) );
+ connect( job, TQT_SIGNAL( processedSize(TDEIO::Job *, TDEIO::filesize_t) ),
+ this, TQT_SLOT( slotProcessedSize(TDEIO::Job *, TDEIO::filesize_t) ) );
+ connect( job, TQT_SIGNAL( speed(TDEIO::Job *, unsigned long) ),
+ this, TQT_SLOT( slotSpeed(TDEIO::Job *, unsigned long) ) );
}
-void ForwardingSlaveBase::connectSimpleJob(KIO::SimpleJob *job)
+void ForwardingSlaveBase::connectSimpleJob(TDEIO::SimpleJob *job)
{
connectJob(job);
- connect( job, TQT_SIGNAL( redirection(KIO::Job *, const KURL &) ),
- this, TQT_SLOT( slotRedirection(KIO::Job *, const KURL &) ) );
+ connect( job, TQT_SIGNAL( redirection(TDEIO::Job *, const KURL &) ),
+ this, TQT_SLOT( slotRedirection(TDEIO::Job *, const KURL &) ) );
}
-void ForwardingSlaveBase::connectListJob(KIO::ListJob *job)
+void ForwardingSlaveBase::connectListJob(TDEIO::ListJob *job)
{
connectSimpleJob(job);
- connect( job, TQT_SIGNAL( entries(KIO::Job *, const KIO::UDSEntryList &) ),
- this, TQT_SLOT( slotEntries(KIO::Job *, const KIO::UDSEntryList &) ) );
+ connect( job, TQT_SIGNAL( entries(TDEIO::Job *, const TDEIO::UDSEntryList &) ),
+ this, TQT_SLOT( slotEntries(TDEIO::Job *, const TDEIO::UDSEntryList &) ) );
}
-void ForwardingSlaveBase::connectTransferJob(KIO::TransferJob *job)
+void ForwardingSlaveBase::connectTransferJob(TDEIO::TransferJob *job)
{
connectSimpleJob(job);
- connect( job, TQT_SIGNAL( data(KIO::Job *, const TQByteArray &) ),
- this, TQT_SLOT( slotData(KIO::Job *, const TQByteArray &) ) );
- connect( job, TQT_SIGNAL( dataReq(KIO::Job *, TQByteArray &) ),
- this, TQT_SLOT( slotDataReq(KIO::Job *, TQByteArray &) ) );
- connect( job, TQT_SIGNAL( mimetype(KIO::Job *, const TQString &) ),
- this, TQT_SLOT( slotMimetype(KIO::Job *, const TQString &) ) );
- connect( job, TQT_SIGNAL( canResume(KIO::Job *, KIO::filesize_t) ),
- this, TQT_SLOT( slotCanResume(KIO::Job *, KIO::filesize_t) ) );
+ connect( job, TQT_SIGNAL( data(TDEIO::Job *, const TQByteArray &) ),
+ this, TQT_SLOT( slotData(TDEIO::Job *, const TQByteArray &) ) );
+ connect( job, TQT_SIGNAL( dataReq(TDEIO::Job *, TQByteArray &) ),
+ this, TQT_SLOT( slotDataReq(TDEIO::Job *, TQByteArray &) ) );
+ connect( job, TQT_SIGNAL( mimetype(TDEIO::Job *, const TQString &) ),
+ this, TQT_SLOT( slotMimetype(TDEIO::Job *, const TQString &) ) );
+ connect( job, TQT_SIGNAL( canResume(TDEIO::Job *, TDEIO::filesize_t) ),
+ this, TQT_SLOT( slotCanResume(TDEIO::Job *, TDEIO::filesize_t) ) );
}
-void ForwardingSlaveBase::connectLocalURLJob(KIO::LocalURLJob *job)
+void ForwardingSlaveBase::connectLocalURLJob(TDEIO::LocalURLJob *job)
{
connectJob(job);
- connect( job, TQT_SIGNAL( localURL(KIO::Job *, const KURL&, bool) ),
- this, TQT_SLOT( slotLocalURL(KIO::Job *, const KURL&, bool) ) );
+ connect( job, TQT_SIGNAL( localURL(TDEIO::Job *, const KURL&, bool) ),
+ this, TQT_SLOT( slotLocalURL(TDEIO::Job *, const KURL&, bool) ) );
}
//////////////////////////////////////////////////////////////////////////////
-void ForwardingSlaveBase::slotResult(KIO::Job *job)
+void ForwardingSlaveBase::slotResult(TDEIO::Job *job)
{
if ( job->error() != 0)
{
@@ -378,10 +378,10 @@ void ForwardingSlaveBase::slotResult(KIO::Job *job)
}
else
{
- KIO::StatJob *stat_job = dynamic_cast<KIO::StatJob *>(job);
+ TDEIO::StatJob *stat_job = dynamic_cast<TDEIO::StatJob *>(job);
if ( stat_job!=0L )
{
- KIO::UDSEntry entry = stat_job->statResult();
+ TDEIO::UDSEntry entry = stat_job->statResult();
prepareUDSEntry(entry);
statEntry( entry );
}
@@ -391,32 +391,32 @@ void ForwardingSlaveBase::slotResult(KIO::Job *job)
tqApp->eventLoop()->exitLoop();
}
-void ForwardingSlaveBase::slotWarning(KIO::Job* /*job*/, const TQString &msg)
+void ForwardingSlaveBase::slotWarning(TDEIO::Job* /*job*/, const TQString &msg)
{
warning(msg);
}
-void ForwardingSlaveBase::slotInfoMessage(KIO::Job* /*job*/, const TQString &msg)
+void ForwardingSlaveBase::slotInfoMessage(TDEIO::Job* /*job*/, const TQString &msg)
{
infoMessage(msg);
}
-void ForwardingSlaveBase::slotTotalSize(KIO::Job* /*job*/, KIO::filesize_t size)
+void ForwardingSlaveBase::slotTotalSize(TDEIO::Job* /*job*/, TDEIO::filesize_t size)
{
totalSize(size);
}
-void ForwardingSlaveBase::slotProcessedSize(KIO::Job* /*job*/, KIO::filesize_t size)
+void ForwardingSlaveBase::slotProcessedSize(TDEIO::Job* /*job*/, TDEIO::filesize_t size)
{
processedSize(size);
}
-void ForwardingSlaveBase::slotSpeed(KIO::Job* /*job*/, unsigned long bytesPerSecond)
+void ForwardingSlaveBase::slotSpeed(TDEIO::Job* /*job*/, unsigned long bytesPerSecond)
{
speed(bytesPerSecond);
}
-void ForwardingSlaveBase::slotRedirection(KIO::Job *job, const KURL &url)
+void ForwardingSlaveBase::slotRedirection(TDEIO::Job *job, const KURL &url)
{
redirection(url);
@@ -427,13 +427,13 @@ void ForwardingSlaveBase::slotRedirection(KIO::Job *job, const KURL &url)
tqApp->eventLoop()->exitLoop();
}
-void ForwardingSlaveBase::slotEntries(KIO::Job* /*job*/,
- const KIO::UDSEntryList &entries)
+void ForwardingSlaveBase::slotEntries(TDEIO::Job* /*job*/,
+ const TDEIO::UDSEntryList &entries)
{
- KIO::UDSEntryList final_entries = entries;
+ TDEIO::UDSEntryList final_entries = entries;
- KIO::UDSEntryList::iterator it = final_entries.begin();
- KIO::UDSEntryList::iterator end = final_entries.end();
+ TDEIO::UDSEntryList::iterator it = final_entries.begin();
+ TDEIO::UDSEntryList::iterator end = final_entries.end();
for(; it!=end; ++it)
{
@@ -443,28 +443,28 @@ void ForwardingSlaveBase::slotEntries(KIO::Job* /*job*/,
listEntries( final_entries );
}
-void ForwardingSlaveBase::slotData(KIO::Job* /*job*/, const TQByteArray &d)
+void ForwardingSlaveBase::slotData(TDEIO::Job* /*job*/, const TQByteArray &d)
{
data(d);
}
-void ForwardingSlaveBase::slotDataReq(KIO::Job* /*job*/, TQByteArray &data)
+void ForwardingSlaveBase::slotDataReq(TDEIO::Job* /*job*/, TQByteArray &data)
{
dataReq();
readData(data);
}
-void ForwardingSlaveBase::slotMimetype (KIO::Job* /*job*/, const TQString &type)
+void ForwardingSlaveBase::slotMimetype (TDEIO::Job* /*job*/, const TQString &type)
{
mimeType(type);
}
-void ForwardingSlaveBase::slotCanResume (KIO::Job* /*job*/, KIO::filesize_t offset)
+void ForwardingSlaveBase::slotCanResume (TDEIO::Job* /*job*/, TDEIO::filesize_t offset)
{
canResume(offset);
}
-void ForwardingSlaveBase::slotLocalURL(KIO::Job *, const KURL& url, bool)
+void ForwardingSlaveBase::slotLocalURL(TDEIO::Job *, const KURL& url, bool)
{
SlaveBase::localURL(url);
}
diff --git a/kio/kio/forwardingslavebase.h b/kio/kio/forwardingslavebase.h
index 1e6d303ee..49d01f4e2 100644
--- a/kio/kio/forwardingslavebase.h
+++ b/kio/kio/forwardingslavebase.h
@@ -25,7 +25,7 @@
#include <tqobject.h>
-namespace KIO
+namespace TDEIO
{
class ForwardingSlaveBasePrivate;
@@ -56,7 +56,7 @@ class ForwardingSlaveBasePrivate;
* if ( is_special )
* {
* // Handle the URL ourselves
- * KIO::UDSEntry entry;
+ * TDEIO::UDSEntry entry;
* // Fill entry with UDSAtom instances
* statEntry(entry);
* finished();
@@ -146,7 +146,7 @@ protected:
* @param listing indicate if this entry it created during a listDir
* operation
*/
- virtual void prepareUDSEntry(KIO::UDSEntry &entry,
+ virtual void prepareUDSEntry(TDEIO::UDSEntry &entry,
bool listing=false) const;
/**
@@ -175,28 +175,28 @@ private:
void connectLocalURLJob(LocalURLJob *job);
private slots:
- // KIO::Job
- void slotResult(KIO::Job *job);
- void slotWarning(KIO::Job *job, const TQString &msg);
- void slotInfoMessage(KIO::Job *job, const TQString &msg);
- void slotTotalSize(KIO::Job *job, KIO::filesize_t size);
- void slotProcessedSize(KIO::Job *job, KIO::filesize_t size);
- void slotSpeed(KIO::Job *job, unsigned long bytesPerSecond);
-
- // KIO::SimpleJob subclasses
- void slotRedirection(KIO::Job *job, const KURL &url);
-
- // KIO::ListJob
- void slotEntries(KIO::Job *job, const KIO::UDSEntryList &entries);
-
- // KIO::TransferJob
- void slotData(KIO::Job *job, const TQByteArray &data);
- void slotDataReq(KIO::Job *job, TQByteArray &data);
- void slotMimetype (KIO::Job *job, const TQString &type);
- void slotCanResume (KIO::Job *job, KIO::filesize_t offset);
-
- // KIO::LocalURLJob
- void slotLocalURL(KIO::Job *, const KURL&, bool);
+ // TDEIO::Job
+ void slotResult(TDEIO::Job *job);
+ void slotWarning(TDEIO::Job *job, const TQString &msg);
+ void slotInfoMessage(TDEIO::Job *job, const TQString &msg);
+ void slotTotalSize(TDEIO::Job *job, TDEIO::filesize_t size);
+ void slotProcessedSize(TDEIO::Job *job, TDEIO::filesize_t size);
+ void slotSpeed(TDEIO::Job *job, unsigned long bytesPerSecond);
+
+ // TDEIO::SimpleJob subclasses
+ void slotRedirection(TDEIO::Job *job, const KURL &url);
+
+ // TDEIO::ListJob
+ void slotEntries(TDEIO::Job *job, const TDEIO::UDSEntryList &entries);
+
+ // TDEIO::TransferJob
+ void slotData(TDEIO::Job *job, const TQByteArray &data);
+ void slotDataReq(TDEIO::Job *job, TQByteArray &data);
+ void slotMimetype (TDEIO::Job *job, const TQString &type);
+ void slotCanResume (TDEIO::Job *job, TDEIO::filesize_t offset);
+
+ // TDEIO::LocalURLJob
+ void slotLocalURL(TDEIO::Job *, const KURL&, bool);
};
}
diff --git a/kio/kio/global.cpp b/kio/kio/global.cpp
index 63ba82921..36706a6cf 100644
--- a/kio/kio/global.cpp
+++ b/kio/kio/global.cpp
@@ -42,7 +42,7 @@
#include <volmgt.h>
#endif
-KIO_EXPORT TQString KIO::convertSizeWithBytes( KIO::filesize_t size )
+KIO_EXPORT TQString TDEIO::convertSizeWithBytes( TDEIO::filesize_t size )
{
if ( size >= 1024 )
return convertSize( size ) + " (" + i18n( "%1 B" ).arg( TDEGlobal::locale()->formatNumber(size, 0) ) + ")";
@@ -50,7 +50,7 @@ KIO_EXPORT TQString KIO::convertSizeWithBytes( KIO::filesize_t size )
return convertSize( size );
}
-KIO_EXPORT TQString KIO::convertSize( KIO::filesize_t size )
+KIO_EXPORT TQString TDEIO::convertSize( TDEIO::filesize_t size )
{
double fsize = size;
TQString s;
@@ -88,20 +88,20 @@ KIO_EXPORT TQString KIO::convertSize( KIO::filesize_t size )
return s;
}
-KIO_EXPORT TQString KIO::convertSizeFromKB( KIO::filesize_t kbSize )
+KIO_EXPORT TQString TDEIO::convertSizeFromKB( TDEIO::filesize_t kbSize )
{
return convertSize(kbSize * 1024);
}
-KIO_EXPORT TQString KIO::number( KIO::filesize_t size )
+KIO_EXPORT TQString TDEIO::number( TDEIO::filesize_t size )
{
char charbuf[256];
sprintf(charbuf, "%lld", size);
return TQString::fromLatin1(charbuf);
}
-KIO_EXPORT unsigned int KIO::calculateRemainingSeconds( KIO::filesize_t totalSize,
- KIO::filesize_t processedSize, KIO::filesize_t speed )
+KIO_EXPORT unsigned int TDEIO::calculateRemainingSeconds( TDEIO::filesize_t totalSize,
+ TDEIO::filesize_t processedSize, TDEIO::filesize_t speed )
{
if ( (speed != 0) && (totalSize != 0) )
return ( totalSize - processedSize ) / speed;
@@ -109,7 +109,7 @@ KIO_EXPORT unsigned int KIO::calculateRemainingSeconds( KIO::filesize_t totalSiz
return 0;
}
-KIO_EXPORT TQString KIO::convertSeconds( unsigned int seconds )
+KIO_EXPORT TQString TDEIO::convertSeconds( unsigned int seconds )
{
unsigned int days = seconds / 86400;
unsigned int hours = (seconds - (days * 86400)) / 3600;
@@ -124,12 +124,12 @@ KIO_EXPORT TQString KIO::convertSeconds( unsigned int seconds )
return timeStr;
}
-KIO_EXPORT TQTime KIO::calculateRemaining( KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed )
+KIO_EXPORT TQTime TDEIO::calculateRemaining( TDEIO::filesize_t totalSize, TDEIO::filesize_t processedSize, TDEIO::filesize_t speed )
{
TQTime remainingTime;
if ( speed != 0 ) {
- KIO::filesize_t secs;
+ TDEIO::filesize_t secs;
if ( totalSize == 0 ) {
secs = 0;
} else {
@@ -147,7 +147,7 @@ KIO_EXPORT TQTime KIO::calculateRemaining( KIO::filesize_t totalSize, KIO::files
return remainingTime;
}
-KIO_EXPORT TQString KIO::itemsSummaryString(uint items, uint files, uint dirs, KIO::filesize_t size, bool showSize)
+KIO_EXPORT TQString TDEIO::itemsSummaryString(uint items, uint files, uint dirs, TDEIO::filesize_t size, bool showSize)
{
TQString text = items == 0 ? i18n( "No Items" ) : i18n( "One Item", "%n Items", items );
text += " - ";
@@ -155,14 +155,14 @@ KIO_EXPORT TQString KIO::itemsSummaryString(uint items, uint files, uint dirs, K
if ( showSize && files > 0 )
{
text += " ";
- text += i18n("(%1 Total)").arg(KIO::convertSize( size ) );
+ text += i18n("(%1 Total)").arg(TDEIO::convertSize( size ) );
}
text += " - ";
text += dirs == 0 ? i18n( "No Folders" ) : i18n("One Folder", "%n Folders", dirs);
return text;
}
-KIO_EXPORT TQString KIO::encodeFileName( const TQString & _str )
+KIO_EXPORT TQString TDEIO::encodeFileName( const TQString & _str )
{
TQString str( _str );
@@ -177,7 +177,7 @@ KIO_EXPORT TQString KIO::encodeFileName( const TQString & _str )
return str;
}
-KIO_EXPORT TQString KIO::decodeFileName( const TQString & _str )
+KIO_EXPORT TQString TDEIO::decodeFileName( const TQString & _str )
{
TQString str;
@@ -205,210 +205,210 @@ KIO_EXPORT TQString KIO::decodeFileName( const TQString & _str )
return str;
}
-KIO_EXPORT TQString KIO::Job::errorString() const
+KIO_EXPORT TQString TDEIO::Job::errorString() const
{
- return KIO::buildErrorString(m_error, m_errorText);
+ return TDEIO::buildErrorString(m_error, m_errorText);
}
-KIO_EXPORT TQString KIO::buildErrorString(int errorCode, const TQString &errorText)
+KIO_EXPORT TQString TDEIO::buildErrorString(int errorCode, const TQString &errorText)
{
TQString result;
switch( errorCode )
{
- case KIO::ERR_CANNOT_OPEN_FOR_READING:
+ case TDEIO::ERR_CANNOT_OPEN_FOR_READING:
result = i18n( "Could not read %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_OPEN_FOR_WRITING:
+ case TDEIO::ERR_CANNOT_OPEN_FOR_WRITING:
result = i18n( "Could not write to %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_LAUNCH_PROCESS:
+ case TDEIO::ERR_CANNOT_LAUNCH_PROCESS:
result = i18n( "Could not start process %1." ).arg( errorText );
break;
- case KIO::ERR_INTERNAL:
+ case TDEIO::ERR_INTERNAL:
result = i18n( "Internal Error\nPlease send a full bug report at http://bugs.kde.org\n%1" ).arg( errorText );
break;
- case KIO::ERR_MALFORMED_URL:
+ case TDEIO::ERR_MALFORMED_URL:
result = i18n( "Malformed URL %1." ).arg( errorText );
break;
- case KIO::ERR_UNSUPPORTED_PROTOCOL:
+ case TDEIO::ERR_UNSUPPORTED_PROTOCOL:
result = i18n( "The protocol %1 is not supported." ).arg( errorText );
break;
- case KIO::ERR_NO_SOURCE_PROTOCOL:
+ case TDEIO::ERR_NO_SOURCE_PROTOCOL:
result = i18n( "The protocol %1 is only a filter protocol.").arg( errorText );
break;
- case KIO::ERR_UNSUPPORTED_ACTION:
+ case TDEIO::ERR_UNSUPPORTED_ACTION:
result = errorText;
// result = i18n( "Unsupported action %1" ).arg( errorText );
break;
- case KIO::ERR_IS_DIRECTORY:
+ case TDEIO::ERR_IS_DIRECTORY:
result = i18n( "%1 is a folder, but a file was expected." ).arg( errorText );
break;
- case KIO::ERR_IS_FILE:
+ case TDEIO::ERR_IS_FILE:
result = i18n( "%1 is a file, but a folder was expected." ).arg( errorText );
break;
- case KIO::ERR_DOES_NOT_EXIST:
+ case TDEIO::ERR_DOES_NOT_EXIST:
result = i18n( "The file or folder %1 does not exist." ).arg( errorText );
break;
- case KIO::ERR_FILE_ALREADY_EXIST:
+ case TDEIO::ERR_FILE_ALREADY_EXIST:
result = i18n( "A file named %1 already exists." ).arg( errorText );
break;
- case KIO::ERR_DIR_ALREADY_EXIST:
+ case TDEIO::ERR_DIR_ALREADY_EXIST:
result = i18n( "A folder named %1 already exists." ).arg( errorText );
break;
- case KIO::ERR_UNKNOWN_HOST:
+ case TDEIO::ERR_UNKNOWN_HOST:
result = errorText.isEmpty() ? i18n( "No hostname specified." ) : i18n( "Unknown host %1" ).arg( errorText );
break;
- case KIO::ERR_ACCESS_DENIED:
+ case TDEIO::ERR_ACCESS_DENIED:
result = i18n( "Access denied to %1." ).arg( errorText );
break;
- case KIO::ERR_WRITE_ACCESS_DENIED:
+ case TDEIO::ERR_WRITE_ACCESS_DENIED:
result = i18n( "Access denied.\nCould not write to %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_ENTER_DIRECTORY:
+ case TDEIO::ERR_CANNOT_ENTER_DIRECTORY:
result = i18n( "Could not enter folder %1." ).arg( errorText );
break;
- case KIO::ERR_PROTOCOL_IS_NOT_A_FILESYSTEM:
+ case TDEIO::ERR_PROTOCOL_IS_NOT_A_FILESYSTEM:
result = i18n( "The protocol %1 does not implement a folder service." ).arg( errorText );
break;
- case KIO::ERR_CYCLIC_LINK:
+ case TDEIO::ERR_CYCLIC_LINK:
result = i18n( "Found a cyclic link in %1." ).arg( errorText );
break;
- case KIO::ERR_USER_CANCELED:
+ case TDEIO::ERR_USER_CANCELED:
// Do nothing in this case. The user doesn't need to be told what he just did.
break;
- case KIO::ERR_CYCLIC_COPY:
+ case TDEIO::ERR_CYCLIC_COPY:
result = i18n( "Found a cyclic link while copying %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_CREATE_SOCKET:
+ case TDEIO::ERR_COULD_NOT_CREATE_SOCKET:
result = i18n( "Could not create socket for accessing %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_CONNECT:
+ case TDEIO::ERR_COULD_NOT_CONNECT:
result = i18n( "Could not connect to host %1." ).arg( errorText.isEmpty() ? TQString::fromLatin1("localhost") : errorText );
break;
- case KIO::ERR_CONNECTION_BROKEN:
+ case TDEIO::ERR_CONNECTION_BROKEN:
result = i18n( "Connection to host %1 is broken." ).arg( errorText );
break;
- case KIO::ERR_NOT_FILTER_PROTOCOL:
+ case TDEIO::ERR_NOT_FILTER_PROTOCOL:
result = i18n( "The protocol %1 is not a filter protocol." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_MOUNT:
+ case TDEIO::ERR_COULD_NOT_MOUNT:
result = i18n( "Could not mount device.\nThe reported error was:\n%1" ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_UNMOUNT:
+ case TDEIO::ERR_COULD_NOT_UNMOUNT:
result = i18n( "Could not unmount device.\nThe reported error was:\n%1" ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_READ:
+ case TDEIO::ERR_COULD_NOT_READ:
result = i18n( "Could not read file %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_WRITE:
+ case TDEIO::ERR_COULD_NOT_WRITE:
result = i18n( "Could not write to file %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_BIND:
+ case TDEIO::ERR_COULD_NOT_BIND:
result = i18n( "Could not bind %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_LISTEN:
+ case TDEIO::ERR_COULD_NOT_LISTEN:
result = i18n( "Could not listen %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_ACCEPT:
+ case TDEIO::ERR_COULD_NOT_ACCEPT:
result = i18n( "Could not accept %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_LOGIN:
+ case TDEIO::ERR_COULD_NOT_LOGIN:
result = errorText;
break;
- case KIO::ERR_COULD_NOT_STAT:
+ case TDEIO::ERR_COULD_NOT_STAT:
result = i18n( "Could not access %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_CLOSEDIR:
+ case TDEIO::ERR_COULD_NOT_CLOSEDIR:
result = i18n( "Could not terminate listing %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_MKDIR:
+ case TDEIO::ERR_COULD_NOT_MKDIR:
result = i18n( "Could not make folder %1." ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_RMDIR:
+ case TDEIO::ERR_COULD_NOT_RMDIR:
result = i18n( "Could not remove folder %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_RESUME:
+ case TDEIO::ERR_CANNOT_RESUME:
result = i18n( "Could not resume file %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_RENAME:
+ case TDEIO::ERR_CANNOT_RENAME:
result = i18n( "Could not rename file %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_CHMOD:
+ case TDEIO::ERR_CANNOT_CHMOD:
result = i18n( "Could not change permissions for %1." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_DELETE:
+ case TDEIO::ERR_CANNOT_DELETE:
result = i18n( "Could not delete file %1." ).arg( errorText );
break;
- case KIO::ERR_SLAVE_DIED:
+ case TDEIO::ERR_SLAVE_DIED:
result = i18n( "The process for the %1 protocol died unexpectedly." ).arg( errorText );
break;
- case KIO::ERR_OUT_OF_MEMORY:
+ case TDEIO::ERR_OUT_OF_MEMORY:
result = i18n( "Error. Out of memory.\n%1" ).arg( errorText );
break;
- case KIO::ERR_UNKNOWN_PROXY_HOST:
+ case TDEIO::ERR_UNKNOWN_PROXY_HOST:
result = i18n( "Unknown proxy host\n%1" ).arg( errorText );
break;
- case KIO::ERR_COULD_NOT_AUTHENTICATE:
+ case TDEIO::ERR_COULD_NOT_AUTHENTICATE:
result = i18n( "Authorization failed, %1 authentication not supported" ).arg( errorText );
break;
- case KIO::ERR_ABORTED:
+ case TDEIO::ERR_ABORTED:
result = i18n( "User canceled action\n%1" ).arg( errorText );
break;
- case KIO::ERR_INTERNAL_SERVER:
+ case TDEIO::ERR_INTERNAL_SERVER:
result = i18n( "Internal error in server\n%1" ).arg( errorText );
break;
- case KIO::ERR_SERVER_TIMEOUT:
+ case TDEIO::ERR_SERVER_TIMEOUT:
result = i18n( "Timeout on server\n%1" ).arg( errorText );
break;
- case KIO::ERR_UNKNOWN:
+ case TDEIO::ERR_UNKNOWN:
result = i18n( "Unknown error\n%1" ).arg( errorText );
break;
- case KIO::ERR_UNKNOWN_INTERRUPT:
+ case TDEIO::ERR_UNKNOWN_INTERRUPT:
result = i18n( "Unknown interrupt\n%1" ).arg( errorText );
break;
/*
- case KIO::ERR_CHECKSUM_MISMATCH:
+ case TDEIO::ERR_CHECKSUM_MISMATCH:
if (errorText)
result = i18n( "Warning: MD5 Checksum for %1 does not match checksum returned from server" ).arg(errorText);
else
result = i18n( "Warning: MD5 Checksum for %1 does not match checksum returned from server" ).arg("document");
break;
*/
- case KIO::ERR_CANNOT_DELETE_ORIGINAL:
+ case TDEIO::ERR_CANNOT_DELETE_ORIGINAL:
result = i18n( "Could not delete original file %1.\nPlease check permissions." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_DELETE_PARTIAL:
+ case TDEIO::ERR_CANNOT_DELETE_PARTIAL:
result = i18n( "Could not delete partial file %1.\nPlease check permissions." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_RENAME_ORIGINAL:
+ case TDEIO::ERR_CANNOT_RENAME_ORIGINAL:
result = i18n( "Could not rename original file %1.\nPlease check permissions." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_RENAME_PARTIAL:
+ case TDEIO::ERR_CANNOT_RENAME_PARTIAL:
result = i18n( "Could not rename partial file %1.\nPlease check permissions." ).arg( errorText );
break;
- case KIO::ERR_CANNOT_SYMLINK:
+ case TDEIO::ERR_CANNOT_SYMLINK:
result = i18n( "Could not create symlink %1.\nPlease check permissions." ).arg( errorText );
break;
- case KIO::ERR_NO_CONTENT:
+ case TDEIO::ERR_NO_CONTENT:
result = errorText;
break;
- case KIO::ERR_DISK_FULL:
+ case TDEIO::ERR_DISK_FULL:
result = i18n( "Could not write file %1.\nDisk full." ).arg( errorText );
break;
- case KIO::ERR_IDENTICAL_FILES:
+ case TDEIO::ERR_IDENTICAL_FILES:
result = i18n( "The source and destination are the same file.\n%1" ).arg( errorText );
break;
- case KIO::ERR_SLAVE_DEFINED:
+ case TDEIO::ERR_SLAVE_DEFINED:
result = errorText;
break;
- case KIO::ERR_UPGRADE_REQUIRED:
+ case TDEIO::ERR_UPGRADE_REQUIRED:
result = i18n( "%1 is required by the server, but is not available." ).arg(errorText);
break;
- case KIO::ERR_POST_DENIED:
+ case TDEIO::ERR_POST_DENIED:
result = i18n( "Access to restricted port in POST denied.");
break;
- case KIO::ERR_OFFLINE_MODE:
+ case TDEIO::ERR_OFFLINE_MODE:
result = i18n( "Could not access %1.\nOffline mode active.").arg( errorText );
break;
default:
@@ -419,7 +419,7 @@ KIO_EXPORT TQString KIO::buildErrorString(int errorCode, const TQString &errorTe
return result;
}
-KIO_EXPORT TQString KIO::unsupportedActionErrorString(const TQString &protocol, int cmd) {
+KIO_EXPORT TQString TDEIO::unsupportedActionErrorString(const TQString &protocol, int cmd) {
switch (cmd) {
case CMD_CONNECT:
return i18n("Opening connections is not supported with the protocol %1." ).arg(protocol);
@@ -458,7 +458,7 @@ KIO_EXPORT TQString KIO::unsupportedActionErrorString(const TQString &protocol,
}/*end switch*/
}
-KIO_EXPORT TQStringList KIO::Job::detailedErrorStrings( const KURL *reqUrl /*= 0L*/,
+KIO_EXPORT TQStringList TDEIO::Job::detailedErrorStrings( const KURL *reqUrl /*= 0L*/,
int method /*= -1*/ ) const
{
TQString errorName, techName, description, ret2;
@@ -508,7 +508,7 @@ KIO_EXPORT TQStringList KIO::Job::detailedErrorStrings( const KURL *reqUrl /*= 0
return ret;
}
-KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorText,
+KIO_EXPORT TQByteArray TDEIO::rawErrorDetail(int errorCode, const TQString &errorText,
const KURL *reqUrl /*= 0L*/, int /*method = -1*/ )
{
TQString url, host, protocol, datetime, domain, path, dir, filename;
@@ -612,7 +612,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
TQString sNetwork = i18n( "Check your network connection status." );
switch( errorCode ) {
- case KIO::ERR_CANNOT_OPEN_FOR_READING:
+ case TDEIO::ERR_CANNOT_OPEN_FOR_READING:
errorName = i18n( "Cannot Open Resource For Reading" );
description = i18n( "This means that the contents of the requested file "
"or folder <strong>%1</strong> could not be retrieved, as read "
@@ -622,7 +622,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sQuerylock << sSysadmin;
break;
- case KIO::ERR_CANNOT_OPEN_FOR_WRITING:
+ case TDEIO::ERR_CANNOT_OPEN_FOR_WRITING:
errorName = i18n( "Cannot Open Resource For Writing" );
description = i18n( "This means that the file, <strong>%1</strong>, could "
"not be written to as requested, because access with permission to "
@@ -631,7 +631,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sQuerylock << sSysadmin;
break;
- case KIO::ERR_CANNOT_LAUNCH_PROCESS:
+ case TDEIO::ERR_CANNOT_LAUNCH_PROCESS:
errorName = i18n( "Cannot Initiate the %1 Protocol" ).arg( protocol );
techName = i18n( "Unable to Launch Process" );
description = i18n( "The program on your computer which provides access "
@@ -644,7 +644,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sSysadmin;
break;
- case KIO::ERR_INTERNAL:
+ case TDEIO::ERR_INTERNAL:
errorName = i18n( "Internal Error" );
description = i18n( "The program on your computer which provides access "
"to the <strong>%1</strong> protocol has reported an internal error." )
@@ -653,7 +653,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sBugreport;
break;
- case KIO::ERR_MALFORMED_URL:
+ case TDEIO::ERR_MALFORMED_URL:
errorName = i18n( "Improperly Formatted URL" );
description = i18n( "The <strong>U</strong>niform <strong>R</strong>esource "
"<strong>L</strong>ocator (URL) that you entered was not properly "
@@ -663,7 +663,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sTypo;
break;
- case KIO::ERR_UNSUPPORTED_PROTOCOL:
+ case TDEIO::ERR_UNSUPPORTED_PROTOCOL:
errorName = i18n( "Unsupported Protocol %1" ).arg( protocol );
description = i18n( "The protocol <strong>%1</strong> is not supported "
"by the TDE programs currently installed on this computer." )
@@ -679,7 +679,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
<< sUpdate << sSysadmin;
break;
- case KIO::ERR_NO_SOURCE_PROTOCOL:
+ case TDEIO::ERR_NO_SOURCE_PROTOCOL:
errorName = i18n( "URL Does Not Refer to a Resource." );
techName = i18n( "Protocol is a Filter Protocol" );
description = i18n( "The <strong>U</strong>niform <strong>R</strong>esource "
@@ -692,7 +692,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sTypo;
break;
- case KIO::ERR_UNSUPPORTED_ACTION:
+ case TDEIO::ERR_UNSUPPORTED_ACTION:
errorName = i18n( "Unsupported Action: %1" ).arg( errorText );
description = i18n( "The requested action is not supported by the TDE "
"program which is implementing the <strong>%1</strong> protocol." )
@@ -704,7 +704,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"outcome." );
break;
- case KIO::ERR_IS_DIRECTORY:
+ case TDEIO::ERR_IS_DIRECTORY:
errorName = i18n( "File Expected" );
description = i18n( "The request expected a file, however the "
"folder <strong>%1</strong> was found instead." ).arg( dir );
@@ -712,7 +712,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sSysadmin;
break;
- case KIO::ERR_IS_FILE:
+ case TDEIO::ERR_IS_FILE:
errorName = i18n( "Folder Expected" );
description = i18n( "The request expected a folder, however "
"the file <strong>%1</strong> was found instead." ).arg( filename );
@@ -720,7 +720,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sSysadmin;
break;
- case KIO::ERR_DOES_NOT_EXIST:
+ case TDEIO::ERR_DOES_NOT_EXIST:
errorName = i18n( "File or Folder Does Not Exist" );
description = i18n( "The specified file or folder <strong>%1</strong> "
"does not exist." ).arg( dir );
@@ -728,7 +728,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sSysadmin;
break;
- case KIO::ERR_FILE_ALREADY_EXIST:
+ case TDEIO::ERR_FILE_ALREADY_EXIST:
errorName = i18n( "File Already Exists" );
description = i18n( "The requested file could not be created because a "
"file with the same name already exists." );
@@ -738,7 +738,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
<< i18n( "Choose an alternate filename for the new file." );
break;
- case KIO::ERR_DIR_ALREADY_EXIST:
+ case TDEIO::ERR_DIR_ALREADY_EXIST:
errorName = i18n( "Folder Already Exists" );
description = i18n( "The requested folder could not be created because "
"a folder with the same name already exists." );
@@ -748,7 +748,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
<< i18n( "Choose an alternate name for the new folder." );
break;
- case KIO::ERR_UNKNOWN_HOST:
+ case TDEIO::ERR_UNKNOWN_HOST:
errorName = i18n( "Unknown Host" );
description = i18n( "An unknown host error indicates that the server with "
"the requested name, <strong>%1</strong>, could not be "
@@ -759,7 +759,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sNetwork << sSysadmin;
break;
- case KIO::ERR_ACCESS_DENIED:
+ case TDEIO::ERR_ACCESS_DENIED:
errorName = i18n( "Access Denied" );
description = i18n( "Access was denied to the specified resource, "
"<strong>%1</strong>." ).arg( url );
@@ -772,7 +772,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
if ( !isSlaveNetwork ) solutions << sServeradmin;
break;
- case KIO::ERR_WRITE_ACCESS_DENIED:
+ case TDEIO::ERR_WRITE_ACCESS_DENIED:
errorName = i18n( "Write Access Denied" );
description = i18n( "This means that an attempt to write to the file "
"<strong>%1</strong> was rejected." ).arg( filename );
@@ -780,7 +780,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sQuerylock << sSysadmin;
break;
- case KIO::ERR_CANNOT_ENTER_DIRECTORY:
+ case TDEIO::ERR_CANNOT_ENTER_DIRECTORY:
errorName = i18n( "Unable to Enter Folder" );
description = i18n( "This means that an attempt to enter (in other words, "
"to open) the requested folder <strong>%1</strong> was rejected." )
@@ -789,7 +789,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sQuerylock << sSysadmin;
break;
- case KIO::ERR_PROTOCOL_IS_NOT_A_FILESYSTEM:
+ case TDEIO::ERR_PROTOCOL_IS_NOT_A_FILESYSTEM:
errorName = i18n( "Folder Listing Unavailable" );
techName = i18n( "Protocol %1 is not a Filesystem" ).arg( protocol );
description = i18n( "This means that a request was made which requires "
@@ -799,7 +799,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sBugreport;
break;
- case KIO::ERR_CYCLIC_LINK:
+ case TDEIO::ERR_CYCLIC_LINK:
errorName = i18n( "Cyclic Link Detected" );
description = i18n( "UNIX environments are commonly able to link a file or "
"folder to a separate name and/or location. TDE detected a link or "
@@ -809,7 +809,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"cause an infinite loop, and try again." ) << sSysadmin;
break;
- case KIO::ERR_USER_CANCELED:
+ case TDEIO::ERR_USER_CANCELED:
// Do nothing in this case. The user doesn't need to be told what he just did.
// rodda: However, if we have been called, an application is about to display
// this information anyway. If we don't return sensible information, the
@@ -820,7 +820,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << i18n( "Retry the request." );
break;
- case KIO::ERR_CYCLIC_COPY:
+ case TDEIO::ERR_CYCLIC_COPY:
errorName = i18n( "Cyclic Link Detected During Copy" );
description = i18n( "UNIX environments are commonly able to link a file or "
"folder to a separate name and/or location. During the requested copy "
@@ -831,7 +831,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"cause an infinite loop, and try again." ) << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_CREATE_SOCKET:
+ case TDEIO::ERR_COULD_NOT_CREATE_SOCKET:
errorName = i18n( "Could Not Create Network Connection" );
techName = i18n( "Could Not Create Socket" );
description = i18n( "This is a fairly technical error in which a required "
@@ -841,7 +841,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sNetwork << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_CONNECT:
+ case TDEIO::ERR_COULD_NOT_CONNECT:
errorName = i18n( "Connection to Server Refused" );
description = i18n( "The server <strong>%1</strong> refused to allow this "
"computer to make a connection." ).arg( host );
@@ -855,7 +855,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sTryagain << sServeradmin << sSysadmin;
break;
- case KIO::ERR_CONNECTION_BROKEN:
+ case TDEIO::ERR_CONNECTION_BROKEN:
errorName = i18n( "Connection to Server Closed Unexpectedly" );
description = i18n( "Although a connection was established to "
"<strong>%1</strong>, the connection was closed at an unexpected point "
@@ -865,7 +865,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sTryagain << sServeradmin << sSysadmin;
break;
- case KIO::ERR_NOT_FILTER_PROTOCOL:
+ case TDEIO::ERR_NOT_FILTER_PROTOCOL:
errorName = i18n( "URL Resource Invalid" );
techName = i18n( "Protocol %1 is not a Filter Protocol" ).arg( protocol );
description = i18n( "The <strong>U</strong>niform <strong>R</strong>esource "
@@ -880,7 +880,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sTypo << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_MOUNT:
+ case TDEIO::ERR_COULD_NOT_MOUNT:
errorName = i18n( "Unable to Initialize Input/Output Device" );
techName = i18n( "Could Not Mount Device" );
description = i18n( "The requested device could not be initialized "
@@ -899,7 +899,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"on.; and try again." ) << sAccess << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_UNMOUNT:
+ case TDEIO::ERR_COULD_NOT_UNMOUNT:
errorName = i18n( "Unable to Uninitialize Input/Output Device" );
techName = i18n( "Could Not Unmount Device" );
description = i18n( "The requested device could not be uninitialized "
@@ -917,7 +917,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"and try again." ) << sAccess << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_READ:
+ case TDEIO::ERR_COULD_NOT_READ:
errorName = i18n( "Cannot Read From Resource" );
description = i18n( "This means that although the resource, "
"<strong>%1</strong>, was able to be opened, an error occurred while "
@@ -930,7 +930,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_WRITE:
+ case TDEIO::ERR_COULD_NOT_WRITE:
errorName = i18n( "Cannot Write to Resource" );
description = i18n( "This means that although the resource, <strong>%1</strong>"
", was able to be opened, an error occurred while writing to the resource." )
@@ -943,7 +943,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_BIND:
+ case TDEIO::ERR_COULD_NOT_BIND:
errorName = i18n( "Could Not Listen for Network Connections" );
techName = i18n( "Could Not Bind" );
description = i18n( "This is a fairly technical error in which a required "
@@ -954,7 +954,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sNetwork << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_LISTEN:
+ case TDEIO::ERR_COULD_NOT_LISTEN:
errorName = i18n( "Could Not Listen for Network Connections" );
techName = i18n( "Could Not Listen" );
description = i18n( "This is a fairly technical error in which a required "
@@ -965,7 +965,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sNetwork << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_ACCEPT:
+ case TDEIO::ERR_COULD_NOT_ACCEPT:
errorName = i18n( "Could Not Accept Network Connection" );
description = i18n( "This is a fairly technical error in which an error "
"occurred while attempting to accept an incoming network connection." );
@@ -975,7 +975,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sNetwork << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_LOGIN:
+ case TDEIO::ERR_COULD_NOT_LOGIN:
errorName = i18n( "Could Not Login: %1" ).arg( errorText );
description = i18n( "An attempt to login to perform the requested "
"operation was unsuccessful." );
@@ -987,7 +987,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"are entered correctly." ) << sServeradmin << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_STAT:
+ case TDEIO::ERR_COULD_NOT_STAT:
errorName = i18n( "Could Not Determine Resource Status" );
techName = i18n( "Could Not Stat Resource" );
description = i18n( "An attempt to determine information about the status "
@@ -999,13 +999,13 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"are entered correctly." ) << sSysadmin;
break;
- case KIO::ERR_COULD_NOT_CLOSEDIR:
+ case TDEIO::ERR_COULD_NOT_CLOSEDIR:
//result = i18n( "Could not terminate listing %1" ).arg( errorText );
errorName = i18n( "Could Not Cancel Listing" );
techName = i18n( "FIXME: Document this" );
break;
- case KIO::ERR_COULD_NOT_MKDIR:
+ case TDEIO::ERR_COULD_NOT_MKDIR:
errorName = i18n( "Could Not Create Folder" );
description = i18n( "An attempt to create the requested folder failed." );
causes << cAccess << i18n( "The location where the folder was to be created "
@@ -1014,7 +1014,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << i18n( "Retry the request." ) << sAccess;
break;
- case KIO::ERR_COULD_NOT_RMDIR:
+ case TDEIO::ERR_COULD_NOT_RMDIR:
errorName = i18n( "Could Not Remove Folder" );
description = i18n( "An attempt to remove the specified folder, "
"<strong>%1</strong>, failed." ).arg( dir );
@@ -1026,7 +1026,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"again." ) << sAccess;
break;
- case KIO::ERR_CANNOT_RESUME:
+ case TDEIO::ERR_CANNOT_RESUME:
errorName = i18n( "Could Not Resume File Transfer" );
description = i18n( "The specified request asked that the transfer of "
"file <strong>%1</strong> be resumed at a certain point of the "
@@ -1037,7 +1037,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"transfer." );
break;
- case KIO::ERR_CANNOT_RENAME:
+ case TDEIO::ERR_CANNOT_RENAME:
errorName = i18n( "Could Not Rename Resource" );
description = i18n( "An attempt to rename the specified resource "
"<strong>%1</strong> failed." ).arg( url );
@@ -1046,7 +1046,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sExists;
break;
- case KIO::ERR_CANNOT_CHMOD:
+ case TDEIO::ERR_CANNOT_CHMOD:
errorName = i18n( "Could Not Alter Permissions of Resource" );
description = i18n( "An attempt to alter the permissions on the specified "
"resource <strong>%1</strong> failed." ).arg( url );
@@ -1054,7 +1054,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sExists;
break;
- case KIO::ERR_CANNOT_DELETE:
+ case TDEIO::ERR_CANNOT_DELETE:
errorName = i18n( "Could Not Delete Resource" );
description = i18n( "An attempt to delete the specified resource "
"<strong>%1</strong> failed." ).arg( url );
@@ -1062,7 +1062,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess << sExists;
break;
- case KIO::ERR_SLAVE_DIED:
+ case TDEIO::ERR_SLAVE_DIED:
errorName = i18n( "Unexpected Program Termination" );
description = i18n( "The program on your computer which provides access "
"to the <strong>%1</strong> protocol has unexpectedly terminated." )
@@ -1071,7 +1071,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sBugreport;
break;
- case KIO::ERR_OUT_OF_MEMORY:
+ case TDEIO::ERR_OUT_OF_MEMORY:
errorName = i18n( "Out of Memory" );
description = i18n( "The program on your computer which provides access "
"to the <strong>%1</strong> protocol could not obtain the memory "
@@ -1080,7 +1080,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sBugreport;
break;
- case KIO::ERR_UNKNOWN_PROXY_HOST:
+ case TDEIO::ERR_UNKNOWN_PROXY_HOST:
errorName = i18n( "Unknown Proxy Host" );
description = i18n( "While retrieving information about the specified "
"proxy host, <strong>%1</strong>, an Unknown Host error was encountered. "
@@ -1094,7 +1094,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
<< sSysadmin;
break;
- case KIO::ERR_COULD_NOT_AUTHENTICATE:
+ case TDEIO::ERR_COULD_NOT_AUTHENTICATE:
errorName = i18n( "Authentication Failed: Method %1 Not Supported" )
.arg( errorText );
description = i18n( "Although you may have supplied the correct "
@@ -1106,14 +1106,14 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"authentication method." ) << sSysadmin;
break;
- case KIO::ERR_ABORTED:
+ case TDEIO::ERR_ABORTED:
errorName = i18n( "Request Aborted" );
description = i18n( "The request was not completed because it was "
"aborted." );
solutions << i18n( "Retry the request." );
break;
- case KIO::ERR_INTERNAL_SERVER:
+ case TDEIO::ERR_INTERNAL_SERVER:
errorName = i18n( "Internal Error in Server" );
description = i18n( "The program on the server which provides access "
"to the <strong>%1</strong> protocol has reported an internal error: "
@@ -1127,7 +1127,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
"submit the bug report directly to them." );
break;
- case KIO::ERR_SERVER_TIMEOUT:
+ case TDEIO::ERR_SERVER_TIMEOUT:
errorName = i18n( "Timeout Error" );
description = i18n( "Although contact was made with the server, a "
"response was not received within the amount of time allocated for "
@@ -1145,7 +1145,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sTryagain << sServeradmin;
break;
- case KIO::ERR_UNKNOWN:
+ case TDEIO::ERR_UNKNOWN:
errorName = i18n( "Unknown Error" );
description = i18n( "The program on your computer which provides access "
"to the <strong>%1</strong> protocol has reported an unknown error: "
@@ -1154,7 +1154,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sBugreport;
break;
- case KIO::ERR_UNKNOWN_INTERRUPT:
+ case TDEIO::ERR_UNKNOWN_INTERRUPT:
errorName = i18n( "Unknown Interruption" );
description = i18n( "The program on your computer which provides access "
"to the <strong>%1</strong> protocol has reported an interruption of "
@@ -1163,7 +1163,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sUpdate << sBugreport;
break;
- case KIO::ERR_CANNOT_DELETE_ORIGINAL:
+ case TDEIO::ERR_CANNOT_DELETE_ORIGINAL:
errorName = i18n( "Could Not Delete Original File" );
description = i18n( "The requested operation required the deleting of "
"the original file, most likely at the end of a file move operation. "
@@ -1173,7 +1173,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess;
break;
- case KIO::ERR_CANNOT_DELETE_PARTIAL:
+ case TDEIO::ERR_CANNOT_DELETE_PARTIAL:
errorName = i18n( "Could Not Delete Temporary File" );
description = i18n( "The requested operation required the creation of "
"a temporary file in which to save the new file while being "
@@ -1183,7 +1183,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess;
break;
- case KIO::ERR_CANNOT_RENAME_ORIGINAL:
+ case TDEIO::ERR_CANNOT_RENAME_ORIGINAL:
errorName = i18n( "Could Not Rename Original File" );
description = i18n( "The requested operation required the renaming of "
"the original file <strong>%1</strong>, however it could not be "
@@ -1192,7 +1192,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess;
break;
- case KIO::ERR_CANNOT_RENAME_PARTIAL:
+ case TDEIO::ERR_CANNOT_RENAME_PARTIAL:
errorName = i18n( "Could Not Rename Temporary File" );
description = i18n( "The requested operation required the creation of "
"a temporary file <strong>%1</strong>, however it could not be "
@@ -1201,7 +1201,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess;
break;
- case KIO::ERR_CANNOT_SYMLINK:
+ case TDEIO::ERR_CANNOT_SYMLINK:
errorName = i18n( "Could Not Create Link" );
techName = i18n( "Could Not Create Symbolic Link" );
description = i18n( "The requested symbolic link %1 could not be created." )
@@ -1210,12 +1210,12 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
solutions << sAccess;
break;
- case KIO::ERR_NO_CONTENT:
+ case TDEIO::ERR_NO_CONTENT:
errorName = i18n( "No Content" );
description = errorText;
break;
- case KIO::ERR_DISK_FULL:
+ case TDEIO::ERR_DISK_FULL:
errorName = i18n( "Disk Full" );
description = i18n( "The requested file <strong>%1</strong> could not be "
"written to as there is inadequate disk space." ).arg( errorText );
@@ -1225,7 +1225,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
<< sSysadmin;
break;
- case KIO::ERR_IDENTICAL_FILES:
+ case TDEIO::ERR_IDENTICAL_FILES:
errorName = i18n( "Source and Destination Files Identical" );
description = i18n( "The operation could not be completed because the "
"source and destination files are the same file." );
@@ -1233,7 +1233,7 @@ KIO_EXPORT TQByteArray KIO::rawErrorDetail(int errorCode, const TQString &errorT
break;
// We assume that the slave has all the details
- case KIO::ERR_SLAVE_DEFINED:
+ case TDEIO::ERR_SLAVE_DEFINED:
errorName = TQString::null;
description = errorText;
break;
@@ -1368,7 +1368,7 @@ extern "C" void endvfsent( );
#endif /* HAVE_GETMNTINFO */
-TQString KIO::findDeviceMountPoint( const TQString& filename )
+TQString TDEIO::findDeviceMountPoint( const TQString& filename )
{
TQString result;
@@ -1909,13 +1909,13 @@ static TQString get_mount_info(const TQString& filename,
#else //!Q_OS_UNIX
//dummy
-TQString KIO::findDeviceMountPoint( const TQString& filename )
+TQString TDEIO::findDeviceMountPoint( const TQString& filename )
{
return TQString::null;
}
#endif
-TQString KIO::findPathMountPoint(const TQString& filename)
+TQString TDEIO::findPathMountPoint(const TQString& filename)
{
#ifdef Q_OS_UNIX
MountState isautofs = Unseen, isslow = Unseen, ismanual = Wrong;
@@ -1926,7 +1926,7 @@ TQString KIO::findPathMountPoint(const TQString& filename)
#endif
}
-bool KIO::manually_mounted(const TQString& filename)
+bool TDEIO::manually_mounted(const TQString& filename)
{
#ifdef Q_OS_UNIX
MountState isautofs = Unseen, isslow = Unseen, ismanual = Unseen;
@@ -1938,7 +1938,7 @@ bool KIO::manually_mounted(const TQString& filename)
#endif
}
-bool KIO::probably_slow_mounted(const TQString& filename)
+bool TDEIO::probably_slow_mounted(const TQString& filename)
{
#ifdef Q_OS_UNIX
MountState isautofs = Unseen, isslow = Unseen, ismanual = Wrong;
@@ -1950,7 +1950,7 @@ bool KIO::probably_slow_mounted(const TQString& filename)
#endif
}
-bool KIO::testFileSystemFlag(const TQString& filename, FileSystemFlag flag)
+bool TDEIO::testFileSystemFlag(const TQString& filename, FileSystemFlag flag)
{
#ifdef Q_OS_UNIX
MountState isautofs = Unseen, isslow = Unseen, ismanual = Wrong;
@@ -1973,36 +1973,36 @@ bool KIO::testFileSystemFlag(const TQString& filename, FileSystemFlag flag)
return false;
}
-KIO::CacheControl KIO::parseCacheControl(const TQString &cacheControl)
+TDEIO::CacheControl TDEIO::parseCacheControl(const TQString &cacheControl)
{
TQString tmp = cacheControl.lower();
if (tmp == "cacheonly")
- return KIO::CC_CacheOnly;
+ return TDEIO::CC_CacheOnly;
if (tmp == "cache")
- return KIO::CC_Cache;
+ return TDEIO::CC_Cache;
if (tmp == "verify")
- return KIO::CC_Verify;
+ return TDEIO::CC_Verify;
if (tmp == "refresh")
- return KIO::CC_Refresh;
+ return TDEIO::CC_Refresh;
if (tmp == "reload")
- return KIO::CC_Reload;
+ return TDEIO::CC_Reload;
kdDebug() << "unrecognized Cache control option:"<<cacheControl<<endl;
- return KIO::CC_Verify;
+ return TDEIO::CC_Verify;
}
-TQString KIO::getCacheControlString(KIO::CacheControl cacheControl)
+TQString TDEIO::getCacheControlString(TDEIO::CacheControl cacheControl)
{
- if (cacheControl == KIO::CC_CacheOnly)
+ if (cacheControl == TDEIO::CC_CacheOnly)
return "CacheOnly";
- if (cacheControl == KIO::CC_Cache)
+ if (cacheControl == TDEIO::CC_Cache)
return "Cache";
- if (cacheControl == KIO::CC_Verify)
+ if (cacheControl == TDEIO::CC_Verify)
return "Verify";
- if (cacheControl == KIO::CC_Refresh)
+ if (cacheControl == TDEIO::CC_Refresh)
return "Refresh";
- if (cacheControl == KIO::CC_Reload)
+ if (cacheControl == TDEIO::CC_Reload)
return "Reload";
kdDebug() << "unrecognized Cache control enum value:"<<cacheControl<<endl;
return TQString::null;
diff --git a/kio/kio/global.h b/kio/kio/global.h
index 6b0408c04..0091c4801 100644
--- a/kio/kio/global.h
+++ b/kio/kio/global.h
@@ -31,7 +31,7 @@
* @short A namespace for KIO globals
*
*/
-namespace KIO
+namespace TDEIO
{
/// 64-bit file offset
typedef TQ_LLONG fileoffset_t;
@@ -44,7 +44,7 @@ namespace KIO
* @param size size in bytes
* @return converted size as a string - e.g. 123.4 kB , 12.0 MB
*/
- KIO_EXPORT TQString convertSize( KIO::filesize_t size );
+ KIO_EXPORT TQString convertSize( TDEIO::filesize_t size );
/**
* Converts @p size from bytes to a string representation with includes
@@ -53,7 +53,7 @@ namespace KIO
* @param size size in bytes
* @return converted size as a string - e.g. 1.4 KB (1495 B), 45 B
*/
- KIO_EXPORT TQString convertSizeWithBytes( KIO::filesize_t size );
+ KIO_EXPORT TQString convertSizeWithBytes( TDEIO::filesize_t size );
/**
* Converts a size to a string representation
* Not unlike TQString::number(...)
@@ -61,7 +61,7 @@ namespace KIO
* @param size size in bytes
* @return converted size as a string - e.g. 123456789
*/
- KIO_EXPORT TQString number( KIO::filesize_t size );
+ KIO_EXPORT TQString number( TDEIO::filesize_t size );
/**
* Converts size from kilo-bytes to the string representation.
@@ -69,7 +69,7 @@ namespace KIO
* @param kbSize size in kilo-bytes
* @return converted size as a string - e.g. 123.4 kB , 12.0 MB
*/
- KIO_EXPORT TQString convertSizeFromKB( KIO::filesize_t kbSize );
+ KIO_EXPORT TQString convertSizeFromKB( TDEIO::filesize_t kbSize );
/**
* Calculates remaining time in seconds from total size, processed size and speed.
@@ -81,8 +81,8 @@ namespace KIO
*
* @since 3.4
*/
- KIO_EXPORT unsigned int calculateRemainingSeconds( KIO::filesize_t totalSize,
- KIO::filesize_t processedSize, KIO::filesize_t speed );
+ KIO_EXPORT unsigned int calculateRemainingSeconds( TDEIO::filesize_t totalSize,
+ TDEIO::filesize_t processedSize, TDEIO::filesize_t speed );
/**
* Convert @p seconds to a string representing number of days, hours, minutes and seconds
@@ -103,7 +103,7 @@ namespace KIO
* @param speed speed in bytes per second
* @return calculated remaining time
*/
- KIO_EXPORT TQTime calculateRemaining( KIO::filesize_t totalSize, KIO::filesize_t processedSize, KIO::filesize_t speed ) KDE_DEPRECATED;
+ KIO_EXPORT TQTime calculateRemaining( TDEIO::filesize_t totalSize, TDEIO::filesize_t processedSize, TDEIO::filesize_t speed ) KDE_DEPRECATED;
/**
* Helper for showing information about a set of files and directories
@@ -114,12 +114,12 @@ namespace KIO
* @param showSize whether to show the size in the result
* @return the summary string
*/
- KIO_EXPORT TQString itemsSummaryString(uint items, uint files, uint dirs, KIO::filesize_t size, bool showSize);
+ KIO_EXPORT TQString itemsSummaryString(uint items, uint files, uint dirs, TDEIO::filesize_t size, bool showSize);
/**
* Encodes (from the text displayed to the real filename)
* This translates % into %% and / into %2f
- * Used by KIO::link, for instance.
+ * Used by TDEIO::link, for instance.
* @param str the file name to encode
* @return the encoded file name
*/
@@ -401,7 +401,7 @@ namespace KIO
* @return the cache control value
* @see getCacheControlString()
*/
- KIO_EXPORT KIO::CacheControl parseCacheControl(const TQString &cacheControl);
+ KIO_EXPORT TDEIO::CacheControl parseCacheControl(const TQString &cacheControl);
/**
* Returns a string representation of the given cache control method.
@@ -410,7 +410,7 @@ namespace KIO
* @return the string representation
* @see parseCacheControl()
*/
- KIO_EXPORT TQString getCacheControlString(KIO::CacheControl cacheControl);
+ KIO_EXPORT TQString getCacheControlString(TDEIO::CacheControl cacheControl);
/**
* Returns the mount point where @p device is mounted
diff --git a/kio/kio/http_slave_defaults.h b/kio/kio/http_slave_defaults.h
index 715efcfdb..e3247e39b 100644
--- a/kio/kio/http_slave_defaults.h
+++ b/kio/kio/http_slave_defaults.h
@@ -27,7 +27,7 @@
#define DEFAULT_MAX_CACHE_AGE 60*60*24*14 // 14 DAYS
#define DEFAULT_CACHE_EXPIRE 3*60 // 3 MINS
#define DEFAULT_CLEAN_CACHE_INTERVAL 30*60 // 30 MINS
-#define DEFAULT_CACHE_CONTROL KIO::CC_Refresh // Verify with remote
+#define DEFAULT_CACHE_CONTROL TDEIO::CC_Refresh // Verify with remote
#define CACHE_REVISION "7\n" // Cache version
// DEFAULT USER AGENT KEY - ENABLES OS NAME
diff --git a/kio/kio/job.cpp b/kio/kio/job.cpp
index 3bbb72432..01bb2c60d 100644
--- a/kio/kio/job.cpp
+++ b/kio/kio/job.cpp
@@ -78,8 +78,8 @@ extern "C" {
#include <fixx11h.h>
#endif
-using namespace KIO;
-template class TQPtrList<KIO::Job>;
+using namespace TDEIO;
+template class TQPtrList<TDEIO::Job>;
//this will update the report dialog with 5 Hz, I think this is fast enough, aleXXX
#define REPORT_TIMEOUT 200
@@ -102,7 +102,7 @@ public:
// (requires a new ctor, and moving the ctor code to some init()).
Job* m_parentJob;
int m_extraFlags;
- KIO::filesize_t m_processedSize;
+ TDEIO::filesize_t m_processedSize;
unsigned long m_userTimestamp;
};
@@ -118,16 +118,16 @@ Job::Job(bool showProgressInfo) : TQObject(0, "job"), m_error(0), m_percent(0)
addMetaData("progress-id", TQString::number(m_progressId));
//kdDebug(7007) << "Created job " << this << " with progress info -- m_progressId=" << m_progressId << endl;
// Connect global progress info signals
- connect( this, TQT_SIGNAL( percent( KIO::Job*, unsigned long ) ),
- Observer::self(), TQT_SLOT( slotPercent( KIO::Job*, unsigned long ) ) );
- connect( this, TQT_SIGNAL( infoMessage( KIO::Job*, const TQString & ) ),
- Observer::self(), TQT_SLOT( slotInfoMessage( KIO::Job*, const TQString & ) ) );
- connect( this, TQT_SIGNAL( totalSize( KIO::Job*, KIO::filesize_t ) ),
- Observer::self(), TQT_SLOT( slotTotalSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( this, TQT_SIGNAL( processedSize( KIO::Job*, KIO::filesize_t ) ),
- Observer::self(), TQT_SLOT( slotProcessedSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( this, TQT_SIGNAL( speed( KIO::Job*, unsigned long ) ),
- Observer::self(), TQT_SLOT( slotSpeed( KIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( percent( TDEIO::Job*, unsigned long ) ),
+ Observer::self(), TQT_SLOT( slotPercent( TDEIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( infoMessage( TDEIO::Job*, const TQString & ) ),
+ Observer::self(), TQT_SLOT( slotInfoMessage( TDEIO::Job*, const TQString & ) ) );
+ connect( this, TQT_SIGNAL( totalSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ Observer::self(), TQT_SLOT( slotTotalSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( this, TQT_SIGNAL( processedSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ Observer::self(), TQT_SLOT( slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( this, TQT_SIGNAL( speed( TDEIO::Job*, unsigned long ) ),
+ Observer::self(), TQT_SLOT( slotSpeed( TDEIO::Job*, unsigned long ) ) );
}
// Don't exit while this job is running
if (kapp)
@@ -149,12 +149,12 @@ int& Job::extraFlags()
return d->m_extraFlags;
}
-void Job::setProcessedSize(KIO::filesize_t size)
+void Job::setProcessedSize(TDEIO::filesize_t size)
{
d->m_processedSize = size;
}
-KIO::filesize_t Job::getProcessedSize()
+TDEIO::filesize_t Job::getProcessedSize()
{
return d->m_processedSize;
}
@@ -164,15 +164,15 @@ void Job::addSubjob(Job *job, bool inheritMetaData)
//kdDebug(7007) << "addSubjob(" << job << ") this = " << this << endl;
subjobs.append(job);
- connect( job, TQT_SIGNAL(result(KIO::Job*)),
- TQT_SLOT(slotResult(KIO::Job*)) );
+ connect( job, TQT_SIGNAL(result(TDEIO::Job*)),
+ TQT_SLOT(slotResult(TDEIO::Job*)) );
// Forward information from that subjob.
- connect( job, TQT_SIGNAL(speed( KIO::Job*, unsigned long )),
- TQT_SLOT(slotSpeed(KIO::Job*, unsigned long)) );
+ connect( job, TQT_SIGNAL(speed( TDEIO::Job*, unsigned long )),
+ TQT_SLOT(slotSpeed(TDEIO::Job*, unsigned long)) );
- connect( job, TQT_SIGNAL(infoMessage( KIO::Job*, const TQString & )),
- TQT_SLOT(slotInfoMessage(KIO::Job*, const TQString &)) );
+ connect( job, TQT_SIGNAL(infoMessage( TDEIO::Job*, const TQString & )),
+ TQT_SLOT(slotInfoMessage(TDEIO::Job*, const TQString &)) );
if (inheritMetaData)
job->mergeMetaData(m_outgoingMetaData);
@@ -197,7 +197,7 @@ void Job::removeSubjob( Job *job, bool mergeMetaData, bool emitResultIfLast )
emitResult();
}
-void Job::emitPercent( KIO::filesize_t processedSize, KIO::filesize_t totalSize )
+void Job::emitPercent( TDEIO::filesize_t processedSize, TDEIO::filesize_t totalSize )
{
// calculate percents
unsigned long ipercent = m_percent;
@@ -269,13 +269,13 @@ void Job::slotResult( Job *job )
removeSubjob(job);
}
-void Job::slotSpeed( KIO::Job*, unsigned long speed )
+void Job::slotSpeed( TDEIO::Job*, unsigned long speed )
{
//kdDebug(7007) << "Job::slotSpeed " << speed << endl;
emitSpeed( speed );
}
-void Job::slotInfoMessage( KIO::Job*, const TQString & msg )
+void Job::slotInfoMessage( TDEIO::Job*, const TQString & msg )
{
emit infoMessage( this, msg );
}
@@ -352,7 +352,7 @@ bool Job::isInteractive() const
void Job::setWindow(TQWidget *window)
{
m_window = window;
- KIO::Scheduler::registerWindow(window);
+ TDEIO::Scheduler::registerWindow(window);
}
TQWidget *Job::window() const
@@ -397,7 +397,7 @@ TQString Job::queryMetaData(const TQString &key)
return m_incomingMetaData[key];
}
-void Job::setMetaData( const KIO::MetaData &_metaData)
+void Job::setMetaData( const TDEIO::MetaData &_metaData)
{
m_outgoingMetaData = _metaData;
}
@@ -512,11 +512,11 @@ void SimpleJob::start(Slave *slave)
if ((extraFlags() & EF_TransferJobDataSent) == 0)
{
- connect( m_slave, TQT_SIGNAL( totalSize( KIO::filesize_t ) ),
- TQT_SLOT( slotTotalSize( KIO::filesize_t ) ) );
+ connect( m_slave, TQT_SIGNAL( totalSize( TDEIO::filesize_t ) ),
+ TQT_SLOT( slotTotalSize( TDEIO::filesize_t ) ) );
- connect( m_slave, TQT_SIGNAL( processedSize( KIO::filesize_t ) ),
- TQT_SLOT( slotProcessedSize( KIO::filesize_t ) ) );
+ connect( m_slave, TQT_SIGNAL( processedSize( TDEIO::filesize_t ) ),
+ TQT_SLOT( slotProcessedSize( TDEIO::filesize_t ) ) );
connect( m_slave, TQT_SIGNAL( speed( unsigned long ) ),
TQT_SLOT( slotSpeed( unsigned long ) ) );
@@ -525,8 +525,8 @@ void SimpleJob::start(Slave *slave)
connect( slave, TQT_SIGNAL( needProgressId() ),
TQT_SLOT( slotNeedProgressId() ) );
- connect( slave, TQT_SIGNAL(metaData( const KIO::MetaData& ) ),
- TQT_SLOT( slotMetaData( const KIO::MetaData& ) ) );
+ connect( slave, TQT_SIGNAL(metaData( const TDEIO::MetaData& ) ),
+ TQT_SLOT( slotMetaData( const TDEIO::MetaData& ) ) );
if (m_window)
{
@@ -648,7 +648,7 @@ void SimpleJob::slotNeedProgressId()
m_slave->setProgressId( m_progressId );
}
-void SimpleJob::slotTotalSize( KIO::filesize_t size )
+void SimpleJob::slotTotalSize( TDEIO::filesize_t size )
{
if (size > m_totalSize)
{
@@ -657,9 +657,9 @@ void SimpleJob::slotTotalSize( KIO::filesize_t size )
}
}
-void SimpleJob::slotProcessedSize( KIO::filesize_t size )
+void SimpleJob::slotProcessedSize( TDEIO::filesize_t size )
{
- //kdDebug(7007) << "SimpleJob::slotProcessedSize " << KIO::number(size) << endl;
+ //kdDebug(7007) << "SimpleJob::slotProcessedSize " << TDEIO::number(size) << endl;
setProcessedSize(size);
emit processedSize( this, size );
if ( size > m_totalSize ) {
@@ -674,7 +674,7 @@ void SimpleJob::slotSpeed( unsigned long speed )
emitSpeed( speed );
}
-void SimpleJob::slotMetaData( const KIO::MetaData &_metaData)
+void SimpleJob::slotMetaData( const TDEIO::MetaData &_metaData)
{
m_incomingMetaData += _metaData;
}
@@ -748,48 +748,48 @@ void MkdirJob::slotFinished()
}
}
-SimpleJob *KIO::mkdir( const KURL& url, int permissions )
+SimpleJob *TDEIO::mkdir( const KURL& url, int permissions )
{
//kdDebug(7007) << "mkdir " << url << endl;
KIO_ARGS << url << permissions;
return new MkdirJob(url, CMD_MKDIR, packedArgs, false);
}
-SimpleJob *KIO::rmdir( const KURL& url )
+SimpleJob *TDEIO::rmdir( const KURL& url )
{
//kdDebug(7007) << "rmdir " << url << endl;
KIO_ARGS << url << TQ_INT8(false); // isFile is false
return new SimpleJob(url, CMD_DEL, packedArgs, false);
}
-SimpleJob *KIO::chmod( const KURL& url, int permissions )
+SimpleJob *TDEIO::chmod( const KURL& url, int permissions )
{
//kdDebug(7007) << "chmod " << url << endl;
KIO_ARGS << url << permissions;
return new SimpleJob(url, CMD_CHMOD, packedArgs, false);
}
-SimpleJob *KIO::rename( const KURL& src, const KURL & dest, bool overwrite )
+SimpleJob *TDEIO::rename( const KURL& src, const KURL & dest, bool overwrite )
{
//kdDebug(7007) << "rename " << src << " " << dest << endl;
KIO_ARGS << src << dest << (TQ_INT8) overwrite;
return new SimpleJob(src, CMD_RENAME, packedArgs, false);
}
-SimpleJob *KIO::symlink( const TQString& target, const KURL & dest, bool overwrite, bool showProgressInfo )
+SimpleJob *TDEIO::symlink( const TQString& target, const KURL & dest, bool overwrite, bool showProgressInfo )
{
//kdDebug(7007) << "symlink target=" << target << " " << dest << endl;
KIO_ARGS << target << dest << (TQ_INT8) overwrite;
return new SimpleJob(dest, CMD_SYMLINK, packedArgs, showProgressInfo);
}
-SimpleJob *KIO::special(const KURL& url, const TQByteArray & data, bool showProgressInfo)
+SimpleJob *TDEIO::special(const KURL& url, const TQByteArray & data, bool showProgressInfo)
{
//kdDebug(7007) << "special " << url << endl;
return new SimpleJob(url, CMD_SPECIAL, data, showProgressInfo);
}
-SimpleJob *KIO::mount( bool ro, const char *fstype, const TQString& dev, const TQString& point, bool showProgressInfo )
+SimpleJob *TDEIO::mount( bool ro, const char *fstype, const TQString& dev, const TQString& point, bool showProgressInfo )
{
KIO_ARGS << int(1) << TQ_INT8( ro ? 1 : 0 )
<< TQString::fromLatin1(fstype) << dev << point;
@@ -799,7 +799,7 @@ SimpleJob *KIO::mount( bool ro, const char *fstype, const TQString& dev, const T
return job;
}
-SimpleJob *KIO::unmount( const TQString& point, bool showProgressInfo )
+SimpleJob *TDEIO::unmount( const TQString& point, bool showProgressInfo )
{
KIO_ARGS << int(2) << point;
SimpleJob *job = special( KURL("file:/"), packedArgs, showProgressInfo );
@@ -837,7 +837,7 @@ void LocalURLJob::slotFinished()
SimpleJob::slotFinished();
}
-LocalURLJob *KIO::localURL( const KURL& remoteUrl )
+LocalURLJob *TDEIO::localURL( const KURL& remoteUrl )
{
KIO_ARGS << remoteUrl;
return new LocalURLJob(remoteUrl, CMD_LOCALURL, packedArgs, false);
@@ -858,15 +858,15 @@ void StatJob::start(Slave *slave)
m_outgoingMetaData.replace( "statSide", m_bSource ? "source" : "dest" );
m_outgoingMetaData.replace( "details", TQString::number(m_details) );
- connect( slave, TQT_SIGNAL( statEntry( const KIO::UDSEntry& ) ),
- TQT_SLOT( slotStatEntry( const KIO::UDSEntry & ) ) );
+ connect( slave, TQT_SIGNAL( statEntry( const TDEIO::UDSEntry& ) ),
+ TQT_SLOT( slotStatEntry( const TDEIO::UDSEntry & ) ) );
connect( slave, TQT_SIGNAL( redirection(const KURL &) ),
TQT_SLOT( slotRedirection(const KURL &) ) );
SimpleJob::start(slave);
}
-void StatJob::slotStatEntry( const KIO::UDSEntry & entry )
+void StatJob::slotStatEntry( const TDEIO::UDSEntry & entry )
{
//kdDebug(7007) << "StatJob::slotStatEntry" << endl;
m_statResult = entry;
@@ -912,18 +912,18 @@ void StatJob::slotFinished()
}
}
-void StatJob::slotMetaData( const KIO::MetaData &_metaData) {
+void StatJob::slotMetaData( const TDEIO::MetaData &_metaData) {
SimpleJob::slotMetaData(_metaData);
storeSSLSessionFromJob(m_redirectionURL);
}
-StatJob *KIO::stat(const KURL& url, bool showProgressInfo)
+StatJob *TDEIO::stat(const KURL& url, bool showProgressInfo)
{
// Assume sideIsSource. Gets are more common than puts.
return stat( url, true, 2, showProgressInfo );
}
-StatJob *KIO::stat(const KURL& url, bool sideIsSource, short int details, bool showProgressInfo)
+StatJob *TDEIO::stat(const KURL& url, bool sideIsSource, short int details, bool showProgressInfo)
{
kdDebug(7007) << "stat " << url << endl;
KIO_ARGS << url;
@@ -935,7 +935,7 @@ StatJob *KIO::stat(const KURL& url, bool sideIsSource, short int details, bool s
return job;
}
-SimpleJob *KIO::http_update_cache( const KURL& url, bool no_cache, time_t expireDate)
+SimpleJob *TDEIO::http_update_cache( const KURL& url, bool no_cache, time_t expireDate)
{
assert( (url.protocol() == "http") || (url.protocol() == "https") );
// Send http update_cache command (2)
@@ -1074,7 +1074,7 @@ void TransferJob::sendAsyncData(const TQByteArray &dataForSlave)
m_slave->send( MSG_DATA, dataForSlave );
if (extraFlags() & EF_TransferJobDataSent)
{
- KIO::filesize_t size = getProcessedSize()+dataForSlave.size();
+ TDEIO::filesize_t size = getProcessedSize()+dataForSlave.size();
setProcessedSize(size);
emit processedSize( this, size );
if ( size > m_totalSize ) {
@@ -1181,8 +1181,8 @@ void TransferJob::start(Slave *slave)
connect( slave, TQT_SIGNAL( needSubURLData() ),
TQT_SLOT( slotNeedSubURLData() ) );
- connect( slave, TQT_SIGNAL(canResume( KIO::filesize_t ) ),
- TQT_SLOT( slotCanResume( KIO::filesize_t ) ) );
+ connect( slave, TQT_SIGNAL(canResume( TDEIO::filesize_t ) ),
+ TQT_SLOT( slotCanResume( TDEIO::filesize_t ) ) );
if (slave->suspended())
{
@@ -1199,14 +1199,14 @@ void TransferJob::start(Slave *slave)
void TransferJob::slotNeedSubURLData()
{
// Job needs data from subURL.
- m_subJob = KIO::get( m_subUrl, false, false);
+ m_subJob = TDEIO::get( m_subUrl, false, false);
suspend(); // Put job on hold until we have some data.
- connect(m_subJob, TQT_SIGNAL( data(KIO::Job*,const TQByteArray &)),
- TQT_SLOT( slotSubURLData(KIO::Job*,const TQByteArray &)));
+ connect(m_subJob, TQT_SIGNAL( data(TDEIO::Job*,const TQByteArray &)),
+ TQT_SLOT( slotSubURLData(TDEIO::Job*,const TQByteArray &)));
addSubjob(m_subJob);
}
-void TransferJob::slotSubURLData(KIO::Job*, const TQByteArray &data)
+void TransferJob::slotSubURLData(TDEIO::Job*, const TQByteArray &data)
{
// The Alternating Bitburg protocol in action again.
staticData = data;
@@ -1214,7 +1214,7 @@ void TransferJob::slotSubURLData(KIO::Job*, const TQByteArray &data)
resume(); // Activate ourselves again.
}
-void TransferJob::slotMetaData( const KIO::MetaData &_metaData) {
+void TransferJob::slotMetaData( const TDEIO::MetaData &_metaData) {
SimpleJob::slotMetaData(_metaData);
storeSSLSessionFromJob(m_redirectionURL);
}
@@ -1224,12 +1224,12 @@ void TransferJob::slotErrorPage()
m_errorPage = true;
}
-void TransferJob::slotCanResume( KIO::filesize_t offset )
+void TransferJob::slotCanResume( TDEIO::filesize_t offset )
{
emit canResume(this, offset);
}
-void TransferJob::slotResult( KIO::Job *job)
+void TransferJob::slotResult( TDEIO::Job *job)
{
// This can only be our suburl.
assert(job == m_subJob);
@@ -1251,7 +1251,7 @@ void TransferJob::slotResult( KIO::Job *job)
removeSubjob( job, false, false ); // Remove job, but don't kill this job.
}
-TransferJob *KIO::get( const KURL& url, bool reload, bool showProgressInfo )
+TransferJob *TDEIO::get( const KURL& url, bool reload, bool showProgressInfo )
{
// Send decoded path and encoded query
KIO_ARGS << url;
@@ -1274,7 +1274,7 @@ public:
};
-TransferJob *KIO::http_post( const KURL& url, const TQByteArray &postData, bool showProgressInfo )
+TransferJob *TDEIO::http_post( const KURL& url, const TQByteArray &postData, bool showProgressInfo )
{
int _error = 0;
@@ -1344,7 +1344,7 @@ TransferJob *KIO::http_post( const KURL& url, const TQByteArray &postData, bool
for (int cnt=0; bad_ports[cnt]; ++cnt)
if (url.port() == bad_ports[cnt])
{
- _error = KIO::ERR_POST_DENIED;
+ _error = TDEIO::ERR_POST_DENIED;
break;
}
@@ -1354,7 +1354,7 @@ TransferJob *KIO::http_post( const KURL& url, const TQByteArray &postData, bool
static TQValueList< int >* overriden_ports = NULL;
if( !override_loaded )
{
- KConfig cfg( "kio_httprc", true );
+ TDEConfig cfg( "kio_httprc", true );
overriden_ports = new TQValueList< int >;
*overriden_ports = cfg.readIntListEntry( "OverriddenPorts" );
override_loaded = true;
@@ -1368,7 +1368,7 @@ TransferJob *KIO::http_post( const KURL& url, const TQByteArray &postData, bool
// filter out non https? protocols
if ((url.protocol() != "http") && (url.protocol() != "https" ))
- _error = KIO::ERR_POST_DENIED;
+ _error = TDEIO::ERR_POST_DENIED;
bool redirection = false;
KURL _url(url);
@@ -1379,7 +1379,7 @@ TransferJob *KIO::http_post( const KURL& url, const TQByteArray &postData, bool
}
if (!_error && !kapp->authorizeURLAction("open", KURL(), _url))
- _error = KIO::ERR_ACCESS_DENIED;
+ _error = TDEIO::ERR_ACCESS_DENIED;
// if request is not valid, return an invalid transfer job
if (_error)
@@ -1411,7 +1411,7 @@ void TransferJob::slotPostRedirection()
}
-TransferJob *KIO::put( const KURL& url, int permissions,
+TransferJob *TDEIO::put( const KURL& url, int permissions,
bool overwrite, bool resume, bool showProgressInfo )
{
KIO_ARGS << url << TQ_INT8( overwrite ? 1 : 0 ) << TQ_INT8( resume ? 1 : 0 ) << permissions;
@@ -1428,10 +1428,10 @@ StoredTransferJob::StoredTransferJob(const KURL& url, int command,
: TransferJob( url, command, packedArgs, _staticData, showProgressInfo ),
m_uploadOffset( 0 )
{
- connect( this, TQT_SIGNAL( data( KIO::Job *, const TQByteArray & ) ),
- TQT_SLOT( slotStoredData( KIO::Job *, const TQByteArray & ) ) );
- connect( this, TQT_SIGNAL( dataReq( KIO::Job *, TQByteArray & ) ),
- TQT_SLOT( slotStoredDataReq( KIO::Job *, TQByteArray & ) ) );
+ connect( this, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ),
+ TQT_SLOT( slotStoredData( TDEIO::Job *, const TQByteArray & ) ) );
+ connect( this, TQT_SIGNAL( dataReq( TDEIO::Job *, TQByteArray & ) ),
+ TQT_SLOT( slotStoredDataReq( TDEIO::Job *, TQByteArray & ) ) );
}
void StoredTransferJob::setData( const TQByteArray& arr )
@@ -1441,7 +1441,7 @@ void StoredTransferJob::setData( const TQByteArray& arr )
m_data = arr;
}
-void StoredTransferJob::slotStoredData( KIO::Job *, const TQByteArray &data )
+void StoredTransferJob::slotStoredData( TDEIO::Job *, const TQByteArray &data )
{
// check for end-of-data marker:
if ( data.size() == 0 )
@@ -1451,7 +1451,7 @@ void StoredTransferJob::slotStoredData( KIO::Job *, const TQByteArray &data )
memcpy( m_data.data() + oldSize, data.data(), data.size() );
}
-void StoredTransferJob::slotStoredDataReq( KIO::Job *, TQByteArray &data )
+void StoredTransferJob::slotStoredDataReq( TDEIO::Job *, TQByteArray &data )
{
// Inspired from kmail's KMKernel::byteArrayToRemoteFile
// send the data in 64 KB chunks
@@ -1472,7 +1472,7 @@ void StoredTransferJob::slotStoredDataReq( KIO::Job *, TQByteArray &data )
}
}
-StoredTransferJob *KIO::storedGet( const KURL& url, bool reload, bool showProgressInfo )
+StoredTransferJob *TDEIO::storedGet( const KURL& url, bool reload, bool showProgressInfo )
{
// Send decoded path and encoded query
KIO_ARGS << url;
@@ -1482,7 +1482,7 @@ StoredTransferJob *KIO::storedGet( const KURL& url, bool reload, bool showProgre
return job;
}
-StoredTransferJob *KIO::storedPut( const TQByteArray& arr, const KURL& url, int permissions,
+StoredTransferJob *TDEIO::storedPut( const TQByteArray& arr, const KURL& url, int permissions,
bool overwrite, bool resume, bool showProgressInfo )
{
KIO_ARGS << url << TQ_INT8( overwrite ? 1 : 0 ) << TQ_INT8( resume ? 1 : 0 ) << permissions;
@@ -1508,7 +1508,7 @@ void MimetypeJob::start(Slave *slave)
void MimetypeJob::slotFinished( )
{
//kdDebug(7007) << "MimetypeJob::slotFinished()" << endl;
- if ( m_error == KIO::ERR_IS_DIRECTORY )
+ if ( m_error == TDEIO::ERR_IS_DIRECTORY )
{
// It is in fact a directory. This happens when HTTP redirects to FTP.
// Due to the "protocol doesn't support listing" code in KRun, we
@@ -1540,7 +1540,7 @@ void MimetypeJob::slotFinished( )
}
}
-MimetypeJob *KIO::mimetype(const KURL& url, bool showProgressInfo )
+MimetypeJob *TDEIO::mimetype(const KURL& url, bool showProgressInfo )
{
KIO_ARGS << url;
MimetypeJob * job = new MimetypeJob(url, CMD_MIMETYPE, packedArgs, showProgressInfo);
@@ -1559,12 +1559,12 @@ DirectCopyJob::DirectCopyJob( const KURL& url, int command,
void DirectCopyJob::start( Slave* slave )
{
- connect( slave, TQT_SIGNAL(canResume( KIO::filesize_t ) ),
- TQT_SLOT( slotCanResume( KIO::filesize_t ) ) );
+ connect( slave, TQT_SIGNAL(canResume( TDEIO::filesize_t ) ),
+ TQT_SLOT( slotCanResume( TDEIO::filesize_t ) ) );
SimpleJob::start(slave);
}
-void DirectCopyJob::slotCanResume( KIO::filesize_t offset )
+void DirectCopyJob::slotCanResume( TDEIO::filesize_t offset )
{
emit canResume(this, offset);
}
@@ -1575,7 +1575,7 @@ void DirectCopyJob::slotCanResume( KIO::filesize_t offset )
class FileCopyJob::FileCopyJobPrivate
{
public:
- KIO::filesize_t m_sourceSize;
+ TDEIO::filesize_t m_sourceSize;
time_t m_modificationTime;
SimpleJob *m_delJob;
};
@@ -1605,7 +1605,7 @@ FileCopyJob::FileCopyJob( const KURL& src, const KURL& dest, int permissions,
m_putJob = 0;
d = new FileCopyJobPrivate;
d->m_delJob = 0;
- d->m_sourceSize = (KIO::filesize_t) -1;
+ d->m_sourceSize = (TDEIO::filesize_t) -1;
d->m_modificationTime = static_cast<time_t>( -1 );
TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
}
@@ -1677,10 +1677,10 @@ void FileCopyJob::setSourceSize( off_t size )
m_totalSize = size;
}
-void FileCopyJob::setSourceSize64( KIO::filesize_t size )
+void FileCopyJob::setSourceSize64( TDEIO::filesize_t size )
{
d->m_sourceSize = size;
- if (size != (KIO::filesize_t) -1)
+ if (size != (TDEIO::filesize_t) -1)
m_totalSize = size;
}
@@ -1701,8 +1701,8 @@ void FileCopyJob::startCopyJob(const KURL &slave_url)
m_copyJob = new DirectCopyJob(slave_url, CMD_COPY, packedArgs, false);
addSubjob( m_copyJob );
connectSubjob( m_copyJob );
- connect( m_copyJob, TQT_SIGNAL(canResume(KIO::Job *, KIO::filesize_t)),
- TQT_SLOT( slotCanResume(KIO::Job *, KIO::filesize_t)));
+ connect( m_copyJob, TQT_SIGNAL(canResume(TDEIO::Job *, TDEIO::filesize_t)),
+ TQT_SLOT( slotCanResume(TDEIO::Job *, TDEIO::filesize_t)));
}
void FileCopyJob::startRenameJob(const KURL &slave_url)
@@ -1715,18 +1715,18 @@ void FileCopyJob::startRenameJob(const KURL &slave_url)
void FileCopyJob::connectSubjob( SimpleJob * job )
{
- connect( job, TQT_SIGNAL(totalSize( KIO::Job*, KIO::filesize_t )),
- this, TQT_SLOT( slotTotalSize(KIO::Job*, KIO::filesize_t)) );
+ connect( job, TQT_SIGNAL(totalSize( TDEIO::Job*, TDEIO::filesize_t )),
+ this, TQT_SLOT( slotTotalSize(TDEIO::Job*, TDEIO::filesize_t)) );
- connect( job, TQT_SIGNAL(processedSize( KIO::Job*, KIO::filesize_t )),
- this, TQT_SLOT( slotProcessedSize(KIO::Job*, KIO::filesize_t)) );
+ connect( job, TQT_SIGNAL(processedSize( TDEIO::Job*, TDEIO::filesize_t )),
+ this, TQT_SLOT( slotProcessedSize(TDEIO::Job*, TDEIO::filesize_t)) );
- connect( job, TQT_SIGNAL(percent( KIO::Job*, unsigned long )),
- this, TQT_SLOT( slotPercent(KIO::Job*, unsigned long)) );
+ connect( job, TQT_SIGNAL(percent( TDEIO::Job*, unsigned long )),
+ this, TQT_SLOT( slotPercent(TDEIO::Job*, unsigned long)) );
}
-void FileCopyJob::slotProcessedSize( KIO::Job *, KIO::filesize_t size )
+void FileCopyJob::slotProcessedSize( TDEIO::Job *, TDEIO::filesize_t size )
{
setProcessedSize(size);
emit processedSize( this, size );
@@ -1736,7 +1736,7 @@ void FileCopyJob::slotProcessedSize( KIO::Job *, KIO::filesize_t size )
emitPercent( size, m_totalSize );
}
-void FileCopyJob::slotTotalSize( KIO::Job*, KIO::filesize_t size )
+void FileCopyJob::slotTotalSize( TDEIO::Job*, TDEIO::filesize_t size )
{
if (size > m_totalSize)
{
@@ -1745,7 +1745,7 @@ void FileCopyJob::slotTotalSize( KIO::Job*, KIO::filesize_t size )
}
}
-void FileCopyJob::slotPercent( KIO::Job*, unsigned long pct )
+void FileCopyJob::slotPercent( TDEIO::Job*, unsigned long pct )
{
if ( pct > m_percent )
{
@@ -1770,18 +1770,18 @@ void FileCopyJob::startDataPump()
// The first thing the put job will tell us is whether we can
// resume or not (this is always emitted)
- connect( m_putJob, TQT_SIGNAL(canResume(KIO::Job *, KIO::filesize_t)),
- TQT_SLOT( slotCanResume(KIO::Job *, KIO::filesize_t)));
- connect( m_putJob, TQT_SIGNAL(dataReq(KIO::Job *, TQByteArray&)),
- TQT_SLOT( slotDataReq(KIO::Job *, TQByteArray&)));
+ connect( m_putJob, TQT_SIGNAL(canResume(TDEIO::Job *, TDEIO::filesize_t)),
+ TQT_SLOT( slotCanResume(TDEIO::Job *, TDEIO::filesize_t)));
+ connect( m_putJob, TQT_SIGNAL(dataReq(TDEIO::Job *, TQByteArray&)),
+ TQT_SLOT( slotDataReq(TDEIO::Job *, TQByteArray&)));
addSubjob( m_putJob );
}
-void FileCopyJob::slotCanResume( KIO::Job* job, KIO::filesize_t offset )
+void FileCopyJob::slotCanResume( TDEIO::Job* job, TDEIO::filesize_t offset )
{
if ( job == m_putJob || job == m_copyJob )
{
- //kdDebug(7007) << "FileCopyJob::slotCanResume from PUT job. offset=" << KIO::number(offset) << endl;
+ //kdDebug(7007) << "FileCopyJob::slotCanResume from PUT job. offset=" << TDEIO::number(offset) << endl;
if (offset)
{
RenameDlg_Result res = R_RESUME;
@@ -1789,7 +1789,7 @@ void FileCopyJob::slotCanResume( KIO::Job* job, KIO::filesize_t offset )
if (!KProtocolManager::autoResume() && !m_overwrite)
{
TQString newPath;
- KIO::Job* job = ( !m_progressId && parentJob() ) ? parentJob() : this;
+ TDEIO::Job* job = ( !m_progressId && parentJob() ) ? parentJob() : this;
// Ask confirmation about resuming previous transfer
res = Observer::self()->open_RenameDlg(
job, i18n("File Already Exists"),
@@ -1822,18 +1822,18 @@ void FileCopyJob::slotCanResume( KIO::Job* job, KIO::filesize_t offset )
m_getJob->addMetaData( "errorPage", "false" );
m_getJob->addMetaData( "AllowCompressedPage", "false" );
// Set size in subjob. This helps if the slave doesn't emit totalSize.
- if ( d->m_sourceSize != (KIO::filesize_t)-1 )
+ if ( d->m_sourceSize != (TDEIO::filesize_t)-1 )
m_getJob->slotTotalSize( d->m_sourceSize );
if (offset)
{
//kdDebug(7007) << "Setting metadata for resume to " << (unsigned long) offset << endl;
// TODO KDE4: rename to seek or offset and document it
// This isn't used only for resuming, but potentially also for extracting (#72302).
- m_getJob->addMetaData( "resume", KIO::number(offset) );
+ m_getJob->addMetaData( "resume", TDEIO::number(offset) );
// Might or might not get emitted
- connect( m_getJob, TQT_SIGNAL(canResume(KIO::Job *, KIO::filesize_t)),
- TQT_SLOT( slotCanResume(KIO::Job *, KIO::filesize_t)));
+ connect( m_getJob, TQT_SIGNAL(canResume(TDEIO::Job *, TDEIO::filesize_t)),
+ TQT_SLOT( slotCanResume(TDEIO::Job *, TDEIO::filesize_t)));
}
m_putJob->slave()->setOffset( offset );
@@ -1842,10 +1842,10 @@ void FileCopyJob::slotCanResume( KIO::Job* job, KIO::filesize_t offset )
connectSubjob( m_getJob ); // Progress info depends on get
m_getJob->resume(); // Order a beer
- connect( m_getJob, TQT_SIGNAL(data(KIO::Job*,const TQByteArray&)),
- TQT_SLOT( slotData(KIO::Job*,const TQByteArray&)) );
- connect( m_getJob, TQT_SIGNAL(mimetype(KIO::Job*,const TQString&) ),
- TQT_SLOT(slotMimetype(KIO::Job*,const TQString&)) );
+ connect( m_getJob, TQT_SIGNAL(data(TDEIO::Job*,const TQByteArray&)),
+ TQT_SLOT( slotData(TDEIO::Job*,const TQByteArray&)) );
+ connect( m_getJob, TQT_SIGNAL(mimetype(TDEIO::Job*,const TQString&) ),
+ TQT_SLOT(slotMimetype(TDEIO::Job*,const TQString&)) );
}
else // copyjob
{
@@ -1865,7 +1865,7 @@ void FileCopyJob::slotCanResume( KIO::Job* job, KIO::filesize_t offset )
<< " m_getJob=" << m_getJob << " m_putJob=" << m_putJob << endl;
}
-void FileCopyJob::slotData( KIO::Job * , const TQByteArray &data)
+void FileCopyJob::slotData( TDEIO::Job * , const TQByteArray &data)
{
//kdDebug(7007) << "FileCopyJob::slotData" << endl;
//kdDebug(7007) << " data size : " << data.size() << endl;
@@ -1885,7 +1885,7 @@ void FileCopyJob::slotData( KIO::Job * , const TQByteArray &data)
}
}
-void FileCopyJob::slotDataReq( KIO::Job * , TQByteArray &data)
+void FileCopyJob::slotDataReq( TDEIO::Job * , TQByteArray &data)
{
//kdDebug(7007) << "FileCopyJob::slotDataReq" << endl;
if (!m_resumeAnswerSent && !m_getJob)
@@ -1906,12 +1906,12 @@ void FileCopyJob::slotDataReq( KIO::Job * , TQByteArray &data)
m_buffer = TQByteArray();
}
-void FileCopyJob::slotMimetype( KIO::Job*, const TQString& type )
+void FileCopyJob::slotMimetype( TDEIO::Job*, const TQString& type )
{
emit mimetype( this, type );
}
-void FileCopyJob::slotResult( KIO::Job *job)
+void FileCopyJob::slotResult( TDEIO::Job *job)
{
//kdDebug(7007) << "FileCopyJob this=" << this << " ::slotResult(" << job << ")" << endl;
// Did job have an error ?
@@ -1994,19 +1994,19 @@ void FileCopyJob::slotResult( KIO::Job *job)
removeSubjob(job);
}
-FileCopyJob *KIO::file_copy( const KURL& src, const KURL& dest, int permissions,
+FileCopyJob *TDEIO::file_copy( const KURL& src, const KURL& dest, int permissions,
bool overwrite, bool resume, bool showProgressInfo)
{
return new FileCopyJob( src, dest, permissions, false, overwrite, resume, showProgressInfo );
}
-FileCopyJob *KIO::file_move( const KURL& src, const KURL& dest, int permissions,
+FileCopyJob *TDEIO::file_move( const KURL& src, const KURL& dest, int permissions,
bool overwrite, bool resume, bool showProgressInfo)
{
return new FileCopyJob( src, dest, permissions, true, overwrite, resume, showProgressInfo );
}
-SimpleJob *KIO::file_delete( const KURL& src, bool showProgressInfo)
+SimpleJob *TDEIO::file_delete( const KURL& src, bool showProgressInfo)
{
KIO_ARGS << src << TQ_INT8(true); // isFile
return new SimpleJob(src, CMD_DEL, packedArgs, showProgressInfo );
@@ -2025,7 +2025,7 @@ ListJob::ListJob(const KURL& u, bool showProgressInfo, bool _recursive, TQString
stream << u;
}
-void ListJob::slotListEntries( const KIO::UDSEntryList& list )
+void ListJob::slotListEntries( const TDEIO::UDSEntryList& list )
{
// Emit progress info (takes care of emit processedSize and percent)
m_processedEntries += list.count();
@@ -2074,10 +2074,10 @@ void ListJob::slotListEntries( const KIO::UDSEntryList& list )
prefix + filename + "/",
includeHidden);
Scheduler::scheduleJob(job);
- connect(job, TQT_SIGNAL(entries( KIO::Job *,
- const KIO::UDSEntryList& )),
- TQT_SLOT( gotEntries( KIO::Job*,
- const KIO::UDSEntryList& )));
+ connect(job, TQT_SIGNAL(entries( TDEIO::Job *,
+ const TDEIO::UDSEntryList& )),
+ TQT_SLOT( gotEntries( TDEIO::Job*,
+ const TDEIO::UDSEntryList& )));
addSubjob(job);
}
}
@@ -2117,13 +2117,13 @@ void ListJob::slotListEntries( const KIO::UDSEntryList& list )
}
}
-void ListJob::gotEntries(KIO::Job *, const KIO::UDSEntryList& list )
+void ListJob::gotEntries(TDEIO::Job *, const TDEIO::UDSEntryList& list )
{
// Forward entries received by subjob - faking we received them ourselves
emit entries(this, list);
}
-void ListJob::slotResult( KIO::Job * job )
+void ListJob::slotResult( TDEIO::Job * job )
{
// If we can't list a subdir, the result is still ok
// This is why we override Job::slotResult() - to skip error checking
@@ -2146,7 +2146,7 @@ void ListJob::slotRedirection( const KURL & url )
void ListJob::slotFinished()
{
// Support for listing archives as directories
- if ( m_error == KIO::ERR_IS_FILE && m_url.isLocalFile() ) {
+ if ( m_error == TDEIO::ERR_IS_FILE && m_url.isLocalFile() ) {
KMimeType::Ptr ptr = KMimeType::findByURL( m_url, 0, true, true );
if ( ptr ) {
TQString proto = ptr->property("X-TDE-LocalProtocol").toString();
@@ -2178,18 +2178,18 @@ void ListJob::slotFinished()
}
}
-void ListJob::slotMetaData( const KIO::MetaData &_metaData) {
+void ListJob::slotMetaData( const TDEIO::MetaData &_metaData) {
SimpleJob::slotMetaData(_metaData);
storeSSLSessionFromJob(m_redirectionURL);
}
-ListJob *KIO::listDir( const KURL& url, bool showProgressInfo, bool includeHidden )
+ListJob *TDEIO::listDir( const KURL& url, bool showProgressInfo, bool includeHidden )
{
ListJob * job = new ListJob(url, showProgressInfo,false,TQString::null,includeHidden);
return job;
}
-ListJob *KIO::listRecursive( const KURL& url, bool showProgressInfo, bool includeHidden )
+ListJob *TDEIO::listRecursive( const KURL& url, bool showProgressInfo, bool includeHidden )
{
ListJob * job = new ListJob(url, showProgressInfo, true,TQString::null,includeHidden);
return job;
@@ -2212,10 +2212,10 @@ void ListJob::start(Slave *slave)
TQTimer::singleShot(0, this, TQT_SLOT(slotFinished()) );
return;
}
- connect( slave, TQT_SIGNAL( listEntries( const KIO::UDSEntryList& )),
- TQT_SLOT( slotListEntries( const KIO::UDSEntryList& )));
- connect( slave, TQT_SIGNAL( totalSize( KIO::filesize_t ) ),
- TQT_SLOT( slotTotalSize( KIO::filesize_t ) ) );
+ connect( slave, TQT_SIGNAL( listEntries( const TDEIO::UDSEntryList& )),
+ TQT_SLOT( slotListEntries( const TDEIO::UDSEntryList& )));
+ connect( slave, TQT_SIGNAL( totalSize( TDEIO::filesize_t ) ),
+ TQT_SLOT( slotTotalSize( TDEIO::filesize_t ) ) );
connect( slave, TQT_SIGNAL( redirection(const KURL &) ),
TQT_SLOT( slotRedirection(const KURL &) ) );
@@ -2260,11 +2260,11 @@ CopyJob::CopyJob( const KURL::List& src, const KURL& dest, CopyMode mode, bool a
d->m_globalDestinationState = destinationState;
if ( showProgressInfo ) {
- connect( this, TQT_SIGNAL( totalFiles( KIO::Job*, unsigned long ) ),
- Observer::self(), TQT_SLOT( slotTotalFiles( KIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( totalFiles( TDEIO::Job*, unsigned long ) ),
+ Observer::self(), TQT_SLOT( slotTotalFiles( TDEIO::Job*, unsigned long ) ) );
- connect( this, TQT_SIGNAL( totalDirs( KIO::Job*, unsigned long ) ),
- Observer::self(), TQT_SLOT( slotTotalDirs( KIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( totalDirs( TDEIO::Job*, unsigned long ) ),
+ Observer::self(), TQT_SLOT( slotTotalDirs( TDEIO::Job*, unsigned long ) ) );
}
TQTimer::singleShot(0, this, TQT_SLOT(slotStart()));
/**
@@ -2301,7 +2301,7 @@ void CopyJob::slotStart()
m_reportTimer->start(REPORT_TIMEOUT,false);
// Stat the dest
- KIO::Job * job = KIO::stat( m_dest, false, 2, false );
+ TDEIO::Job * job = TDEIO::stat( m_dest, false, 2, false );
//kdDebug(7007) << "CopyJob:stating the dest " << m_dest << endl;
addSubjob(job);
}
@@ -2328,7 +2328,7 @@ void CopyJob::slotResultStating( Job *job )
info.permissions = (mode_t) -1;
info.mtime = (time_t) -1;
info.ctime = (time_t) -1;
- info.size = (KIO::filesize_t)-1;
+ info.size = (TDEIO::filesize_t)-1;
info.uSource = srcurl;
info.uDest = m_dest;
// Append filename or dirname to destination URL, if allowed
@@ -2525,7 +2525,7 @@ void CopyJob::slotReport()
}
}
-void CopyJob::slotEntries(KIO::Job* job, const UDSEntryList& list)
+void CopyJob::slotEntries(TDEIO::Job* job, const UDSEntryList& list)
{
UDSEntryListConstIterator it = list.begin();
UDSEntryListConstIterator end = list.end();
@@ -2535,7 +2535,7 @@ void CopyJob::slotEntries(KIO::Job* job, const UDSEntryList& list)
info.permissions = -1;
info.mtime = (time_t) -1;
info.ctime = (time_t) -1;
- info.size = (KIO::filesize_t)-1;
+ info.size = (TDEIO::filesize_t)-1;
TQString displayName;
KURL url;
TQString localPath;
@@ -2562,7 +2562,7 @@ void CopyJob::slotEntries(KIO::Job* job, const UDSEntryList& list)
info.permissions = ((*it2).m_long);
break;
case UDS_SIZE:
- info.size = (KIO::filesize_t)((*it2).m_long);
+ info.size = (TDEIO::filesize_t)((*it2).m_long);
m_totalSize += info.size;
break;
case UDS_MODIFICATION_TIME:
@@ -2627,7 +2627,7 @@ void CopyJob::slotEntries(KIO::Job* job, const UDSEntryList& list)
// Otherwise, we end up with e.g. dest=..../Desktop/ itself.
// (This can happen when dropping a link to a webpage with no path)
if ( destFileName.isEmpty() )
- destFileName = KIO::encodeFileName( info.uSource.prettyURL() );
+ destFileName = TDEIO::encodeFileName( info.uSource.prettyURL() );
//kdDebug(7007) << " adding destFileName=" << destFileName << endl;
info.uDest.addPath( destFileName );
@@ -2682,7 +2682,7 @@ void CopyJob::statCurrentSrc()
info.permissions = -1;
info.mtime = (time_t) -1;
info.ctime = (time_t) -1;
- info.size = (KIO::filesize_t)-1;
+ info.size = (TDEIO::filesize_t)-1;
info.uSource = m_currentSrcURL;
info.uDest = m_currentDest;
// Append filename or dirname to destination URL, if allowed
@@ -2703,7 +2703,7 @@ void CopyJob::statCurrentSrc()
// Different protocols, we'll create a .desktop file
// We have to change the extension anyway, so while we're at it,
// name the file like the URL
- info.uDest.addPath( KIO::encodeFileName( m_currentSrcURL.prettyURL() )+".desktop" );
+ info.uDest.addPath( TDEIO::encodeFileName( m_currentSrcURL.prettyURL() )+".desktop" );
}
}
files.append( info ); // Files and any symlinks
@@ -2750,8 +2750,8 @@ void CopyJob::statCurrentSrc()
}
// Stat the next src url
- Job * job = KIO::stat( m_currentSrcURL, true, 2, false );
- //kdDebug(7007) << "KIO::stat on " << m_currentSrcURL << endl;
+ Job * job = TDEIO::stat( m_currentSrcURL, true, 2, false );
+ //kdDebug(7007) << "TDEIO::stat on " << m_currentSrcURL << endl;
state = STATE_STATING;
addSubjob(job);
m_currentDestURL=m_dest;
@@ -2790,7 +2790,7 @@ void CopyJob::startRenameJob( const KURL& slave_url )
info.permissions = -1;
info.mtime = (time_t) -1;
info.ctime = (time_t) -1;
- info.size = (KIO::filesize_t)-1;
+ info.size = (TDEIO::filesize_t)-1;
info.uSource = m_currentSrcURL;
info.uDest = dest;
TQValueList<CopyInfo> files;
@@ -2811,10 +2811,10 @@ void CopyJob::startListing( const KURL & src )
d->m_bURLDirty = true;
ListJob * newjob = listRecursive( src, false );
newjob->setUnrestricted(true);
- connect(newjob, TQT_SIGNAL(entries( KIO::Job *,
- const KIO::UDSEntryList& )),
- TQT_SLOT( slotEntries( KIO::Job*,
- const KIO::UDSEntryList& )));
+ connect(newjob, TQT_SIGNAL(entries( TDEIO::Job *,
+ const TDEIO::UDSEntryList& )),
+ TQT_SLOT( slotEntries( TDEIO::Job*,
+ const TDEIO::UDSEntryList& )));
addSubjob( newjob );
}
@@ -2888,9 +2888,9 @@ void CopyJob::slotResultCreatingDirs( Job * job )
// We need to stat the existing dir, to get its last-modification time
KURL existingDest( (*it).uDest );
- SimpleJob * newJob = KIO::stat( existingDest, false, 2, false );
+ SimpleJob * newJob = TDEIO::stat( existingDest, false, 2, false );
Scheduler::scheduleJob(newJob);
- kdDebug(7007) << "KIO::stat for resolving conflict on " << existingDest << endl;
+ kdDebug(7007) << "TDEIO::stat for resolving conflict on " << existingDest << endl;
state = STATE_CONFLICT_CREATING_DIRS;
addSubjob(newJob);
return; // Don't move to next dir yet !
@@ -2919,7 +2919,7 @@ void CopyJob::slotResultCreatingDirs( Job * job )
createNextDir();
}
-void CopyJob::slotResultConflictCreatingDirs( KIO::Job * job )
+void CopyJob::slotResultConflictCreatingDirs( TDEIO::Job * job )
{
// We come here after a conflict has been detected and we've stated the existing dir
@@ -2928,11 +2928,11 @@ void CopyJob::slotResultConflictCreatingDirs( KIO::Job * job )
// Its modification time:
time_t destmtime = (time_t)-1;
time_t destctime = (time_t)-1;
- KIO::filesize_t destsize = 0;
+ TDEIO::filesize_t destsize = 0;
TQString linkDest;
- UDSEntry entry = ((KIO::StatJob*)job)->statResult();
- KIO::UDSEntry::ConstIterator it2 = entry.begin();
+ UDSEntry entry = ((TDEIO::StatJob*)job)->statResult();
+ TDEIO::UDSEntry::ConstIterator it2 = entry.begin();
for( ; it2 != entry.end(); it2++ ) {
switch ((*it2).m_uds) {
case UDS_MODIFICATION_TIME:
@@ -3082,7 +3082,7 @@ void CopyJob::createNextDir()
{
// Create the directory - with default permissions so that we can put files into it
// TODO : change permissions once all is finished; but for stuff coming from CDROM it sucks...
- KIO::SimpleJob *newjob = KIO::mkdir( udir, -1 );
+ TDEIO::SimpleJob *newjob = TDEIO::mkdir( udir, -1 );
Scheduler::scheduleJob(newjob);
m_currentDestURL = udir;
@@ -3132,16 +3132,16 @@ void CopyJob::slotResultCopyingFiles( Job * job )
assert ( subjobs.isEmpty() );
// We need to stat the existing file, to get its last-modification time
KURL existingFile( (*it).uDest );
- SimpleJob * newJob = KIO::stat( existingFile, false, 2, false );
+ SimpleJob * newJob = TDEIO::stat( existingFile, false, 2, false );
Scheduler::scheduleJob(newJob);
- kdDebug(7007) << "KIO::stat for resolving conflict on " << existingFile << endl;
+ kdDebug(7007) << "TDEIO::stat for resolving conflict on " << existingFile << endl;
state = STATE_CONFLICT_COPYING_FILES;
addSubjob(newJob);
return; // Don't move to next file yet !
}
else
{
- if ( m_bCurrentOperationIsLink && ::tqqt_cast<KIO::DeleteJob*>( job ) )
+ if ( m_bCurrentOperationIsLink && ::tqqt_cast<TDEIO::DeleteJob*>( job ) )
{
// Very special case, see a few lines below
// We are deleting the source of a symlink we successfully moved... ignore error
@@ -3158,14 +3158,14 @@ void CopyJob::slotResultCopyingFiles( Job * job )
{
// Special case for moving links. That operation needs two jobs, unlike others.
if ( m_bCurrentOperationIsLink && m_mode == Move
- && !::tqqt_cast<KIO::DeleteJob *>( job ) // Deleting source not already done
+ && !::tqqt_cast<TDEIO::DeleteJob *>( job ) // Deleting source not already done
)
{
subjobs.remove( job );
assert ( subjobs.isEmpty() );
// The only problem with this trick is that the error handling for this del operation
// is not going to be right... see 'Very special case' above.
- KIO::Job * newjob = KIO::del( (*it).uSource, false /*don't shred*/, false /*no GUI*/ );
+ TDEIO::Job * newjob = TDEIO::del( (*it).uSource, false /*don't shred*/, false /*no GUI*/ );
addSubjob( newjob );
return; // Don't move to next file yet !
}
@@ -3195,7 +3195,7 @@ void CopyJob::slotResultCopyingFiles( Job * job )
copyNextFile();
}
-void CopyJob::slotResultConflictCopyingFiles( KIO::Job * job )
+void CopyJob::slotResultConflictCopyingFiles( TDEIO::Job * job )
{
// We come here after a conflict has been detected and we've stated the existing file
// The file we were trying to create:
@@ -3214,10 +3214,10 @@ void CopyJob::slotResultConflictCopyingFiles( KIO::Job * job )
// Its modification time:
time_t destmtime = (time_t)-1;
time_t destctime = (time_t)-1;
- KIO::filesize_t destsize = 0;
+ TDEIO::filesize_t destsize = 0;
TQString linkDest;
- UDSEntry entry = ((KIO::StatJob*)job)->statResult();
- KIO::UDSEntry::ConstIterator it2 = entry.begin();
+ UDSEntry entry = ((TDEIO::StatJob*)job)->statResult();
+ TDEIO::UDSEntry::ConstIterator it2 = entry.begin();
for( ; it2 != entry.end(); it2++ ) {
switch ((*it2).m_uds) {
case UDS_MODIFICATION_TIME:
@@ -3364,7 +3364,7 @@ void CopyJob::copyNextFile()
bOverwrite = shouldOverwrite( destFile );
m_bCurrentOperationIsLink = false;
- KIO::Job * newjob = 0L;
+ TDEIO::Job * newjob = 0L;
if ( m_mode == Link )
{
//kdDebug(7007) << "Linking" << endl;
@@ -3376,7 +3376,7 @@ void CopyJob::copyNextFile()
((*it).uSource.pass() == (*it).uDest.pass()) )
{
// This is the case of creating a real symlink
- KIO::SimpleJob *newJob = KIO::symlink( (*it).uSource.path(), (*it).uDest, bOverwrite, false /*no GUI*/ );
+ TDEIO::SimpleJob *newJob = TDEIO::symlink( (*it).uSource.path(), (*it).uDest, bOverwrite, false /*no GUI*/ );
newjob = newJob;
Scheduler::scheduleJob(newJob);
//kdDebug(7007) << "CopyJob::copyNextFile : Linking target=" << (*it).uSource.path() << " link=" << (*it).uDest << endl;
@@ -3476,7 +3476,7 @@ void CopyJob::copyNextFile()
((*it).uSource.pass() == (*it).uDest.pass()))
// Copying a symlink - only on the same protocol/host/etc. (#5601, downloading an FTP file through its link),
{
- KIO::SimpleJob *newJob = KIO::symlink( (*it).linkDest, (*it).uDest, bOverwrite, false /*no GUI*/ );
+ TDEIO::SimpleJob *newJob = TDEIO::symlink( (*it).linkDest, (*it).uDest, bOverwrite, false /*no GUI*/ );
Scheduler::scheduleJob(newJob);
newjob = newJob;
//kdDebug(7007) << "CopyJob::copyNextFile : Linking target=" << (*it).linkDest << " link=" << (*it).uDest << endl;
@@ -3489,7 +3489,7 @@ void CopyJob::copyNextFile()
// NOTE: if we are moving stuff, the deletion of the source will be done in slotResultCopyingFiles
} else if (m_mode == Move) // Moving a file
{
- KIO::FileCopyJob * moveJob = KIO::file_move( (*it).uSource, (*it).uDest, (*it).permissions, bOverwrite, false, false/*no GUI*/ );
+ TDEIO::FileCopyJob * moveJob = TDEIO::file_move( (*it).uSource, (*it).uDest, (*it).permissions, bOverwrite, false, false/*no GUI*/ );
moveJob->setSourceSize64( (*it).size );
newjob = moveJob;
//kdDebug(7007) << "CopyJob::copyNextFile : Moving " << (*it).uSource << " to " << (*it).uDest << endl;
@@ -3507,7 +3507,7 @@ void CopyJob::copyNextFile()
int permissions = (*it).permissions;
if ( d->m_defaultPermissions || ( remoteSource && (*it).uDest.isLocalFile() ) )
permissions = -1;
- KIO::FileCopyJob * copyJob = KIO::file_copy( (*it).uSource, (*it).uDest, permissions, bOverwrite, false, false/*no GUI*/ );
+ TDEIO::FileCopyJob * copyJob = TDEIO::file_copy( (*it).uSource, (*it).uDest, permissions, bOverwrite, false, false/*no GUI*/ );
copyJob->setParentJob( this ); // in case of rename dialog
copyJob->setSourceSize64( (*it).size );
copyJob->setModificationTime( (*it).mtime );
@@ -3518,10 +3518,10 @@ void CopyJob::copyNextFile()
d->m_bURLDirty = true;
}
addSubjob(newjob);
- connect( newjob, TQT_SIGNAL( processedSize( KIO::Job*, KIO::filesize_t ) ),
- this, TQT_SLOT( slotProcessedSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( newjob, TQT_SIGNAL( totalSize( KIO::Job*, KIO::filesize_t ) ),
- this, TQT_SLOT( slotTotalSize( KIO::Job*, KIO::filesize_t ) ) );
+ connect( newjob, TQT_SIGNAL( processedSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ this, TQT_SLOT( slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( newjob, TQT_SIGNAL( totalSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ this, TQT_SLOT( slotTotalSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
}
else
{
@@ -3539,7 +3539,7 @@ void CopyJob::deleteNextDir()
d->m_bURLDirty = true;
// Take first dir to delete out of list - last ones first !
KURL::List::Iterator it = dirsToRemove.fromLast();
- SimpleJob *job = KIO::rmdir( *it );
+ SimpleJob *job = TDEIO::rmdir( *it );
Scheduler::scheduleJob(job);
dirsToRemove.remove(it);
addSubjob( job );
@@ -3604,7 +3604,7 @@ void CopyJob::setNextDirAttribute()
}
}
-void CopyJob::slotProcessedSize( KIO::Job*, KIO::filesize_t data_size )
+void CopyJob::slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t data_size )
{
//kdDebug(7007) << "CopyJob::slotProcessedSize " << data_size << endl;
m_fileProcessedSize = data_size;
@@ -3621,7 +3621,7 @@ void CopyJob::slotProcessedSize( KIO::Job*, KIO::filesize_t data_size )
emitPercent( m_processedSize + m_fileProcessedSize, m_totalSize );
}
-void CopyJob::slotTotalSize( KIO::Job*, KIO::filesize_t size )
+void CopyJob::slotTotalSize( TDEIO::Job*, TDEIO::filesize_t size )
{
//kdDebug(7007) << "slotTotalSize: " << size << endl;
// Special case for copying a single file
@@ -3753,8 +3753,8 @@ void CopyJob::slotResultRenaming( Job* job )
// we lack mtime info for both the src (not stated)
// and the dest (stated but this info wasn't stored)
// Let's do it for local files, at least
- KIO::filesize_t sizeSrc = (KIO::filesize_t) -1;
- KIO::filesize_t sizeDest = (KIO::filesize_t) -1;
+ TDEIO::filesize_t sizeSrc = (TDEIO::filesize_t) -1;
+ TDEIO::filesize_t sizeDest = (TDEIO::filesize_t) -1;
time_t ctimeSrc = (time_t) -1;
time_t ctimeDest = (time_t) -1;
time_t mtimeSrc = (time_t) -1;
@@ -3799,7 +3799,7 @@ void CopyJob::slotResultRenaming( Job* job )
// Set m_dest to the chosen destination
// This is only for this src url; the next one will revert to d->m_globalDest
m_dest.setPath( newPath );
- KIO::Job* job = KIO::stat( m_dest, false, 2, false );
+ TDEIO::Job* job = TDEIO::stat( m_dest, false, 2, false );
state = STATE_STATING;
destinationState = DEST_NOT_STATED;
addSubjob(job);
@@ -3829,7 +3829,7 @@ void CopyJob::slotResultRenaming( Job* job )
break;
}
}
- } else if ( err != KIO::ERR_UNSUPPORTED_ACTION ) {
+ } else if ( err != TDEIO::ERR_UNSUPPORTED_ACTION ) {
kdDebug(7007) << "Couldn't rename " << m_currentSrcURL << " to " << dest << ", aborting" << endl;
m_error = err;
m_errorText = errText;
@@ -3837,8 +3837,8 @@ void CopyJob::slotResultRenaming( Job* job )
return;
}
kdDebug(7007) << "Couldn't rename " << m_currentSrcURL << " to " << dest << ", reverting to normal way, starting with stat" << endl;
- //kdDebug(7007) << "KIO::stat on " << m_currentSrcURL << endl;
- KIO::Job* job = KIO::stat( m_currentSrcURL, true, 2, false );
+ //kdDebug(7007) << "TDEIO::stat on " << m_currentSrcURL << endl;
+ TDEIO::Job* job = TDEIO::stat( m_currentSrcURL, true, 2, false );
state = STATE_STATING;
addSubjob(job);
m_bOnlyRenames = false;
@@ -3906,40 +3906,40 @@ void CopyJob::slotResult( Job *job )
}
}
-void KIO::CopyJob::setDefaultPermissions( bool b )
+void TDEIO::CopyJob::setDefaultPermissions( bool b )
{
d->m_defaultPermissions = b;
}
// KDE4: remove
-void KIO::CopyJob::setInteractive( bool b )
+void TDEIO::CopyJob::setInteractive( bool b )
{
Job::setInteractive( b );
}
-CopyJob *KIO::copy(const KURL& src, const KURL& dest, bool showProgressInfo )
+CopyJob *TDEIO::copy(const KURL& src, const KURL& dest, bool showProgressInfo )
{
- //kdDebug(7007) << "KIO::copy src=" << src << " dest=" << dest << endl;
+ //kdDebug(7007) << "TDEIO::copy src=" << src << " dest=" << dest << endl;
KURL::List srcList;
srcList.append( src );
return new CopyJob( srcList, dest, CopyJob::Copy, false, showProgressInfo );
}
-CopyJob *KIO::copyAs(const KURL& src, const KURL& dest, bool showProgressInfo )
+CopyJob *TDEIO::copyAs(const KURL& src, const KURL& dest, bool showProgressInfo )
{
- //kdDebug(7007) << "KIO::copyAs src=" << src << " dest=" << dest << endl;
+ //kdDebug(7007) << "TDEIO::copyAs src=" << src << " dest=" << dest << endl;
KURL::List srcList;
srcList.append( src );
return new CopyJob( srcList, dest, CopyJob::Copy, true, showProgressInfo );
}
-CopyJob *KIO::copy( const KURL::List& src, const KURL& dest, bool showProgressInfo )
+CopyJob *TDEIO::copy( const KURL::List& src, const KURL& dest, bool showProgressInfo )
{
//kdDebug(7007) << src << " " << dest << endl;
return new CopyJob( src, dest, CopyJob::Copy, false, showProgressInfo );
}
-CopyJob *KIO::move(const KURL& src, const KURL& dest, bool showProgressInfo )
+CopyJob *TDEIO::move(const KURL& src, const KURL& dest, bool showProgressInfo )
{
//kdDebug(7007) << src << " " << dest << endl;
KURL::List srcList;
@@ -3947,7 +3947,7 @@ CopyJob *KIO::move(const KURL& src, const KURL& dest, bool showProgressInfo )
return new CopyJob( srcList, dest, CopyJob::Move, false, showProgressInfo );
}
-CopyJob *KIO::moveAs(const KURL& src, const KURL& dest, bool showProgressInfo )
+CopyJob *TDEIO::moveAs(const KURL& src, const KURL& dest, bool showProgressInfo )
{
//kdDebug(7007) << src << " " << dest << endl;
KURL::List srcList;
@@ -3955,39 +3955,39 @@ CopyJob *KIO::moveAs(const KURL& src, const KURL& dest, bool showProgressInfo )
return new CopyJob( srcList, dest, CopyJob::Move, true, showProgressInfo );
}
-CopyJob *KIO::move( const KURL::List& src, const KURL& dest, bool showProgressInfo )
+CopyJob *TDEIO::move( const KURL::List& src, const KURL& dest, bool showProgressInfo )
{
//kdDebug(7007) << src << " " << dest << endl;
return new CopyJob( src, dest, CopyJob::Move, false, showProgressInfo );
}
-CopyJob *KIO::link(const KURL& src, const KURL& destDir, bool showProgressInfo )
+CopyJob *TDEIO::link(const KURL& src, const KURL& destDir, bool showProgressInfo )
{
KURL::List srcList;
srcList.append( src );
return new CopyJob( srcList, destDir, CopyJob::Link, false, showProgressInfo );
}
-CopyJob *KIO::link(const KURL::List& srcList, const KURL& destDir, bool showProgressInfo )
+CopyJob *TDEIO::link(const KURL::List& srcList, const KURL& destDir, bool showProgressInfo )
{
return new CopyJob( srcList, destDir, CopyJob::Link, false, showProgressInfo );
}
-CopyJob *KIO::linkAs(const KURL& src, const KURL& destDir, bool showProgressInfo )
+CopyJob *TDEIO::linkAs(const KURL& src, const KURL& destDir, bool showProgressInfo )
{
KURL::List srcList;
srcList.append( src );
return new CopyJob( srcList, destDir, CopyJob::Link, false, showProgressInfo );
}
-CopyJob *KIO::trash(const KURL& src, bool showProgressInfo )
+CopyJob *TDEIO::trash(const KURL& src, bool showProgressInfo )
{
KURL::List srcList;
srcList.append( src );
return new CopyJob( srcList, KURL( "trash:/" ), CopyJob::Move, false, showProgressInfo );
}
-CopyJob *KIO::trash(const KURL::List& srcList, bool showProgressInfo )
+CopyJob *TDEIO::trash(const KURL::List& srcList, bool showProgressInfo )
{
return new CopyJob( srcList, KURL( "trash:/" ), CopyJob::Move, false, showProgressInfo );
}
@@ -4001,21 +4001,21 @@ DeleteJob::DeleteJob( const KURL::List& src, bool /*shred*/, bool showProgressIn
{
if ( showProgressInfo ) {
- connect( this, TQT_SIGNAL( totalFiles( KIO::Job*, unsigned long ) ),
- Observer::self(), TQT_SLOT( slotTotalFiles( KIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( totalFiles( TDEIO::Job*, unsigned long ) ),
+ Observer::self(), TQT_SLOT( slotTotalFiles( TDEIO::Job*, unsigned long ) ) );
- connect( this, TQT_SIGNAL( totalDirs( KIO::Job*, unsigned long ) ),
- Observer::self(), TQT_SLOT( slotTotalDirs( KIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( totalDirs( TDEIO::Job*, unsigned long ) ),
+ Observer::self(), TQT_SLOT( slotTotalDirs( TDEIO::Job*, unsigned long ) ) );
// See slotReport
- /*connect( this, TQT_SIGNAL( processedFiles( KIO::Job*, unsigned long ) ),
- m_observer, TQT_SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) );
+ /*connect( this, TQT_SIGNAL( processedFiles( TDEIO::Job*, unsigned long ) ),
+ m_observer, TQT_SLOT( slotProcessedFiles( TDEIO::Job*, unsigned long ) ) );
- connect( this, TQT_SIGNAL( processedDirs( KIO::Job*, unsigned long ) ),
- m_observer, TQT_SLOT( slotProcessedDirs( KIO::Job*, unsigned long ) ) );
+ connect( this, TQT_SIGNAL( processedDirs( TDEIO::Job*, unsigned long ) ),
+ m_observer, TQT_SLOT( slotProcessedDirs( TDEIO::Job*, unsigned long ) ) );
- connect( this, TQT_SIGNAL( deleting( KIO::Job*, const KURL& ) ),
- m_observer, TQT_SLOT( slotDeleting( KIO::Job*, const KURL& ) ) );*/
+ connect( this, TQT_SIGNAL( deleting( TDEIO::Job*, const KURL& ) ),
+ m_observer, TQT_SLOT( slotDeleting( TDEIO::Job*, const KURL& ) ) );*/
m_reportTimer=new TQTimer(this);
connect(m_reportTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(slotReport()));
@@ -4065,7 +4065,7 @@ void DeleteJob::slotReport()
}
-void DeleteJob::slotEntries(KIO::Job* job, const UDSEntryList& list)
+void DeleteJob::slotEntries(TDEIO::Job* job, const UDSEntryList& list)
{
UDSEntryListConstIterator it = list.begin();
UDSEntryListConstIterator end = list.end();
@@ -4098,7 +4098,7 @@ void DeleteJob::slotEntries(KIO::Job* job, const UDSEntryList& list)
atomsFound++;
break;
case UDS_SIZE:
- m_totalSize += (KIO::filesize_t)((*it2).m_long);
+ m_totalSize += (TDEIO::filesize_t)((*it2).m_long);
atomsFound++;
break;
default:
@@ -4144,9 +4144,9 @@ void DeleteJob::statNextSrc()
}
// Stat it
state = STATE_STATING;
- KIO::SimpleJob * job = KIO::stat( m_currentURL, true, 1, false );
+ TDEIO::SimpleJob * job = TDEIO::stat( m_currentURL, true, 1, false );
Scheduler::scheduleJob(job);
- //kdDebug(7007) << "KIO::stat (DeleteJob) " << m_currentURL << endl;
+ //kdDebug(7007) << "TDEIO::stat (DeleteJob) " << m_currentURL << endl;
addSubjob(job);
//if ( m_progressId ) // Did we get an ID from the observer ?
// Observer::self()->slotDeleting( this, *it ); // show asap
@@ -4192,7 +4192,7 @@ void DeleteJob::deleteNextFile()
}
} else
{ // if remote - or if unlink() failed (we'll use the job's error handling in that case)
- job = KIO::file_delete( *it, false /*no GUI*/);
+ job = TDEIO::file_delete( *it, false /*no GUI*/);
Scheduler::scheduleJob(job);
m_currentURL=(*it);
}
@@ -4231,9 +4231,9 @@ void DeleteJob::deleteNextDir()
if ( KProtocolInfo::canDeleteRecursive( *it ) ) {
// If the ioslave supports recursive deletion of a directory, then
// we only need to send a single CMD_DEL command, so we use file_delete :)
- job = KIO::file_delete( *it, false /*no gui*/ );
+ job = TDEIO::file_delete( *it, false /*no gui*/ );
} else {
- job = KIO::rmdir( *it );
+ job = TDEIO::rmdir( *it );
}
Scheduler::scheduleJob(job);
dirs.remove(it);
@@ -4260,7 +4260,7 @@ void DeleteJob::deleteNextDir()
emitResult();
}
-void DeleteJob::slotProcessedSize( KIO::Job*, KIO::filesize_t data_size )
+void DeleteJob::slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t data_size )
{
// Note: this is the same implementation as CopyJob::slotProcessedSize but
// it's different from FileCopyJob::slotProcessedSize - which is why this
@@ -4307,7 +4307,7 @@ void DeleteJob::slotResult( Job *job )
UDSEntry entry = ((StatJob*)job)->statResult();
bool bDir = false;
bool bLink = false;
- KIO::filesize_t size = (KIO::filesize_t)-1;
+ TDEIO::filesize_t size = (TDEIO::filesize_t)-1;
UDSEntry::ConstIterator it2 = entry.begin();
int atomsFound(0);
for( ; it2 != entry.end(); it2++ )
@@ -4349,10 +4349,10 @@ void DeleteJob::slotResult( Job *job )
ListJob *newjob = listRecursive( url, false );
newjob->setUnrestricted(true); // No KIOSK restrictions
Scheduler::scheduleJob(newjob);
- connect(newjob, TQT_SIGNAL(entries( KIO::Job *,
- const KIO::UDSEntryList& )),
- TQT_SLOT( slotEntries( KIO::Job*,
- const KIO::UDSEntryList& )));
+ connect(newjob, TQT_SIGNAL(entries( TDEIO::Job *,
+ const TDEIO::UDSEntryList& )),
+ TQT_SLOT( slotEntries( TDEIO::Job*,
+ const TDEIO::UDSEntryList& )));
addSubjob(newjob);
} else {
++m_currentStat;
@@ -4417,7 +4417,7 @@ void DeleteJob::slotResult( Job *job )
}
}
-DeleteJob *KIO::del( const KURL& src, bool shred, bool showProgressInfo )
+DeleteJob *TDEIO::del( const KURL& src, bool shred, bool showProgressInfo )
{
KURL::List srcList;
srcList.append( src );
@@ -4425,7 +4425,7 @@ DeleteJob *KIO::del( const KURL& src, bool shred, bool showProgressInfo )
return job;
}
-DeleteJob *KIO::del( const KURL::List& src, bool shred, bool showProgressInfo )
+DeleteJob *TDEIO::del( const KURL::List& src, bool shred, bool showProgressInfo )
{
DeleteJob *job = new DeleteJob( src, shred, showProgressInfo );
return job;
@@ -4599,7 +4599,7 @@ void MultiGetJob::slotMimetype( const TQString &_mimetype )
emit mimetype(m_currentEntry->id, _mimetype);
}
-MultiGetJob *KIO::multi_get(long id, const KURL &url, const MetaData &metaData)
+MultiGetJob *TDEIO::multi_get(long id, const KURL &url, const MetaData &metaData)
{
MultiGetJob * job = new MultiGetJob( url, false );
job->get(id, url, metaData);
@@ -4778,7 +4778,7 @@ void Job::virtual_hook( int, void* )
{ /*BASE::virtual_hook( id, data );*/ }
void SimpleJob::virtual_hook( int id, void* data )
-{ KIO::Job::virtual_hook( id, data ); }
+{ TDEIO::Job::virtual_hook( id, data ); }
void MkdirJob::virtual_hook( int id, void* data )
{ SimpleJob::virtual_hook( id, data ); }
diff --git a/kio/kio/job.h b/kio/kio/job.h
index fed6f82ab..03985b637 100644
--- a/kio/kio/job.h
+++ b/kio/kio/job.h
@@ -24,7 +24,7 @@
#include <kio/jobclasses.h>
-namespace KIO {
+namespace TDEIO {
/**
@@ -80,7 +80,7 @@ namespace KIO {
* Create or move a symlink.
* This is the lowlevel operation, similar to file_copy and file_move.
* It doesn't do any check (other than those the slave does)
- * and it doesn't show rename and skip dialogs - use KIO::link for that.
+ * and it doesn't show rename and skip dialogs - use TDEIO::link for that.
* @param target The string that will become the "target" of the link (can be relative)
* @param dest The symlink to create.
* @param overwrite whether to automatically overwrite if the dest exists
@@ -215,7 +215,7 @@ namespace KIO {
*
* Example:
* \code
- * job = KIO::http_post( url, postData, false );
+ * job = TDEIO::http_post( url, postData, false );
* job->addMetaData("content-type", contentType );
* job->addMetaData("referrer", referrerURL);
* \endcode
diff --git a/kio/kio/jobclasses.h b/kio/kio/jobclasses.h
index 9d6624dc0..9858b1ce1 100644
--- a/kio/kio/jobclasses.h
+++ b/kio/kio/jobclasses.h
@@ -39,7 +39,7 @@ class TQTimer;
#define KIO_COPYJOB_HAS_SETINTERACTIVE // new in 3.4. Used by kio_trash.
-namespace KIO {
+namespace TDEIO {
class Slave;
class SlaveInterface;
@@ -50,9 +50,9 @@ namespace KIO {
* For all jobs created in an application, the code looks like
*
* \code
- * KIO::Job * job = KIO::someoperation( some parameters );
- * connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
- * this, TQT_SLOT( slotResult( KIO::Job * ) ) );
+ * TDEIO::Job * job = TDEIO::someoperation( some parameters );
+ * connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ * this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
* \endcode
* (other connects, specific to the job)
*
@@ -62,8 +62,8 @@ namespace KIO {
* if ( job->error() )
* job->showErrorDialog( this or 0L );
* \endcode
- * @see KIO::Scheduler
- * @see KIO::Slave
+ * @see TDEIO::Scheduler
+ * @see TDEIO::Slave
*/
class KIO_EXPORT Job : public TQObject {
Q_OBJECT
@@ -90,7 +90,7 @@ namespace KIO {
* Returns the error code, if there has been an error.
* Only call this method from the slot connected to result().
* @return the error code for this job, 0 if no error.
- * Error codes are defined in KIO::Error.
+ * Error codes are defined in TDEIO::Error.
*/
int error() const { return m_error; }
@@ -262,7 +262,7 @@ namespace KIO {
* @see addMetaData()
* @see mergeMetaData()
*/
- void setMetaData( const KIO::MetaData &metaData);
+ void setMetaData( const TDEIO::MetaData &metaData);
/**
* Add key/value pair to the meta data that is sent to the slave.
@@ -317,7 +317,7 @@ namespace KIO {
* @see processedSize
* @since 3.2
*/
- KIO::filesize_t getProcessedSize();
+ TDEIO::filesize_t getProcessedSize();
signals:
/**
@@ -325,7 +325,7 @@ namespace KIO {
* failed...). Use error to know the result.
* @param job the job that emitted this signal
*/
- void result( KIO::Job *job );
+ void result( TDEIO::Job *job );
/**
* @deprecated. Don't use !
@@ -334,7 +334,7 @@ namespace KIO {
* in this case, ERR_USER_CANCELED.
* @param job the job that emitted this signal
*/
- void canceled( KIO::Job *job );
+ void canceled( TDEIO::Job *job );
/**
* Emitted to display information about this job, as sent by the slave.
@@ -342,7 +342,7 @@ namespace KIO {
* @param job the job that emitted this signal
* @param msg the info message
*/
- void infoMessage( KIO::Job *job, const TQString & msg );
+ void infoMessage( TDEIO::Job *job, const TQString & msg );
// KDE4: Separate rich-text string from plain-text string, for different widgets.
/**
@@ -351,7 +351,7 @@ namespace KIO {
* @param msg the info message
* @since 3.5
*/
- void warning( KIO::Job *job, const TQString & msg );
+ void warning( TDEIO::Job *job, const TQString & msg );
// KDE4: Separate rich-text string from plain-text string, for different widgets.
/**
@@ -360,7 +360,7 @@ namespace KIO {
* currently unused (in the applications).
* @param job the job that emitted this signal
*/
- void connected( KIO::Job *job );
+ void connected( TDEIO::Job *job );
/**
* Progress signal showing the overall progress of the job
@@ -370,7 +370,7 @@ namespace KIO {
* @param job the job that emitted this signal
* @param percent the percentage
*/
- void percent( KIO::Job *job, unsigned long percent );
+ void percent( TDEIO::Job *job, unsigned long percent );
/**
* Emitted when we know the size of this job (data size for transfers,
@@ -378,7 +378,7 @@ namespace KIO {
* @param job the job that emitted this signal
* @param size the total size in bytes
*/
- void totalSize( KIO::Job *job, KIO::filesize_t size );
+ void totalSize( TDEIO::Job *job, TDEIO::filesize_t size );
/**
* Regularly emitted to show the progress of this job
@@ -386,14 +386,14 @@ namespace KIO {
* @param job the job that emitted this signal
* @param size the processed size in bytes
*/
- void processedSize( KIO::Job *job, KIO::filesize_t size );
+ void processedSize( TDEIO::Job *job, TDEIO::filesize_t size );
/**
* Emitted to display information about the speed of this job.
* @param job the job that emitted this signal
* @param speed the speed in bytes/s
*/
- void speed( KIO::Job *job, unsigned long speed );
+ void speed( TDEIO::Job *job, unsigned long speed );
protected slots:
/**
@@ -404,7 +404,7 @@ namespace KIO {
* @param job the subjob
* @see result()
*/
- virtual void slotResult( KIO::Job *job );
+ virtual void slotResult( TDEIO::Job *job );
/**
* Forward signal from subjob.
@@ -412,14 +412,14 @@ namespace KIO {
* @param speed the speed in bytes/s
* @see speed()
*/
- void slotSpeed( KIO::Job *job, unsigned long speed );
+ void slotSpeed( TDEIO::Job *job, unsigned long speed );
/**
* Forward signal from subjob.
* @param job the subjob
* @param msg the info message
* @see infoMessage()
*/
- void slotInfoMessage( KIO::Job *job, const TQString &msg );
+ void slotInfoMessage( TDEIO::Job *job, const TQString &msg );
/**
* Remove speed information.
@@ -465,7 +465,7 @@ namespace KIO {
* @param processedSize the processed size in bytes
* @param totalSize the total size in bytes
*/
- void emitPercent( KIO::filesize_t processedSize, KIO::filesize_t totalSize );
+ void emitPercent( TDEIO::filesize_t processedSize, TDEIO::filesize_t totalSize );
/**
* Utility function for inherited jobs.
@@ -485,7 +485,7 @@ namespace KIO {
* Set the processed size, does not emit processedSize
* @since 3.2
*/
- void setProcessedSize(KIO::filesize_t size);
+ void setProcessedSize(TDEIO::filesize_t size);
/**
* @internal
@@ -525,7 +525,7 @@ namespace KIO {
* Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...)
* that manage subjobs but aren't scheduled directly.
*/
- class KIO_EXPORT SimpleJob : public KIO::Job {
+ class KIO_EXPORT SimpleJob : public TDEIO::Job {
Q_OBJECT
public:
@@ -598,7 +598,7 @@ namespace KIO {
* Can also be called by the parent job, when it knows the size.
* @param data_size the total size
*/
- void slotTotalSize( KIO::filesize_t data_size );
+ void slotTotalSize( TDEIO::filesize_t data_size );
protected slots:
/**
@@ -631,7 +631,7 @@ namespace KIO {
* @param data_size the processed size in bytes
* @see processedSize()
*/
- void slotProcessedSize( KIO::filesize_t data_size );
+ void slotProcessedSize( TDEIO::filesize_t data_size );
/**
* Forward signal from the slave.
* @param speed the speed in bytes/s
@@ -644,7 +644,7 @@ namespace KIO {
* @param _metaData the meta data
* @see metaData()
*/
- virtual void slotMetaData( const KIO::MetaData &_metaData);
+ virtual void slotMetaData( const TDEIO::MetaData &_metaData);
public slots:
/**
@@ -666,7 +666,7 @@ namespace KIO {
KURL m_url;
KURL m_subUrl;
int m_command;
- KIO::filesize_t m_totalSize;
+ TDEIO::filesize_t m_totalSize;
protected:
virtual void virtual_hook( int id, void* data );
/*
@@ -683,7 +683,7 @@ namespace KIO {
/**
* A KIO job that retrieves information about a file or directory.
- * @see KIO::stat()
+ * @see TDEIO::stat()
*/
class KIO_EXPORT StatJob : public SimpleJob {
@@ -691,7 +691,7 @@ namespace KIO {
public:
/**
- * Do not use this constructor to create a StatJob, use KIO::stat() instead.
+ * Do not use this constructor to create a StatJob, use TDEIO::stat() instead.
* @param url the url of the file or directory to check
* @param command the command to issue
* @param packedArgs the arguments
@@ -742,7 +742,7 @@ namespace KIO {
* @param job the job that is redirected
* @param url the new url
*/
- void redirection( KIO::Job *job, const KURL &url );
+ void redirection( TDEIO::Job *job, const KURL &url );
/**
* Signals a permanent redirection.
@@ -752,13 +752,13 @@ namespace KIO {
* @param toUrl the new URL
* @since 3.1
*/
- void permanentRedirection( KIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
+ void permanentRedirection( TDEIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
protected slots:
- void slotStatEntry( const KIO::UDSEntry & entry );
+ void slotStatEntry( const TDEIO::UDSEntry & entry );
void slotRedirection( const KURL &url);
virtual void slotFinished();
- virtual void slotMetaData( const KIO::MetaData &_metaData);
+ virtual void slotMetaData( const TDEIO::MetaData &_metaData);
protected:
UDSEntry m_statResult;
@@ -774,7 +774,7 @@ namespace KIO {
/**
* A KIO job that creates a directory
- * @see KIO::mkdir()
+ * @see TDEIO::mkdir()
* @since 3.3
*/
class KIO_EXPORT MkdirJob : public SimpleJob {
@@ -783,7 +783,7 @@ namespace KIO {
public:
/**
- * Do not use this constructor to create a MkdirJob, use KIO::mkdir() instead.
+ * Do not use this constructor to create a MkdirJob, use TDEIO::mkdir() instead.
* @param url the url of the file or directory to check
* @param command the command to issue
* @param packedArgs the arguments
@@ -807,7 +807,7 @@ namespace KIO {
* @param job the job that is redirected
* @param url the new url
*/
- void redirection( KIO::Job *job, const KURL &url );
+ void redirection( TDEIO::Job *job, const KURL &url );
/**
* Signals a permanent redirection.
@@ -816,7 +816,7 @@ namespace KIO {
* @param fromUrl the original URL
* @param toUrl the new URL
*/
- void permanentRedirection( KIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
+ void permanentRedirection( TDEIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
protected slots:
void slotRedirection( const KURL &url);
@@ -841,7 +841,7 @@ namespace KIO {
public:
/**
- * Do not create a DirectCopyJob. Use KIO::copy() or KIO::file_copy() instead.
+ * Do not create a DirectCopyJob. Use TDEIO::copy() or TDEIO::file_copy() instead.
*/
DirectCopyJob(const KURL& url, int command, const TQByteArray &packedArgs,
bool showProgressInfo);
@@ -859,10 +859,10 @@ namespace KIO {
* Emitted if the job found an existing partial file
* and supports resuming. Used by FileCopyJob.
*/
- void canResume( KIO::Job *job, KIO::filesize_t offset );
+ void canResume( TDEIO::Job *job, TDEIO::filesize_t offset );
private slots:
- void slotCanResume( KIO::filesize_t offset );
+ void slotCanResume( TDEIO::filesize_t offset );
};
@@ -877,7 +877,7 @@ namespace KIO {
public:
/**
- * Do not create a TransferJob. Use KIO::get() or KIO::put()
+ * Do not create a TransferJob. Use TDEIO::get() or TDEIO::put()
* instead.
* @param url the url to get or put
* @param command the command to issue
@@ -902,7 +902,7 @@ namespace KIO {
* Called when m_subJob finishes.
* @param job the job that finished
*/
- virtual void slotResult( KIO::Job *job );
+ virtual void slotResult( TDEIO::Job *job );
/**
* Flow control. Suspend data processing from the slave.
@@ -974,7 +974,7 @@ namespace KIO {
* should not be certain of data.size() == 0 ever happening (e.g. in case
* of an error), so you should rely on result() instead.
*/
- void data( KIO::Job *job, const TQByteArray &data );
+ void data( TDEIO::Job *job, const TQByteArray &data );
/**
* Request for data.
@@ -987,7 +987,7 @@ namespace KIO {
* @param data buffer to fill with data to send to the
* slave. An empty buffer indicates end of data. (EOD)
*/
- void dataReq( KIO::Job *job, TQByteArray &data );
+ void dataReq( TDEIO::Job *job, TQByteArray &data );
/**
* Signals a redirection.
@@ -996,7 +996,7 @@ namespace KIO {
* @param job the job that emitted this signal
* @param url the new URL
*/
- void redirection( KIO::Job *job, const KURL &url );
+ void redirection( TDEIO::Job *job, const KURL &url );
/**
* Signals a permanent redirection.
@@ -1006,14 +1006,14 @@ namespace KIO {
* @param toUrl the new URL
* @since 3.1
*/
- void permanentRedirection( KIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
+ void permanentRedirection( TDEIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
/**
* Mimetype determined.
* @param job the job that emitted this signal
* @param type the mime type
*/
- void mimetype( KIO::Job *job, const TQString &type );
+ void mimetype( TDEIO::Job *job, const TQString &type );
/**
* @internal
@@ -1022,7 +1022,7 @@ namespace KIO {
* and emitted by the "get" job if it supports resuming to
* the given offset - in this case @p offset is unused)
*/
- void canResume( KIO::Job *job, KIO::filesize_t offset );
+ void canResume( TDEIO::Job *job, TDEIO::filesize_t offset );
protected slots:
@@ -1032,10 +1032,10 @@ namespace KIO {
virtual void slotDataReq();
virtual void slotMimetype( const TQString &mimetype );
virtual void slotNeedSubURLData();
- virtual void slotSubURLData(KIO::Job*, const TQByteArray &);
- virtual void slotMetaData( const KIO::MetaData &_metaData);
+ virtual void slotSubURLData(TDEIO::Job*, const TQByteArray &);
+ virtual void slotMetaData( const TDEIO::MetaData &_metaData);
void slotErrorPage();
- void slotCanResume( KIO::filesize_t offset );
+ void slotCanResume( TDEIO::filesize_t offset );
void slotPostRedirection();
protected:
@@ -1057,14 +1057,14 @@ namespace KIO {
* also stores a TQByteArray with the data, making it simpler to use than the
* standard TransferJob.
*
- * For KIO::storedGet it puts the data into the member TQByteArray, so the user
+ * For TDEIO::storedGet it puts the data into the member TQByteArray, so the user
* of this class can get hold of the whole data at once by calling data()
* when the result signal is emitted.
* You should only use StoredTransferJob to download data if you cannot
* process the data by chunks while it's being downloaded, since storing
* everything in a TQByteArray can potentially require a lot of memory.
*
- * For KIO::storedPut the user of this class simply provides the bytearray from
+ * For TDEIO::storedPut the user of this class simply provides the bytearray from
* the start, and the job takes care of uploading it.
* You should only use StoredTransferJob to upload data if you cannot
* provide the in chunks while it's being uploaded, since storing
@@ -1072,7 +1072,7 @@ namespace KIO {
*
* @since 3.3
*/
- class KIO_EXPORT StoredTransferJob : public KIO::TransferJob {
+ class KIO_EXPORT StoredTransferJob : public TDEIO::TransferJob {
Q_OBJECT
public:
@@ -1092,7 +1092,7 @@ namespace KIO {
/**
* Set data to be uploaded. This is for put jobs.
- * Automatically called by KIO::storedPut(const TQByteArray &, ...),
+ * Automatically called by TDEIO::storedPut(const TQByteArray &, ...),
* do not call this yourself.
*/
void setData( const TQByteArray& arr );
@@ -1104,8 +1104,8 @@ namespace KIO {
TQByteArray data() const { return m_data; }
private slots:
- void slotStoredData( KIO::Job *job, const TQByteArray &data );
- void slotStoredDataReq( KIO::Job *job, TQByteArray &data );
+ void slotStoredData( TDEIO::Job *job, const TQByteArray &data );
+ void slotStoredDataReq( TDEIO::Job *job, TQByteArray &data );
private:
TQByteArray m_data;
int m_uploadOffset;
@@ -1114,15 +1114,15 @@ namespace KIO {
/**
* The MultiGetJob is a TransferJob that allows you to get
* several files from a single server. Don't create directly,
- * but use KIO::multi_get() instead.
- * @see KIO::multi_get()
+ * but use TDEIO::multi_get() instead.
+ * @see TDEIO::multi_get()
*/
class KIO_EXPORT MultiGetJob : public TransferJob {
Q_OBJECT
public:
/**
- * Do not create a MultiGetJob directly, use KIO::multi_get()
+ * Do not create a MultiGetJob directly, use TDEIO::multi_get()
* instead.
*
* @param url the first url to get
@@ -1166,7 +1166,7 @@ namespace KIO {
/**
* File transfer completed.
*
- * When all files have been processed, result(KIO::Job *) gets
+ * When all files have been processed, result(TDEIO::Job *) gets
* emitted.
* @param id the id of the request
*/
@@ -1202,15 +1202,15 @@ namespace KIO {
/**
* A MimetypeJob is a TransferJob that allows you to get
* the mime type of an URL. Don't create directly,
- * but use KIO::mimetype() instead.
- * @see KIO::mimetype()
+ * but use TDEIO::mimetype() instead.
+ * @see TDEIO::mimetype()
*/
class KIO_EXPORT MimetypeJob : public TransferJob {
Q_OBJECT
public:
/**
- * Do not create a MimetypeJob directly. Use KIO::mimetype()
+ * Do not create a MimetypeJob directly. Use TDEIO::mimetype()
* instead.
* @param url the url to get
* @param command the command to issue
@@ -1244,16 +1244,16 @@ namespace KIO {
/**
* The FileCopyJob copies data from one place to another.
- * @see KIO::file_copy()
- * @see KIO::file_move()
+ * @see TDEIO::file_copy()
+ * @see TDEIO::file_move()
*/
class KIO_EXPORT FileCopyJob : public Job {
Q_OBJECT
public:
/**
- * Do not create a FileCopyJob directly. Use KIO::file_move()
- * or KIO::file_copy() instead.
+ * Do not create a FileCopyJob directly. Use TDEIO::file_move()
+ * or TDEIO::file_copy() instead.
* @param src the source URL
* @param dest the destination URL
* @param permissions the permissions of the resulting resource
@@ -1272,7 +1272,7 @@ namespace KIO {
* @param size the size of the source file
* @since 3.2
*/
- void setSourceSize64(KIO::filesize_t size);
+ void setSourceSize64(TDEIO::filesize_t size);
/**
* Sets the modification time of the file
@@ -1310,45 +1310,45 @@ namespace KIO {
*
* @since 3.5.7
*/
- void mimetype( KIO::Job *job, const TQString &type );
+ void mimetype( TDEIO::Job *job, const TQString &type );
public slots:
void slotStart();
- void slotData( KIO::Job *, const TQByteArray &data);
- void slotDataReq( KIO::Job *, TQByteArray &data);
- void slotMimetype( KIO::Job *, const TQString& type );
+ void slotData( TDEIO::Job *, const TQByteArray &data);
+ void slotDataReq( TDEIO::Job *, TQByteArray &data);
+ void slotMimetype( TDEIO::Job *, const TQString& type );
protected slots:
/**
* Called whenever a subjob finishes.
* @param job the job that emitted this signal
*/
- virtual void slotResult( KIO::Job *job );
+ virtual void slotResult( TDEIO::Job *job );
/**
* Forward signal from subjob
* @param job the job that emitted this signal
* @param size the processed size in bytes
*/
- void slotProcessedSize( KIO::Job *job, KIO::filesize_t size );
+ void slotProcessedSize( TDEIO::Job *job, TDEIO::filesize_t size );
/**
* Forward signal from subjob
* @param job the job that emitted this signal
* @param size the total size
*/
- void slotTotalSize( KIO::Job *job, KIO::filesize_t size );
+ void slotTotalSize( TDEIO::Job *job, TDEIO::filesize_t size );
/**
* Forward signal from subjob
* @param job the job that emitted this signal
* @param pct the percentage
*/
- void slotPercent( KIO::Job *job, unsigned long pct );
+ void slotPercent( TDEIO::Job *job, unsigned long pct );
/**
* Forward signal from subjob
* @param job the job that emitted this signal
* @param offset the offset to resume from
*/
- void slotCanResume( KIO::Job *job, KIO::filesize_t offset );
+ void slotCanResume( TDEIO::Job *job, TDEIO::filesize_t offset );
protected:
void startCopyJob();
@@ -1374,7 +1374,7 @@ namespace KIO {
SimpleJob *m_copyJob;
TransferJob *m_getJob;
TransferJob *m_putJob;
- KIO::filesize_t m_totalSize;
+ TDEIO::filesize_t m_totalSize;
protected:
virtual void virtual_hook( int id, void* data );
private:
@@ -1384,18 +1384,18 @@ namespace KIO {
/**
* A ListJob is allows you to get the get the content of a directory.
- * Don't create the job directly, but use KIO::listRecursive() or
- * KIO::listDir() instead.
- * @see KIO::listRecursive()
- * @see KIO::listDir()
+ * Don't create the job directly, but use TDEIO::listRecursive() or
+ * TDEIO::listDir() instead.
+ * @see TDEIO::listRecursive()
+ * @see TDEIO::listDir()
*/
class KIO_EXPORT ListJob : public SimpleJob {
Q_OBJECT
public:
/**
- * Do not create a ListJob directly. Use KIO::listDir() or
- * KIO::listRecursive() instead.
+ * Do not create a ListJob directly. Use TDEIO::listDir() or
+ * TDEIO::listRecursive() instead.
* @param url the url of the directory
* @param showProgressInfo true to show progress information to the user
* @param recursive true to get the data recursively from child directories,
@@ -1439,7 +1439,7 @@ namespace KIO {
* @param job the job that emitted this signal
* @param list the list of UDSEntries
*/
- void entries( KIO::Job *job, const KIO::UDSEntryList& list);
+ void entries( TDEIO::Job *job, const TDEIO::UDSEntryList& list);
/**
* Signals a redirection.
@@ -1448,7 +1448,7 @@ namespace KIO {
* @param job the job that is redirected
* @param url the new url
*/
- void redirection( KIO::Job *job, const KURL &url );
+ void redirection( TDEIO::Job *job, const KURL &url );
/**
* Signals a permanent redirection.
@@ -1458,15 +1458,15 @@ namespace KIO {
* @param toUrl the new URL
* @since 3.1
*/
- void permanentRedirection( KIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
+ void permanentRedirection( TDEIO::Job *job, const KURL &fromUrl, const KURL &toUrl );
protected slots:
virtual void slotFinished( );
- virtual void slotMetaData( const KIO::MetaData &_metaData);
- virtual void slotResult( KIO::Job *job );
- void slotListEntries( const KIO::UDSEntryList& list );
+ virtual void slotMetaData( const TDEIO::MetaData &_metaData);
+ virtual void slotResult( TDEIO::Job *job );
+ void slotListEntries( const TDEIO::UDSEntryList& list );
void slotRedirection( const KURL &url );
- void gotEntries( KIO::Job * subjob, const KIO::UDSEntryList& list );
+ void gotEntries( TDEIO::Job * subjob, const TDEIO::UDSEntryList& list );
private:
bool recursive;
@@ -1490,20 +1490,20 @@ namespace KIO {
//mode_t type;
time_t ctime;
time_t mtime;
- KIO::filesize_t size; // 0 for dirs
+ TDEIO::filesize_t size; // 0 for dirs
};
/**
* CopyJob is used to move, copy or symlink files and directories.
- * Don't create the job directly, but use KIO::copy(),
- * KIO::move(), KIO::link() and friends.
+ * Don't create the job directly, but use TDEIO::copy(),
+ * TDEIO::move(), TDEIO::link() and friends.
*
- * @see KIO::copy()
- * @see KIO::copyAs()
- * @see KIO::move()
- * @see KIO::moveAs()
- * @see KIO::link()
- * @see KIO::linkAs()
+ * @see TDEIO::copy()
+ * @see TDEIO::copyAs()
+ * @see TDEIO::move()
+ * @see TDEIO::moveAs()
+ * @see TDEIO::link()
+ * @see TDEIO::linkAs()
*/
class KIO_EXPORT CopyJob : public Job {
Q_OBJECT
@@ -1515,21 +1515,21 @@ namespace KIO {
enum CopyMode{ Copy, Move, Link };
/**
- * Do not create a CopyJob directly. Use KIO::copy(),
- * KIO::move(), KIO::link() and friends instead.
+ * Do not create a CopyJob directly. Use TDEIO::copy(),
+ * TDEIO::move(), TDEIO::link() and friends instead.
*
* @param src the list of source URLs
* @param dest the destination URL
* @param mode specifies whether the job should copy, move or link
- * @param asMethod if true, behaves like KIO::copyAs(),
- * KIO::moveAs() or KIO::linkAs()
+ * @param asMethod if true, behaves like TDEIO::copyAs(),
+ * TDEIO::moveAs() or TDEIO::linkAs()
* @param showProgressInfo true to show progress information to the user
- * @see KIO::copy()
- * @see KIO::copyAs()
- * @see KIO::move()
- * @see KIO::moveAs()
- * @see KIO::link()
- * @see KIO::linkAs()
+ * @see TDEIO::copy()
+ * @see TDEIO::copyAs()
+ * @see TDEIO::move()
+ * @see TDEIO::moveAs()
+ * @see TDEIO::link()
+ * @see TDEIO::linkAs()
*/
CopyJob( const KURL::List& src, const KURL& dest, CopyMode mode, bool asMethod, bool showProgressInfo );
@@ -1579,13 +1579,13 @@ namespace KIO {
* @param job the job that emitted this signal
* @param files the total number of files
*/
- void totalFiles( KIO::Job *job, unsigned long files );
+ void totalFiles( TDEIO::Job *job, unsigned long files );
/**
* Emitted when the toal number of direcotries is known.
* @param job the job that emitted this signal
* @param dirs the total number of directories
*/
- void totalDirs( KIO::Job *job, unsigned long dirs );
+ void totalDirs( TDEIO::Job *job, unsigned long dirs );
/**
* Emitted when it is known which files / directories are going
@@ -1594,20 +1594,20 @@ namespace KIO {
* @param job the job that emitted this signal
* @param files a list of items that are about to be created.
*/
- void aboutToCreate( KIO::Job *job, const TQValueList<KIO::CopyInfo> &files);
+ void aboutToCreate( TDEIO::Job *job, const TQValueList<TDEIO::CopyInfo> &files);
/**
* Sends the number of processed files.
* @param job the job that emitted this signal
* @param files the number of processed files
*/
- void processedFiles( KIO::Job *job, unsigned long files );
+ void processedFiles( TDEIO::Job *job, unsigned long files );
/**
* Sends the number of processed directories.
* @param job the job that emitted this signal
* @param dirs the number of processed dirs
*/
- void processedDirs( KIO::Job *job, unsigned long dirs );
+ void processedDirs( TDEIO::Job *job, unsigned long dirs );
/**
* The job is copying a file or directory.
@@ -1616,7 +1616,7 @@ namespace KIO {
* being copied
* @param to the destination of the current operation
*/
- void copying( KIO::Job *job, const KURL& from, const KURL& to );
+ void copying( TDEIO::Job *job, const KURL& from, const KURL& to );
/**
* The job is creating a symbolic link.
* @param job the job that emitted this signal
@@ -1624,7 +1624,7 @@ namespace KIO {
* being linked
* @param to the destination of the current operation
*/
- void linking( KIO::Job *job, const TQString& target, const KURL& to );
+ void linking( TDEIO::Job *job, const TQString& target, const KURL& to );
/**
* The job is moving a file or directory.
* @param job the job that emitted this signal
@@ -1632,20 +1632,20 @@ namespace KIO {
* being moved
* @param to the destination of the current operation
*/
- void moving( KIO::Job *job, const KURL& from, const KURL& to );
+ void moving( TDEIO::Job *job, const KURL& from, const KURL& to );
/**
* The job is creating the directory @p dir.
* @param job the job that emitted this signal
* @param dir the directory that is currently being created
*/
- void creatingDir( KIO::Job *job, const KURL& dir );
+ void creatingDir( TDEIO::Job *job, const KURL& dir );
/**
* The user chose to rename @p from to @p to.
* @param job the job that emitted this signal
* @param from the original name
* @param to the new name
*/
- void renamed( KIO::Job *job, const KURL& from, const KURL& to );
+ void renamed( TDEIO::Job *job, const KURL& from, const KURL& to );
/**
* The job emits this signal when copying or moving a file or directory successfully finished.
@@ -1659,7 +1659,7 @@ namespace KIO {
* @param renamed indicates that the destination URL was created using a
* rename operation (i.e. fast directory moving). true if is has been renamed
*/
- void copyingDone( KIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed );
+ void copyingDone( TDEIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed );
/**
* The job is copying or moving a symbolic link, that points to target.
* The new link is created in @p to. The existing one is/was in @p from.
@@ -1669,26 +1669,26 @@ namespace KIO {
* @param target the target
* @param to the destination URL
*/
- void copyingLinkDone( KIO::Job *job, const KURL &from, const TQString& target, const KURL& to );
+ void copyingLinkDone( TDEIO::Job *job, const KURL &from, const TQString& target, const KURL& to );
protected:
void statCurrentSrc();
void statNextSrc();
// Those aren't slots but submethods for slotResult.
- void slotResultStating( KIO::Job * job );
+ void slotResultStating( TDEIO::Job * job );
void startListing( const KURL & src );
- void slotResultCreatingDirs( KIO::Job * job );
- void slotResultConflictCreatingDirs( KIO::Job * job );
+ void slotResultCreatingDirs( TDEIO::Job * job );
+ void slotResultConflictCreatingDirs( TDEIO::Job * job );
void createNextDir();
- void slotResultCopyingFiles( KIO::Job * job );
- void slotResultConflictCopyingFiles( KIO::Job * job );
+ void slotResultCopyingFiles( TDEIO::Job * job );
+ void slotResultConflictCopyingFiles( TDEIO::Job * job );
void copyNextFile();
- void slotResultDeletingDirs( KIO::Job * job );
+ void slotResultDeletingDirs( TDEIO::Job * job );
void deleteNextDir();
void skip( const KURL & sourceURL );
- void slotResultRenaming( KIO::Job * job );
- //void slotResultSettingDirAttributes( KIO::Job * job );
+ void slotResultRenaming( TDEIO::Job * job );
+ //void slotResultSettingDirAttributes( TDEIO::Job * job );
void setNextDirAttribute();
private:
void startRenameJob(const KURL &slave_url);
@@ -1698,17 +1698,17 @@ namespace KIO {
protected slots:
void slotStart();
- void slotEntries( KIO::Job*, const KIO::UDSEntryList& list );
- virtual void slotResult( KIO::Job *job );
+ void slotEntries( TDEIO::Job*, const TDEIO::UDSEntryList& list );
+ virtual void slotResult( TDEIO::Job *job );
/**
* Forward signal from subjob
*/
- void slotProcessedSize( KIO::Job*, KIO::filesize_t data_size );
+ void slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t data_size );
/**
* Forward signal from subjob
* @param size the total size
*/
- void slotTotalSize( KIO::Job*, KIO::filesize_t size );
+ void slotTotalSize( TDEIO::Job*, TDEIO::filesize_t size );
void slotReport();
private:
@@ -1719,9 +1719,9 @@ namespace KIO {
enum { STATE_STATING, STATE_RENAMING, STATE_LISTING, STATE_CREATING_DIRS,
STATE_CONFLICT_CREATING_DIRS, STATE_COPYING_FILES, STATE_CONFLICT_COPYING_FILES,
STATE_DELETING_DIRS, STATE_SETTING_DIR_ATTRIBUTES } state;
- KIO::filesize_t m_totalSize;
- KIO::filesize_t m_processedSize;
- KIO::filesize_t m_fileProcessedSize;
+ TDEIO::filesize_t m_totalSize;
+ TDEIO::filesize_t m_processedSize;
+ TDEIO::filesize_t m_fileProcessedSize;
int m_processedFiles;
int m_processedDirs;
TQValueList<CopyInfo> files;
@@ -1756,22 +1756,22 @@ namespace KIO {
/**
* A more complex Job to delete files and directories.
- * Don't create the job directly, but use KIO::del() instead.
+ * Don't create the job directly, but use TDEIO::del() instead.
*
- * @see KIO::del()
+ * @see TDEIO::del()
*/
class KIO_EXPORT DeleteJob : public Job {
Q_OBJECT
public:
/**
- * Do not create a DeleteJob directly. Use KIO::del()
+ * Do not create a DeleteJob directly. Use TDEIO::del()
* instead.
*
* @param src the list of URLs to delete
* @param shred true to shred (make sure that data is not recoverable)a
* @param showProgressInfo true to show progress information to the user
- * @see KIO::del()
+ * @see TDEIO::del()
*/
DeleteJob( const KURL::List& src, bool shred, bool showProgressInfo );
@@ -1788,26 +1788,26 @@ namespace KIO {
* @param job the job that emitted this signal
* @param files the total number of files
*/
- void totalFiles( KIO::Job *job, unsigned long files );
+ void totalFiles( TDEIO::Job *job, unsigned long files );
/**
* Emitted when the toal number of direcotries is known.
* @param job the job that emitted this signal
* @param dirs the total number of directories
*/
- void totalDirs( KIO::Job *job, unsigned long dirs );
+ void totalDirs( TDEIO::Job *job, unsigned long dirs );
/**
* Sends the number of processed files.
* @param job the job that emitted this signal
* @param files the number of processed files
*/
- void processedFiles( KIO::Job *job, unsigned long files );
+ void processedFiles( TDEIO::Job *job, unsigned long files );
/**
* Sends the number of processed directories.
* @param job the job that emitted this signal
* @param dirs the number of processed dirs
*/
- void processedDirs( KIO::Job *job, unsigned long dirs );
+ void processedDirs( TDEIO::Job *job, unsigned long dirs );
/**
* Sends the URL of the file that is currently being deleted.
@@ -1815,17 +1815,17 @@ namespace KIO {
* @param file the URL of the file or directory that is being
* deleted
*/
- void deleting( KIO::Job *job, const KURL& file );
+ void deleting( TDEIO::Job *job, const KURL& file );
protected slots:
void slotStart();
- void slotEntries( KIO::Job*, const KIO::UDSEntryList& list );
- virtual void slotResult( KIO::Job *job );
+ void slotEntries( TDEIO::Job*, const TDEIO::UDSEntryList& list );
+ virtual void slotResult( TDEIO::Job *job );
/**
* Forward signal from subjob
*/
- void slotProcessedSize( KIO::Job*, KIO::filesize_t data_size );
+ void slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t data_size );
void slotReport();
private:
@@ -1836,9 +1836,9 @@ namespace KIO {
private:
enum { STATE_STATING, STATE_LISTING,
STATE_DELETING_FILES, STATE_DELETING_DIRS } state;
- KIO::filesize_t m_totalSize;
- KIO::filesize_t m_processedSize;
- KIO::filesize_t m_fileProcessedSize;
+ TDEIO::filesize_t m_totalSize;
+ TDEIO::filesize_t m_processedSize;
+ TDEIO::filesize_t m_fileProcessedSize;
int m_processedFiles;
int m_processedDirs;
int m_totalFilesDirs;
@@ -1860,7 +1860,7 @@ namespace KIO {
/**
* A KIO job that finds a local URL
- * @see KIO::localURL()
+ * @see TDEIO::localURL()
* @since R14.0.0
*/
class KIO_EXPORT LocalURLJob : public SimpleJob {
@@ -1869,7 +1869,7 @@ namespace KIO {
public:
/**
- * Do not use this constructor to create a LocalURLJob, use KIO::localURL() instead.
+ * Do not use this constructor to create a LocalURLJob, use TDEIO::localURL() instead.
* @param url the url of the file or directory to check
* @param command the command to issue
* @param packedArgs the arguments
@@ -1891,7 +1891,7 @@ namespace KIO {
* @param url the local url
* @param isLocal true if the returned URL is local, false if not
*/
- void localURL( KIO::Job *job, const KURL &url, bool isLocal );
+ void localURL( TDEIO::Job *job, const KURL &url, bool isLocal );
protected slots:
void slotLocalURL( const KURL &url, bool isLocal );
diff --git a/kio/kio/kautomount.cpp b/kio/kio/kautomount.cpp
index a4782c313..e8b1d2af0 100644
--- a/kio/kio/kautomount.cpp
+++ b/kio/kio/kautomount.cpp
@@ -38,11 +38,11 @@ KAutoMount::KAutoMount( bool _readonly, const TQString& _format, const TQString&
//kdDebug(7015) << "KAutoMount device=" << _device << " mountpoint=" << _mountpoint << endl;
m_bShowFilemanagerWindow = _show_filemanager_window;
- KIO::Job* job = KIO::mount( _readonly, _format.ascii(), _device, _mountpoint );
- connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
+ TDEIO::Job* job = TDEIO::mount( _readonly, _format.ascii(), _device, _mountpoint );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
}
-void KAutoMount::slotResult( KIO::Job * job )
+void KAutoMount::slotResult( TDEIO::Job * job )
{
if ( job->error() ) {
emit error();
@@ -51,12 +51,12 @@ void KAutoMount::slotResult( KIO::Job * job )
else
{
KURL mountpoint;
- mountpoint.setPath( KIO::findDeviceMountPoint( m_strDevice ) );
+ mountpoint.setPath( TDEIO::findDeviceMountPoint( m_strDevice ) );
//kdDebug(7015) << "KAutoMount: m_strDevice=" << m_strDevice << " -> mountpoint=" << mountpoint << endl;
Q_ASSERT( mountpoint.isValid() );
if ( mountpoint.path().isEmpty() )
- kdWarning(7015) << m_strDevice << " was correctly mounted, but KIO::findDeviceMountPoint didn't find it. "
+ kdWarning(7015) << m_strDevice << " was correctly mounted, but TDEIO::findDeviceMountPoint didn't find it. "
<< "This looks like a bug, please report it on http://bugs.kde.org, together with your /etc/fstab line" << endl;
else if ( m_bShowFilemanagerWindow )
KRun::runURL( mountpoint, "inode/directory" );
@@ -80,11 +80,11 @@ void KAutoMount::slotResult( KIO::Job * job )
KAutoUnmount::KAutoUnmount( const TQString & _mountpoint, const TQString & _desktopFile )
: m_desktopFile( _desktopFile ), m_mountpoint( _mountpoint )
{
- KIO::Job * job = KIO::unmount( m_mountpoint );
- connect( job, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotResult( KIO::Job * ) ) );
+ TDEIO::Job * job = TDEIO::unmount( m_mountpoint );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
}
-void KAutoUnmount::slotResult( KIO::Job * job )
+void KAutoUnmount::slotResult( TDEIO::Job * job )
{
if ( job->error() ) {
emit error();
diff --git a/kio/kio/kautomount.h b/kio/kio/kautomount.h
index c5aa30583..68eecdbbd 100644
--- a/kio/kio/kautomount.h
+++ b/kio/kio/kautomount.h
@@ -30,14 +30,14 @@
#ifdef Q_OS_UNIX
-namespace KIO {
+namespace TDEIO {
class Job;
}
/**
* This class implements synchronous mounting of devices,
* as well as showing a file-manager window after mounting a device, optionally.
- * It is a wrapper around the asychronous KIO::special() call for mount,
+ * It is a wrapper around the asychronous TDEIO::special() call for mount,
* used by KMimeType.
*
* @short This class implements synchronous mounting of devices.
@@ -68,7 +68,7 @@ signals:
void error();
protected slots:
- void slotResult( KIO::Job * );
+ void slotResult( TDEIO::Job * );
protected:
TQString m_strDevice;
@@ -82,7 +82,7 @@ private:
/**
* This class implements synchronous unmounting of devices,
- * It is a wrapper around the asychronous KIO::special() call for unmount,
+ * It is a wrapper around the asychronous TDEIO::special() call for unmount,
* used by KMimeType.
*
* @short This class implements synchronous unmounting of devices,
@@ -107,7 +107,7 @@ signals:
void error();
protected slots:
- void slotResult( KIO::Job * );
+ void slotResult( TDEIO::Job * );
private:
TQString m_desktopFile;
TQString m_mountpoint;
diff --git a/kio/kio/kdirlister.cpp b/kio/kio/kdirlister.cpp
index b6905b3a3..90cfca041 100644
--- a/kio/kio/kdirlister.cpp
+++ b/kio/kio/kdirlister.cpp
@@ -224,8 +224,8 @@ bool KDirListerCache::listDir( KDirLister *lister, const KURL& _u,
if ( lister->d->url == _url )
lister->d->rootFileItem = 0;
- KIO::ListJob* job = KIO::listDir( _url, false /* no default GUI */ );
- jobs.insert( job, TQValueList<KIO::UDSEntry>() );
+ TDEIO::ListJob* job = TDEIO::listDir( _url, false /* no default GUI */ );
+ jobs.insert( job, TQValueList<TDEIO::UDSEntry>() );
lister->jobStarted( job );
lister->connectJob( job );
@@ -233,12 +233,12 @@ bool KDirListerCache::listDir( KDirLister *lister, const KURL& _u,
if ( lister->d->window )
job->setWindow( lister->d->window );
- connect( job, TQT_SIGNAL( entries( KIO::Job *, const KIO::UDSEntryList & ) ),
- this, TQT_SLOT( slotEntries( KIO::Job *, const KIO::UDSEntryList & ) ) );
- connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
- this, TQT_SLOT( slotResult( KIO::Job * ) ) );
- connect( job, TQT_SIGNAL( redirection( KIO::Job *, const KURL & ) ),
- this, TQT_SLOT( slotRedirection( KIO::Job *, const KURL & ) ) );
+ connect( job, TQT_SIGNAL( entries( TDEIO::Job *, const TDEIO::UDSEntryList & ) ),
+ this, TQT_SLOT( slotEntries( TDEIO::Job *, const TDEIO::UDSEntryList & ) ) );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ this, TQT_SLOT( slotResult( TDEIO::Job * ) ) );
+ connect( job, TQT_SIGNAL( redirection( TDEIO::Job *, const KURL & ) ),
+ this, TQT_SLOT( slotRedirection( TDEIO::Job *, const KURL & ) ) );
emit lister->started( _url );
@@ -253,7 +253,7 @@ bool KDirListerCache::listDir( KDirLister *lister, const KURL& _u,
urlsCurrentlyListed[urlStr]->append( lister );
- KIO::ListJob *job = jobForUrl( urlStr );
+ TDEIO::ListJob *job = jobForUrl( urlStr );
Q_ASSERT( job );
lister->jobStarted( job );
@@ -322,7 +322,7 @@ void KDirListerCache::stop( KDirLister *lister )
bool ret = listers->removeRef( lister );
Q_ASSERT( ret );
- KIO::ListJob *job = jobForUrl( url );
+ TDEIO::ListJob *job = jobForUrl( url );
if ( job )
lister->jobDone( job );
@@ -388,7 +388,7 @@ void KDirListerCache::stop( KDirLister *lister, const KURL& _u )
holders->append( lister );
- KIO::ListJob *job = jobForUrl( urlStr );
+ TDEIO::ListJob *job = jobForUrl( urlStr );
if ( job )
lister->jobDone( job );
@@ -472,7 +472,7 @@ void KDirListerCache::forgetDirs( KDirLister *lister, const KURL& _url, bool not
itemsInUse.remove( urlStr );
// this job is a running update
- KIO::ListJob *job = jobForUrl( urlStr );
+ TDEIO::ListJob *job = jobForUrl( urlStr );
if ( job )
{
lister->jobDone( job );
@@ -499,7 +499,7 @@ void KDirListerCache::forgetDirs( KDirLister *lister, const KURL& _url, bool not
// Generally keep a watch, except when it would prevent
// unmounting a removable device (#37780)
const bool isLocal = item->url.isLocalFile();
- const bool isManuallyMounted = isLocal && KIO::manually_mounted( item->url.path() );
+ const bool isManuallyMounted = isLocal && TDEIO::manually_mounted( item->url.path() );
bool containsManuallyMounted = false;
if ( !isManuallyMounted && item->lstItems && isLocal )
{
@@ -509,7 +509,7 @@ void KDirListerCache::forgetDirs( KDirLister *lister, const KURL& _url, bool not
// of the time this is just a stat per subdir)
KFileItemListIterator kit( *item->lstItems );
for ( ; kit.current() && !containsManuallyMounted; ++kit )
- if ( (*kit)->isDir() && KIO::manually_mounted( (*kit)->url().path() ) )
+ if ( (*kit)->isDir() && TDEIO::manually_mounted( (*kit)->url().path() ) )
containsManuallyMounted = true;
}
@@ -554,7 +554,7 @@ void KDirListerCache::updateDirectory( const KURL& _dir )
// restart the job for _dir if it is running already
bool killed = false;
TQWidget *window = 0;
- KIO::ListJob *job = jobForUrl( urlStr );
+ TDEIO::ListJob *job = jobForUrl( urlStr );
if ( job )
{
window = job->window();
@@ -577,13 +577,13 @@ void KDirListerCache::updateDirectory( const KURL& _dir )
Q_ASSERT( !listers || (listers && killed) );
- job = KIO::listDir( _dir, false /* no default GUI */ );
- jobs.insert( job, TQValueList<KIO::UDSEntry>() );
+ job = TDEIO::listDir( _dir, false /* no default GUI */ );
+ jobs.insert( job, TQValueList<TDEIO::UDSEntry>() );
- connect( job, TQT_SIGNAL(entries( KIO::Job *, const KIO::UDSEntryList & )),
- this, TQT_SLOT(slotUpdateEntries( KIO::Job *, const KIO::UDSEntryList & )) );
- connect( job, TQT_SIGNAL(result( KIO::Job * )),
- this, TQT_SLOT(slotUpdateResult( KIO::Job * )) );
+ connect( job, TQT_SIGNAL(entries( TDEIO::Job *, const TDEIO::UDSEntryList & )),
+ this, TQT_SLOT(slotUpdateEntries( TDEIO::Job *, const TDEIO::UDSEntryList & )) );
+ connect( job, TQT_SIGNAL(result( TDEIO::Job * )),
+ this, TQT_SLOT(slotUpdateResult( TDEIO::Job * )) );
kdDebug(7004) << k_funcinfo << "update started in " << _dir << endl;
@@ -930,9 +930,9 @@ void KDirListerCache::slotFileDeleted( const TQString& _file )
FilesRemoved( u );
}
-void KDirListerCache::slotEntries( KIO::Job *job, const KIO::UDSEntryList &entries )
+void KDirListerCache::slotEntries( TDEIO::Job *job, const TDEIO::UDSEntryList &entries )
{
- KURL url = joburl( static_cast<KIO::ListJob *>(job) );
+ KURL url = joburl( static_cast<TDEIO::ListJob *>(job) );
url.adjustPath(-1);
TQString urlStr = url.url();
@@ -954,17 +954,17 @@ void KDirListerCache::slotEntries( KIO::Job *job, const KIO::UDSEntryList &entri
static const TQString& dot = TDEGlobal::staticQString(".");
static const TQString& dotdot = TDEGlobal::staticQString("..");
- KIO::UDSEntryListConstIterator it = entries.begin();
- KIO::UDSEntryListConstIterator end = entries.end();
+ TDEIO::UDSEntryListConstIterator it = entries.begin();
+ TDEIO::UDSEntryListConstIterator end = entries.end();
for ( ; it != end; ++it )
{
TQString name;
// find out about the name
- KIO::UDSEntry::ConstIterator entit = (*it).begin();
+ TDEIO::UDSEntry::ConstIterator entit = (*it).begin();
for( ; entit != (*it).end(); ++entit )
- if ( (*entit).m_uds == KIO::UDS_NAME )
+ if ( (*entit).m_uds == TDEIO::UDS_NAME )
{
name = (*entit).m_str;
break;
@@ -1000,10 +1000,10 @@ void KDirListerCache::slotEntries( KIO::Job *job, const KIO::UDSEntryList &entri
kdl->emitItems();
}
-void KDirListerCache::slotResult( KIO::Job *j )
+void KDirListerCache::slotResult( TDEIO::Job *j )
{
Q_ASSERT( j );
- KIO::ListJob *job = static_cast<KIO::ListJob *>( j );
+ TDEIO::ListJob *job = static_cast<TDEIO::ListJob *>( j );
jobs.remove( job );
KURL jobUrl = joburl( job );
@@ -1067,10 +1067,10 @@ void KDirListerCache::slotResult( KIO::Job *j )
#endif
}
-void KDirListerCache::slotRedirection( KIO::Job *j, const KURL& url )
+void KDirListerCache::slotRedirection( TDEIO::Job *j, const KURL& url )
{
Q_ASSERT( j );
- KIO::ListJob *job = static_cast<KIO::ListJob *>( j );
+ TDEIO::ListJob *job = static_cast<TDEIO::ListJob *>( j );
KURL oldUrl = job->url(); // here we really need the old url!
KURL newUrl = url;
@@ -1175,7 +1175,7 @@ void KDirListerCache::slotRedirection( KIO::Job *j, const KURL& url )
// get the job if one's running for newUrl already (can be a list-job or an update-job), but
// do not return this 'job', which would happen because of the use of redirectionURL()
- KIO::ListJob *oldJob = jobForUrl( newUrl.url(), job );
+ TDEIO::ListJob *oldJob = jobForUrl( newUrl.url(), job );
// listers of newUrl with oldJob: forget about the oldJob and use the already running one
// which will be converted to an updateJob
@@ -1305,10 +1305,10 @@ void KDirListerCache::slotRedirection( KIO::Job *j, const KURL& url )
// make the job an update job
job->disconnect( this );
- connect( job, TQT_SIGNAL(entries( KIO::Job *, const KIO::UDSEntryList & )),
- this, TQT_SLOT(slotUpdateEntries( KIO::Job *, const KIO::UDSEntryList & )) );
- connect( job, TQT_SIGNAL(result( KIO::Job * )),
- this, TQT_SLOT(slotUpdateResult( KIO::Job * )) );
+ connect( job, TQT_SIGNAL(entries( TDEIO::Job *, const TDEIO::UDSEntryList & )),
+ this, TQT_SLOT(slotUpdateEntries( TDEIO::Job *, const TDEIO::UDSEntryList & )) );
+ connect( job, TQT_SIGNAL(result( TDEIO::Job * )),
+ this, TQT_SLOT(slotUpdateResult( TDEIO::Job * )) );
// FIXME: autoUpdate-Counts!!
@@ -1385,7 +1385,7 @@ void KDirListerCache::emitRedirections( const KURL &oldUrl, const KURL &url )
TQString oldUrlStr = oldUrl.url(-1);
TQString urlStr = url.url(-1);
- KIO::ListJob *job = jobForUrl( oldUrlStr );
+ TDEIO::ListJob *job = jobForUrl( oldUrlStr );
if ( job )
killJob( job );
@@ -1454,15 +1454,15 @@ void KDirListerCache::removeDirFromCache( const KURL& dir )
}
}
-void KDirListerCache::slotUpdateEntries( KIO::Job* job, const KIO::UDSEntryList& list )
+void KDirListerCache::slotUpdateEntries( TDEIO::Job* job, const TDEIO::UDSEntryList& list )
{
- jobs[static_cast<KIO::ListJob*>(job)] += list;
+ jobs[static_cast<TDEIO::ListJob*>(job)] += list;
}
-void KDirListerCache::slotUpdateResult( KIO::Job * j )
+void KDirListerCache::slotUpdateResult( TDEIO::Job * j )
{
Q_ASSERT( j );
- KIO::ListJob *job = static_cast<KIO::ListJob *>( j );
+ TDEIO::ListJob *job = static_cast<TDEIO::ListJob *>( j );
KURL jobUrl = joburl( job );
jobUrl.adjustPath(-1); // need remove trailing slashes again, in case of redirections
@@ -1544,8 +1544,8 @@ void KDirListerCache::slotUpdateResult( KIO::Job * j )
KFileItem *item = 0, *tmp;
- TQValueList<KIO::UDSEntry> buf = jobs[job];
- TQValueListIterator<KIO::UDSEntry> it = buf.begin();
+ TQValueList<TDEIO::UDSEntry> buf = jobs[job];
+ TQValueListIterator<TDEIO::UDSEntry> it = buf.begin();
for ( ; it != buf.end(); ++it )
{
// Form the complete url
@@ -1641,10 +1641,10 @@ void KDirListerCache::slotUpdateResult( KIO::Job * j )
// private
-KIO::ListJob *KDirListerCache::jobForUrl( const TQString& url, KIO::ListJob *not_job )
+TDEIO::ListJob *KDirListerCache::jobForUrl( const TQString& url, TDEIO::ListJob *not_job )
{
- KIO::ListJob *job;
- TQMap< KIO::ListJob *, TQValueList<KIO::UDSEntry> >::Iterator it = jobs.begin();
+ TDEIO::ListJob *job;
+ TQMap< TDEIO::ListJob *, TQValueList<TDEIO::UDSEntry> >::Iterator it = jobs.begin();
while ( it != jobs.end() )
{
job = it.key();
@@ -1655,7 +1655,7 @@ KIO::ListJob *KDirListerCache::jobForUrl( const TQString& url, KIO::ListJob *not
return 0;
}
-const KURL& KDirListerCache::joburl( KIO::ListJob *job )
+const KURL& KDirListerCache::joburl( TDEIO::ListJob *job )
{
if ( job->redirectionURL().isValid() )
return job->redirectionURL();
@@ -1663,7 +1663,7 @@ const KURL& KDirListerCache::joburl( KIO::ListJob *job )
return job->url();
}
-void KDirListerCache::killJob( KIO::ListJob *job )
+void KDirListerCache::killJob( TDEIO::ListJob *job )
{
jobs.remove( job );
job->disconnect( this );
@@ -1806,7 +1806,7 @@ void KDirListerCache::printDebug()
kdDebug(7004) << " " << it2.currentKey() << " " << it2.current()->count() << " listers: " << list << endl;
}
- TQMap< KIO::ListJob *, TQValueList<KIO::UDSEntry> >::Iterator jit = jobs.begin();
+ TQMap< TDEIO::ListJob *, TQValueList<TDEIO::UDSEntry> >::Iterator jit = jobs.begin();
kdDebug(7004) << "Jobs: " << endl;
for ( ; jit != jobs.end() ; ++jit )
kdDebug(7004) << " " << jit.key() << " listing " << joburl( jit.key() ).prettyURL() << ": " << (*jit).count() << " entries." << endl;
@@ -1867,9 +1867,9 @@ bool KDirLister::openURL( const KURL& _url, bool _keep, bool _reload )
// If a local path is available, monitor that instead of the given remote URL...
KURL realURL = _url;
if (!realURL.isLocalFile()) {
- KIO::LocalURLJob* localURLJob = KIO::localURL(_url);
+ TDEIO::LocalURLJob* localURLJob = TDEIO::localURL(_url);
if (localURLJob) {
- connect(localURLJob, TQT_SIGNAL(localURL(KIO::Job*, const KURL&, bool)), this, TQT_SLOT(slotLocalURL(KIO::Job*, const KURL&, bool)));
+ connect(localURLJob, TQT_SIGNAL(localURL(TDEIO::Job*, const KURL&, bool)), this, TQT_SLOT(slotLocalURL(TDEIO::Job*, const KURL&, bool)));
connect(localURLJob, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotLocalURLKIODestroyed()));
d->localURLSlotFired = false;
while (!d->localURLSlotFired) {
@@ -1885,7 +1885,7 @@ bool KDirLister::openURL( const KURL& _url, bool _keep, bool _reload )
return s_pCache->listDir( this, realURL, _keep, _reload );
}
-void KDirLister::slotLocalURL(KIO::Job *job, const KURL& url, bool isLocal) {
+void KDirLister::slotLocalURL(TDEIO::Job *job, const KURL& url, bool isLocal) {
d->localURLSlotFired = true;
d->localURLResultURL = url;
d->localURLResultIsLocal = isLocal;
@@ -2248,7 +2248,7 @@ bool KDirLister::validURL( const KURL& _url ) const
return s_pCache->validURL( this, _url );
}
-void KDirLister::handleError( KIO::Job *job )
+void KDirLister::handleError( TDEIO::Job *job )
{
if ( d->autoErrorHandling )
job->showErrorDialog( d->errorParent );
@@ -2382,20 +2382,20 @@ void KDirLister::emitDeleteItem( KFileItem *item )
// ================ private slots ================ //
-void KDirLister::slotInfoMessage( KIO::Job *, const TQString& message )
+void KDirLister::slotInfoMessage( TDEIO::Job *, const TQString& message )
{
emit infoMessage( message );
}
-void KDirLister::slotPercent( KIO::Job *job, unsigned long pcnt )
+void KDirLister::slotPercent( TDEIO::Job *job, unsigned long pcnt )
{
- d->jobData[static_cast<KIO::ListJob *>(job)].percent = pcnt;
+ d->jobData[static_cast<TDEIO::ListJob *>(job)].percent = pcnt;
int result = 0;
- KIO::filesize_t size = 0;
+ TDEIO::filesize_t size = 0;
- TQMap< KIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
+ TQMap< TDEIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
while ( dataIt != d->jobData.end() )
{
result += (*dataIt).percent * (*dataIt).totalSize;
@@ -2410,12 +2410,12 @@ void KDirLister::slotPercent( KIO::Job *job, unsigned long pcnt )
emit percent( result );
}
-void KDirLister::slotTotalSize( KIO::Job *job, KIO::filesize_t size )
+void KDirLister::slotTotalSize( TDEIO::Job *job, TDEIO::filesize_t size )
{
- d->jobData[static_cast<KIO::ListJob *>(job)].totalSize = size;
+ d->jobData[static_cast<TDEIO::ListJob *>(job)].totalSize = size;
- KIO::filesize_t result = 0;
- TQMap< KIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
+ TDEIO::filesize_t result = 0;
+ TQMap< TDEIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
while ( dataIt != d->jobData.end() )
{
result += (*dataIt).totalSize;
@@ -2425,12 +2425,12 @@ void KDirLister::slotTotalSize( KIO::Job *job, KIO::filesize_t size )
emit totalSize( result );
}
-void KDirLister::slotProcessedSize( KIO::Job *job, KIO::filesize_t size )
+void KDirLister::slotProcessedSize( TDEIO::Job *job, TDEIO::filesize_t size )
{
- d->jobData[static_cast<KIO::ListJob *>(job)].processedSize = size;
+ d->jobData[static_cast<TDEIO::ListJob *>(job)].processedSize = size;
- KIO::filesize_t result = 0;
- TQMap< KIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
+ TDEIO::filesize_t result = 0;
+ TQMap< TDEIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
while ( dataIt != d->jobData.end() )
{
result += (*dataIt).processedSize;
@@ -2440,12 +2440,12 @@ void KDirLister::slotProcessedSize( KIO::Job *job, KIO::filesize_t size )
emit processedSize( result );
}
-void KDirLister::slotSpeed( KIO::Job *job, unsigned long spd )
+void KDirLister::slotSpeed( TDEIO::Job *job, unsigned long spd )
{
- d->jobData[static_cast<KIO::ListJob *>(job)].speed = spd;
+ d->jobData[static_cast<TDEIO::ListJob *>(job)].speed = spd;
int result = 0;
- TQMap< KIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
+ TQMap< TDEIO::ListJob *, KDirListerPrivate::JobData >::Iterator dataIt = d->jobData.begin();
while ( dataIt != d->jobData.end() )
{
result += (*dataIt).speed;
@@ -2460,12 +2460,12 @@ uint KDirLister::numJobs()
return d->jobData.count();
}
-void KDirLister::jobDone( KIO::ListJob *job )
+void KDirLister::jobDone( TDEIO::ListJob *job )
{
d->jobData.remove( job );
}
-void KDirLister::jobStarted( KIO::ListJob *job )
+void KDirLister::jobStarted( TDEIO::ListJob *job )
{
KDirListerPrivate::JobData jobData;
jobData.speed = 0;
@@ -2477,18 +2477,18 @@ void KDirLister::jobStarted( KIO::ListJob *job )
d->complete = false;
}
-void KDirLister::connectJob( KIO::ListJob *job )
+void KDirLister::connectJob( TDEIO::ListJob *job )
{
- connect( job, TQT_SIGNAL(infoMessage( KIO::Job *, const TQString& )),
- this, TQT_SLOT(slotInfoMessage( KIO::Job *, const TQString& )) );
- connect( job, TQT_SIGNAL(percent( KIO::Job *, unsigned long )),
- this, TQT_SLOT(slotPercent( KIO::Job *, unsigned long )) );
- connect( job, TQT_SIGNAL(totalSize( KIO::Job *, KIO::filesize_t )),
- this, TQT_SLOT(slotTotalSize( KIO::Job *, KIO::filesize_t )) );
- connect( job, TQT_SIGNAL(processedSize( KIO::Job *, KIO::filesize_t )),
- this, TQT_SLOT(slotProcessedSize( KIO::Job *, KIO::filesize_t )) );
- connect( job, TQT_SIGNAL(speed( KIO::Job *, unsigned long )),
- this, TQT_SLOT(slotSpeed( KIO::Job *, unsigned long )) );
+ connect( job, TQT_SIGNAL(infoMessage( TDEIO::Job *, const TQString& )),
+ this, TQT_SLOT(slotInfoMessage( TDEIO::Job *, const TQString& )) );
+ connect( job, TQT_SIGNAL(percent( TDEIO::Job *, unsigned long )),
+ this, TQT_SLOT(slotPercent( TDEIO::Job *, unsigned long )) );
+ connect( job, TQT_SIGNAL(totalSize( TDEIO::Job *, TDEIO::filesize_t )),
+ this, TQT_SLOT(slotTotalSize( TDEIO::Job *, TDEIO::filesize_t )) );
+ connect( job, TQT_SIGNAL(processedSize( TDEIO::Job *, TDEIO::filesize_t )),
+ this, TQT_SLOT(slotProcessedSize( TDEIO::Job *, TDEIO::filesize_t )) );
+ connect( job, TQT_SIGNAL(speed( TDEIO::Job *, unsigned long )),
+ this, TQT_SLOT(slotSpeed( TDEIO::Job *, unsigned long )) );
}
void KDirLister::setMainWindow( TQWidget *window )
diff --git a/kio/kio/kdirlister.h b/kio/kio/kdirlister.h
index 2271b2a70..87aa6c694 100644
--- a/kio/kio/kdirlister.h
+++ b/kio/kio/kdirlister.h
@@ -29,7 +29,7 @@
#include <kurl.h>
-namespace KIO { class Job; class ListJob; }
+namespace TDEIO { class Job; class ListJob; }
/**
* The dir lister deals with the kiojob used to list and update a directory
@@ -520,13 +520,13 @@ signals:
* Emitted when we know the size of the jobs.
* @param size the total size in bytes
*/
- void totalSize( KIO::filesize_t size );
+ void totalSize( TDEIO::filesize_t size );
/**
* Regularly emitted to show the progress of this KDirLister.
* @param size the processed size in bytes
*/
- void processedSize( KIO::filesize_t size );
+ void processedSize( TDEIO::filesize_t size );
/**
* Emitted to display information about the speed of the jobs.
@@ -598,24 +598,24 @@ protected:
virtual bool validURL( const KURL& ) const;
/** Reimplement to customize error handling */
- virtual void handleError( KIO::Job * );
+ virtual void handleError( TDEIO::Job * );
protected:
virtual void virtual_hook( int id, void *data );
private slots:
- void slotInfoMessage( KIO::Job *, const TQString& );
- void slotPercent( KIO::Job *, unsigned long );
- void slotTotalSize( KIO::Job *, KIO::filesize_t );
- void slotProcessedSize( KIO::Job *, KIO::filesize_t );
- void slotSpeed( KIO::Job *, unsigned long );
- void slotLocalURL( KIO::Job *, const KURL&, bool );
+ void slotInfoMessage( TDEIO::Job *, const TQString& );
+ void slotPercent( TDEIO::Job *, unsigned long );
+ void slotTotalSize( TDEIO::Job *, TDEIO::filesize_t );
+ void slotProcessedSize( TDEIO::Job *, TDEIO::filesize_t );
+ void slotSpeed( TDEIO::Job *, unsigned long );
+ void slotLocalURL( TDEIO::Job *, const KURL&, bool );
void slotLocalURLKIODestroyed( );
private:
- void jobStarted( KIO::ListJob * );
- void connectJob( KIO::ListJob * );
- void jobDone( KIO::ListJob * );
+ void jobStarted( TDEIO::ListJob * );
+ void connectJob( TDEIO::ListJob * );
+ void jobDone( TDEIO::ListJob * );
uint numJobs();
diff --git a/kio/kio/kdirlister_p.h b/kio/kio/kdirlister_p.h
index 047c83148..47bd4d452 100644
--- a/kio/kio/kdirlister_p.h
+++ b/kio/kio/kdirlister_p.h
@@ -34,7 +34,7 @@
class TQTimer;
class KDirLister;
-namespace KIO { class Job; class ListJob; }
+namespace TDEIO { class Job; class ListJob; }
class KDirLister::KDirListerPrivate
@@ -90,10 +90,10 @@ public:
struct JobData {
long unsigned int percent, speed;
- KIO::filesize_t processedSize, totalSize;
+ TDEIO::filesize_t processedSize, totalSize;
};
- TQMap<KIO::ListJob *, JobData> jobData;
+ TQMap<TDEIO::ListJob *, JobData> jobData;
// file item for the root itself (".")
KFileItem *rootFileItem;
@@ -195,18 +195,18 @@ private slots:
void slotFileDirtyDelayed();
- void slotEntries( KIO::Job *job, const KIO::UDSEntryList &entries );
- void slotResult( KIO::Job *j );
- void slotRedirection( KIO::Job *job, const KURL &url );
+ void slotEntries( TDEIO::Job *job, const TDEIO::UDSEntryList &entries );
+ void slotResult( TDEIO::Job *j );
+ void slotRedirection( TDEIO::Job *job, const KURL &url );
- void slotUpdateEntries( KIO::Job *job, const KIO::UDSEntryList &entries );
- void slotUpdateResult( KIO::Job *job );
+ void slotUpdateEntries( TDEIO::Job *job, const TDEIO::UDSEntryList &entries );
+ void slotUpdateResult( TDEIO::Job *job );
private:
- KIO::ListJob *jobForUrl( const TQString& url, KIO::ListJob *not_job = 0 );
- const KURL& joburl( KIO::ListJob *job );
+ TDEIO::ListJob *jobForUrl( const TQString& url, TDEIO::ListJob *not_job = 0 );
+ const KURL& joburl( TDEIO::ListJob *job );
- void killJob( KIO::ListJob *job );
+ void killJob( TDEIO::ListJob *job );
// check if _url is held by some lister and return true,
// otherwise schedule a delayed update and return false
@@ -324,7 +324,7 @@ private:
};
static const unsigned short MAX_JOBS_PER_LISTER;
- TQMap<KIO::ListJob *, KIO::UDSEntryList> jobs;
+ TQMap<TDEIO::ListJob *, TDEIO::UDSEntryList> jobs;
// an item is a complete directory
TQDict<DirItem> itemsInUse;
diff --git a/kio/kio/kdirwatch.cpp b/kio/kio/kdirwatch.cpp
index 580de16cc..1ea5805f3 100644
--- a/kio/kio/kdirwatch.cpp
+++ b/kio/kio/kdirwatch.cpp
@@ -109,7 +109,7 @@
#include "kdirwatch.h"
#include "kdirwatch_p.h"
-#include "global.h" // KIO::probably_slow_mounted
+#include "global.h" // TDEIO::probably_slow_mounted
#define NO_NOTIFY (time_t) 0
@@ -226,7 +226,7 @@ KDirWatchPrivate::KDirWatchPrivate()
delayRemove = false;
m_ref = 0;
- KConfigGroup config(TDEGlobal::config(), TQCString("DirWatch"));
+ TDEConfigGroup config(TDEGlobal::config(), TQCString("DirWatch"));
m_nfsPollInterval = config.readNumEntry("NFSPollInterval", 5000);
m_PollInterval = config.readNumEntry("PollInterval", 500);
@@ -744,7 +744,7 @@ bool KDirWatchPrivate::useINotify( Entry* e )
bool KDirWatchPrivate::useStat(Entry* e)
{
if ( e->path.startsWith("/media/") || (e->path == "/media")
- || (KIO::probably_slow_mounted(e->path)) )
+ || (TDEIO::probably_slow_mounted(e->path)) )
useFreq(e, m_nfsPollInterval);
else
useFreq(e, m_PollInterval);
diff --git a/kio/kio/kemailsettings.cpp b/kio/kio/kemailsettings.cpp
index 2f1ffe7a0..f8ad9f7dd 100644
--- a/kio/kio/kemailsettings.cpp
+++ b/kio/kio/kemailsettings.cpp
@@ -36,7 +36,7 @@ class KEMailSettingsPrivate {
public:
KEMailSettingsPrivate() : m_pConfig( 0 ) {}
~KEMailSettingsPrivate() { delete m_pConfig; }
- KConfig *m_pConfig;
+ TDEConfig *m_pConfig;
TQStringList profiles;
TQString m_sDefaultProfile, m_sCurrentProfile;
};
@@ -242,7 +242,7 @@ KEMailSettings::KEMailSettings()
p = new KEMailSettingsPrivate();
p->m_sCurrentProfile=TQString::null;
- p->m_pConfig = new KConfig("emaildefaults");
+ p->m_pConfig = new TDEConfig("emaildefaults");
TQStringList groups = p->m_pConfig->groupList();
for (TQStringList::Iterator it = groups.begin(); it != groups.end(); ++it) {
diff --git a/kio/kio/kfileitem.cpp b/kio/kio/kfileitem.cpp
index 50ee1a5d2..fa08ae961 100644
--- a/kio/kio/kfileitem.cpp
+++ b/kio/kio/kfileitem.cpp
@@ -58,7 +58,7 @@ class KFileItem::KFileItemPrivate {
TQString iconName;
};
-KFileItem::KFileItem( const KIO::UDSEntry& _entry, const KURL& _url,
+KFileItem::KFileItem( const TDEIO::UDSEntry& _entry, const KURL& _url,
bool _determineMimeTypeOnDemand, bool _urlIsDirectory ) :
m_entry( _entry ),
m_url( _url ),
@@ -80,7 +80,7 @@ KFileItem::KFileItem( mode_t _mode, mode_t _permissions, const KURL& _url, bool
m_entry(), // warning !
m_url( _url ),
m_strName( _url.fileName() ),
- m_strText( KIO::decodeFileName( m_strName ) ),
+ m_strText( TDEIO::decodeFileName( m_strName ) ),
m_pMimeType( 0 ),
m_fileMode ( _mode ),
m_permissions( _permissions ),
@@ -97,7 +97,7 @@ KFileItem::KFileItem( mode_t _mode, mode_t _permissions, const KURL& _url, bool
KFileItem::KFileItem( const KURL &url, const TQString &mimeType, mode_t mode )
: m_url( url ),
m_strName( url.fileName() ),
- m_strText( KIO::decodeFileName( m_strName ) ),
+ m_strText( TDEIO::decodeFileName( m_strName ) ),
m_pMimeType( 0 ),
m_fileMode( mode ),
m_permissions( KFileItem::Unknown ),
@@ -134,7 +134,7 @@ KFileItem::~KFileItem()
void KFileItem::init( bool _determineMimeTypeOnDemand )
{
m_access = TQString::null;
- m_size = (KIO::filesize_t) -1;
+ m_size = (TDEIO::filesize_t) -1;
// metaInfo = KFileMetaInfo();
for ( int i = 0; i < NumFlags; i++ )
m_time[i] = (time_t) -1;
@@ -195,63 +195,63 @@ void KFileItem::init( bool _determineMimeTypeOnDemand )
void KFileItem::readUDSEntry( bool _urlIsDirectory )
{
- // extract the mode and the filename from the KIO::UDS Entry
+ // extract the mode and the filename from the TDEIO::UDS Entry
bool UDS_URL_seen = false;
if (&m_entry == NULL) return;
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); ++it ) {
switch ((*it).m_uds) {
- case KIO::UDS_FILE_TYPE:
+ case TDEIO::UDS_FILE_TYPE:
m_fileMode = (mode_t)((*it).m_long);
break;
- case KIO::UDS_ACCESS:
+ case TDEIO::UDS_ACCESS:
m_permissions = (mode_t)((*it).m_long);
break;
- case KIO::UDS_USER:
+ case TDEIO::UDS_USER:
m_user = ((*it).m_str);
break;
- case KIO::UDS_GROUP:
+ case TDEIO::UDS_GROUP:
m_group = ((*it).m_str);
break;
- case KIO::UDS_NAME:
+ case TDEIO::UDS_NAME:
m_strName = (*it).m_str;
- m_strText = KIO::decodeFileName( m_strName );
+ m_strText = TDEIO::decodeFileName( m_strName );
break;
- case KIO::UDS_URL:
+ case TDEIO::UDS_URL:
UDS_URL_seen = true;
m_url = KURL((*it).m_str);
if ( m_url.isLocalFile() )
m_bIsLocalURL = true;
break;
- case KIO::UDS_MIME_TYPE:
+ case TDEIO::UDS_MIME_TYPE:
m_pMimeType = KMimeType::mimeType((*it).m_str);
m_bMimeTypeKnown = true;
break;
- case KIO::UDS_GUESSED_MIME_TYPE:
+ case TDEIO::UDS_GUESSED_MIME_TYPE:
m_guessedMimeType = (*it).m_str;
break;
- case KIO::UDS_LINK_DEST:
+ case TDEIO::UDS_LINK_DEST:
m_bLink = !(*it).m_str.isEmpty(); // we don't store the link dest
break;
- case KIO::UDS_ICON_NAME:
+ case TDEIO::UDS_ICON_NAME:
if ( !d )
d = new KFileItemPrivate();
d->iconName = (*it).m_str;
break;
- case KIO::UDS_HIDDEN:
+ case TDEIO::UDS_HIDDEN:
if ( (*it).m_long )
m_hidden = Hidden;
else
@@ -280,7 +280,7 @@ void KFileItem::refresh()
// Everything could have changed...
// Clearing m_entry makes it possible to detect changes in the size of the file,
// the time information, etc.
- m_entry = KIO::UDSEntry();
+ m_entry = TDEIO::UDSEntry();
init( false );
}
@@ -299,19 +299,19 @@ void KFileItem::setURL( const KURL &url )
void KFileItem::setName( const TQString& name )
{
m_strName = name;
- m_strText = KIO::decodeFileName( m_strName );
+ m_strText = TDEIO::decodeFileName( m_strName );
}
TQString KFileItem::linkDest() const
{
if (&m_entry == NULL) return TQString::null;
- // Extract it from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ // Extract it from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); ++it )
- if ( (*it).m_uds == KIO::UDS_LINK_DEST )
+ if ( (*it).m_uds == TDEIO::UDS_LINK_DEST )
return (*it).m_str;
- // If not in the KIO::UDSEntry, or if UDSEntry empty, use readlink() [if local URL]
+ // If not in the TDEIO::UDSEntry, or if UDSEntry empty, use readlink() [if local URL]
if ( m_bIsLocalURL )
{
char buf[1000];
@@ -335,33 +335,33 @@ TQString KFileItem::localPath() const
{
if (&m_entry == NULL) return TQString::null;
- // Extract the local path from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
- const KIO::UDSEntry::ConstIterator end = m_entry.end();
+ // Extract the local path from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
+ const TDEIO::UDSEntry::ConstIterator end = m_entry.end();
for( ; it != end; ++it )
- if ( (*it).m_uds == KIO::UDS_LOCAL_PATH )
+ if ( (*it).m_uds == TDEIO::UDS_LOCAL_PATH )
return (*it).m_str;
}
return TQString::null;
}
-KIO::filesize_t KFileItem::size(bool &exists) const
+TDEIO::filesize_t KFileItem::size(bool &exists) const
{
exists = true;
- if ( m_size != (KIO::filesize_t) -1 )
+ if ( m_size != (TDEIO::filesize_t) -1 )
return m_size;
if (&m_entry == NULL) return 0L;
- // Extract it from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ // Extract it from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); ++it )
- if ( (*it).m_uds == KIO::UDS_SIZE ) {
+ if ( (*it).m_uds == TDEIO::UDS_SIZE ) {
m_size = (*it).m_long;
return m_size;
}
- // If not in the KIO::UDSEntry, or if UDSEntry empty, use stat() [if local URL]
+ // If not in the TDEIO::UDSEntry, or if UDSEntry empty, use stat() [if local URL]
if ( m_bIsLocalURL )
{
KDE_struct_stat buf;
@@ -375,9 +375,9 @@ KIO::filesize_t KFileItem::size(bool &exists) const
bool KFileItem::hasExtendedACL() const
{
if (&m_entry == NULL) return false;
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); it++ )
- if ( (*it).m_uds == KIO::UDS_EXTENDED_ACL ) {
+ if ( (*it).m_uds == TDEIO::UDS_EXTENDED_ACL ) {
return true;
}
return false;
@@ -388,10 +388,10 @@ KACL KFileItem::ACL() const
if ( hasExtendedACL() ) {
if (&m_entry == NULL) return KACL( m_permissions );
- // Extract it from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ // Extract it from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); ++it )
- if ( (*it).m_uds == KIO::UDS_ACL_STRING )
+ if ( (*it).m_uds == TDEIO::UDS_ACL_STRING )
return KACL((*it).m_str);
}
// create one from the basic permissions
@@ -402,15 +402,15 @@ KACL KFileItem::defaultACL() const
{
if (&m_entry == NULL) return KACL();
- // Extract it from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ // Extract it from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); ++it )
- if ( (*it).m_uds == KIO::UDS_DEFAULT_ACL_STRING )
+ if ( (*it).m_uds == TDEIO::UDS_DEFAULT_ACL_STRING )
return KACL((*it).m_str);
return KACL();
}
-KIO::filesize_t KFileItem::size() const
+TDEIO::filesize_t KFileItem::size() const
{
bool exists;
return size(exists);
@@ -427,13 +427,13 @@ time_t KFileItem::time( unsigned int which, bool &hasTime ) const
unsigned int mappedWhich = 0;
switch( which ) {
- case KIO::UDS_MODIFICATION_TIME:
+ case TDEIO::UDS_MODIFICATION_TIME:
mappedWhich = Modification;
break;
- case KIO::UDS_ACCESS_TIME:
+ case TDEIO::UDS_ACCESS_TIME:
mappedWhich = Access;
break;
- case KIO::UDS_CREATION_TIME:
+ case TDEIO::UDS_CREATION_TIME:
mappedWhich = Creation;
break;
}
@@ -443,29 +443,29 @@ time_t KFileItem::time( unsigned int which, bool &hasTime ) const
if (&m_entry == NULL) return static_cast<time_t>(0);
- // Extract it from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = m_entry.begin();
+ // Extract it from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = m_entry.begin();
for( ; it != m_entry.end(); ++it )
if ( (*it).m_uds == which ) {
m_time[mappedWhich] = static_cast<time_t>((*it).m_long);
return m_time[mappedWhich];
}
- // If not in the KIO::UDSEntry, or if UDSEntry empty, use stat() [if local URL]
+ // If not in the TDEIO::UDSEntry, or if UDSEntry empty, use stat() [if local URL]
if ( m_bIsLocalURL )
{
KDE_struct_stat buf;
if ( KDE_stat( TQFile::encodeName(m_url.path(-1)), &buf ) == 0 )
{
- if(which == KIO::UDS_CREATION_TIME) {
+ if(which == TDEIO::UDS_CREATION_TIME) {
// We can't determine creation time for local files
hasTime = false;
m_time[mappedWhich] = static_cast<time_t>(0);
return m_time[mappedWhich];
}
- m_time[mappedWhich] = (which == KIO::UDS_MODIFICATION_TIME) ?
+ m_time[mappedWhich] = (which == TDEIO::UDS_MODIFICATION_TIME) ?
buf.st_mtime :
- /* which == KIO::UDS_ACCESS_TIME)*/
+ /* which == TDEIO::UDS_ACCESS_TIME)*/
buf.st_atime;
return m_time[mappedWhich];
}
@@ -843,9 +843,9 @@ TQString KFileItem::getStatusBarInfo()
else if ( S_ISREG( m_fileMode ) )
{
bool hasSize;
- KIO::filesize_t sizeValue = size(hasSize);
+ TDEIO::filesize_t sizeValue = size(hasSize);
if(hasSize)
- text += TQString(" (%1) ").arg( KIO::convertSize( sizeValue ) );
+ text += TQString(" (%1) ").arg( TDEIO::convertSize( sizeValue ) );
text += mimeComment();
}
else if ( S_ISDIR ( m_fileMode ) )
@@ -887,12 +887,12 @@ TQString KFileItem::getToolTipText(int maxcount)
if ( !S_ISDIR ( m_fileMode ) ) {
bool hasSize;
- KIO::filesize_t sizeValue = size(hasSize);
+ TDEIO::filesize_t sizeValue = size(hasSize);
if(hasSize)
tip += start + i18n("Size:") + mid +
- KIO::convertSizeWithBytes(sizeValue) + end;
+ TDEIO::convertSizeWithBytes(sizeValue) + end;
}
- TQString timeStr = timeString( KIO::UDS_MODIFICATION_TIME);
+ TQString timeStr = timeString( TDEIO::UDS_MODIFICATION_TIME);
if(!timeStr.isEmpty())
tip += start + i18n("Modified:") + mid +
timeStr + end;
@@ -966,7 +966,7 @@ bool KFileItem::cmp( const KFileItem & item )
&& m_hidden == item.m_hidden
&& size(hasSize1) == item.size(hasSize2)
&& hasSize1 == hasSize2
- && time(KIO::UDS_MODIFICATION_TIME, hasTime1) == item.time(KIO::UDS_MODIFICATION_TIME, hasTime2)
+ && time(TDEIO::UDS_MODIFICATION_TIME, hasTime1) == item.time(TDEIO::UDS_MODIFICATION_TIME, hasTime2)
&& hasTime1 == hasTime2
&& (!d || !item.d || d->iconName == item.d->iconName) );
@@ -1014,7 +1014,7 @@ void KFileItem::assign( const KFileItem & item )
}
}
-void KFileItem::setUDSEntry( const KIO::UDSEntry& _entry, const KURL& _url,
+void KFileItem::setUDSEntry( const TDEIO::UDSEntry& _entry, const KURL& _url,
bool _determineMimeTypeOnDemand, bool _urlIsDirectory )
{
m_entry = _entry;
diff --git a/kio/kio/kfileitem.h b/kio/kio/kfileitem.h
index cf6344669..5e75ac16f 100644
--- a/kio/kio/kfileitem.h
+++ b/kio/kio/kfileitem.h
@@ -34,7 +34,7 @@
/**
* A KFileItem is a generic class to handle a file, local or remote.
- * In particular, it makes it easier to handle the result of KIO::listDir
+ * In particular, it makes it easier to handle the result of TDEIO::listDir
* (UDSEntry isn't very friendly to use).
* It includes many file attributes such as mimetype, icon, text, mode, link...
*/
@@ -45,7 +45,7 @@ public:
/**
* Creates an item representing a file, from a UDSEntry.
- * This is the preferred constructor when using KIO::listDir().
+ * This is the preferred constructor when using TDEIO::listDir().
*
* @param _entry the KIO entry used to get the file, contains info about it
* @param _url the file url
@@ -54,7 +54,7 @@ public:
* @param _urlIsDirectory specifies if the url is just the directory of the
* fileitem and the filename from the UDSEntry should be used.
*/
- KFileItem( const KIO::UDSEntry& _entry, const KURL& _url,
+ KFileItem( const TDEIO::UDSEntry& _entry, const KURL& _url,
bool _determineMimeTypeOnDemand = false,
bool _urlIsDirectory = false );
@@ -239,14 +239,14 @@ public:
* Returns the size of the file, if known.
* @return the file size, or 0 if not known
*/
- KIO::filesize_t size() const;
+ TDEIO::filesize_t size() const;
/**
* Returns the size of the file, if known, and sets @p hasSize to false if not known
* @param @hasSize This is set to true if the size is known, and false if not known
* @return the file size, or 0 if not known
*/
- KIO::filesize_t size(bool &hasSize) const;
+ TDEIO::filesize_t size(bool &hasSize) const;
//FIXME KDE4 deprecate this in favor of time(unsigned int which, bool &hasSize)
/**
@@ -273,7 +273,7 @@ public:
* @returns a formatted string of the requested time, TQString::null if time is not known
* @see time
*/
- TQString timeString( unsigned int which = KIO::UDS_MODIFICATION_TIME ) const;
+ TQString timeString( unsigned int which = TDEIO::UDS_MODIFICATION_TIME ) const;
/**
* Returns true if the file is a local file.
@@ -396,7 +396,7 @@ public:
* by position.
* @return the UDS entry
*/
- const KIO::UDSEntry & entry() const { return m_entry; }
+ const TDEIO::UDSEntry & entry() const { return m_entry; }
/**
* Used when updating a directory. marked == seen when refreshing.
@@ -536,7 +536,7 @@ public:
* fileitem and the filename from the UDSEntry should be used.
* @since 3.4.1
*/
- void setUDSEntry( const KIO::UDSEntry& entry, const KURL& url,
+ void setUDSEntry( const TDEIO::UDSEntry& entry, const KURL& url,
bool determineMimeTypeOnDemand = false,
bool urlIsDirectory = false );
@@ -576,7 +576,7 @@ private:
/**
* We keep a copy of the UDSEntry since we need it for getStatusBarInfo
*/
- KIO::UDSEntry m_entry;
+ TDEIO::UDSEntry m_entry;
/**
* The url of the file
*/
@@ -643,7 +643,7 @@ private:
enum { Modification = 0, Access = 1, Creation = 2, NumFlags = 3 };
mutable time_t m_time[3];
- mutable KIO::filesize_t m_size;
+ mutable TDEIO::filesize_t m_size;
protected:
virtual void virtual_hook( int id, void* data );
diff --git a/kio/kio/kfilemetainfo.cpp b/kio/kio/kfilemetainfo.cpp
index c345ef89e..0ccbb577b 100644
--- a/kio/kio/kfilemetainfo.cpp
+++ b/kio/kio/kfilemetainfo.cpp
@@ -1626,12 +1626,12 @@ TQString KFileMimeTypeInfo::ItemInfo::string(const TQVariant& value, bool mangle
else if (unit() == KFileMimeTypeInfo::Bytes)
{
// convertSize already adds the correct suffix
- return KIO::convertSize(value.toInt());
+ return TDEIO::convertSize(value.toInt());
}
else if (unit() == KFileMimeTypeInfo::KiloBytes)
{
// convertSizeFromKB already adds the correct suffix
- return KIO::convertSizeFromKB(value.toInt());
+ return TDEIO::convertSizeFromKB(value.toInt());
}
else
s = TDEGlobal::locale()->formatNumber( value.toInt() , 0);
@@ -1643,9 +1643,9 @@ TQString KFileMimeTypeInfo::ItemInfo::string(const TQVariant& value, bool mangle
case TQVariant::ULongLong :
if ( unit() == KFileMimeTypeInfo::Bytes )
- return KIO::convertSize( value.toULongLong() );
+ return TDEIO::convertSize( value.toULongLong() );
else if ( unit() == KFileMimeTypeInfo::KiloBytes )
- return KIO::convertSizeFromKB( value.toULongLong() );
+ return TDEIO::convertSizeFromKB( value.toULongLong() );
else
s = TDEGlobal::locale()->formatNumber( value.toULongLong(), 0 );
break;
diff --git a/kio/kio/kimageio.cpp b/kio/kio/kimageio.cpp
index 75622bf7d..cdbaa8ea3 100644
--- a/kio/kio/kimageio.cpp
+++ b/kio/kio/kimageio.cpp
@@ -37,7 +37,7 @@ KImageIOFormat::KImageIOFormat( const TQString &path)
bLibLoaded = false;
mReadFunc = 0;
mWriteFunc = 0;
- KConfig config(path, true, false);
+ TDEConfig config(path, true, false);
config.setGroup("Image Format");
mType = config.readEntry("Type");
diff --git a/kio/kio/kmimetype.cpp b/kio/kio/kmimetype.cpp
index 37867cd23..397fbc9e9 100644
--- a/kio/kio/kmimetype.cpp
+++ b/kio/kio/kmimetype.cpp
@@ -533,8 +533,8 @@ TQString KMimeType::favIconForURL( const KURL& url )
static bool check = true;
if ( check ) {
check = false;
- KConfig *config = TDEGlobal::config();
- KConfigGroupSaver cs( config, "HTML Settings" );
+ TDEConfig *config = TDEGlobal::config();
+ TDEConfigGroupSaver cs( config, "HTML Settings" );
useFavIcons = config->readBoolEntry( "EnableFavicon", true );
}
@@ -717,7 +717,7 @@ TQString KDEDesktopMimeType::icon( const KURL& _url, bool _is_local ) const
TQString dev = cfg.readEntry( "Dev" );
if ( !icon.isEmpty() && !unmount_icon.isEmpty() && !dev.isEmpty() )
{
- TQString mp = KIO::findDeviceMountPoint( dev );
+ TQString mp = TDEIO::findDeviceMountPoint( dev );
// Is the device not mounted ?
if ( mp.isNull() )
return unmount_icon;
@@ -831,7 +831,7 @@ pid_t KDEDesktopMimeType::runFSDevice( const KURL& _url, const KSimpleConfig &cf
return retval;
}
- TQString mp = KIO::findDeviceMountPoint( dev );
+ TQString mp = TDEIO::findDeviceMountPoint( dev );
// Is the device already mounted ?
if ( !mp.isNull() )
{
@@ -933,7 +933,7 @@ TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::builtinServices( co
}
else
{
- TQString mp = KIO::findDeviceMountPoint( dev );
+ TQString mp = TDEIO::findDeviceMountPoint( dev );
// not mounted ?
if ( mp.isEmpty() )
{
@@ -968,12 +968,12 @@ TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::userDefinedServices
return userDefinedServices( path, cfg, bLocalFiles );
}
-TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::userDefinedServices( const TQString& path, KConfig& cfg, bool bLocalFiles )
+TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::userDefinedServices( const TQString& path, TDEConfig& cfg, bool bLocalFiles )
{
return userDefinedServices( path, cfg, bLocalFiles, KURL::List() );
}
-TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::userDefinedServices( const TQString& path, KConfig& cfg, bool bLocalFiles, const KURL::List & file_list )
+TQValueList<KDEDesktopMimeType::Service> KDEDesktopMimeType::userDefinedServices( const TQString& path, TDEConfig& cfg, bool bLocalFiles, const KURL::List & file_list )
{
TQValueList<Service> result;
@@ -1114,7 +1114,7 @@ void KDEDesktopMimeType::executeService( const KURL::List& urls, KDEDesktopMimeT
KMessageBoxWrapper::error( 0, tmp );
return;
}
- TQString mp = KIO::findDeviceMountPoint( dev );
+ TQString mp = TDEIO::findDeviceMountPoint( dev );
if ( _service.m_type == ST_MOUNT )
{
diff --git a/kio/kio/kmimetype.h b/kio/kio/kmimetype.h
index b5ffdc9df..1d53f3713 100644
--- a/kio/kio/kmimetype.h
+++ b/kio/kio/kmimetype.h
@@ -561,11 +561,11 @@ public:
static TQValueList<Service> userDefinedServices( const TQString& path, bool bLocalFiles );
/**
- * Overload of userDefinedServices for speed purposes: it takes a KConfig* so that
+ * Overload of userDefinedServices for speed purposes: it takes a TDEConfig* so that
* the caller can check things in the file without having it parsed twice.
* @since 3.4
*/
- static TQValueList<Service> userDefinedServices( const TQString& path, KConfig& config, bool bLocalFiles );
+ static TQValueList<Service> userDefinedServices( const TQString& path, TDEConfig& config, bool bLocalFiles );
/**
* Overload of userDefinedServices but also allows you to pass a list of urls for this file.
@@ -573,7 +573,7 @@ public:
* the X-TDE-GetActionMenu extension.
* @since 3.5
*/
- static TQValueList<Service> userDefinedServices( const TQString& path, KConfig& config, bool bLocalFiles, const KURL::List & file_list);
+ static TQValueList<Service> userDefinedServices( const TQString& path, TDEConfig& config, bool bLocalFiles, const KURL::List & file_list);
/**
* @param path is the path of the desktop entry.
diff --git a/kio/kio/kmimetypechooser.cpp b/kio/kio/kmimetypechooser.cpp
index 0cb010913..b22bbd8dc 100644
--- a/kio/kio/kmimetypechooser.cpp
+++ b/kio/kio/kmimetypechooser.cpp
@@ -261,7 +261,7 @@ KMimeTypeChooserDialog::KMimeTypeChooserDialog(
this, "chooser" );
setMainWidget(m_chooser);
- KConfigGroup group( TDEGlobal::config(), "KMimeTypeChooserDialog");
+ TDEConfigGroup group( TDEGlobal::config(), "KMimeTypeChooserDialog");
TQSize defaultSize( 400, 300 );
resize( group.readSizeEntry("size", &defaultSize) );
}
@@ -280,7 +280,7 @@ KMimeTypeChooserDialog::KMimeTypeChooserDialog(
this, "chooser" );
setMainWidget(m_chooser);
- KConfigGroup group( TDEGlobal::config(), "KMimeTypeChooserDialog");
+ TDEConfigGroup group( TDEGlobal::config(), "KMimeTypeChooserDialog");
TQSize defaultSize( 400, 300 );
resize( group.readSizeEntry("size", &defaultSize) );
}
@@ -288,7 +288,7 @@ KMimeTypeChooserDialog::KMimeTypeChooserDialog(
KMimeTypeChooserDialog::~KMimeTypeChooserDialog()
{
- KConfigGroup group( TDEGlobal::config(), "KMimeTypeChooserDialog");
+ TDEConfigGroup group( TDEGlobal::config(), "KMimeTypeChooserDialog");
group.writeEntry("size", size());
}
diff --git a/kio/kio/knfsshare.cpp b/kio/kio/knfsshare.cpp
index f0fdfce6d..394120009 100644
--- a/kio/kio/knfsshare.cpp
+++ b/kio/kio/knfsshare.cpp
@@ -52,7 +52,7 @@ KNFSSharePrivate::KNFSSharePrivate()
* @return wether an 'exports' file was found.
**/
bool KNFSSharePrivate::findExportsFile() {
- KConfig config("knfsshare");
+ TDEConfig config("knfsshare");
config.setGroup("General");
exportsFile = config.readPathEntry("exportsFile");
diff --git a/kio/kio/kprotocolmanager.cpp b/kio/kio/kprotocolmanager.cpp
index 252bdbfbd..a4f8169f5 100644
--- a/kio/kio/kprotocolmanager.cpp
+++ b/kio/kio/kprotocolmanager.cpp
@@ -44,8 +44,8 @@ public:
~KProtocolManagerPrivate();
- KConfig *config;
- KConfig *http_config;
+ TDEConfig *config;
+ TDEConfig *http_config;
bool init_busy;
KURL url;
TQString protocol;
@@ -80,29 +80,29 @@ void KProtocolManager::reparseConfiguration()
kpmpksd.destructObject();
// Force the slave config to re-read its config...
- KIO::SlaveConfig::self()->reset ();
+ TDEIO::SlaveConfig::self()->reset ();
}
-KConfig *KProtocolManager::config()
+TDEConfig *KProtocolManager::config()
{
if (!d)
d = new KProtocolManagerPrivate;
if (!d->config)
{
- d->config = new KConfig("kioslaverc", true, false);
+ d->config = new TDEConfig("kioslaverc", true, false);
}
return d->config;
}
-KConfig *KProtocolManager::http_config()
+TDEConfig *KProtocolManager::http_config()
{
if (!d)
d = new KProtocolManagerPrivate;
if (!d->http_config)
{
- d->http_config = new KConfig("kio_httprc", false, false);
+ d->http_config = new TDEConfig("kio_httprc", false, false);
}
return d->http_config;
}
@@ -111,7 +111,7 @@ KConfig *KProtocolManager::http_config()
int KProtocolManager::readTimeout()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
int val = cfg->readNumEntry( "ReadTimeout", DEFAULT_READ_TIMEOUT );
return QMAX(MIN_TIMEOUT_VALUE, val);
@@ -119,7 +119,7 @@ int KProtocolManager::readTimeout()
int KProtocolManager::connectTimeout()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
int val = cfg->readNumEntry( "ConnectTimeout", DEFAULT_CONNECT_TIMEOUT );
return QMAX(MIN_TIMEOUT_VALUE, val);
@@ -127,7 +127,7 @@ int KProtocolManager::connectTimeout()
int KProtocolManager::proxyConnectTimeout()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
int val = cfg->readNumEntry( "ProxyConnectTimeout", DEFAULT_PROXY_CONNECT_TIMEOUT );
return QMAX(MIN_TIMEOUT_VALUE, val);
@@ -135,7 +135,7 @@ int KProtocolManager::proxyConnectTimeout()
int KProtocolManager::responseTimeout()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
int val = cfg->readNumEntry( "ResponseTimeout", DEFAULT_RESPONSE_TIMEOUT );
return QMAX(MIN_TIMEOUT_VALUE, val);
@@ -150,21 +150,21 @@ bool KProtocolManager::useProxy()
bool KProtocolManager::useReverseProxy()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( "Proxy Settings" );
return cfg->readBoolEntry("ReversedException", false);
}
KProtocolManager::ProxyType KProtocolManager::proxyType()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( "Proxy Settings" );
return static_cast<ProxyType>(cfg->readNumEntry( "ProxyType" ));
}
KProtocolManager::ProxyAuthMode KProtocolManager::proxyAuthMode()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( "Proxy Settings" );
return static_cast<ProxyAuthMode>(cfg->readNumEntry( "AuthMode" ));
}
@@ -173,40 +173,40 @@ KProtocolManager::ProxyAuthMode KProtocolManager::proxyAuthMode()
bool KProtocolManager::useCache()
{
- KConfig *cfg = http_config();
+ TDEConfig *cfg = http_config();
return cfg->readBoolEntry( "UseCache", true );
}
-KIO::CacheControl KProtocolManager::cacheControl()
+TDEIO::CacheControl KProtocolManager::cacheControl()
{
- KConfig *cfg = http_config();
+ TDEConfig *cfg = http_config();
TQString tmp = cfg->readEntry("cache");
if (tmp.isEmpty())
return DEFAULT_CACHE_CONTROL;
- return KIO::parseCacheControl(tmp);
+ return TDEIO::parseCacheControl(tmp);
}
TQString KProtocolManager::cacheDir()
{
- KConfig *cfg = http_config();
+ TDEConfig *cfg = http_config();
return cfg->readPathEntry("CacheDir", TDEGlobal::dirs()->saveLocation("cache","http"));
}
int KProtocolManager::maxCacheAge()
{
- KConfig *cfg = http_config();
+ TDEConfig *cfg = http_config();
return cfg->readNumEntry( "MaxCacheAge", DEFAULT_MAX_CACHE_AGE ); // 14 days
}
int KProtocolManager::maxCacheSize()
{
- KConfig *cfg = http_config();
+ TDEConfig *cfg = http_config();
return cfg->readNumEntry( "MaxCacheSize", DEFAULT_MAX_CACHE_SIZE ); // 5 MB
}
TQString KProtocolManager::noProxyForRaw()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( "Proxy Settings" );
return cfg->readEntry( "NoProxyFor" );
@@ -230,7 +230,7 @@ TQString KProtocolManager::proxyFor( const TQString& protocol )
else if (scheme == "webdavs")
scheme = "https";
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( "Proxy Settings" );
return cfg->readEntry( scheme + "Proxy" );
}
@@ -417,11 +417,11 @@ TQString KProtocolManager::slaveProtocol(const KURL &url, TQString &proxy)
TQString KProtocolManager::userAgentForHost( const TQString& hostname )
{
- TQString sendUserAgent = KIO::SlaveConfig::self()->configData("http", hostname.lower(), "SendUserAgent").lower();
+ TQString sendUserAgent = TDEIO::SlaveConfig::self()->configData("http", hostname.lower(), "SendUserAgent").lower();
if (sendUserAgent == "false")
return TQString::null;
- TQString useragent = KIO::SlaveConfig::self()->configData("http", hostname.lower(), "UserAgent");
+ TQString useragent = TDEIO::SlaveConfig::self()->configData("http", hostname.lower(), "UserAgent");
// Return the default user-agent if none is specified
// for the requested host.
@@ -433,7 +433,7 @@ TQString KProtocolManager::userAgentForHost( const TQString& hostname )
TQString KProtocolManager::defaultUserAgent( )
{
- TQString modifiers = KIO::SlaveConfig::self()->configData("http", TQString::null, "UserAgentKeys");
+ TQString modifiers = TDEIO::SlaveConfig::self()->configData("http", TQString::null, "UserAgentKeys");
return defaultUserAgent(modifiers);
}
@@ -492,14 +492,14 @@ TQString KProtocolManager::defaultUserAgent( const TQString &_modifiers )
bool KProtocolManager::markPartial()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
return cfg->readBoolEntry( "MarkPartial", true );
}
int KProtocolManager::minimumKeepSize()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
return cfg->readNumEntry( "MinimumKeepSize",
DEFAULT_MINIMUM_KEEP_SIZE ); // 5000 byte
@@ -507,28 +507,28 @@ int KProtocolManager::minimumKeepSize()
bool KProtocolManager::autoResume()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
return cfg->readBoolEntry( "AutoResume", false );
}
bool KProtocolManager::persistentConnections()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
return cfg->readBoolEntry( "PersistentConnections", true );
}
bool KProtocolManager::persistentProxyConnection()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( TQString::null );
return cfg->readBoolEntry( "PersistentProxyConnection", false );
}
TQString KProtocolManager::proxyConfigScript()
{
- KConfig *cfg = config();
+ TDEConfig *cfg = config();
cfg->setGroup( "Proxy Settings" );
return cfg->readEntry( "Proxy Config Script" );
}
diff --git a/kio/kio/kprotocolmanager.h b/kio/kio/kprotocolmanager.h
index ec59342af..e1d425ebd 100644
--- a/kio/kio/kprotocolmanager.h
+++ b/kio/kio/kprotocolmanager.h
@@ -28,7 +28,7 @@
/** @deprecated Use KProtocolManager::defaultUserAgent() instead. */
#define DEFAULT_USERAGENT_STRING ""
-class KConfig;
+class TDEConfig;
/**
* Provides information about I/O (Internet, etc.) settings chosen/set
@@ -311,7 +311,7 @@ public:
* Returns the Cache control directive to be used.
* @return the cache control value
*/
- static KIO::CacheControl cacheControl();
+ static TDEIO::CacheControl cacheControl();
/*============================ DOWNLOAD CONFIG ==============================*/
@@ -382,8 +382,8 @@ public:
* @internal
* (Shared with SlaveConfig)
*/
- static KConfig *config();
+ static TDEConfig *config();
private:
- static KConfig *http_config();
+ static TDEConfig *http_config();
};
#endif
diff --git a/kio/kio/kremoteencoding.h b/kio/kio/kremoteencoding.h
index 35191d8e5..6f5eea5fd 100644
--- a/kio/kio/kremoteencoding.h
+++ b/kio/kio/kremoteencoding.h
@@ -31,11 +31,11 @@ class KRemoteEncodingPrivate;
* Certain protocols do not specify an appropriate encoding for decoding
* their 8-bit data into proper Unicode forms. Therefore, ioslaves should
* use this class in order to convert those forms into QStrings before
- * creating the respective KIO::UDSEntry. The same is true for decoding
+ * creating the respective TDEIO::UDSEntry. The same is true for decoding
* URLs to its components.
*
- * Each KIO::SlaveBase has one object of this kind, even if it is not necessary.
- * It can be accessed through KIO::SlaveBase::remoteEncoding.
+ * Each TDEIO::SlaveBase has one object of this kind, even if it is not necessary.
+ * It can be accessed through TDEIO::SlaveBase::remoteEncoding.
*
* @short A class for handling remote filenames
* @author Thiago Macieira <thiago.macieira@kdemail.net>
diff --git a/kio/kio/krun.cpp b/kio/kio/krun.cpp
index 2f6e9861a..f99f636db 100644
--- a/kio/kio/krun.cpp
+++ b/kio/kio/krun.cpp
@@ -476,7 +476,7 @@ TQStringList KRun::processDesktopExec(const KService &_service, const KURL::List
*/
if (_service.terminal()) {
- KConfigGroupSaver gs(TDEGlobal::config(), "General");
+ TDEConfigGroupSaver gs(TDEGlobal::config(), "General");
TQString terminal = TDEGlobal::config()->readPathEntry("TerminalApplication", "konsole");
if (terminal == "konsole")
terminal += " -caption=%c %i %m";
@@ -727,7 +727,7 @@ static KURL::List resolveURLs( const KURL::List& _urls, const KService& _service
if ( !supported && KProtocolInfo::protocolClass(url.protocol()) == ":local" )
{
// Maybe we can resolve to a local URL?
- KURL localURL = KIO::NetAccess::mostLocalURL( url, 0 );
+ KURL localURL = TDEIO::NetAccess::mostLocalURL( url, 0 );
if ( localURL != url ) {
*it = localURL;
kdDebug(7010) << "Changed to " << localURL << endl;
@@ -1003,7 +1003,7 @@ void KRun::init()
}
if ( !kapp->authorizeURLAction( "open", KURL(), m_strURL))
{
- TQString msg = KIO::buildErrorString(KIO::ERR_ACCESS_DENIED, m_strURL.prettyURL());
+ TQString msg = TDEIO::buildErrorString(TDEIO::ERR_ACCESS_DENIED, m_strURL.prettyURL());
d->m_showingError = true;
KMessageBoxWrapper::error( d->m_window, msg );
d->m_showingError = false;
@@ -1119,10 +1119,10 @@ void KRun::init()
kdDebug(7010) << "Testing directory (stating)" << endl;
// It may be a directory or a file, let's stat
- KIO::StatJob *job = KIO::stat( m_strURL, true, 0 /* no details */, m_bProgressInfo );
+ TDEIO::StatJob *job = TDEIO::stat( m_strURL, true, 0 /* no details */, m_bProgressInfo );
job->setWindow (d->m_window);
- connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
- this, TQT_SLOT( slotStatResult( KIO::Job * ) ) );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ this, TQT_SLOT( slotStatResult( TDEIO::Job * ) ) );
m_job = job;
kdDebug(7010) << " Job " << job << " is about stating " << m_strURL.url() << endl;
}
@@ -1168,12 +1168,12 @@ void KRun::scanFile()
}
kdDebug(7010) << this << " Scanning file " << m_strURL.url() << endl;
- KIO::TransferJob *job = KIO::get( m_strURL, false /*reload*/, m_bProgressInfo );
+ TDEIO::TransferJob *job = TDEIO::get( m_strURL, false /*reload*/, m_bProgressInfo );
job->setWindow (d->m_window);
- connect(job, TQT_SIGNAL( result(KIO::Job *)),
- this, TQT_SLOT( slotScanFinished(KIO::Job *)));
- connect(job, TQT_SIGNAL( mimetype(KIO::Job *, const TQString &)),
- this, TQT_SLOT( slotScanMimeType(KIO::Job *, const TQString &)));
+ connect(job, TQT_SIGNAL( result(TDEIO::Job *)),
+ this, TQT_SLOT( slotScanFinished(TDEIO::Job *)));
+ connect(job, TQT_SIGNAL( mimetype(TDEIO::Job *, const TQString &)),
+ this, TQT_SLOT( slotScanMimeType(TDEIO::Job *, const TQString &)));
m_job = job;
kdDebug(7010) << " Job " << job << " is about getting from " << m_strURL.url() << endl;
}
@@ -1217,7 +1217,7 @@ void KRun::slotTimeout()
}
}
-void KRun::slotStatResult( KIO::Job * job )
+void KRun::slotStatResult( TDEIO::Job * job )
{
m_job = 0L;
if (job->error())
@@ -1237,24 +1237,24 @@ void KRun::slotStatResult( KIO::Job * job )
} else {
kdDebug(7010) << "Finished" << endl;
- if(!dynamic_cast<KIO::StatJob*>(job))
+ if(!dynamic_cast<TDEIO::StatJob*>(job))
kdFatal() << "job is a " << typeid(*job).name() << " should be a StatJob" << endl;
TQString knownMimeType;
- KIO::UDSEntry entry = ((KIO::StatJob*)job)->statResult();
- KIO::UDSEntry::ConstIterator it = entry.begin();
+ TDEIO::UDSEntry entry = ((TDEIO::StatJob*)job)->statResult();
+ TDEIO::UDSEntry::ConstIterator it = entry.begin();
for( ; it != entry.end(); it++ ) {
switch( (*it).m_uds ) {
- case KIO::UDS_FILE_TYPE:
+ case TDEIO::UDS_FILE_TYPE:
if ( S_ISDIR( (mode_t)((*it).m_long) ) )
m_bIsDirectory = true; // it's a dir
else
m_bScanFile = true; // it's a file
break;
- case KIO::UDS_MIME_TYPE: // mimetype already known? (e.g. print:/manager)
+ case TDEIO::UDS_MIME_TYPE: // mimetype already known? (e.g. print:/manager)
knownMimeType = (*it).m_str;
break;
- case KIO::UDS_LOCAL_PATH:
+ case TDEIO::UDS_LOCAL_PATH:
d->m_localPath = (*it).m_str;
break;
default:
@@ -1277,7 +1277,7 @@ void KRun::slotStatResult( KIO::Job * job )
}
}
-void KRun::slotScanMimeType( KIO::Job *, const TQString &mimetype )
+void KRun::slotScanMimeType( TDEIO::Job *, const TQString &mimetype )
{
if ( mimetype.isEmpty() )
kdWarning(7010) << "KRun::slotScanFinished : MimetypeJob didn't find a mimetype! Probably a kioslave bug." << endl;
@@ -1285,7 +1285,7 @@ void KRun::slotScanMimeType( KIO::Job *, const TQString &mimetype )
m_job = 0;
}
-void KRun::slotScanFinished( KIO::Job *job )
+void KRun::slotScanFinished( TDEIO::Job *job )
{
m_job = 0;
if (job->error())
@@ -1352,19 +1352,19 @@ void KRun::foundMimeType( const TQString& type )
// We don't know if this is a file or a directory. Let's test this first.
// (For instance a tar.gz is a directory contained inside a file)
// It may be a directory or a file, let's stat
- KIO::StatJob *job = KIO::stat( m_strURL, m_bProgressInfo );
- connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
- this, TQT_SLOT( slotStatResult( KIO::Job * ) ) );
+ TDEIO::StatJob *job = TDEIO::stat( m_strURL, m_bProgressInfo );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ),
+ this, TQT_SLOT( slotStatResult( TDEIO::Job * ) ) );
m_job = job;
return;
}
*/
- KIO::TransferJob *job = ::tqqt_cast<KIO::TransferJob *>( m_job );
+ TDEIO::TransferJob *job = ::tqqt_cast<TDEIO::TransferJob *>( m_job );
if ( job )
{
job->putOnHold();
- KIO::Scheduler::publishSlaveOnHold();
+ TDEIO::Scheduler::publishSlaveOnHold();
m_job = 0;
}
@@ -1440,7 +1440,7 @@ void KRun::abort()
void KRun::setEnableExternalBrowser(bool b)
{
if (b)
- d->m_externalBrowser = KConfigGroup(TDEGlobal::config(), "General").readEntry("BrowserApplication");
+ d->m_externalBrowser = TDEConfigGroup(TDEGlobal::config(), "General").readEntry("BrowserApplication");
else
d->m_externalBrowser = TQString::null;
}
diff --git a/kio/kio/krun.h b/kio/kio/krun.h
index 9e4bf8c44..44bff6dee 100644
--- a/kio/kio/krun.h
+++ b/kio/kio/krun.h
@@ -32,7 +32,7 @@
class TDEProcess;
class KService;
-namespace KIO {
+namespace TDEIO {
class Job;
class StatJob;
}
@@ -77,7 +77,7 @@ public:
*
* @param showProgressInfo
* Whether to show progress information when determining the
- * type of the file (i.e. when using KIO::stat and KIO::mimetype)
+ * type of the file (i.e. when using TDEIO::stat and TDEIO::mimetype)
* Before you set this to false to avoid a dialog box, think about
* a very slow FTP server...
* It is always better to provide progress info in such cases.
@@ -104,7 +104,7 @@ public:
*
* @param showProgressInfo
* Whether to show progress information when determining the
- * type of the file (i.e. when using KIO::stat and KIO::mimetype)
+ * type of the file (i.e. when using TDEIO::stat and TDEIO::mimetype)
* Before you set this to false to avoid a dialog box, think about
* a very slow FTP server...
* It is always better to provide progress info in such cases.
@@ -401,9 +401,9 @@ signals:
protected slots:
void slotTimeout();
- void slotScanFinished( KIO::Job * );
- void slotScanMimeType( KIO::Job *, const TQString &type );
- virtual void slotStatResult( KIO::Job * );
+ void slotScanFinished( TDEIO::Job * );
+ void slotScanMimeType( TDEIO::Job *, const TQString &type );
+ virtual void slotStatResult( TDEIO::Job * );
protected:
virtual void init();
@@ -424,7 +424,7 @@ protected:
bool m_bAutoDelete;
bool m_bProgressInfo;
bool m_bFinished;
- KIO::Job * m_job;
+ TDEIO::Job * m_job;
TQTimer m_timer;
/**
diff --git a/kio/kio/kservice.cpp b/kio/kio/kservice.cpp
index 9324f964d..a5216981f 100644
--- a/kio/kio/kservice.cpp
+++ b/kio/kio/kservice.cpp
@@ -474,7 +474,7 @@ int KService::initialPreferenceForMimeType( const TQString& mimeType ) const
return 0;
}
-class KServiceReadProperty : public KConfigBase
+class KServiceReadProperty : public TDEConfigBase
{
public:
KServiceReadProperty(const TQString &_key, const TQCString &_value)
@@ -570,7 +570,7 @@ TQVariant KService::property( const TQString& _name, TQVariant::Type t ) const
}
}
- // Then we use a homebuild class based on KConfigBase to convert the TQString.
+ // Then we use a homebuild class based on TDEConfigBase to convert the TQString.
// For some often used property types we do the conversion ourselves.
TQMap<TQString,TQVariant>::ConstIterator it = m_mapProps.find( _name );
if ( (it == m_mapProps.end()) || (!it.data().isValid()))
diff --git a/kio/kio/kservicegroup.cpp b/kio/kio/kservicegroup.cpp
index af69e1765..e85991f82 100644
--- a/kio/kio/kservicegroup.cpp
+++ b/kio/kio/kservicegroup.cpp
@@ -128,7 +128,7 @@ int KServiceGroup::childCount()
{
if (m_childCount == -1)
{
- KConfig global("kdeglobals");
+ TDEConfig global("kdeglobals");
global.setGroup("KDE");
bool showUnimportant = global.readBoolEntry("showUnimportant", true);
diff --git a/kio/kio/kshred.h b/kio/kio/kshred.h
index c38c610ed..c7669122a 100644
--- a/kio/kio/kshred.h
+++ b/kio/kio/kshred.h
@@ -112,7 +112,7 @@ class KIO_EXPORT_DEPRECATED KShred : public TQObject { // KDE4: remove
* Shows progress of the shredding.
* @param bytes the number of bytes written to the file
*/
- void processedSize(KIO::filesize_t bytes);
+ void processedSize(TDEIO::filesize_t bytes);
/**
* Shows a message in the progress dialog
@@ -139,7 +139,7 @@ class KIO_EXPORT_DEPRECATED KShred : public TQObject { // KDE4: remove
/**
* @internal for the size of the file
*/
- KIO::filesize_t fileSize;
+ TDEIO::filesize_t fileSize;
/**
* @internal for keeping track of progress
diff --git a/kio/kio/ktrader.cpp b/kio/kio/ktrader.cpp
index dbe096075..585c6a499 100644
--- a/kio/kio/ktrader.cpp
+++ b/kio/kio/ktrader.cpp
@@ -29,7 +29,7 @@
template class KStaticDeleter<KTrader>;
-using namespace KIO;
+using namespace TDEIO;
class KTraderSorter
{
@@ -118,10 +118,10 @@ KTrader::OfferList KTrader::query( const TQString& _servicetype, const TQString&
ParseTreeBase::Ptr prefs;
if ( !_constraint.isEmpty() )
- constr = KIO::parseConstraints( _constraint );
+ constr = TDEIO::parseConstraints( _constraint );
if ( !_preferences.isEmpty() )
- prefs = KIO::parsePreferences( _preferences );
+ prefs = TDEIO::parsePreferences( _preferences );
KServiceTypeProfile::OfferList lst;
KTrader::OfferList ret;
diff --git a/kio/kio/ktraderparse.cpp b/kio/kio/ktraderparse.cpp
index 64d9e449f..627791c00 100644
--- a/kio/kio/ktraderparse.cpp
+++ b/kio/kio/ktraderparse.cpp
@@ -30,12 +30,12 @@ extern "C"
#include "ktraderparsetree.h"
#include <kdebug.h>
-using namespace KIO;
+using namespace TDEIO;
static ParseTreeBase::Ptr *pTree = 0;
static const char* sCode = 0;
-ParseTreeBase::Ptr KIO::parseConstraints( const TQString& _constr )
+ParseTreeBase::Ptr TDEIO::parseConstraints( const TQString& _constr )
{
TQCString str = _constr.utf8();
sCode = str.data();
@@ -45,7 +45,7 @@ ParseTreeBase::Ptr KIO::parseConstraints( const TQString& _constr )
return *pTree;
}
-ParseTreeBase::Ptr KIO::parsePreferences( const TQString& _prefs )
+ParseTreeBase::Ptr TDEIO::parsePreferences( const TQString& _prefs )
{
TQCString str = _prefs.utf8();
sCode = str.data();
diff --git a/kio/kio/ktraderparsetree.cpp b/kio/kio/ktraderparsetree.cpp
index 711ec5356..0a04b7918 100644
--- a/kio/kio/ktraderparsetree.cpp
+++ b/kio/kio/ktraderparsetree.cpp
@@ -19,7 +19,7 @@
#include "ktraderparsetree.h"
-namespace KIO {
+namespace TDEIO {
bool ParseTreeOR::eval( ParseContext *_context ) const
{
diff --git a/kio/kio/ktraderparsetree.h b/kio/kio/ktraderparsetree.h
index 3af4273d0..8cc466abd 100644
--- a/kio/kio/ktraderparsetree.h
+++ b/kio/kio/ktraderparsetree.h
@@ -31,7 +31,7 @@
#include "ktrader.h"
-namespace KIO {
+namespace TDEIO {
class ParseTreeBase;
diff --git a/kio/kio/kurifilter.h b/kio/kio/kurifilter.h
index cff151cb7..0084129bf 100644
--- a/kio/kio/kurifilter.h
+++ b/kio/kio/kurifilter.h
@@ -39,7 +39,7 @@
class KURIFilterPrivate;
class KURIFilterDataPrivate;
-class KCModule;
+class TDECModule;
/**
* A basic message object used for exchanging filtering
@@ -410,7 +410,7 @@ public:
*
* @return A configuration module, 0 if the filter isn't configurable.
*/
- virtual KCModule *configModule( TQWidget*, const char* ) const { return 0; }
+ virtual TDECModule *configModule( TQWidget*, const char* ) const { return 0; }
/**
* Returns the name of the configuration module for the filter.
diff --git a/kio/kio/kurlcompletion.cpp b/kio/kio/kurlcompletion.cpp
index 0443e0fce..2dc4185cc 100644
--- a/kio/kio/kurlcompletion.cpp
+++ b/kio/kio/kurlcompletion.cpp
@@ -459,7 +459,7 @@ public:
bool replace_home;
bool complete_url; // if true completing a URL (i.e. 'prepend' is a URL), otherwise a path
- KIO::ListJob *list_job; // kio job to list directories
+ TDEIO::ListJob *list_job; // kio job to list directories
TQString prepend; // text to prepend to listed items
TQString compl_text; // text to pass on to KCompletion
@@ -519,8 +519,8 @@ void KURLCompletion::init()
d->mode = KURLCompletion::FileCompletion;
// Read settings
- KConfig *c = TDEGlobal::config();
- KConfigGroupSaver cgs( c, "URLCompletion" );
+ TDEConfig *c = TDEGlobal::config();
+ TDEConfigGroupSaver cgs( c, "URLCompletion" );
d->url_auto_completion = c->readBoolEntry("alwaysAutoComplete", true);
d->popup_append_slash = c->readBoolEntry("popupAppendSlash", true);
@@ -1226,12 +1226,12 @@ void KURLCompletion::listURLs(
*
* Receive files listed by KIO and call addMatches()
*/
-void KURLCompletion::slotEntries(KIO::Job*, const KIO::UDSEntryList& entries)
+void KURLCompletion::slotEntries(TDEIO::Job*, const TDEIO::UDSEntryList& entries)
{
TQStringList matches;
- KIO::UDSEntryListConstIterator it = entries.begin();
- KIO::UDSEntryListConstIterator end = entries.end();
+ TDEIO::UDSEntryListConstIterator it = entries.begin();
+ TDEIO::UDSEntryListConstIterator end = entries.end();
TQString filter = d->list_urls_filter;
@@ -1245,21 +1245,21 @@ void KURLCompletion::slotEntries(KIO::Job*, const KIO::UDSEntryList& entries)
bool is_exe = false;
bool is_dir = false;
- KIO::UDSEntry e = *it;
- KIO::UDSEntry::ConstIterator it_2 = e.begin();
+ TDEIO::UDSEntry e = *it;
+ TDEIO::UDSEntry::ConstIterator it_2 = e.begin();
for( ; it_2 != e.end(); it_2++ ) {
switch ( (*it_2).m_uds ) {
- case KIO::UDS_NAME:
+ case TDEIO::UDS_NAME:
name = (*it_2).m_str;
break;
- case KIO::UDS_ACCESS:
+ case TDEIO::UDS_ACCESS:
is_exe = ((*it_2).m_long & MODE_EXE) != 0;
break;
- case KIO::UDS_FILE_TYPE:
+ case TDEIO::UDS_FILE_TYPE:
is_dir = ((*it_2).m_long & S_IFDIR) != 0;
break;
- case KIO::UDS_URL:
+ case TDEIO::UDS_URL:
url = (*it_2).m_str;
break;
}
@@ -1301,7 +1301,7 @@ void KURLCompletion::slotEntries(KIO::Job*, const KIO::UDSEntryList& entries)
* Start a new list job if there are still urls in
* d->list_urls, otherwise call finished()
*/
-void KURLCompletion::slotIOFinished( KIO::Job * job )
+void KURLCompletion::slotIOFinished( TDEIO::Job * job )
{
// kdDebug() << "slotIOFinished() " << endl;
@@ -1322,18 +1322,18 @@ void KURLCompletion::slotIOFinished( KIO::Job * job )
// kdDebug() << "Start KIO: " << kurl->prettyURL() << endl;
- d->list_job = KIO::listDir( *kurl, false );
+ d->list_job = TDEIO::listDir( *kurl, false );
d->list_job->addMetaData("no-auth-prompt", "true");
assert( d->list_job );
connect( d->list_job,
- TQT_SIGNAL(result(KIO::Job*)),
- TQT_SLOT(slotIOFinished(KIO::Job*)) );
+ TQT_SIGNAL(result(TDEIO::Job*)),
+ TQT_SLOT(slotIOFinished(TDEIO::Job*)) );
connect( d->list_job,
- TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList&)),
- TQT_SLOT( slotEntries( KIO::Job*, const KIO::UDSEntryList&)) );
+ TQT_SIGNAL( entries( TDEIO::Job*, const TDEIO::UDSEntryList&)),
+ TQT_SLOT( slotEntries( TDEIO::Job*, const TDEIO::UDSEntryList&)) );
delete kurl;
}
diff --git a/kio/kio/kurlcompletion.h b/kio/kio/kurlcompletion.h
index 2e042c3bc..62eda9f8d 100644
--- a/kio/kio/kurlcompletion.h
+++ b/kio/kio/kurlcompletion.h
@@ -176,8 +176,8 @@ protected:
virtual void customEvent( TQCustomEvent *e );
protected slots:
- void slotEntries( KIO::Job *, const KIO::UDSEntryList& );
- void slotIOFinished( KIO::Job * );
+ void slotEntries( TDEIO::Job *, const TDEIO::UDSEntryList& );
+ void slotIOFinished( TDEIO::Job * );
private:
diff --git a/kio/kio/kuserprofile.cpp b/kio/kio/kuserprofile.cpp
index fe07c3ad1..efc4cbae3 100644
--- a/kio/kio/kuserprofile.cpp
+++ b/kio/kio/kuserprofile.cpp
@@ -53,7 +53,7 @@ void KServiceTypeProfile::initStatic()
profileDeleter.setObject(s_lstProfiles, new KServiceTypeProfileList);
s_lstProfiles->setAutoDelete( true );
- KConfig config( "profilerc", true, false);
+ TDEConfig config( "profilerc", true, false);
static const TQString & defaultGroup = TDEGlobal::staticQString("<default>");
diff --git a/kio/kio/metainfojob.cpp b/kio/kio/metainfojob.cpp
index 3998584e3..545c841b0 100644
--- a/kio/kio/metainfojob.cpp
+++ b/kio/kio/metainfojob.cpp
@@ -31,9 +31,9 @@
#include "metainfojob.moc"
-using namespace KIO;
+using namespace TDEIO;
-struct KIO::MetaInfoJobPrivate
+struct TDEIO::MetaInfoJobPrivate
{
KFileItemList items; // all the items we got
KFileItemListIterator* currentItem; // argh! No default constructor
@@ -42,7 +42,7 @@ struct KIO::MetaInfoJobPrivate
};
MetaInfoJob::MetaInfoJob(const KFileItemList &items, bool deleteItems)
- : KIO::Job(false /* no GUI */)
+ : TDEIO::Job(false /* no GUI */)
{
d = new MetaInfoJobPrivate;
d->deleteItems = deleteItems;
@@ -113,7 +113,7 @@ void MetaInfoJob::determineNextFile()
getMetaInfo();
}
-void MetaInfoJob::slotResult( KIO::Job *job )
+void MetaInfoJob::slotResult( TDEIO::Job *job )
{
subjobs.remove(job);
Q_ASSERT(subjobs.isEmpty()); // We should have only one job at a time ...
@@ -129,17 +129,17 @@ void MetaInfoJob::getMetaInfo()
URL.setProtocol("metainfo");
URL.setPath(d->currentItem->current()->url().path());
- KIO::TransferJob* job = KIO::get(URL, false, false);
+ TDEIO::TransferJob* job = TDEIO::get(URL, false, false);
addSubjob(job);
- connect(job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)),
- this, TQT_SLOT(slotMetaInfo(KIO::Job *, const TQByteArray &)));
+ connect(job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)),
+ this, TQT_SLOT(slotMetaInfo(TDEIO::Job *, const TQByteArray &)));
job->addMetaData("mimeType", d->currentItem->current()->mimetype());
}
-void MetaInfoJob::slotMetaInfo(KIO::Job*, const TQByteArray &data)
+void MetaInfoJob::slotMetaInfo(TDEIO::Job*, const TQByteArray &data)
{
KFileMetaInfo info;
TQDataStream s(data, IO_ReadOnly);
@@ -169,12 +169,12 @@ TQStringList MetaInfoJob::supportedMimeTypes()
return result;
}
-KIO_EXPORT MetaInfoJob *KIO::fileMetaInfo( const KFileItemList &items)
+KIO_EXPORT MetaInfoJob *TDEIO::fileMetaInfo( const KFileItemList &items)
{
return new MetaInfoJob(items, false);
}
-KIO_EXPORT MetaInfoJob *KIO::fileMetaInfo( const KURL::List &items)
+KIO_EXPORT MetaInfoJob *TDEIO::fileMetaInfo( const KURL::List &items)
{
KFileItemList fileItems;
for (KURL::List::ConstIterator it = items.begin(); it != items.end(); ++it)
diff --git a/kio/kio/metainfojob.h b/kio/kio/metainfojob.h
index 3b96713fb..0f7d485b3 100644
--- a/kio/kio/metainfojob.h
+++ b/kio/kio/metainfojob.h
@@ -25,14 +25,14 @@
#include <kio/job.h>
#include <kfileitem.h>
-namespace KIO {
+namespace TDEIO {
/**
* MetaInfoJob is a KIO Job to retrieve meta information from files.
*
* @short KIO Job to retrieve meta information from files.
* @since 3.1
*/
- class KIO_EXPORT MetaInfoJob : public KIO::Job
+ class KIO_EXPORT MetaInfoJob : public TDEIO::Job
{
Q_OBJECT
public:
@@ -85,11 +85,11 @@ namespace KIO {
void getMetaInfo();
protected slots:
- virtual void slotResult( KIO::Job *job );
+ virtual void slotResult( TDEIO::Job *job );
private slots:
void start();
- void slotMetaInfo(KIO::Job *, const TQByteArray &);
+ void slotMetaInfo(TDEIO::Job *, const TQByteArray &);
private:
void determineNextFile();
diff --git a/kio/kio/netaccess.cpp b/kio/kio/netaccess.cpp
index a7ddb3987..11c20be49 100644
--- a/kio/kio/netaccess.cpp
+++ b/kio/kio/netaccess.cpp
@@ -43,7 +43,7 @@
#include "kio/netaccess.h"
-using namespace KIO;
+using namespace TDEIO;
TQString * NetAccess::lastErrorMsg;
int NetAccess::lastErrorCode = 0;
@@ -190,12 +190,12 @@ bool NetAccess::exists( const KURL & url, bool source, TQWidget* window )
return kioNet.statInternal( url, 0 /*no details*/, source, window );
}
-bool NetAccess::stat( const KURL & url, KIO::UDSEntry & entry )
+bool NetAccess::stat( const KURL & url, TDEIO::UDSEntry & entry )
{
return NetAccess::stat( url, entry, 0 );
}
-bool NetAccess::stat( const KURL & url, KIO::UDSEntry & entry, TQWidget* window )
+bool NetAccess::stat( const KURL & url, TDEIO::UDSEntry & entry, TQWidget* window )
{
NetAccess kioNet;
bool ret = kioNet.statInternal( url, 2 /*all details*/, true /*source*/, window );
@@ -211,7 +211,7 @@ KURL NetAccess::mostLocalURL(const KURL & url, TQWidget* window)
return url;
}
- KIO::UDSEntry entry;
+ TDEIO::UDSEntry entry;
if (!stat(url, entry, window))
{
return url;
@@ -219,12 +219,12 @@ KURL NetAccess::mostLocalURL(const KURL & url, TQWidget* window)
TQString path;
- // Extract the local path from the KIO::UDSEntry
- KIO::UDSEntry::ConstIterator it = entry.begin();
- const KIO::UDSEntry::ConstIterator end = entry.end();
+ // Extract the local path from the TDEIO::UDSEntry
+ TDEIO::UDSEntry::ConstIterator it = entry.begin();
+ const TDEIO::UDSEntry::ConstIterator end = entry.end();
for ( ; it != end; ++it )
{
- if ( (*it).m_uds == KIO::UDS_LOCAL_PATH )
+ if ( (*it).m_uds == TDEIO::UDS_LOCAL_PATH )
{
path = (*it).m_str;
break;
@@ -305,13 +305,13 @@ bool NetAccess::filecopyInternal(const KURL& src, const KURL& target, int permis
{
bJobOK = true; // success unless further error occurs
- KIO::Scheduler::checkSlaveOnHold(true);
- KIO::Job * job = move
- ? KIO::file_move( src, target, permissions, overwrite, resume )
- : KIO::file_copy( src, target, permissions, overwrite, resume );
+ TDEIO::Scheduler::checkSlaveOnHold(true);
+ TDEIO::Job * job = move
+ ? TDEIO::file_move( src, target, permissions, overwrite, resume )
+ : TDEIO::file_copy( src, target, permissions, overwrite, resume );
job->setWindow (window);
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
return bJobOK;
@@ -322,12 +322,12 @@ bool NetAccess::dircopyInternal(const KURL::List& src, const KURL& target,
{
bJobOK = true; // success unless further error occurs
- KIO::Job * job = move
- ? KIO::move( src, target )
- : KIO::copy( src, target );
+ TDEIO::Job * job = move
+ ? TDEIO::move( src, target )
+ : TDEIO::copy( src, target );
job->setWindow (window);
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
return bJobOK;
@@ -337,12 +337,12 @@ bool NetAccess::statInternal( const KURL & url, int details, bool source,
TQWidget* window )
{
bJobOK = true; // success unless further error occurs
- KIO::StatJob * job = KIO::stat( url, !url.isLocalFile() && !url.url().startsWith("beagle:?") );
+ TDEIO::StatJob * job = TDEIO::stat( url, !url.isLocalFile() && !url.url().startsWith("beagle:?") );
job->setWindow (window);
job->setDetails( details );
job->setSide( source );
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
return bJobOK;
}
@@ -350,10 +350,10 @@ bool NetAccess::statInternal( const KURL & url, int details, bool source,
bool NetAccess::delInternal( const KURL & url, TQWidget* window )
{
bJobOK = true; // success unless further error occurs
- KIO::Job * job = KIO::del( url );
+ TDEIO::Job * job = TDEIO::del( url );
job->setWindow (window);
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
return bJobOK;
}
@@ -362,10 +362,10 @@ bool NetAccess::mkdirInternal( const KURL & url, int permissions,
TQWidget* window )
{
bJobOK = true; // success unless further error occurs
- KIO::Job * job = KIO::mkdir( url, permissions );
+ TDEIO::Job * job = TDEIO::mkdir( url, permissions );
job->setWindow (window);
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
return bJobOK;
}
@@ -374,17 +374,17 @@ TQString NetAccess::mimetypeInternal( const KURL & url, TQWidget* window )
{
bJobOK = true; // success unless further error occurs
m_mimetype = TQString::fromLatin1("unknown");
- KIO::Job * job = KIO::mimetype( url );
+ TDEIO::Job * job = TDEIO::mimetype( url );
job->setWindow (window);
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
- connect( job, TQT_SIGNAL( mimetype (KIO::Job *, const TQString &) ),
- this, TQT_SLOT( slotMimetype (KIO::Job *, const TQString &) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
+ connect( job, TQT_SIGNAL( mimetype (TDEIO::Job *, const TQString &) ),
+ this, TQT_SLOT( slotMimetype (TDEIO::Job *, const TQString &) ) );
enter_loop();
return m_mimetype;
}
-void NetAccess::slotMimetype( KIO::Job *, const TQString & type )
+void NetAccess::slotMimetype( TDEIO::Job *, const TQString & type )
{
m_mimetype = type;
}
@@ -412,13 +412,13 @@ TQString NetAccess::fish_executeInternal(const KURL & url, const TQString comman
stream << int('X') << tempPathUrl << command;
- KIO::Job * job = KIO::special( tempPathUrl, packedArgs, true );
+ TDEIO::Job * job = TDEIO::special( tempPathUrl, packedArgs, true );
job->setWindow( window );
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
enter_loop();
- // since the KIO::special does not provide feedback we need to download the result
+ // since the TDEIO::special does not provide feedback we need to download the result
if( NetAccess::download( tempPathUrl, target, window ) )
{
TQFile resultFile( target );
@@ -459,21 +459,21 @@ bool NetAccess::synchronousRunInternal( Job* job, TQWidget* window, TQByteArray*
}
}
- connect( job, TQT_SIGNAL( result (KIO::Job *) ),
- this, TQT_SLOT( slotResult (KIO::Job *) ) );
+ connect( job, TQT_SIGNAL( result (TDEIO::Job *) ),
+ this, TQT_SLOT( slotResult (TDEIO::Job *) ) );
TQMetaObject *meta = job->metaObject();
- static const char dataSignal[] = "data(KIO::Job*,const " TQBYTEARRAY_OBJECT_NAME_STRING "&)";
+ static const char dataSignal[] = "data(TDEIO::Job*,const " TQBYTEARRAY_OBJECT_NAME_STRING "&)";
if ( meta->findSignal( dataSignal ) != -1 ) {
- connect( job, TQT_SIGNAL(data(KIO::Job*,const TQByteArray&)),
- this, TQT_SLOT(slotData(KIO::Job*,const TQByteArray&)) );
+ connect( job, TQT_SIGNAL(data(TDEIO::Job*,const TQByteArray&)),
+ this, TQT_SLOT(slotData(TDEIO::Job*,const TQByteArray&)) );
}
- static const char redirSignal[] = "redirection(KIO::Job*,const KURL&)";
+ static const char redirSignal[] = "redirection(TDEIO::Job*,const KURL&)";
if ( meta->findSignal( redirSignal ) != -1 ) {
- connect( job, TQT_SIGNAL(redirection(KIO::Job*,const KURL&)),
- this, TQT_SLOT(slotRedirection(KIO::Job*, const KURL&)) );
+ connect( job, TQT_SIGNAL(redirection(TDEIO::Job*,const KURL&)),
+ this, TQT_SLOT(slotRedirection(TDEIO::Job*, const KURL&)) );
}
enter_loop();
@@ -499,7 +499,7 @@ void NetAccess::enter_loop()
tqt_leave_modal(&dummy);
}
-void NetAccess::slotResult( KIO::Job * job )
+void NetAccess::slotResult( TDEIO::Job * job )
{
lastErrorCode = job->error();
bJobOK = !job->error();
@@ -509,8 +509,8 @@ void NetAccess::slotResult( KIO::Job * job )
lastErrorMsg = new TQString;
*lastErrorMsg = job->errorString();
}
- if ( job->isA("KIO::StatJob") )
- m_entry = static_cast<KIO::StatJob *>(job)->statResult();
+ if ( job->isA("TDEIO::StatJob") )
+ m_entry = static_cast<TDEIO::StatJob *>(job)->statResult();
if ( m_metaData )
*m_metaData = job->metaData();
@@ -518,7 +518,7 @@ void NetAccess::slotResult( KIO::Job * job )
tqApp->exit_loop();
}
-void NetAccess::slotData( KIO::Job*, const TQByteArray& data )
+void NetAccess::slotData( TDEIO::Job*, const TQByteArray& data )
{
if ( data.isEmpty() )
return;
@@ -528,7 +528,7 @@ void NetAccess::slotData( KIO::Job*, const TQByteArray& data )
std::memcpy( m_data.data() + offset, data.data(), data.size() );
}
-void NetAccess::slotRedirection( KIO::Job*, const KURL& url )
+void NetAccess::slotRedirection( TDEIO::Job*, const KURL& url )
{
m_url = url;
}
diff --git a/kio/kio/netaccess.h b/kio/kio/netaccess.h
index 110c18053..ba8988dfc 100644
--- a/kio/kio/netaccess.h
+++ b/kio/kio/netaccess.h
@@ -32,7 +32,7 @@ class TQWidget;
class KURL;
template<typename T, typename K> class TQMap;
-namespace KIO {
+namespace TDEIO {
class Job;
@@ -40,9 +40,9 @@ namespace KIO {
* Net Transparency.
*
* NetAccess allows you to do simple file operation (load, save,
- * copy, delete...) without working with KIO::Job directly.
- * Whereas a KIO::Job is asynchronous, meaning that the
- * developer has to connect slots for it, KIO::NetAccess provides
+ * copy, delete...) without working with TDEIO::Job directly.
+ * Whereas a TDEIO::Job is asynchronous, meaning that the
+ * developer has to connect slots for it, TDEIO::NetAccess provides
* synchronous downloads and uploads, as well as temporary file
* creation and removal. The functions appear to be blocking,
* but the Qt event loop continues running while the operations
@@ -83,12 +83,12 @@ public:
*
* \code
* TQString tmpFile;
- * if( KIO::NetAccess::download( u, tmpFile, window ) )
+ * if( TDEIO::NetAccess::download( u, tmpFile, window ) )
* {
* loadFile( tmpFile );
- * KIO::NetAccess::removeTempFile( tmpFile );
+ * TDEIO::NetAccess::removeTempFile( tmpFile );
* } else {
- * KMessageBox::error(this, KIO::NetAccess::lastErrorString() );
+ * KMessageBox::error(this, TDEIO::NetAccess::lastErrorString() );
* }
* \endcode
*
@@ -123,7 +123,7 @@ public:
/**
* Removes the specified file if and only if it was created
- * by KIO::NetAccess as a temporary file for a former download.
+ * by TDEIO::NetAccess as a temporary file for a former download.
*
* Note: This means that if you created your temporary with KTempFile,
* use KTempFile::unlink() or KTempFile::setAutoDelete() to have
@@ -165,7 +165,7 @@ public:
* Overwrite is false, so this will fail if @p target exists.
*
* This one takes two URLs and is a direct equivalent
- * of KIO::file_copy (not KIO::copy!).
+ * of TDEIO::file_copy (not TDEIO::copy!).
* It will be renamed file_copy in KDE4, so better use file_copy.
*
* @param src URL Referencing the file to upload.
@@ -188,13 +188,13 @@ public:
// KDE4: merge with above
/**
- * Full-fledged equivalent of KIO::file_copy
+ * Full-fledged equivalent of TDEIO::file_copy
*/
static bool file_copy( const KURL& src, const KURL& dest, int permissions=-1,
bool overwrite=false, bool resume=false, TQWidget* window = 0L );
/**
- * Full-fledged equivalent of KIO::file_move.
+ * Full-fledged equivalent of TDEIO::file_move.
* Moves or renames *one file*.
* @since 3.2
*/
@@ -207,7 +207,7 @@ public:
* Overwrite is false, so this will fail if @p target exists.
*
* This one takes two URLs and is a direct equivalent
- * of KIO::copy!.
+ * of TDEIO::copy!.
* This means that it can copy files and directories alike
* (it should have been named copy()).
*
@@ -234,14 +234,14 @@ public:
static bool dircopy( const KURL::List& src, const KURL& target, TQWidget* window = 0L );
/**
- * Full-fledged equivalent of KIO::move.
+ * Full-fledged equivalent of TDEIO::move.
* Moves or renames one file or directory.
* @since 3.2
*/
static bool move( const KURL& src, const KURL& target, TQWidget* window = 0L );
/**
- * Full-fledged equivalent of KIO::move.
+ * Full-fledged equivalent of TDEIO::move.
* Moves or renames a list of files or directories.
* @since 3.2
*/
@@ -253,7 +253,7 @@ public:
* @param url the URL we are testing
* @param source if true, we want to read from that URL.
* If false, we want to write to it.
- * IMPORTANT: see documentation for KIO::stat for more details about this.
+ * IMPORTANT: see documentation for TDEIO::stat for more details about this.
* @param window main window associated with this job. This is used to
* automatically cache and discard authentication information
* as needed. If NULL, authentication information will be
@@ -284,7 +284,7 @@ public:
/**
* Tests whether a URL exists and return information on it.
*
- * This is a convenience function for KIO::stat
+ * This is a convenience function for TDEIO::stat
* (it saves creating a slot and testing for the job result).
*
* @param url The URL we are testing.
@@ -297,17 +297,17 @@ public:
* again be prompted for passwords as needed.
* @return true if successful, false for failure
*/
- static bool stat(const KURL& url, KIO::UDSEntry & entry, TQWidget* window);
+ static bool stat(const KURL& url, TDEIO::UDSEntry & entry, TQWidget* window);
/**
* @deprecated. Use the function above instead.
*/
- static bool stat(const KURL& url, KIO::UDSEntry & entry) KDE_DEPRECATED;
+ static bool stat(const KURL& url, TDEIO::UDSEntry & entry) KDE_DEPRECATED;
/**
* Tries to map a local URL for the given URL.
*
- * This is a convenience function for KIO::stat + parsing the
+ * This is a convenience function for TDEIO::stat + parsing the
* resulting UDSEntry.
*
* @param url The URL we are testing.
@@ -325,7 +325,7 @@ public:
/**
* Deletes a file or a directory in a synchronous way.
*
- * This is a convenience function for KIO::del
+ * This is a convenience function for TDEIO::del
* (it saves creating a slot and testing for the job result).
*
* @param url The file or directory to delete.
@@ -349,7 +349,7 @@ public:
/**
* Creates a directory in a synchronous way.
*
- * This is a convenience function for @p KIO::mkdir
+ * This is a convenience function for @p TDEIO::mkdir
* (it saves creating a slot and testing for the job result).
*
* @param url The directory to create.
@@ -397,7 +397,7 @@ public:
* and after the function returns it will contain all the data fetched by this job.
*
* <code>
- * KIO::Job *job = KIO::get( url, false, false );
+ * TDEIO::Job *job = TDEIO::get( url, false, false );
* TQMap<TQString, TQString> metaData;
* metaData.insert( "PropagateHttpHeader", "true" );
* if ( NetAccess::synchronousRun( job, 0, &data, &url, &metaData ) ) {
@@ -435,7 +435,7 @@ public:
*
* Determines the mimetype of a given URL.
*
- * This is a convenience function for KIO::mimetype. You
+ * This is a convenience function for TDEIO::mimetype. You
* should call this only when really necessary.
* KMimeType::findByURL can determine extension a lot faster, but
* less reliably for remote files. Only when findByURL() returns
@@ -514,10 +514,10 @@ private:
friend class I_like_this_class;
private slots:
- void slotResult( KIO::Job * job );
- void slotMimetype( KIO::Job * job, const TQString & type );
- void slotData( KIO::Job*, const TQByteArray& );
- void slotRedirection( KIO::Job*, const KURL& );
+ void slotResult( TDEIO::Job * job );
+ void slotMimetype( TDEIO::Job * job, const TQString & type );
+ void slotData( TDEIO::Job*, const TQByteArray& );
+ void slotRedirection( TDEIO::Job*, const KURL& );
private:
UDSEntry m_entry;
diff --git a/kio/kio/observer.cpp b/kio/kio/observer.cpp
index 599703f9b..347db9df9 100644
--- a/kio/kio/observer.cpp
+++ b/kio/kio/observer.cpp
@@ -41,15 +41,15 @@
#include <ksslcertchain.h>
#include <klocale.h>
-using namespace KIO;
+using namespace TDEIO;
-template class TQIntDict<KIO::Job>;
+template class TQIntDict<TDEIO::Job>;
Observer * Observer::s_pObserver = 0L;
const int KDEBUG_OBSERVER = 7007; // Should be 7028
-Observer::Observer() : DCOPObject("KIO::Observer")
+Observer::Observer() : DCOPObject("TDEIO::Observer")
{
// Register app as able to receive DCOP messages
if (kapp && !kapp->dcopClient()->isAttached())
@@ -78,7 +78,7 @@ Observer::Observer() : DCOPObject("KIO::Observer")
m_uiserver = new UIServer_stub( "kio_uiserver", "UIServer" );
}
-int Observer::newJob( KIO::Job * job, bool showProgress )
+int Observer::newJob( TDEIO::Job * job, bool showProgress )
{
// Tell the UI Server about this new job, and give it the application id
// at the same time
@@ -98,7 +98,7 @@ void Observer::jobFinished( int progressId )
void Observer::killJob( int progressId )
{
- KIO::Job * job = m_dctJobs[ progressId ];
+ TDEIO::Job * job = m_dctJobs[ progressId ];
if (!job)
{
kdWarning() << "Can't find job to kill ! There is no job with progressId=" << progressId << " in this process" << endl;
@@ -109,111 +109,111 @@ void Observer::killJob( int progressId )
MetaData Observer::metadata( int progressId )
{
- KIO::Job * job = m_dctJobs[ progressId ];
+ TDEIO::Job * job = m_dctJobs[ progressId ];
assert(job);
return job->metaData();
}
-void Observer::slotTotalSize( KIO::Job* job, KIO::filesize_t size )
+void Observer::slotTotalSize( TDEIO::Job* job, TDEIO::filesize_t size )
{
- //kdDebug(KDEBUG_OBSERVER) << "** Observer::slotTotalSize " << job << " " << KIO::number(size) << endl;
+ //kdDebug(KDEBUG_OBSERVER) << "** Observer::slotTotalSize " << job << " " << TDEIO::number(size) << endl;
m_uiserver->totalSize64( job->progressId(), size );
}
-void Observer::slotTotalFiles( KIO::Job* job, unsigned long files )
+void Observer::slotTotalFiles( TDEIO::Job* job, unsigned long files )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotTotalFiles " << job << " " << files << endl;
m_uiserver->totalFiles( job->progressId(), files );
}
-void Observer::slotTotalDirs( KIO::Job* job, unsigned long dirs )
+void Observer::slotTotalDirs( TDEIO::Job* job, unsigned long dirs )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotTotalDirs " << job << " " << dirs << endl;
m_uiserver->totalDirs( job->progressId(), dirs );
}
-void Observer::slotProcessedSize( KIO::Job* job, KIO::filesize_t size )
+void Observer::slotProcessedSize( TDEIO::Job* job, TDEIO::filesize_t size )
{
- //kdDebug(KDEBUG_OBSERVER) << "** Observer::slotProcessedSize " << job << " " << job->progressId() << " " << KIO::number(size) << endl;
+ //kdDebug(KDEBUG_OBSERVER) << "** Observer::slotProcessedSize " << job << " " << job->progressId() << " " << TDEIO::number(size) << endl;
m_uiserver->processedSize64( job->progressId(), size );
}
-void Observer::slotProcessedFiles( KIO::Job* job, unsigned long files )
+void Observer::slotProcessedFiles( TDEIO::Job* job, unsigned long files )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotProcessedFiles " << job << " " << files << endl;
m_uiserver->processedFiles( job->progressId(), files );
}
-void Observer::slotProcessedDirs( KIO::Job* job, unsigned long dirs )
+void Observer::slotProcessedDirs( TDEIO::Job* job, unsigned long dirs )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotProcessedDirs " << job << " " << dirs << endl;
m_uiserver->processedDirs( job->progressId(), dirs );
}
-void Observer::slotSpeed( KIO::Job* job, unsigned long speed )
+void Observer::slotSpeed( TDEIO::Job* job, unsigned long speed )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotSpeed " << job << " " << speed << endl;
m_uiserver->speed( job->progressId(), speed );
}
-void Observer::slotPercent( KIO::Job* job, unsigned long percent )
+void Observer::slotPercent( TDEIO::Job* job, unsigned long percent )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotPercent " << job << " " << percent << endl;
m_uiserver->percent( job->progressId(), percent );
}
-void Observer::slotInfoMessage( KIO::Job* job, const TQString & msg )
+void Observer::slotInfoMessage( TDEIO::Job* job, const TQString & msg )
{
m_uiserver->infoMessage( job->progressId(), msg );
}
-void Observer::slotCopying( KIO::Job* job, const KURL& from, const KURL& to )
+void Observer::slotCopying( TDEIO::Job* job, const KURL& from, const KURL& to )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotCopying " << job << " " << from.url() << " " << to.url() << endl;
m_uiserver->copying( job->progressId(), from, to );
}
-void Observer::slotMoving( KIO::Job* job, const KURL& from, const KURL& to )
+void Observer::slotMoving( TDEIO::Job* job, const KURL& from, const KURL& to )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotMoving " << job << " " << from.url() << " " << to.url() << endl;
m_uiserver->moving( job->progressId(), from, to );
}
-void Observer::slotDeleting( KIO::Job* job, const KURL& url )
+void Observer::slotDeleting( TDEIO::Job* job, const KURL& url )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotDeleting " << job << " " << url.url() << endl;
m_uiserver->deleting( job->progressId(), url );
}
-void Observer::slotTransferring( KIO::Job* job, const KURL& url )
+void Observer::slotTransferring( TDEIO::Job* job, const KURL& url )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotTransferring " << job << " " << url.url() << endl;
m_uiserver->transferring( job->progressId(), url );
}
-void Observer::slotCreatingDir( KIO::Job* job, const KURL& dir )
+void Observer::slotCreatingDir( TDEIO::Job* job, const KURL& dir )
{
//kdDebug(KDEBUG_OBSERVER) << "** Observer::slotCreatingDir " << job << " " << dir.url() << endl;
m_uiserver->creatingDir( job->progressId(), dir );
}
-void Observer::slotCanResume( KIO::Job* job, KIO::filesize_t offset )
+void Observer::slotCanResume( TDEIO::Job* job, TDEIO::filesize_t offset )
{
- //kdDebug(KDEBUG_OBSERVER) << "** Observer::slotCanResume " << job << " " << KIO::number(offset) << endl;
+ //kdDebug(KDEBUG_OBSERVER) << "** Observer::slotCanResume " << job << " " << TDEIO::number(offset) << endl;
m_uiserver->canResume64( job->progressId(), offset );
}
-void Observer::stating( KIO::Job* job, const KURL& url )
+void Observer::stating( TDEIO::Job* job, const KURL& url )
{
m_uiserver->stating( job->progressId(), url );
}
-void Observer::mounting( KIO::Job* job, const TQString & dev, const TQString & point )
+void Observer::mounting( TDEIO::Job* job, const TQString & dev, const TQString & point )
{
m_uiserver->mounting( job->progressId(), dev, point );
}
-void Observer::unmounting( KIO::Job* job, const TQString & point )
+void Observer::unmounting( TDEIO::Job* job, const TQString & point )
{
m_uiserver->unmounting( job->progressId(), point );
}
@@ -235,11 +235,11 @@ bool Observer::openPassDlg( const TQString& prompt, TQString& user,
return result;
}
-bool Observer::openPassDlg( KIO::AuthInfo& info )
+bool Observer::openPassDlg( TDEIO::AuthInfo& info )
{
kdDebug(KDEBUG_OBSERVER) << "Observer::openPassDlg: User= " << info.username
<< ", Message= " << info.prompt << endl;
- int result = KIO::PasswordDialog::getNameAndPassword( info.username, info.password,
+ int result = TDEIO::PasswordDialog::getNameAndPassword( info.username, info.password,
&info.keepPassword, info.prompt,
info.readOnly, info.caption,
info.comment, info.commentLabel );
@@ -264,39 +264,39 @@ int Observer::messageBox( int progressId, int type, const TQString &text,
{
kdDebug() << "Observer::messageBox " << type << " " << text << " - " << caption << endl;
int result = -1;
- KConfig *config = new KConfig("kioslaverc");
+ TDEConfig *config = new TDEConfig("kioslaverc");
KMessageBox::setDontShowAskAgainConfig(config);
switch (type) {
- case KIO::SlaveBase::QuestionYesNo:
+ case TDEIO::SlaveBase::QuestionYesNo:
result = KMessageBox::questionYesNo( 0L, // parent ?
text, caption, buttonYes, buttonNo, dontAskAgainName );
break;
- case KIO::SlaveBase::WarningYesNo:
+ case TDEIO::SlaveBase::WarningYesNo:
result = KMessageBox::warningYesNo( 0L, // parent ?
text, caption, buttonYes, buttonNo, dontAskAgainName );
break;
- case KIO::SlaveBase::WarningContinueCancel:
+ case TDEIO::SlaveBase::WarningContinueCancel:
result = KMessageBox::warningContinueCancel( 0L, // parent ?
text, caption, buttonYes, dontAskAgainName );
break;
- case KIO::SlaveBase::WarningYesNoCancel:
+ case TDEIO::SlaveBase::WarningYesNoCancel:
result = KMessageBox::warningYesNoCancel( 0L, // parent ?
text, caption, buttonYes, buttonNo, dontAskAgainName );
break;
- case KIO::SlaveBase::Information:
+ case TDEIO::SlaveBase::Information:
KMessageBox::information( 0L, // parent ?
text, caption, dontAskAgainName );
result = 1; // whatever
break;
- case KIO::SlaveBase::SSLMessageBox:
+ case TDEIO::SlaveBase::SSLMessageBox:
{
TQCString observerAppId = caption.utf8(); // hack, see slaveinterface.cpp
- // Contact the object "KIO::Observer" in the application <appId>
+ // Contact the object "TDEIO::Observer" in the application <appId>
// Yes, this could be the same application we are, but not necessarily.
- Observer_stub observer( observerAppId, "KIO::Observer" );
+ Observer_stub observer( observerAppId, "TDEIO::Observer" );
- KIO::MetaData meta = observer.metadata( progressId );
+ TDEIO::MetaData meta = observer.metadata( progressId );
KSSLInfoDlg *kid = new KSSLInfoDlg(meta["ssl_in_use"].upper()=="TRUE", 0L /*parent?*/, 0L, true);
KSSLCertificate *x = KSSLCertificate::fromString(meta["ssl_peer_certificate"].local8Bit());
if (x) {
@@ -367,12 +367,12 @@ int Observer::messageBox( int progressId, int type, const TQString &text,
#endif
}
-RenameDlg_Result Observer::open_RenameDlg( KIO::Job* job,
+RenameDlg_Result Observer::open_RenameDlg( TDEIO::Job* job,
const TQString & caption,
const TQString& src, const TQString & dest,
RenameDlg_Mode mode, TQString& newDest,
- KIO::filesize_t sizeSrc,
- KIO::filesize_t sizeDest,
+ TDEIO::filesize_t sizeSrc,
+ TDEIO::filesize_t sizeDest,
time_t ctimeSrc,
time_t ctimeDest,
time_t mtimeSrc,
@@ -387,7 +387,7 @@ RenameDlg_Result Observer::open_RenameDlg( KIO::Job* job,
m_uiserver->setJobVisible( job->progressId(), false );
// We now do it in process => KDE4: move this code out of Observer (back to job.cpp), so that
// opening the rename dialog doesn't start uiserver for nothing if progressId=0 (e.g. F2 in konq)
- RenameDlg_Result res = KIO::open_RenameDlg( caption, src, dest, mode,
+ RenameDlg_Result res = TDEIO::open_RenameDlg( caption, src, dest, mode,
newDest, sizeSrc, sizeDest,
ctimeSrc, ctimeDest, mtimeSrc,
mtimeDest );
@@ -396,7 +396,7 @@ RenameDlg_Result Observer::open_RenameDlg( KIO::Job* job,
return res;
}
-SkipDlg_Result Observer::open_SkipDlg( KIO::Job* job,
+SkipDlg_Result Observer::open_SkipDlg( TDEIO::Job* job,
bool _multi,
const TQString& _error_text )
{
@@ -404,8 +404,8 @@ SkipDlg_Result Observer::open_SkipDlg( KIO::Job* job,
// Hide existing dialog box if any
if (job && job->progressId())
m_uiserver->setJobVisible( job->progressId(), false );
- // We now do it in process. So this method is a useless wrapper around KIO::open_RenameDlg.
- SkipDlg_Result res = KIO::open_SkipDlg( _multi, _error_text );
+ // We now do it in process. So this method is a useless wrapper around TDEIO::open_RenameDlg.
+ SkipDlg_Result res = TDEIO::open_SkipDlg( _multi, _error_text );
if (job && job->progressId())
m_uiserver->setJobVisible( job->progressId(), true );
return res;
diff --git a/kio/kio/observer.h b/kio/kio/observer.h
index 94b8cede9..8c20e6f92 100644
--- a/kio/kio/observer.h
+++ b/kio/kio/observer.h
@@ -32,12 +32,12 @@
class UIServer_stub;
class KURL;
-namespace KIO {
+namespace TDEIO {
class Job;
}
/**
- * Observer for KIO::Job progress information.
+ * Observer for TDEIO::Job progress information.
*
* This class, of which there is always only one instance,
* "observes" what jobs do and forwards this information
@@ -47,9 +47,9 @@ namespace KIO {
* kill method when the user presses Cancel.
*
* Usually jobs are automatically registered by the
- * KIO::Scheduler, so you do not have to care about that.
+ * TDEIO::Scheduler, so you do not have to care about that.
*
- * @short Observer for KIO::Job progress information
+ * @short Observer for TDEIO::Job progress information
* @author David Faure <faure@kde.org>
*/
class KIO_EXPORT Observer : public TQObject, public DCOPObject {
@@ -75,7 +75,7 @@ public:
* @param showProgress true to show progress, false otherwise
* @return the progress ID assigned by the UI Server to the Job.
*/
- int newJob( KIO::Job * job, bool showProgress );
+ int newJob( TDEIO::Job * job, bool showProgress );
/**
* Called by the job destructor, to tell the UI Server that
@@ -85,7 +85,7 @@ public:
void jobFinished( int progressId );
/**
- * @deprecated use KIO::AutoInfo
+ * @deprecated use TDEIO::AutoInfo
*/
bool openPassDlg( const TQString& prompt, TQString& user, TQString& pass,
bool readOnly );
@@ -95,10 +95,10 @@ public:
* @param info the authentication information
* @return true if successful ("ok" clicked), false otherwise
*/
- bool openPassDlg( KIO::AuthInfo& info );
+ bool openPassDlg( TDEIO::AuthInfo& info );
/**
- * Popup a message box. See KIO::SlaveBase.
+ * Popup a message box. See TDEIO::SlaveBase.
* This doesn't use DCOP anymore, it shows the dialog in the application's process.
* Otherwise, other apps would block when trying to communicate with UIServer.
* @param progressId the progress ID of the job, as returned by newJob()
@@ -112,7 +112,7 @@ public:
const TQString &buttonYes, const TQString &buttonNo );
/**
- * Popup a message box. See KIO::SlaveBase.
+ * Popup a message box. See TDEIO::SlaveBase.
* This doesn't use DCOP anymore, it shows the dialog in the application's process.
* Otherwise, other apps would block when trying to communicate with UIServer.
* @param progressId the progress ID of the job, as returned by newJob()
@@ -132,13 +132,13 @@ public:
* @internal
* See renamedlg.h
*/
- KIO::RenameDlg_Result open_RenameDlg( KIO::Job * job,
+ TDEIO::RenameDlg_Result open_RenameDlg( TDEIO::Job * job,
const TQString & caption,
const TQString& src, const TQString & dest,
- KIO::RenameDlg_Mode mode,
+ TDEIO::RenameDlg_Mode mode,
TQString& newDest,
- KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
- KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
+ TDEIO::filesize_t sizeSrc = (TDEIO::filesize_t) -1,
+ TDEIO::filesize_t sizeDest = (TDEIO::filesize_t) -1,
time_t ctimeSrc = (time_t) -1,
time_t ctimeDest = (time_t) -1,
time_t mtimeSrc = (time_t) -1,
@@ -149,7 +149,7 @@ public:
* @internal
* See skipdlg.h
*/
- KIO::SkipDlg_Result open_SkipDlg( KIO::Job * job,
+ TDEIO::SkipDlg_Result open_SkipDlg( TDEIO::Job * job,
bool multi,
const TQString & error_text );
@@ -164,7 +164,7 @@ k_dcop:
* Called by the UI Server (using DCOP) to get all the metadata of the job
* @param progressId the progress IDof the job, as returned by newJob()
*/
- KIO::MetaData metadata( int progressId );
+ TDEIO::MetaData metadata( int progressId );
protected:
@@ -174,35 +174,35 @@ protected:
UIServer_stub * m_uiserver;
- TQIntDict< KIO::Job > m_dctJobs;
+ TQIntDict< TDEIO::Job > m_dctJobs;
public slots:
- void slotTotalSize( KIO::Job*, KIO::filesize_t size );
- void slotTotalFiles( KIO::Job*, unsigned long files );
- void slotTotalDirs( KIO::Job*, unsigned long dirs );
+ void slotTotalSize( TDEIO::Job*, TDEIO::filesize_t size );
+ void slotTotalFiles( TDEIO::Job*, unsigned long files );
+ void slotTotalDirs( TDEIO::Job*, unsigned long dirs );
- void slotProcessedSize( KIO::Job*, KIO::filesize_t size );
- void slotProcessedFiles( KIO::Job*, unsigned long files );
- void slotProcessedDirs( KIO::Job*, unsigned long dirs );
+ void slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t size );
+ void slotProcessedFiles( TDEIO::Job*, unsigned long files );
+ void slotProcessedDirs( TDEIO::Job*, unsigned long dirs );
- void slotSpeed( KIO::Job*, unsigned long speed );
- void slotPercent( KIO::Job*, unsigned long percent );
- void slotInfoMessage( KIO::Job*, const TQString & msg );
+ void slotSpeed( TDEIO::Job*, unsigned long speed );
+ void slotPercent( TDEIO::Job*, unsigned long percent );
+ void slotInfoMessage( TDEIO::Job*, const TQString & msg );
- void slotCopying( KIO::Job*, const KURL& from, const KURL& to );
- void slotMoving( KIO::Job*, const KURL& from, const KURL& to );
- void slotDeleting( KIO::Job*, const KURL& url );
+ void slotCopying( TDEIO::Job*, const KURL& from, const KURL& to );
+ void slotMoving( TDEIO::Job*, const KURL& from, const KURL& to );
+ void slotDeleting( TDEIO::Job*, const KURL& url );
/// @since 3.1
- void slotTransferring( KIO::Job*, const KURL& url );
- void slotCreatingDir( KIO::Job*, const KURL& dir );
+ void slotTransferring( TDEIO::Job*, const KURL& url );
+ void slotCreatingDir( TDEIO::Job*, const KURL& dir );
// currently unused
- void slotCanResume( KIO::Job*, KIO::filesize_t offset );
+ void slotCanResume( TDEIO::Job*, TDEIO::filesize_t offset );
public:
- void stating( KIO::Job*, const KURL& url );
- void mounting( KIO::Job*, const TQString & dev, const TQString & point );
- void unmounting( KIO::Job*, const TQString & point );
+ void stating( TDEIO::Job*, const KURL& url );
+ void mounting( TDEIO::Job*, const TQString & dev, const TQString & point );
+ void unmounting( TDEIO::Job*, const TQString & point );
protected:
virtual void virtual_hook( int id, void* data );
private:
diff --git a/kio/kio/passdlg.cpp b/kio/kio/passdlg.cpp
index 28d32d377..1b5679028 100644
--- a/kio/kio/passdlg.cpp
+++ b/kio/kio/passdlg.cpp
@@ -33,7 +33,7 @@
#include <klocale.h>
#include <kstandarddirs.h>
-using namespace KIO;
+using namespace TDEIO;
struct PasswordDialog::PasswordDialogPrivate
{
@@ -74,8 +74,8 @@ void PasswordDialog::init( const TQString& prompt, const TQString& user,
d->nRow = 0;
d->keepCheckBox = 0;
- KConfig* cfg = TDEGlobal::config();
- KConfigGroupSaver saver( cfg, "Passwords" );
+ TDEConfig* cfg = TDEGlobal::config();
+ TDEConfigGroupSaver saver( cfg, "Passwords" );
d->layout = new TQGridLayout( main, 9, 3, spacingHint(), marginHint());
d->layout->addColSpacing(1, 5);
diff --git a/kio/kio/passdlg.h b/kio/kio/passdlg.h
index bbd811328..b071ddef0 100644
--- a/kio/kio/passdlg.h
+++ b/kio/kio/passdlg.h
@@ -24,7 +24,7 @@
class TQGridLayout;
-namespace KIO {
+namespace TDEIO {
/**
* A dialog for requesting a login and a password from the end user.
diff --git a/kio/kio/paste.cpp b/kio/kio/paste.cpp
index f39aa0746..55102c5ed 100644
--- a/kio/kio/paste.cpp
+++ b/kio/kio/paste.cpp
@@ -54,10 +54,10 @@ static KURL getNewFileName( const KURL &u, const TQString& text )
KURL myurl(u);
myurl.addPath( file );
- if (KIO::NetAccess::exists(myurl, false, 0))
+ if (TDEIO::NetAccess::exists(myurl, false, 0))
{
kdDebug(7007) << "Paste will overwrite file. Prompting..." << endl;
- KIO::RenameDlg_Result res = KIO::R_OVERWRITE;
+ TDEIO::RenameDlg_Result res = TDEIO::R_OVERWRITE;
TQString newPath;
// Ask confirmation about resuming previous transfer
@@ -65,13 +65,13 @@ static KURL getNewFileName( const KURL &u, const TQString& text )
0L, i18n("File Already Exists"),
u.pathOrURL(),
myurl.pathOrURL(),
- (KIO::RenameDlg_Mode) (KIO::M_OVERWRITE | KIO::M_SINGLE), newPath);
+ (TDEIO::RenameDlg_Mode) (TDEIO::M_OVERWRITE | TDEIO::M_SINGLE), newPath);
- if ( res == KIO::R_RENAME )
+ if ( res == TDEIO::R_RENAME )
{
myurl = newPath;
}
- else if ( res == KIO::R_CANCEL )
+ else if ( res == TDEIO::R_CANCEL )
{
return KURL();
}
@@ -81,7 +81,7 @@ static KURL getNewFileName( const KURL &u, const TQString& text )
}
// The finaly step: write _data to tempfile and move it to neW_url
-static KIO::CopyJob* pasteDataAsyncTo( const KURL& new_url, const TQByteArray& _data )
+static TDEIO::CopyJob* pasteDataAsyncTo( const KURL& new_url, const TQByteArray& _data )
{
KTempFile tempFile;
tempFile.dataStream()->writeRawBytes( _data.data(), _data.size() );
@@ -90,11 +90,11 @@ static KIO::CopyJob* pasteDataAsyncTo( const KURL& new_url, const TQByteArray& _
KURL orig_url;
orig_url.setPath(tempFile.name());
- return KIO::move( orig_url, new_url );
+ return TDEIO::move( orig_url, new_url );
}
#ifndef QT_NO_MIMECLIPBOARD
-static KIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data,
+static TDEIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data,
const TQValueVector<TQCString>& formats,
const TQString& text,
TQWidget* widget,
@@ -113,7 +113,7 @@ static KIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data,
TQString dialogText( text );
if ( dialogText.isEmpty() )
dialogText = i18n( "Filename for clipboard content:" );
- KIO::PasteDialog dlg( TQString::null, dialogText, TQString::null, formatLabels, widget, clipboard );
+ TDEIO::PasteDialog dlg( TQString::null, dialogText, TQString::null, formatLabels, widget, clipboard );
if ( dlg.exec() != KDialogBase::Accepted )
return 0;
@@ -143,7 +143,7 @@ static KIO::CopyJob* chooseAndPaste( const KURL& u, TQMimeSource* data,
#endif
// KDE4: remove
-KIO_EXPORT bool KIO::isClipboardEmpty()
+KIO_EXPORT bool TDEIO::isClipboardEmpty()
{
#ifndef QT_NO_MIMECLIPBOARD
TQMimeSource *data = TQApplication::clipboard()->data();
@@ -161,7 +161,7 @@ KIO_EXPORT bool KIO::isClipboardEmpty()
#ifndef QT_NO_MIMECLIPBOARD
// The main method for dropping
-KIO::CopyJob* KIO::pasteMimeSource( TQMimeSource* data, const KURL& dest_url,
+TDEIO::CopyJob* TDEIO::pasteMimeSource( TQMimeSource* data, const KURL& dest_url,
const TQString& dialogText, TQWidget* widget, bool clipboard )
{
TQByteArray ba;
@@ -207,7 +207,7 @@ KIO::CopyJob* KIO::pasteMimeSource( TQMimeSource* data, const KURL& dest_url,
#endif
// The main method for pasting
-KIO_EXPORT KIO::Job *KIO::pasteClipboard( const KURL& dest_url, bool move )
+KIO_EXPORT TDEIO::Job *TDEIO::pasteClipboard( const KURL& dest_url, bool move )
{
if ( !dest_url.isValid() ) {
KMessageBox::error( 0L, i18n( "Malformed URL\n%1" ).arg( dest_url.url() ) );
@@ -225,11 +225,11 @@ KIO_EXPORT KIO::Job *KIO::pasteClipboard( const KURL& dest_url, bool move )
return 0;
}
- KIO::Job *res = 0;
+ TDEIO::Job *res = 0;
if ( move )
- res = KIO::move( urls, dest_url );
+ res = TDEIO::move( urls, dest_url );
else
- res = KIO::copy( urls, dest_url );
+ res = TDEIO::copy( urls, dest_url );
// If moving, erase the clipboard contents, the original files don't exist anymore
if ( move )
@@ -256,10 +256,10 @@ KIO_EXPORT KIO::Job *KIO::pasteClipboard( const KURL& dest_url, bool move )
}
-KIO_EXPORT void KIO::pasteData( const KURL& u, const TQByteArray& _data )
+KIO_EXPORT void TDEIO::pasteData( const KURL& u, const TQByteArray& _data )
{
KURL new_url = getNewFileName( u, TQString::null );
- // We could use KIO::put here, but that would require a class
+ // We could use TDEIO::put here, but that would require a class
// for the slotData call. With NetAccess, we can do a synchronous call.
if (new_url.isEmpty())
@@ -270,15 +270,15 @@ KIO_EXPORT void KIO::pasteData( const KURL& u, const TQByteArray& _data )
tempFile.dataStream()->writeRawBytes( _data.data(), _data.size() );
tempFile.close();
- (void) KIO::NetAccess::upload( tempFile.name(), new_url, 0 );
+ (void) TDEIO::NetAccess::upload( tempFile.name(), new_url, 0 );
}
-KIO_EXPORT KIO::CopyJob* KIO::pasteDataAsync( const KURL& u, const TQByteArray& _data )
+KIO_EXPORT TDEIO::CopyJob* TDEIO::pasteDataAsync( const KURL& u, const TQByteArray& _data )
{
return pasteDataAsync( u, _data, TQString::null );
}
-KIO_EXPORT KIO::CopyJob* KIO::pasteDataAsync( const KURL& u, const TQByteArray& _data, const TQString& text )
+KIO_EXPORT TDEIO::CopyJob* TDEIO::pasteDataAsync( const KURL& u, const TQByteArray& _data, const TQString& text )
{
KURL new_url = getNewFileName( u, text );
@@ -288,7 +288,7 @@ KIO_EXPORT KIO::CopyJob* KIO::pasteDataAsync( const KURL& u, const TQByteArray&
return pasteDataAsyncTo( new_url, _data );
}
-KIO_EXPORT TQString KIO::pasteActionText()
+KIO_EXPORT TQString TDEIO::pasteActionText()
{
TQMimeSource *data = TQApplication::clipboard()->data();
KURL::List urls;
diff --git a/kio/kio/paste.h b/kio/kio/paste.h
index 3fad2c8b6..36befcd65 100644
--- a/kio/kio/paste.h
+++ b/kio/kio/paste.h
@@ -27,7 +27,7 @@ class TQMimeSource;
// KDE4 TODO pass a parent widget to all methods that will display a message box
-namespace KIO {
+namespace TDEIO {
class Job;
class CopyJob;
diff --git a/kio/kio/pastedialog.cpp b/kio/kio/pastedialog.cpp
index 480eaaba8..0252baff1 100644
--- a/kio/kio/pastedialog.cpp
+++ b/kio/kio/pastedialog.cpp
@@ -28,7 +28,7 @@
#include <tqapplication.h>
#include <tqclipboard.h>
-KIO::PasteDialog::PasteDialog( const TQString &caption, const TQString &label,
+TDEIO::PasteDialog::PasteDialog( const TQString &caption, const TQString &label,
const TQString &value, const TQStringList& items,
TQWidget *parent,
bool clipboard )
@@ -66,17 +66,17 @@ KIO::PasteDialog::PasteDialog( const TQString &caption, const TQString &label,
this, TQT_SLOT( slotClipboardDataChanged() ) );
}
-void KIO::PasteDialog::slotClipboardDataChanged()
+void TDEIO::PasteDialog::slotClipboardDataChanged()
{
m_clipboardChanged = true;
}
-TQString KIO::PasteDialog::lineEditText() const
+TQString TDEIO::PasteDialog::lineEditText() const
{
return m_lineEdit->text();
}
-int KIO::PasteDialog::comboItem() const
+int TDEIO::PasteDialog::comboItem() const
{
return m_comboBox->currentItem();
}
diff --git a/kio/kio/pastedialog.h b/kio/kio/pastedialog.h
index 4f8b79b2e..2e7bdfda1 100644
--- a/kio/kio/pastedialog.h
+++ b/kio/kio/pastedialog.h
@@ -25,7 +25,7 @@ class TQComboBox;
class KLineEdit;
class TQLabel;
-namespace KIO {
+namespace TDEIO {
/**
* @internal
diff --git a/kio/kio/previewjob.cpp b/kio/kio/previewjob.cpp
index c266947f3..de4800ab1 100644
--- a/kio/kio/previewjob.cpp
+++ b/kio/kio/previewjob.cpp
@@ -53,16 +53,16 @@
#include "previewjob.moc"
-namespace KIO { struct PreviewItem; }
-using namespace KIO;
+namespace TDEIO { struct PreviewItem; }
+using namespace TDEIO;
-struct KIO::PreviewItem
+struct TDEIO::PreviewItem
{
KFileItem *item;
KService::Ptr plugin;
};
-struct KIO::PreviewJobPrivate
+struct TDEIO::PreviewJobPrivate
{
enum { STATE_STATORIG, // if the thumbnail exists
STATE_GETORIG, // if we create it
@@ -118,7 +118,7 @@ struct KIO::PreviewJobPrivate
PreviewJob::PreviewJob( const KFileItemList &items, int width, int height,
int iconSize, int iconAlpha, bool scale, bool save,
const TQStringList *enabledPlugins, bool deleteItems )
- : KIO::Job( false /* no GUI */ )
+ : TDEIO::Job( false /* no GUI */ )
{
d = new PreviewJobPrivate;
d->tOrig = 0;
@@ -244,8 +244,8 @@ void PreviewJob::startPreview()
}
// Read configuration value for the maximum allowed size
- KConfig * config = TDEGlobal::config();
- KConfigGroupSaver cgs( config, "PreviewSettings" );
+ TDEConfig * config = TDEGlobal::config();
+ TDEConfigGroupSaver cgs( config, "PreviewSettings" );
d->maximumSize = config->readNumEntry( "MaximumSize", 1024*1024 /* 1MB */ );
if (bNeedCache)
@@ -306,13 +306,13 @@ void PreviewJob::determineNextFile()
d->currentItem = d->items.first();
d->succeeded = false;
d->items.remove(d->items.begin());
- KIO::Job *job = KIO::stat( d->currentItem.item->url(), false );
+ TDEIO::Job *job = TDEIO::stat( d->currentItem.item->url(), false );
job->addMetaData( "no-auth-prompt", "true" );
addSubjob(job);
}
}
-void PreviewJob::slotResult( KIO::Job *job )
+void PreviewJob::slotResult( TDEIO::Job *job )
{
subjobs.remove( job );
Q_ASSERT ( subjobs.isEmpty() ); // We should have only one job at a time ...
@@ -326,18 +326,18 @@ void PreviewJob::slotResult( KIO::Job *job )
determineNextFile();
return;
}
- KIO::UDSEntry entry = ((KIO::StatJob*)job)->statResult();
- KIO::UDSEntry::ConstIterator it = entry.begin();
+ TDEIO::UDSEntry entry = ((TDEIO::StatJob*)job)->statResult();
+ TDEIO::UDSEntry::ConstIterator it = entry.begin();
d->tOrig = 0;
int found = 0;
for( ; it != entry.end() && found < 2; it++ )
{
- if ( (*it).m_uds == KIO::UDS_MODIFICATION_TIME )
+ if ( (*it).m_uds == TDEIO::UDS_MODIFICATION_TIME )
{
d->tOrig = (time_t)((*it).m_long);
found++;
}
- else if ( (*it).m_uds == KIO::UDS_SIZE )
+ else if ( (*it).m_uds == TDEIO::UDS_SIZE )
{
if ( filesize_t((*it).m_long) > d->maximumSize &&
!d->ignoreMaximumSize &&
@@ -372,7 +372,7 @@ void PreviewJob::slotResult( KIO::Job *job )
return;
}
- createThumbnail( static_cast<KIO::FileCopyJob*>(job)->destURL().path() );
+ createThumbnail( static_cast<TDEIO::FileCopyJob*>(job)->destURL().path() );
return;
}
case PreviewJobPrivate::STATE_CREATETHUMB:
@@ -436,7 +436,7 @@ void PreviewJob::getOrCreateThumbnail()
KURL localURL;
localURL.setPath( d->tempName = localFile.name() );
const KURL currentURL = item->url();
- KIO::Job * job = KIO::file_copy( currentURL, localURL, -1, true,
+ TDEIO::Job * job = TDEIO::file_copy( currentURL, localURL, -1, true,
false, false /* No GUI */ );
job->addMetaData("thumbnail","1");
addSubjob(job);
@@ -450,9 +450,9 @@ void PreviewJob::createThumbnail( TQString pixPath )
KURL thumbURL;
thumbURL.setProtocol("thumbnail");
thumbURL.setPath(pixPath);
- KIO::TransferJob *job = KIO::get(thumbURL, false, false);
+ TDEIO::TransferJob *job = TDEIO::get(thumbURL, false, false);
addSubjob(job);
- connect(job, TQT_SIGNAL(data(KIO::Job *, const TQByteArray &)), TQT_SLOT(slotThumbData(KIO::Job *, const TQByteArray &)));
+ connect(job, TQT_SIGNAL(data(TDEIO::Job *, const TQByteArray &)), TQT_SLOT(slotThumbData(TDEIO::Job *, const TQByteArray &)));
bool save = d->bSave && d->currentItem.plugin->property("CacheThumbnail").toBool();
job->addMetaData("mimeType", d->currentItem.item->mimetype());
job->addMetaData("width", TQString().setNum(save ? d->cacheWidth : d->width));
@@ -486,7 +486,7 @@ void PreviewJob::createThumbnail( TQString pixPath )
#endif
}
-void PreviewJob::slotThumbData(KIO::Job *, const TQByteArray &data)
+void PreviewJob::slotThumbData(TDEIO::Job *, const TQByteArray &data)
{
bool save = d->bSave &&
d->currentItem.plugin->property("CacheThumbnail").toBool() &&
@@ -573,7 +573,7 @@ void PreviewJob::kill( bool quietly )
Job::kill( quietly );
}
-PreviewJob *KIO::filePreview( const KFileItemList &items, int width, int height,
+PreviewJob *TDEIO::filePreview( const KFileItemList &items, int width, int height,
int iconSize, int iconAlpha, bool scale, bool save,
const TQStringList *enabledPlugins )
{
@@ -581,7 +581,7 @@ PreviewJob *KIO::filePreview( const KFileItemList &items, int width, int height,
scale, save, enabledPlugins);
}
-PreviewJob *KIO::filePreview( const KURL::List &items, int width, int height,
+PreviewJob *TDEIO::filePreview( const KURL::List &items, int width, int height,
int iconSize, int iconAlpha, bool scale, bool save,
const TQStringList *enabledPlugins )
{
@@ -593,5 +593,5 @@ PreviewJob *KIO::filePreview( const KURL::List &items, int width, int height,
}
void PreviewJob::virtual_hook( int id, void* data )
-{ KIO::Job::virtual_hook( id, data ); }
+{ TDEIO::Job::virtual_hook( id, data ); }
diff --git a/kio/kio/previewjob.h b/kio/kio/previewjob.h
index d7686505e..a0a137ff4 100644
--- a/kio/kio/previewjob.h
+++ b/kio/kio/previewjob.h
@@ -29,12 +29,12 @@
class TQPixmap;
-namespace KIO {
+namespace TDEIO {
/*!
* This class catches a preview (thumbnail) for files.
* @short KIO Job to get a thumbnail picture
*/
- class KIO_EXPORT PreviewJob : public KIO::Job
+ class KIO_EXPORT PreviewJob : public TDEIO::Job
{
Q_OBJECT
public:
@@ -117,11 +117,11 @@ namespace KIO {
void createThumbnail( TQString );
protected slots:
- virtual void slotResult( KIO::Job *job );
+ virtual void slotResult( TDEIO::Job *job );
private slots:
void startPreview();
- void slotThumbData(KIO::Job *, const TQByteArray &);
+ void slotThumbData(TDEIO::Job *, const TQByteArray &);
private:
void determineNextFile();
diff --git a/kio/kio/progressbase.cpp b/kio/kio/progressbase.cpp
index f01c00a7a..146f4182e 100644
--- a/kio/kio/progressbase.cpp
+++ b/kio/kio/progressbase.cpp
@@ -19,7 +19,7 @@
#include "jobclasses.h"
#include "progressbase.h"
-namespace KIO {
+namespace TDEIO {
ProgressBase::ProgressBase( TQWidget *parent )
: TQWidget( parent )
@@ -34,93 +34,93 @@ ProgressBase::ProgressBase( TQWidget *parent )
}
-void ProgressBase::setJob( KIO::Job *job )
+void ProgressBase::setJob( TDEIO::Job *job )
{
// first connect all slots
- connect( job, TQT_SIGNAL( percent( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotPercent( KIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( percent( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotPercent( TDEIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( result( KIO::Job* ) ),
- TQT_SLOT( slotFinished( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinished( TDEIO::Job* ) ) );
- connect( job, TQT_SIGNAL( canceled( KIO::Job* ) ),
- TQT_SLOT( slotFinished( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( canceled( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinished( TDEIO::Job* ) ) );
// then assign job
m_pJob = job;
}
-void ProgressBase::setJob( KIO::CopyJob *job )
+void ProgressBase::setJob( TDEIO::CopyJob *job )
{
// first connect all slots
- connect( job, TQT_SIGNAL( totalSize( KIO::Job*, KIO::filesize_t ) ),
- TQT_SLOT( slotTotalSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( job, TQT_SIGNAL( totalFiles( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotTotalFiles( KIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( totalDirs( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotTotalDirs( KIO::Job*, unsigned long ) ) );
-
- connect( job, TQT_SIGNAL( processedSize( KIO::Job*, KIO::filesize_t ) ),
- TQT_SLOT( slotProcessedSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( job, TQT_SIGNAL( processedFiles( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( processedDirs( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotProcessedDirs( KIO::Job*, unsigned long ) ) );
-
- connect( job, TQT_SIGNAL( speed( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotSpeed( KIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( percent( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotPercent( KIO::Job*, unsigned long ) ) );
-
- connect( job, TQT_SIGNAL( copying( KIO::Job*, const KURL& , const KURL& ) ),
- TQT_SLOT( slotCopying( KIO::Job*, const KURL&, const KURL& ) ) );
- connect( job, TQT_SIGNAL( moving( KIO::Job*, const KURL& , const KURL& ) ),
- TQT_SLOT( slotMoving( KIO::Job*, const KURL&, const KURL& ) ) );
- connect( job, TQT_SIGNAL( creatingDir( KIO::Job*, const KURL& ) ),
- TQT_SLOT( slotCreatingDir( KIO::Job*, const KURL& ) ) );
-
- connect( job, TQT_SIGNAL( result( KIO::Job* ) ),
- TQT_SLOT( slotFinished( KIO::Job* ) ) );
-
- connect( job, TQT_SIGNAL( canceled( KIO::Job* ) ),
- TQT_SLOT( slotFinished( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( totalSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ TQT_SLOT( slotTotalSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( job, TQT_SIGNAL( totalFiles( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotTotalFiles( TDEIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( totalDirs( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotTotalDirs( TDEIO::Job*, unsigned long ) ) );
+
+ connect( job, TQT_SIGNAL( processedSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ TQT_SLOT( slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( job, TQT_SIGNAL( processedFiles( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotProcessedFiles( TDEIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( processedDirs( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotProcessedDirs( TDEIO::Job*, unsigned long ) ) );
+
+ connect( job, TQT_SIGNAL( speed( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotSpeed( TDEIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( percent( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotPercent( TDEIO::Job*, unsigned long ) ) );
+
+ connect( job, TQT_SIGNAL( copying( TDEIO::Job*, const KURL& , const KURL& ) ),
+ TQT_SLOT( slotCopying( TDEIO::Job*, const KURL&, const KURL& ) ) );
+ connect( job, TQT_SIGNAL( moving( TDEIO::Job*, const KURL& , const KURL& ) ),
+ TQT_SLOT( slotMoving( TDEIO::Job*, const KURL&, const KURL& ) ) );
+ connect( job, TQT_SIGNAL( creatingDir( TDEIO::Job*, const KURL& ) ),
+ TQT_SLOT( slotCreatingDir( TDEIO::Job*, const KURL& ) ) );
+
+ connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinished( TDEIO::Job* ) ) );
+
+ connect( job, TQT_SIGNAL( canceled( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinished( TDEIO::Job* ) ) );
// then assign job
m_pJob = job;
}
-void ProgressBase::setJob( KIO::DeleteJob *job )
+void ProgressBase::setJob( TDEIO::DeleteJob *job )
{
// first connect all slots
- connect( job, TQT_SIGNAL( totalSize( KIO::Job*, KIO::filesize_t ) ),
- TQT_SLOT( slotTotalSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( job, TQT_SIGNAL( totalFiles( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotTotalFiles( KIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( totalDirs( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotTotalDirs( KIO::Job*, unsigned long ) ) );
-
- connect( job, TQT_SIGNAL( processedSize( KIO::Job*, KIO::filesize_t ) ),
- TQT_SLOT( slotProcessedSize( KIO::Job*, KIO::filesize_t ) ) );
- connect( job, TQT_SIGNAL( processedFiles( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotProcessedFiles( KIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( processedDirs( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotProcessedDirs( KIO::Job*, unsigned long ) ) );
-
- connect( job, TQT_SIGNAL( speed( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotSpeed( KIO::Job*, unsigned long ) ) );
- connect( job, TQT_SIGNAL( percent( KIO::Job*, unsigned long ) ),
- TQT_SLOT( slotPercent( KIO::Job*, unsigned long ) ) );
-
- connect( job, TQT_SIGNAL( deleting( KIO::Job*, const KURL& ) ),
- TQT_SLOT( slotDeleting( KIO::Job*, const KURL& ) ) );
-
- connect( job, TQT_SIGNAL( result( KIO::Job* ) ),
- TQT_SLOT( slotFinished( KIO::Job* ) ) );
-
- connect( job, TQT_SIGNAL( canceled( KIO::Job* ) ),
- TQT_SLOT( slotFinished( KIO::Job* ) ) );
+ connect( job, TQT_SIGNAL( totalSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ TQT_SLOT( slotTotalSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( job, TQT_SIGNAL( totalFiles( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotTotalFiles( TDEIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( totalDirs( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotTotalDirs( TDEIO::Job*, unsigned long ) ) );
+
+ connect( job, TQT_SIGNAL( processedSize( TDEIO::Job*, TDEIO::filesize_t ) ),
+ TQT_SLOT( slotProcessedSize( TDEIO::Job*, TDEIO::filesize_t ) ) );
+ connect( job, TQT_SIGNAL( processedFiles( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotProcessedFiles( TDEIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( processedDirs( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotProcessedDirs( TDEIO::Job*, unsigned long ) ) );
+
+ connect( job, TQT_SIGNAL( speed( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotSpeed( TDEIO::Job*, unsigned long ) ) );
+ connect( job, TQT_SIGNAL( percent( TDEIO::Job*, unsigned long ) ),
+ TQT_SLOT( slotPercent( TDEIO::Job*, unsigned long ) ) );
+
+ connect( job, TQT_SIGNAL( deleting( TDEIO::Job*, const KURL& ) ),
+ TQT_SLOT( slotDeleting( TDEIO::Job*, const KURL& ) ) );
+
+ connect( job, TQT_SIGNAL( result( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinished( TDEIO::Job* ) ) );
+
+ connect( job, TQT_SIGNAL( canceled( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinished( TDEIO::Job* ) ) );
// then assign job
m_pJob = job;
@@ -150,7 +150,7 @@ void ProgressBase::finished() {
}
}
-void ProgressBase::slotFinished( KIO::Job* ) {
+void ProgressBase::slotFinished( TDEIO::Job* ) {
finished();
}
diff --git a/kio/kio/progressbase.h b/kio/kio/progressbase.h
index d9e3d8f96..cbcab06be 100644
--- a/kio/kio/progressbase.h
+++ b/kio/kio/progressbase.h
@@ -24,13 +24,13 @@
#include <kio/global.h>
class KURL;
-namespace KIO {
+namespace TDEIO {
class Job;
class CopyJob;
class DeleteJob;
}
-namespace KIO
+namespace TDEIO
{
enum Progress {
DEFAULT = 1,
@@ -53,7 +53,7 @@ namespace KIO
* Custom progress dialog will be used like this :
* \code
* // create job
-* CopyJob* job = KIO::copy(...);
+* CopyJob* job = TDEIO::copy(...);
* // create a dialog
* MyCustomProgress *customProgress;
* customProgress = new MyCustomProgress();
@@ -81,20 +81,20 @@ public:
~ProgressBase() {}
/**
- * Assign a KIO::Job to this progress dialog.
+ * Assign a TDEIO::Job to this progress dialog.
* @param job the job to assign
*/
- void setJob( KIO::Job *job );
+ void setJob( TDEIO::Job *job );
/**
- * Assign a KIO::Job to this progress dialog.
+ * Assign a TDEIO::Job to this progress dialog.
* @param job the job to assign
*/
- void setJob( KIO::CopyJob *job );
+ void setJob( TDEIO::CopyJob *job );
/**
- * Assign a KIO::Job to this progress dialog.
+ * Assign a TDEIO::Job to this progress dialog.
* @param job the job to assign
*/
- void setJob( KIO::DeleteJob *job );
+ void setJob( TDEIO::DeleteJob *job );
// should we stop the job when the dialog is closed ?
void setStopOnClose( bool stopOnClose ) { m_bStopOnClose = stopOnClose; }
@@ -103,7 +103,7 @@ public:
// should we delete the dialog or just clean it when the job is finished ?
/**
* This controls whether the dialog should be deleted or only cleaned when
- * the KIO::Job is finished (or canceled).
+ * the TDEIO::Job is finished (or canceled).
*
* If your dialog is an embedded widget and not a separate window, you should
* setOnlyClean(true) in the constructor of your custom dialog.
@@ -143,101 +143,101 @@ public slots:
// progress slots
/**
* Called to set the total size.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param size the total size in bytes
*/
- virtual void slotTotalSize( KIO::Job* job, KIO::filesize_t size ) {
+ virtual void slotTotalSize( TDEIO::Job* job, TDEIO::filesize_t size ) {
Q_UNUSED(job);Q_UNUSED(size);}
/**
* Called to set the total number of files.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param files the number of files
*/
- virtual void slotTotalFiles( KIO::Job* job, unsigned long files ) {
+ virtual void slotTotalFiles( TDEIO::Job* job, unsigned long files ) {
Q_UNUSED(job);Q_UNUSED(files);}
/**
* Called to set the total number of directories.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param dirs the number of directories
*/
- virtual void slotTotalDirs( KIO::Job* job, unsigned long dirs ) {
+ virtual void slotTotalDirs( TDEIO::Job* job, unsigned long dirs ) {
Q_UNUSED(job);Q_UNUSED(dirs);}
/**
* Called to set the processed size.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param bytes the processed size in bytes
*/
- virtual void slotProcessedSize( KIO::Job* job, KIO::filesize_t bytes ) {
+ virtual void slotProcessedSize( TDEIO::Job* job, TDEIO::filesize_t bytes ) {
Q_UNUSED(job);Q_UNUSED(bytes);}
/**
* Called to set the number of processed files.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param files the number of files
*/
- virtual void slotProcessedFiles( KIO::Job* job, unsigned long files ) {
+ virtual void slotProcessedFiles( TDEIO::Job* job, unsigned long files ) {
Q_UNUSED(job);Q_UNUSED(files);}
/**
* Called to set the number of processed directories.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param dirs the number of directories
*/
- virtual void slotProcessedDirs( KIO::Job* job, unsigned long dirs ) {
+ virtual void slotProcessedDirs( TDEIO::Job* job, unsigned long dirs ) {
Q_UNUSED(job);Q_UNUSED(dirs);}
/**
* Called to set the speed.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param speed the speed in bytes/second
*/
- virtual void slotSpeed( KIO::Job* job, unsigned long speed ) {
+ virtual void slotSpeed( TDEIO::Job* job, unsigned long speed ) {
Q_UNUSED(job);Q_UNUSED(speed);}
/**
* Called to set the percentage.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param percent the percentage
*/
- virtual void slotPercent( KIO::Job* job, unsigned long percent ) {
+ virtual void slotPercent( TDEIO::Job* job, unsigned long percent ) {
Q_UNUSED(job);Q_UNUSED(percent);}
/**
* Called when the job is copying.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param src the source of the operation
* @param dest the destination of the operation
*/
- virtual void slotCopying( KIO::Job* job, const KURL& src, const KURL& dest ) {
+ virtual void slotCopying( TDEIO::Job* job, const KURL& src, const KURL& dest ) {
Q_UNUSED(job);Q_UNUSED(src);Q_UNUSED(dest);}
/**
* Called when the job is moving.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param src the source of the operation
* @param dest the destination of the operation
*/
- virtual void slotMoving( KIO::Job* job, const KURL& src, const KURL& dest ) {
+ virtual void slotMoving( TDEIO::Job* job, const KURL& src, const KURL& dest ) {
Q_UNUSED(job);Q_UNUSED(src);Q_UNUSED(dest);}
/**
* Called when the job is deleting.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param url the URL to delete
*/
- virtual void slotDeleting( KIO::Job* job, const KURL& url) {
+ virtual void slotDeleting( TDEIO::Job* job, const KURL& url) {
Q_UNUSED(job);Q_UNUSED(url);}
/**
* Called when the job is creating a directory.
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param dir the URL of the directory to create
*/
- virtual void slotCreatingDir( KIO::Job* job, const KURL& dir ) {
+ virtual void slotCreatingDir( TDEIO::Job* job, const KURL& dir ) {
Q_UNUSED(job);Q_UNUSED(dir);}
/**
* Called when the job is resuming..
- * @param job the KIO::Job
+ * @param job the TDEIO::Job
* @param from the position to resume from in bytes
*/
- virtual void slotCanResume( KIO::Job* job, KIO::filesize_t from) {
+ virtual void slotCanResume( TDEIO::Job* job, TDEIO::filesize_t from) {
Q_UNUSED(job);Q_UNUSED(from);}
signals:
@@ -247,13 +247,13 @@ signals:
void stopped();
protected slots:
- void slotFinished( KIO::Job* );
+ void slotFinished( TDEIO::Job* );
protected:
virtual void closeEvent( TQCloseEvent * );
- KIO::Job* m_pJob;
+ TDEIO::Job* m_pJob;
private:
bool m_bOnlyClean;
diff --git a/kio/kio/renamedlg.cpp b/kio/kio/renamedlg.cpp
index 9eb7a2c73..7bba95460 100644
--- a/kio/kio/renamedlg.cpp
+++ b/kio/kio/renamedlg.cpp
@@ -52,7 +52,7 @@
#include <twin.h>
#endif
-using namespace KIO;
+using namespace TDEIO;
class RenameDlg::RenameDlgPrivate
{
@@ -84,14 +84,14 @@ class RenameDlg::RenameDlgPrivate
RenameDlg::RenameDlg(TQWidget *parent, const TQString & _caption,
const TQString &_src, const TQString &_dest,
RenameDlg_Mode _mode,
- KIO::filesize_t sizeSrc,
- KIO::filesize_t sizeDest,
+ TDEIO::filesize_t sizeSrc,
+ TDEIO::filesize_t sizeDest,
time_t ctimeSrc,
time_t ctimeDest,
time_t mtimeSrc,
time_t mtimeDest,
bool _modal)
- : TQDialog ( parent, "KIO::RenameDialog" , _modal )
+ : TQDialog ( parent, "TDEIO::RenameDialog" , _modal )
{
d = new RenameDlgPrivate( );
d->modal = _modal;
@@ -243,9 +243,9 @@ RenameDlg::RenameDlg(TQWidget *parent, const TQString & _caption,
gridLayout->addMultiCellWidget( lb1, 1, 3, 0, 0 ); // takes the first column on rows 1-3
int row = 1;
- if ( sizeDest != (KIO::filesize_t)-1 )
+ if ( sizeDest != (TDEIO::filesize_t)-1 )
{
- TQLabel * lb = new TQLabel( i18n("size %1").arg( KIO::convertSize(sizeDest) ), this );
+ TQLabel * lb = new TQLabel( i18n("size %1").arg( TDEIO::convertSize(sizeDest) ), this );
gridLayout->addWidget( lb, row, 1 );
row++;
@@ -279,9 +279,9 @@ RenameDlg::RenameDlg(TQWidget *parent, const TQString & _caption,
row = 6;
- if ( sizeSrc != (KIO::filesize_t)-1 )
+ if ( sizeSrc != (TDEIO::filesize_t)-1 )
{
- TQLabel * lb = new TQLabel( i18n("size %1").arg( KIO::convertSize(sizeSrc) ), this );
+ TQLabel * lb = new TQLabel( i18n("size %1").arg( TDEIO::convertSize(sizeSrc) ), this );
gridLayout->addWidget( lb, row, 1 );
row++;
}
@@ -323,7 +323,7 @@ RenameDlg::RenameDlg(TQWidget *parent, const TQString & _caption,
d->m_pLineEdit = new TQLineEdit( this );
layout2->addWidget( d->m_pLineEdit );
TQString fileName = d->dest.fileName();
- d->m_pLineEdit->setText( KIO::decodeFileName( fileName ) );
+ d->m_pLineEdit->setText( TDEIO::decodeFileName( fileName ) );
if ( d->bRename || d->bOverwrite )
connect(d->m_pLineEdit, TQT_SIGNAL(textChanged(const TQString &)),
TQT_SLOT(enableRenameButton(const TQString &)));
@@ -391,7 +391,7 @@ RenameDlg::~RenameDlg()
void RenameDlg::enableRenameButton(const TQString &newDest)
{
- if ( newDest != KIO::decodeFileName( d->dest.fileName() ) && !newDest.isEmpty() )
+ if ( newDest != TDEIO::decodeFileName( d->dest.fileName() ) && !newDest.isEmpty() )
{
d->bRename->setEnabled( true );
d->bRename->setDefault( true );
@@ -410,7 +410,7 @@ KURL RenameDlg::newDestURL()
{
KURL newDest( d->dest );
TQString fileName = d->m_pLineEdit->text();
- newDest.setFileName( KIO::encodeFileName( fileName ) );
+ newDest.setFileName( TDEIO::encodeFileName( fileName ) );
return newDest;
}
@@ -523,7 +523,7 @@ static TQString mime( const KURL& src )
{
KMimeType::Ptr type = KMimeType::findByURL( src );
//if( type->name() == KMimeType::defaultMimeType() ){ // ok no mimetype
- // TQString ty = KIO::NetAccess::mimetype(d->src );
+ // TQString ty = TDEIO::NetAccess::mimetype(d->src );
// return ty;
return type->name();
}
@@ -544,12 +544,12 @@ void RenameDlg::pluginHandling()
}
-RenameDlg_Result KIO::open_RenameDlg( const TQString & _caption,
+RenameDlg_Result TDEIO::open_RenameDlg( const TQString & _caption,
const TQString & _src, const TQString & _dest,
RenameDlg_Mode _mode,
TQString& _new,
- KIO::filesize_t sizeSrc,
- KIO::filesize_t sizeDest,
+ TDEIO::filesize_t sizeSrc,
+ TDEIO::filesize_t sizeDest,
time_t ctimeSrc,
time_t ctimeDest,
time_t mtimeSrc,
diff --git a/kio/kio/renamedlg.h b/kio/kio/renamedlg.h
index 373abf446..b2347539b 100644
--- a/kio/kio/renamedlg.h
+++ b/kio/kio/renamedlg.h
@@ -29,7 +29,7 @@
#include <kio/global.h>
-namespace KIO {
+namespace TDEIO {
// KDE4: get rid of M_OVERWRITE_ITSELF, trigger it internally if src==dest
enum RenameDlg_Mode { M_OVERWRITE = 1, M_OVERWRITE_ITSELF = 2, M_SKIP = 4, M_SINGLE = 8, M_MULTI = 16, M_RESUME = 32, M_NORENAME = 64 };
@@ -69,8 +69,8 @@ public:
// KDE4: make those KURLs, and use pathOrURL() internally.
const TQString & src, const TQString & dest,
RenameDlg_Mode mode,
- KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
- KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
+ TDEIO::filesize_t sizeSrc = (TDEIO::filesize_t) -1,
+ TDEIO::filesize_t sizeDest = (TDEIO::filesize_t) -1,
time_t ctimeSrc = (time_t) -1,
time_t ctimeDest = (time_t) -1,
time_t mtimeSrc = (time_t) -1,
@@ -116,7 +116,7 @@ private:
/**
* \addtogroup renamedlg "RenameDlg related Functions"
* @{
- * \relates KIO::RenameDlg
+ * \relates TDEIO::RenameDlg
* Construct a modal, parent-less "rename" dialog, and return
* a result code, as well as the new dest. Much easier to use than the
* class RenameDlg directly.
@@ -139,8 +139,8 @@ KIO_EXPORT RenameDlg_Result open_RenameDlg( const TQString & caption,
// KDE4: make those KURLs
const TQString& src, const TQString & dest,
RenameDlg_Mode mode, TQString& newDestPath,
- KIO::filesize_t sizeSrc = (KIO::filesize_t) -1,
- KIO::filesize_t sizeDest = (KIO::filesize_t) -1,
+ TDEIO::filesize_t sizeSrc = (TDEIO::filesize_t) -1,
+ TDEIO::filesize_t sizeDest = (TDEIO::filesize_t) -1,
time_t ctimeSrc = (time_t) -1,
time_t ctimeDest = (time_t) -1,
time_t mtimeSrc = (time_t) -1,
diff --git a/kio/kio/renamedlgplugin.h b/kio/kio/renamedlgplugin.h
index b4dd8b9fb..ab50e6b6a 100644
--- a/kio/kio/renamedlgplugin.h
+++ b/kio/kio/renamedlgplugin.h
@@ -43,11 +43,11 @@ public:
* This function will be called by RenameDlg. The params are infos about the files.
* @return If the plugin want's to display it return true, if not return false
*/
- virtual bool initialize(KIO::RenameDlg_Mode /*mod*/ , const TQString &/*_src*/, const TQString &/*_dest*/,
+ virtual bool initialize(TDEIO::RenameDlg_Mode /*mod*/ , const TQString &/*_src*/, const TQString &/*_dest*/,
const TQString &/*mimeSrc*/,
const TQString &/*mimeDest*/,
- KIO::filesize_t /*sizeSrc*/,
- KIO::filesize_t /*sizeDest*/,
+ TDEIO::filesize_t /*sizeSrc*/,
+ TDEIO::filesize_t /*sizeDest*/,
time_t /*ctimeSrc*/,
time_t /*ctimeDest*/,
time_t /*mtimeSrc*/,
diff --git a/kio/kio/scheduler.cpp b/kio/kio/scheduler.cpp
index 9b518b1ef..09560cb8b 100644
--- a/kio/kio/scheduler.cpp
+++ b/kio/kio/scheduler.cpp
@@ -40,13 +40,13 @@
// to the system wide slave pool. (3 minutes)
#define MAX_SLAVE_IDLE (3*60)
-using namespace KIO;
+using namespace TDEIO;
-template class TQDict<KIO::Scheduler::ProtocolInfo>;
+template class TQDict<TDEIO::Scheduler::ProtocolInfo>;
Scheduler *Scheduler::instance = 0;
-class KIO::SlaveList: public TQPtrList<Slave>
+class TDEIO::SlaveList: public TQPtrList<Slave>
{
public:
SlaveList() { }
@@ -67,7 +67,7 @@ class KIO::SlaveList: public TQPtrList<Slave>
// We schedule slaves based on (2) but tell the slave about (1) via
// Slave::setProtocol().
-class KIO::Scheduler::JobData
+class TDEIO::Scheduler::JobData
{
public:
JobData() : checkOnHold(false) { }
@@ -78,13 +78,13 @@ public:
bool checkOnHold;
};
-class KIO::Scheduler::ExtraJobData: public TQPtrDict<KIO::Scheduler::JobData>
+class TDEIO::Scheduler::ExtraJobData: public TQPtrDict<TDEIO::Scheduler::JobData>
{
public:
ExtraJobData() { setAutoDelete(true); }
};
-class KIO::Scheduler::ProtocolInfo
+class TDEIO::Scheduler::ProtocolInfo
{
public:
ProtocolInfo() : maxSlaves(1), skipCount(0)
@@ -99,16 +99,16 @@ public:
TQString protocol;
};
-class KIO::Scheduler::ProtocolInfoDict : public TQDict<KIO::Scheduler::ProtocolInfo>
+class TDEIO::Scheduler::ProtocolInfoDict : public TQDict<TDEIO::Scheduler::ProtocolInfo>
{
public:
ProtocolInfoDict() { }
- KIO::Scheduler::ProtocolInfo *get( const TQString &protocol);
+ TDEIO::Scheduler::ProtocolInfo *get( const TQString &protocol);
};
-KIO::Scheduler::ProtocolInfo *
-KIO::Scheduler::ProtocolInfoDict::get(const TQString &protocol)
+TDEIO::Scheduler::ProtocolInfo *
+TDEIO::Scheduler::ProtocolInfoDict::get(const TQString &protocol)
{
ProtocolInfo *info = find(protocol);
if (!info)
@@ -124,7 +124,7 @@ KIO::Scheduler::ProtocolInfoDict::get(const TQString &protocol)
Scheduler::Scheduler()
- : DCOPObject( "KIO::Scheduler" ),
+ : DCOPObject( "TDEIO::Scheduler" ),
TQObject(kapp, "scheduler"),
slaveTimer(0, "Scheduler::slaveTimer"),
coSlaveTimer(0, "Scheduler::coSlaveTimer"),
@@ -211,7 +211,7 @@ void Scheduler::_doJob(SimpleJob *job) {
slaveTimer.start(0, true);
#ifndef NDEBUG
if (newJobs.count() > 150)
- kdDebug() << "WARNING - KIO::Scheduler got more than 150 jobs! This shows a misuse in your app (yes, a job is a TQObject)." << endl;
+ kdDebug() << "WARNING - TDEIO::Scheduler got more than 150 jobs! This shows a misuse in your app (yes, a job is a TQObject)." << endl;
#endif
}
@@ -272,7 +272,7 @@ void Scheduler::startStep()
{
(void) startJobDirect();
}
- TQDictIterator<KIO::Scheduler::ProtocolInfo> it(*protInfoDict);
+ TQDictIterator<TDEIO::Scheduler::ProtocolInfo> it(*protInfoDict);
while(it.current())
{
if (startJobScheduled(it.current())) return;
@@ -280,7 +280,7 @@ void Scheduler::startStep()
}
}
-void Scheduler::setupSlave(KIO::Slave *slave, const KURL &url, const TQString &protocol, const TQString &proxy , bool newSlave, const KIO::MetaData *config)
+void Scheduler::setupSlave(TDEIO::Slave *slave, const KURL &url, const TQString &protocol, const TQString &proxy , bool newSlave, const TDEIO::MetaData *config)
{
TQString host = url.host();
int port = url.port();
@@ -497,13 +497,13 @@ Slave *Scheduler::findIdleSlave(ProtocolInfo *, SimpleJob *job, bool &exact)
{
// Make sure that the job wants to do a GET or a POST, and with no offset
bool bCanReuse = (job->command() == CMD_GET);
- KIO::TransferJob * tJob = dynamic_cast<KIO::TransferJob *>(job);
+ TDEIO::TransferJob * tJob = dynamic_cast<TDEIO::TransferJob *>(job);
if ( tJob )
{
bCanReuse = (job->command() == CMD_GET || job->command() == CMD_SPECIAL);
if ( bCanReuse )
{
- KIO::MetaData outgoing = tJob->outgoingMetaData();
+ TDEIO::MetaData outgoing = tJob->outgoingMetaData();
TQString resume = (!outgoing.contains("resume")) ? TQString() : outgoing["resume"];
kdDebug(7006) << "Resume metadata is '" << resume << "'" << endl;
bCanReuse = (resume.isEmpty() || resume == "0");
@@ -541,8 +541,8 @@ Slave *Scheduler::createSlave(ProtocolInfo *protInfo, SimpleJob *job, const KURL
{
slaveList->append(slave);
idleSlaves->append(slave);
- connect(slave, TQT_SIGNAL(slaveDied(KIO::Slave *)),
- TQT_SLOT(slotSlaveDied(KIO::Slave *)));
+ connect(slave, TQT_SIGNAL(slaveDied(TDEIO::Slave *)),
+ TQT_SLOT(slotSlaveDied(TDEIO::Slave *)));
connect(slave, TQT_SIGNAL(slaveStatus(pid_t,const TQCString &,const TQString &, bool)),
TQT_SLOT(slotSlaveStatus(pid_t,const TQCString &, const TQString &, bool)));
@@ -607,7 +607,7 @@ void Scheduler::_jobFinished(SimpleJob *job, Slave *slave)
}
}
-void Scheduler::slotSlaveDied(KIO::Slave *slave)
+void Scheduler::slotSlaveDied(TDEIO::Slave *slave)
{
assert(!slave->isAlive());
ProtocolInfo *protInfo = protInfoDict->get(slave->slaveProtocol());
@@ -662,7 +662,7 @@ void Scheduler::_scheduleCleanup()
}
}
-void Scheduler::_putSlaveOnHold(KIO::SimpleJob *job, const KURL &url)
+void Scheduler::_putSlaveOnHold(TDEIO::SimpleJob *job, const KURL &url)
{
Slave *slave = job->slave();
slave->disconnect(job);
@@ -695,7 +695,7 @@ void Scheduler::_removeSlaveOnHold()
}
Slave *
-Scheduler::_getConnectedSlave(const KURL &url, const KIO::MetaData &config )
+Scheduler::_getConnectedSlave(const KURL &url, const TDEIO::MetaData &config )
{
TQString proxy;
TQString protocol = KProtocolManager::slaveProtocol(url, proxy);
@@ -792,7 +792,7 @@ Scheduler::slotSlaveError(int errorNr, const TQString &errorMsg)
}
bool
-Scheduler::_assignJobToSlave(KIO::Slave *slave, SimpleJob *job)
+Scheduler::_assignJobToSlave(TDEIO::Slave *slave, SimpleJob *job)
{
// kdDebug(7006) << "_assignJobToSlave( " << job << ", " << slave << ")" << endl;
TQString dummy;
@@ -822,7 +822,7 @@ Scheduler::_assignJobToSlave(KIO::Slave *slave, SimpleJob *job)
}
bool
-Scheduler::_disconnectSlave(KIO::Slave *slave)
+Scheduler::_disconnectSlave(TDEIO::Slave *slave)
{
// kdDebug(7006) << "_disconnectSlave( " << slave << ")" << endl;
JobList *list = coSlaves.take(slave);
diff --git a/kio/kio/scheduler.h b/kio/kio/scheduler.h
index 4a4f104ba..9871cd1c2 100644
--- a/kio/kio/scheduler.h
+++ b/kio/kio/scheduler.h
@@ -30,7 +30,7 @@
#include <dcopobject.h>
-namespace KIO {
+namespace TDEIO {
class Slave;
class SlaveList;
@@ -38,7 +38,7 @@ namespace KIO {
class SessionData;
/**
- * The KIO::Scheduler manages io-slaves for the application.
+ * The TDEIO::Scheduler manages io-slaves for the application.
* It also queues jobs and assigns the job to a slave when one
* becomes available.
*
@@ -46,12 +46,12 @@ namespace KIO {
*
* <h3>1. Direct</h3>
* This is the default. When you create a job the
- * KIO::Scheduler will be notified and will find either an existing
+ * TDEIO::Scheduler will be notified and will find either an existing
* slave that is idle or it will create a new slave for the job.
*
* Example:
* \code
- * TransferJob *job = KIO::get(KURL("http://www.kde.org"));
+ * TransferJob *job = TDEIO::get(KURL("http://www.kde.org"));
* \endcode
*
*
@@ -64,8 +64,8 @@ namespace KIO {
*
* Example:
* \code
- * TransferJob *job = KIO::get(KURL("http://www.kde.org"));
- * KIO::Scheduler::scheduleJob(job);
+ * TransferJob *job = TDEIO::get(KURL("http://www.kde.org"));
+ * TDEIO::Scheduler::scheduleJob(job);
* \endcode
*
* <h3>3. Connection Oriented</h3>
@@ -80,32 +80,32 @@ namespace KIO {
*
* Example:
* \code
- * Slave *slave = KIO::Scheduler::getConnectedSlave(
+ * Slave *slave = TDEIO::Scheduler::getConnectedSlave(
* KURL("pop3://bastian:password@mail.kde.org"));
- * TransferJob *job1 = KIO::get(
+ * TransferJob *job1 = TDEIO::get(
* KURL("pop3://bastian:password@mail.kde.org/msg1"));
- * KIO::Scheduler::assignJobToSlave(slave, job1);
- * TransferJob *job2 = KIO::get(
+ * TDEIO::Scheduler::assignJobToSlave(slave, job1);
+ * TransferJob *job2 = TDEIO::get(
* KURL("pop3://bastian:password@mail.kde.org/msg2"));
- * KIO::Scheduler::assignJobToSlave(slave, job2);
- * TransferJob *job3 = KIO::get(
+ * TDEIO::Scheduler::assignJobToSlave(slave, job2);
+ * TransferJob *job3 = TDEIO::get(
* KURL("pop3://bastian:password@mail.kde.org/msg3"));
- * KIO::Scheduler::assignJobToSlave(slave, job3);
+ * TDEIO::Scheduler::assignJobToSlave(slave, job3);
*
* // ... Wait for jobs to finish...
*
- * KIO::Scheduler::disconnectSlave(slave);
+ * TDEIO::Scheduler::disconnectSlave(slave);
* \endcode
*
* Note that you need to explicitly disconnect the slave when the
* connection goes down, so your error handler should contain:
* \code
- * if (error == KIO::ERR_CONNECTION_BROKEN)
- * KIO::Scheduler::disconnectSlave(slave);
+ * if (error == TDEIO::ERR_CONNECTION_BROKEN)
+ * TDEIO::Scheduler::disconnectSlave(slave);
* \endcode
*
- * @see KIO::Slave
- * @see KIO::Job
+ * @see TDEIO::Slave
+ * @see TDEIO::Job
**/
class KIO_EXPORT Scheduler : public TQObject, virtual public DCOPObject {
@@ -150,7 +150,7 @@ namespace KIO {
* @param job the finished job
* @param slave the slave that executed the @p job
*/
- static void jobFinished(KIO::SimpleJob *job, KIO::Slave *slave)
+ static void jobFinished(TDEIO::SimpleJob *job, TDEIO::Slave *slave)
{ self()->_jobFinished(job, slave); }
/**
@@ -164,7 +164,7 @@ namespace KIO {
* @param job the job that should be stopped
* @param url the URL that is handled by the @p url
*/
- static void putSlaveOnHold(KIO::SimpleJob *job, const KURL &url)
+ static void putSlaveOnHold(TDEIO::SimpleJob *job, const KURL &url)
{ self()->_putSlaveOnHold(job, url); }
/**
@@ -193,7 +193,7 @@ namespace KIO {
* @see assignJobToSlave()
* @see disconnectSlave()
*/
- static KIO::Slave *getConnectedSlave(const KURL &url, const KIO::MetaData &config = MetaData() )
+ static TDEIO::Slave *getConnectedSlave(const KURL &url, const TDEIO::MetaData &config = MetaData() )
{ return self()->_getConnectedSlave(url, config); }
/*
@@ -212,7 +212,7 @@ namespace KIO {
* @see slaveConnected()
* @see slaveError()
*/
- static bool assignJobToSlave(KIO::Slave *slave, KIO::SimpleJob *job)
+ static bool assignJobToSlave(TDEIO::Slave *slave, TDEIO::SimpleJob *job)
{ return self()->_assignJobToSlave(slave, job); }
/*
@@ -227,7 +227,7 @@ namespace KIO {
* @see getConnectedSlave
* @see assignJobToSlave
*/
- static bool disconnectSlave(KIO::Slave *slave)
+ static bool disconnectSlave(TDEIO::Slave *slave)
{ return self()->_disconnectSlave(slave); }
/**
@@ -236,7 +236,7 @@ namespace KIO {
* the that was started.
* Register the mainwindow @p wid with the KIO subsystem
* Do not call this, it is called automatically from
- * void KIO::Job::setWindow(TQWidget*).
+ * void TDEIO::Job::setWindow(TQWidget*).
* @param wid the window to register
* @since 3.1
*/
@@ -287,15 +287,15 @@ namespace KIO {
virtual QCStringList functions();
public slots:
- void slotSlaveDied(KIO::Slave *slave);
+ void slotSlaveDied(TDEIO::Slave *slave);
void slotSlaveStatus(pid_t pid, const TQCString &protocol,
const TQString &host, bool connected);
signals:
- void slaveConnected(KIO::Slave *slave);
- void slaveError(KIO::Slave *slave, int error, const TQString &errorMsg);
+ void slaveConnected(TDEIO::Slave *slave);
+ void slaveError(TDEIO::Slave *slave, int error, const TQString &errorMsg);
protected:
- void setupSlave(KIO::Slave *slave, const KURL &url, const TQString &protocol, const TQString &proxy , bool newSlave, const KIO::MetaData *config=0);
+ void setupSlave(TDEIO::Slave *slave, const KURL &url, const TQString &protocol, const TQString &proxy , bool newSlave, const TDEIO::MetaData *config=0);
bool startJobScheduled(ProtocolInfo *protInfo);
bool startJobDirect();
Scheduler();
@@ -319,13 +319,13 @@ namespace KIO {
void _doJob(SimpleJob *job);
void _scheduleJob(SimpleJob *job);
void _cancelJob(SimpleJob *job);
- void _jobFinished(KIO::SimpleJob *job, KIO::Slave *slave);
+ void _jobFinished(TDEIO::SimpleJob *job, TDEIO::Slave *slave);
void _scheduleCleanup();
- void _putSlaveOnHold(KIO::SimpleJob *job, const KURL &url);
+ void _putSlaveOnHold(TDEIO::SimpleJob *job, const KURL &url);
void _removeSlaveOnHold();
- Slave *_getConnectedSlave(const KURL &url, const KIO::MetaData &metaData );
- bool _assignJobToSlave(KIO::Slave *slave, KIO::SimpleJob *job);
- bool _disconnectSlave(KIO::Slave *slave);
+ Slave *_getConnectedSlave(const KURL &url, const TDEIO::MetaData &metaData );
+ bool _assignJobToSlave(TDEIO::Slave *slave, TDEIO::SimpleJob *job);
+ bool _disconnectSlave(TDEIO::Slave *slave);
void _checkSlaveOnHold(bool b);
void _publishSlaveOnHold();
void _registerWindow(TQWidget *wid);
diff --git a/kio/kio/sessiondata.cpp b/kio/kio/sessiondata.cpp
index d3c398fc4..e2517cc73 100644
--- a/kio/kio/sessiondata.cpp
+++ b/kio/kio/sessiondata.cpp
@@ -37,7 +37,7 @@
#include "sessiondata.h"
#include "sessiondata.moc"
-namespace KIO {
+namespace TDEIO {
/***************************** SessionData::AuthData ************************/
struct SessionData::AuthData
@@ -264,7 +264,7 @@ void SessionData::reset()
{
d->initDone = true;
// Get Cookie settings...
- KConfig* cfg = new KConfig("kcookiejarrc", true, false);
+ TDEConfig* cfg = new TDEConfig("kcookiejarrc", true, false);
cfg->setGroup( "Cookie Policy" );
d->useCookie = cfg->readBoolEntry( "Cookies", true );
delete cfg;
diff --git a/kio/kio/sessiondata.h b/kio/kio/sessiondata.h
index 80433679c..80b28ace6 100644
--- a/kio/kio/sessiondata.h
+++ b/kio/kio/sessiondata.h
@@ -24,7 +24,7 @@
#include <tqobject.h>
#include <kio/global.h>
-namespace KIO {
+namespace TDEIO {
class SlaveConfig;
@@ -40,7 +40,7 @@ public:
SessionData();
~SessionData();
- virtual void configDataFor( KIO::MetaData &configData, const TQString &proto,
+ virtual void configDataFor( TDEIO::MetaData &configData, const TQString &proto,
const TQString &host );
virtual void reset();
diff --git a/kio/kio/skipdlg.cpp b/kio/kio/skipdlg.cpp
index 0fe7b230b..f4a14a229 100644
--- a/kio/kio/skipdlg.cpp
+++ b/kio/kio/skipdlg.cpp
@@ -36,7 +36,7 @@
#include <twin.h>
#endif
-using namespace KIO;
+using namespace TDEIO;
SkipDlg::SkipDlg(TQWidget *parent, bool _multi, const TQString& _error_text, bool _modal ) :
KDialog ( parent, "" , _modal )
@@ -132,7 +132,7 @@ void SkipDlg::b2Pressed()
emit result( this, 2 );
}
-SkipDlg_Result KIO::open_SkipDlg( bool _multi, const TQString& _error_text )
+SkipDlg_Result TDEIO::open_SkipDlg( bool _multi, const TQString& _error_text )
{
Q_ASSERT(kapp);
diff --git a/kio/kio/skipdlg.h b/kio/kio/skipdlg.h
index dbf583ef0..e1199de97 100644
--- a/kio/kio/skipdlg.h
+++ b/kio/kio/skipdlg.h
@@ -25,7 +25,7 @@
class TQPushButton;
class TQWidget;
-namespace KIO {
+namespace TDEIO {
enum SkipDlg_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 };
diff --git a/kio/kio/slave.cpp b/kio/kio/slave.cpp
index 8306c8650..6e834f5fa 100644
--- a/kio/kio/slave.cpp
+++ b/kio/kio/slave.cpp
@@ -59,7 +59,7 @@
#define _PATH_TMP "/tmp"
#endif
-using namespace KIO;
+using namespace TDEIO;
#define SLAVE_CONNECTION_TIMEOUT_MIN 2
@@ -73,7 +73,7 @@ using namespace KIO;
#define SLAVE_CONNECTION_TIMEOUT_MAX 3600
#endif
-namespace KIO {
+namespace TDEIO {
/**
* @internal
@@ -87,7 +87,7 @@ namespace KIO {
};
}
-void Slave::accept(KSocket *socket)
+void Slave::accept(TDESocket *socket)
{
#ifndef Q_WS_WIN
slaveconn.init(socket);
@@ -138,7 +138,7 @@ void Slave::timeout()
deref();
}
-Slave::Slave(KServerSocket *socket, const TQString &protocol, const TQString &socketname)
+Slave::Slave(TDEServerSocket *socket, const TQString &protocol, const TQString &socketname)
: SlaveInterface(&slaveconn), serv(socket), contacted(false),
d(new SlavePrivate(false))
{
@@ -152,12 +152,12 @@ Slave::Slave(KServerSocket *socket, const TQString &protocol, const TQString &so
m_pid = 0;
m_port = 0;
#ifndef Q_WS_WIN
- connect(serv, TQT_SIGNAL(accepted( KSocket* )),
- TQT_SLOT(accept(KSocket*) ) );
+ connect(serv, TQT_SIGNAL(accepted( TDESocket* )),
+ TQT_SLOT(accept(TDESocket*) ) );
#endif
}
-Slave::Slave(bool /*derived*/, KServerSocket *socket, const TQString &protocol,
+Slave::Slave(bool /*derived*/, TDEServerSocket *socket, const TQString &protocol,
const TQString &socketname)
: SlaveInterface(&slaveconn), serv(socket), contacted(false),
d(new SlavePrivate(true))
@@ -174,8 +174,8 @@ Slave::Slave(bool /*derived*/, KServerSocket *socket, const TQString &protocol,
m_port = 0;
if (serv != 0) {
#ifndef Q_WS_WIN
- connect(serv, TQT_SIGNAL(accepted( KSocket* )),
- TQT_SLOT(accept(KSocket*) ) );
+ connect(serv, TQT_SIGNAL(accepted( TDESocket* )),
+ TQT_SLOT(accept(TDESocket*) ) );
#endif
}
}
@@ -368,7 +368,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
if ( socketfile.status() != 0 )
{
error_text = i18n("Unable to create io-slave: %1").arg(strerror(errno));
- error = KIO::ERR_CANNOT_LAUNCH_PROCESS;
+ error = TDEIO::ERR_CANNOT_LAUNCH_PROCESS;
return 0;
}
@@ -377,7 +377,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
#endif
#ifndef Q_WS_WIN
- KServerSocket *kss = new KServerSocket(TQFile::encodeName(socketfile.name()).data());
+ TDEServerSocket *kss = new TDEServerSocket(TQFile::encodeName(socketfile.name()).data());
Slave *slave = new Slave(kss, protocol, socketfile.name());
#else
@@ -399,7 +399,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
if (_name.isEmpty())
{
error_text = i18n("Unknown protocol '%1'.").arg(protocol);
- error = KIO::ERR_CANNOT_LAUNCH_PROCESS;
+ error = TDEIO::ERR_CANNOT_LAUNCH_PROCESS;
delete slave;
return 0;
}
@@ -407,7 +407,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
if (lib_path.isEmpty())
{
error_text = i18n("Can not find io-slave for protocol '%1'.").arg(protocol);
- error = KIO::ERR_CANNOT_LAUNCH_PROCESS;
+ error = TDEIO::ERR_CANNOT_LAUNCH_PROCESS;
return 0;
}
@@ -435,7 +435,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
if (!client->call(launcher, launcher, "requestSlave(TQString,TQString,TQString)",
params, replyType, reply)) {
error_text = i18n("Cannot talk to klauncher");
- error = KIO::ERR_SLAVE_DEFINED;
+ error = TDEIO::ERR_SLAVE_DEFINED;
delete slave;
return 0;
}
@@ -446,7 +446,7 @@ Slave* Slave::createSlave( const TQString &protocol, const KURL& url, int& error
if (!pid)
{
error_text = i18n("Unable to create io-slave:\nklauncher said: %1").arg(errorStr);
- error = KIO::ERR_CANNOT_LAUNCH_PROCESS;
+ error = TDEIO::ERR_CANNOT_LAUNCH_PROCESS;
delete slave;
return 0;
}
@@ -479,7 +479,7 @@ Slave* Slave::holdSlave( const TQString &protocol, const KURL& url )
#endif
#ifndef Q_WS_WIN
- KServerSocket *kss = new KServerSocket(TQFile::encodeName(socketfile.name()).data());
+ TDEServerSocket *kss = new TDEServerSocket(TQFile::encodeName(socketfile.name()).data());
Slave *slave = new Slave(kss, protocol, socketfile.name());
#else
@@ -513,7 +513,7 @@ Slave* Slave::holdSlave( const TQString &protocol, const KURL& url )
}
void Slave::virtual_hook( int id, void* data ) {
- KIO::SlaveInterface::virtual_hook( id, data );
+ TDEIO::SlaveInterface::virtual_hook( id, data );
}
#include "slave.moc"
diff --git a/kio/kio/slave.h b/kio/kio/slave.h
index e5cdc332c..bbede6637 100644
--- a/kio/kio/slave.h
+++ b/kio/kio/slave.h
@@ -32,16 +32,16 @@
#include "kio/slaveinterface.h"
#include "kio/connection.h"
-class KServerSocket;
-class KSocket;
+class TDEServerSocket;
+class TDESocket;
-namespace KIO {
+namespace TDEIO {
- /** Attention developers: If you change the implementation of KIO::Slave,
- * do *not* use connection() or slaveconn but the respective KIO::Slave
+ /** Attention developers: If you change the implementation of TDEIO::Slave,
+ * do *not* use connection() or slaveconn but the respective TDEIO::Slave
* accessor methods. Otherwise classes derived from Slave might break. (LS)
*/
- class KIO_EXPORT Slave : public KIO::SlaveInterface
+ class KIO_EXPORT Slave : public TDEIO::SlaveInterface
{
Q_OBJECT
@@ -53,11 +53,11 @@ namespace KIO {
* @internal
* @since 3.2
*/
- Slave(bool derived, KServerSocket *unixdomain, const TQString &protocol,
+ Slave(bool derived, TDEServerSocket *unixdomain, const TQString &protocol,
const TQString &socketname); // TODO(BIC): Remove in KDE 4
public:
- Slave(KServerSocket *unixdomain,
+ Slave(TDEServerSocket *unixdomain,
const TQString &protocol, const TQString &socketname);
virtual ~Slave();
@@ -202,7 +202,7 @@ namespace KIO {
void setConnected(bool c) { contacted = c; }
/** @deprecated This method is obsolete, use the accessor methods
- * within KIO::Slave instead. Old code directly accessing connection()
+ * within TDEIO::Slave instead. Old code directly accessing connection()
* will not be able to access special protocols.
*/
KDE_DEPRECATED Connection *connection() { return &slaveconn; } // TODO(BIC): remove before KDE 4
@@ -211,11 +211,11 @@ namespace KIO {
void deref() { m_refCount--; if (!m_refCount) delete this; }
public slots:
- void accept(KSocket *socket);
+ void accept(TDESocket *socket);
void gotInput();
void timeout();
signals:
- void slaveDied(KIO::Slave *slave);
+ void slaveDied(TDEIO::Slave *slave);
protected:
void unlinkSocket();
@@ -227,14 +227,14 @@ namespace KIO {
int m_port;
TQString m_user;
TQString m_passwd;
- KServerSocket *serv;
+ TDEServerSocket *serv;
TQString m_socket;
pid_t m_pid;
bool contacted;
bool dead;
time_t contact_started;
time_t idle_since;
- KIO::Connection slaveconn;
+ TDEIO::Connection slaveconn;
int m_refCount;
protected:
virtual void virtual_hook( int id, void* data );
diff --git a/kio/kio/slavebase.cpp b/kio/kio/slavebase.cpp
index d2e807077..07d784527 100644
--- a/kio/kio/slavebase.cpp
+++ b/kio/kio/slavebase.cpp
@@ -66,7 +66,7 @@
#endif
#endif
-using namespace KIO;
+using namespace TDEIO;
template class TQPtrList<TQValueList<UDSAtom> >;
typedef TQValueList<TQCString> AuthKeysList;
@@ -74,9 +74,9 @@ typedef TQMap<TQString,TQCString> AuthKeysMap;
#define KIO_DATA TQByteArray data; TQDataStream stream( data, IO_WriteOnly ); stream
#define KIO_FILESIZE_T(x) (unsigned long)(x & 0xffffffff) << (unsigned long)(x >> 32)
-namespace KIO {
+namespace TDEIO {
-class SlaveBaseConfig : public KConfigBase
+class SlaveBaseConfig : public TDEConfigBase
{
public:
SlaveBaseConfig(SlaveBase *_slave)
@@ -124,8 +124,8 @@ public:
KURL onHoldUrl;
struct timeval last_tv;
- KIO::filesize_t totalSize;
- KIO::filesize_t sentListEntries;
+ TDEIO::filesize_t totalSize;
+ TDEIO::filesize_t sentListEntries;
DCOPClient *dcopClient;
KRemoteEncoding *remotefile;
time_t timeout;
@@ -341,8 +341,8 @@ void SlaveBase::dispatchLoop()
void SlaveBase::connectSlave(const TQString& path)
{
-#ifdef Q_OS_UNIX //TODO: KSocket not yet available on WIN32
- appconn->init(new KSocket(TQFile::encodeName(path).data()));
+#ifdef Q_OS_UNIX //TODO: TDESocket not yet available on WIN32
+ appconn->init(new TDESocket(TQFile::encodeName(path).data()));
if (!appconn->inited())
{
kdDebug(7019) << "SlaveBase: failed to connect to " << path << endl;
@@ -389,7 +389,7 @@ bool SlaveBase::hasMetaData(const TQString &key) {
return const_cast<const SlaveBase*>(this)->hasMetaData( key );
}
-KConfigBase *SlaveBase::config()
+TDEConfigBase *SlaveBase::config()
{
return d->config;
}
@@ -485,7 +485,7 @@ void SlaveBase::canResume()
m_pConnection->send( MSG_CANRESUME );
}
-void SlaveBase::totalSize( KIO::filesize_t _bytes )
+void SlaveBase::totalSize( TDEIO::filesize_t _bytes )
{
KIO_DATA << KIO_FILESIZE_T(_bytes);
slaveWriteError = false;
@@ -501,7 +501,7 @@ void SlaveBase::totalSize( KIO::filesize_t _bytes )
d->sentListEntries=0;
}
-void SlaveBase::processedSize( KIO::filesize_t _bytes )
+void SlaveBase::processedSize( TDEIO::filesize_t _bytes )
{
bool emitSignal=false;
struct timeval tv;
@@ -872,7 +872,7 @@ bool SlaveBase::openPassDlg( AuthInfo& info, const TQString &errorMsg )
else
stream << info << errorMsg << windowId << s_seqNr << userTimestamp;
- bool callOK = d->dcopClient->call( "kded", "kpasswdserver", "queryAuthInfo(KIO::AuthInfo, TQString, long int, long int, unsigned long int)",
+ bool callOK = d->dcopClient->call( "kded", "kpasswdserver", "queryAuthInfo(TDEIO::AuthInfo, TQString, long int, long int, unsigned long int)",
params, replyType, reply );
if (progressId)
@@ -884,7 +884,7 @@ bool SlaveBase::openPassDlg( AuthInfo& info, const TQString &errorMsg )
return false;
}
- if ( replyType == "KIO::AuthInfo" )
+ if ( replyType == "TDEIO::AuthInfo" )
{
TQDataStream stream2( reply, IO_ReadOnly );
stream2 >> authResult >> s_seqNr;
@@ -892,7 +892,7 @@ bool SlaveBase::openPassDlg( AuthInfo& info, const TQString &errorMsg )
else
{
kdError(7019) << "DCOP function queryAuthInfo(...) returns "
- << replyType << ", expected KIO::AuthInfo" << endl;
+ << replyType << ", expected TDEIO::AuthInfo" << endl;
return false;
}
@@ -930,9 +930,9 @@ int SlaveBase::messageBox( const TQString &text, MessageBoxType type, const TQSt
return 0; // communication failure
}
-bool SlaveBase::canResume( KIO::filesize_t offset )
+bool SlaveBase::canResume( TDEIO::filesize_t offset )
{
- kdDebug(7019) << "SlaveBase::canResume offset=" << KIO::number(offset) << endl;
+ kdDebug(7019) << "SlaveBase::canResume offset=" << TDEIO::number(offset) << endl;
d->needSendCanResume = false;
KIO_DATA << KIO_FILESIZE_T(offset);
m_pConnection->send( MSG_RESUME, data );
@@ -1216,14 +1216,14 @@ bool SlaveBase::checkCachedAuthentication( AuthInfo& info )
TQDataStream stream(params, IO_WriteOnly);
stream << info << windowId << userTimestamp;
- if ( !d->dcopClient->call( "kded", "kpasswdserver", "checkAuthInfo(KIO::AuthInfo, long int, unsigned long int)",
+ if ( !d->dcopClient->call( "kded", "kpasswdserver", "checkAuthInfo(TDEIO::AuthInfo, long int, unsigned long int)",
params, replyType, reply ) )
{
kdWarning(7019) << "Can't communicate with kded_kpasswdserver!" << endl;
return false;
}
- if ( replyType == "KIO::AuthInfo" )
+ if ( replyType == "TDEIO::AuthInfo" )
{
TQDataStream stream2( reply, IO_ReadOnly );
stream2 >> authResult;
@@ -1231,7 +1231,7 @@ bool SlaveBase::checkCachedAuthentication( AuthInfo& info )
else
{
kdError(7019) << "DCOP function checkAuthInfo(...) returns "
- << replyType << ", expected KIO::AuthInfo" << endl;
+ << replyType << ", expected TDEIO::AuthInfo" << endl;
return false;
}
if (!authResult.isModified())
@@ -1253,7 +1253,7 @@ bool SlaveBase::cacheAuthentication( const AuthInfo& info )
TQDataStream stream(params, IO_WriteOnly);
stream << info << windowId;
- d->dcopClient->send( "kded", "kpasswdserver", "addAuthInfo(KIO::AuthInfo, long int)", params );
+ d->dcopClient->send( "kded", "kpasswdserver", "addAuthInfo(TDEIO::AuthInfo, long int)", params );
return true;
}
diff --git a/kio/kio/slavebase.h b/kio/kio/slavebase.h
index b6e48d5b6..332646875 100644
--- a/kio/kio/slavebase.h
+++ b/kio/kio/slavebase.h
@@ -28,7 +28,7 @@
class DCOPClient;
class KRemoteEncoding;
-namespace KIO {
+namespace TDEIO {
class Connection;
class SlaveBasePrivate;
@@ -93,7 +93,7 @@ public:
* Call to signal an error.
* This also finishes the job, no need to call finished.
*
- * If the Error code is KIO::ERR_SLAVE_DEFINED then the
+ * If the Error code is TDEIO::ERR_SLAVE_DEFINED then the
* _text should contain the complete translated text of
* of the error message. This message will be displayed
* in an KTextBrowser which allows rich text complete
@@ -101,9 +101,9 @@ public:
* mailer, "exec:/command arg1 arg2" will be forked and
* all other links will call the default browser.
*
- * @see KIO::Error
+ * @see TDEIO::Error
* @see KTextBrowser
- * @param _errid the error code from KIO::Error
+ * @param _errid the error code from TDEIO::Error
* @param _text the rich text error message
*/
void error( int _errid, const TQString &_text );
@@ -154,7 +154,7 @@ public:
* In this case, the boolean returns whether we can indeed resume or not
* (we can't if the protocol doing the get() doesn't support setting an offset)
*/
- bool canResume( KIO::filesize_t offset );
+ bool canResume( TDEIO::filesize_t offset );
/*
* Call this at the beginning of get(), if the "resume" metadata was set
@@ -171,13 +171,13 @@ public:
* of the file
* Call in listDir too, when you know the total number of items.
*/
- void totalSize( KIO::filesize_t _bytes );
+ void totalSize( TDEIO::filesize_t _bytes );
/**
* Call this during get and copy, once in a while,
* to give some info about the current state.
* Don't emit it in listDir, listEntries speaks for itself.
*/
- void processedSize( KIO::filesize_t _bytes );
+ void processedSize( TDEIO::filesize_t _bytes );
/**
* Only use this if you can't know in advance the size of the
@@ -317,7 +317,7 @@ public:
* The application provides the slave with all configuration information
* relevant for the current protocol and host.
*/
- KConfigBase* config();
+ TDEConfigBase* config();
/**
* Returns an object that can translate remote filenames into proper
@@ -621,7 +621,7 @@ public:
* simple example:
*
* \code
- * KIO::AuthInfo authInfo;
+ * TDEIO::AuthInfo authInfo;
* if ( openPassDlg( authInfo ) )
* {
* kdDebug() << TQString::fromLatin1("User: ")
@@ -635,7 +635,7 @@ public:
* comment as follows:
*
* \code
- * KIO::AuthInfo authInfo;
+ * TDEIO::AuthInfo authInfo;
* authInfo.caption= "Acme Password Dialog";
* authInfo.username= "Wile E. Coyote";
* TQString errorMsg = "You entered an incorrect password.";
@@ -661,13 +661,13 @@ public:
* @return @p true if user clicks on "OK", @p false otherwsie.
* @since 3.1
*/
- bool openPassDlg( KIO::AuthInfo& info, const TQString &errorMsg );
+ bool openPassDlg( TDEIO::AuthInfo& info, const TQString &errorMsg );
/**
* Same as above function except it does not need error message.
* BIC: Combine this function with the above for KDE4.
*/
- bool openPassDlg( KIO::AuthInfo& info );
+ bool openPassDlg( TDEIO::AuthInfo& info );
/**
* Checks for cached authentication based on parameters
diff --git a/kio/kio/slaveconfig.cpp b/kio/kio/slaveconfig.cpp
index 9ce4a86a0..c0ec44779 100644
--- a/kio/kio/slaveconfig.cpp
+++ b/kio/kio/slaveconfig.cpp
@@ -31,9 +31,9 @@
#include "slaveconfig.h"
-using namespace KIO;
+using namespace TDEIO;
-namespace KIO {
+namespace TDEIO {
class SlaveConfigProtocol
{
@@ -47,10 +47,10 @@ public:
public:
MetaData global;
TQDict<MetaData> host;
- KConfig *configFile;
+ TDEConfig *configFile;
};
-static void readConfig(KConfig *config, const TQString & group, MetaData *metaData)
+static void readConfig(TDEConfig *config, const TQString & group, MetaData *metaData)
{
*metaData += config->entryMap(group);
}
@@ -71,7 +71,7 @@ void SlaveConfigPrivate::readGlobalConfig()
{
global.clear();
// Read stuff...
- KConfig *config = KProtocolManager::config();
+ TDEConfig *config = KProtocolManager::config();
readConfig(TDEGlobal::config(), "Socks", &global); // Socks settings.
if ( config )
readConfig(config, "<default>", &global);
@@ -84,7 +84,7 @@ SlaveConfigProtocol* SlaveConfigPrivate::readProtocolConfig(const TQString &_pro
{
TQString filename = KProtocolInfo::config(_protocol);
scp = new SlaveConfigProtocol;
- scp->configFile = new KConfig(filename, true, false);
+ scp->configFile = new TDEConfig(filename, true, false);
protocol.insert(_protocol, scp);
}
// Read global stuff...
diff --git a/kio/kio/slaveconfig.h b/kio/kio/slaveconfig.h
index a7ded457d..59abb74ac 100644
--- a/kio/kio/slaveconfig.h
+++ b/kio/kio/slaveconfig.h
@@ -24,7 +24,7 @@
#include <tqobject.h>
#include <kio/global.h>
-namespace KIO {
+namespace TDEIO {
class SlaveConfigPrivate;
/**
diff --git a/kio/kio/slaveinterface.cpp b/kio/kio/slaveinterface.cpp
index 05036cf8a..5ba2f6e86 100644
--- a/kio/kio/slaveinterface.cpp
+++ b/kio/kio/slaveinterface.cpp
@@ -32,10 +32,10 @@
#include <time.h>
#include <tqtimer.h>
-using namespace KIO;
+using namespace TDEIO;
-TQDataStream &operator <<(TQDataStream &s, const KIO::UDSEntry &e )
+TQDataStream &operator <<(TQDataStream &s, const TDEIO::UDSEntry &e )
{
// On 32-bit platforms we send UDS_SIZE with UDS_SIZE_LARGE in front
// of it to carry the 32 msb. We can't send a 64 bit UDS_SIZE because
@@ -44,21 +44,21 @@ TQDataStream &operator <<(TQDataStream &s, const KIO::UDSEntry &e )
// environment.
TQ_UINT32 size = 0;
- KIO::UDSEntry::ConstIterator it = e.begin();
+ TDEIO::UDSEntry::ConstIterator it = e.begin();
for( ; it != e.end(); ++it )
{
size++;
- if ((*it).m_uds == KIO::UDS_SIZE)
+ if ((*it).m_uds == TDEIO::UDS_SIZE)
size++;
}
s << size;
it = e.begin();
for( ; it != e.end(); ++it )
{
- if ((*it).m_uds == KIO::UDS_SIZE)
+ if ((*it).m_uds == TDEIO::UDS_SIZE)
{
- KIO::UDSAtom a;
- a.m_uds = KIO::UDS_SIZE_LARGE;
+ TDEIO::UDSAtom a;
+ a.m_uds = TDEIO::UDS_SIZE_LARGE;
a.m_long = (*it).m_long >> 32;
s << a;
}
@@ -67,7 +67,7 @@ TQDataStream &operator <<(TQDataStream &s, const KIO::UDSEntry &e )
return s;
}
-TQDataStream &operator >>(TQDataStream &s, KIO::UDSEntry &e )
+TQDataStream &operator >>(TQDataStream &s, TDEIO::UDSEntry &e )
{
e.clear();
TQ_UINT32 size;
@@ -81,15 +81,15 @@ TQDataStream &operator >>(TQDataStream &s, KIO::UDSEntry &e )
TQ_LLONG msb = 0;
for(TQ_UINT32 i = 0; i < size; i++)
{
- KIO::UDSAtom a;
+ TDEIO::UDSAtom a;
s >> a;
- if (a.m_uds == KIO::UDS_SIZE_LARGE)
+ if (a.m_uds == TDEIO::UDS_SIZE_LARGE)
{
msb = a.m_long;
}
else
{
- if (a.m_uds == KIO::UDS_SIZE)
+ if (a.m_uds == TDEIO::UDS_SIZE)
{
if (a.m_long < 0)
a.m_long += (TQ_LLONG) 1 << 32;
@@ -104,7 +104,7 @@ TQDataStream &operator >>(TQDataStream &s, KIO::UDSEntry &e )
static const unsigned int max_nums = 8;
-class KIO::SlaveInterfacePrivate
+class TDEIO::SlaveInterfacePrivate
{
public:
SlaveInterfacePrivate() {
@@ -120,9 +120,9 @@ public:
struct timeval start_time;
uint nums;
long times[max_nums];
- KIO::filesize_t sizes[max_nums];
+ TDEIO::filesize_t sizes[max_nums];
size_t last_time;
- KIO::filesize_t filesize, offset;
+ TDEIO::filesize_t filesize, offset;
TQTimer speed_timer;
};
@@ -146,16 +146,16 @@ SlaveInterface::~SlaveInterface()
delete d;
}
-static KIO::filesize_t readFilesize_t(TQDataStream &stream)
+static TDEIO::filesize_t readFilesize_t(TQDataStream &stream)
{
- KIO::filesize_t result;
+ TDEIO::filesize_t result;
unsigned long ul;
stream >> ul;
result = ul;
if (stream.atEnd())
return result;
stream >> ul;
- result += ((KIO::filesize_t)ul) << 32;
+ result += ((TDEIO::filesize_t)ul) << 32;
return result;
}
@@ -199,7 +199,7 @@ void SlaveInterface::calcSpeed()
d->times[d->nums] = diff;
d->sizes[d->nums++] = d->filesize - d->offset;
- KIO::filesize_t lspeed = 1000 * (d->sizes[d->nums-1] - d->sizes[0]) / (d->times[d->nums-1] - d->times[0]);
+ TDEIO::filesize_t lspeed = 1000 * (d->sizes[d->nums-1] - d->sizes[0]) / (d->times[d->nums-1] - d->times[0]);
// kdDebug() << "proceeed " << (long)d->filesize << " " << diff << " "
// << long(d->sizes[d->nums-1] - d->sizes[0]) << " "
@@ -293,7 +293,7 @@ bool SlaveInterface::dispatch( int _cmd, const TQByteArray &rawdata )
case INF_TOTAL_SIZE:
{
- KIO::filesize_t size = readFilesize_t(stream);
+ TDEIO::filesize_t size = readFilesize_t(stream);
gettimeofday(&d->start_time, 0);
d->last_time = 0;
d->filesize = d->offset;
@@ -307,7 +307,7 @@ bool SlaveInterface::dispatch( int _cmd, const TQByteArray &rawdata )
break;
case INF_PROCESSED_SIZE:
{
- KIO::filesize_t size = readFilesize_t(stream);
+ TDEIO::filesize_t size = readFilesize_t(stream);
emit processedSize( size );
d->filesize = size;
}
@@ -423,12 +423,12 @@ bool SlaveInterface::dispatch( int _cmd, const TQByteArray &rawdata )
return true;
}
-void SlaveInterface::setOffset( KIO::filesize_t o)
+void SlaveInterface::setOffset( TDEIO::filesize_t o)
{
d->offset = o;
}
-KIO::filesize_t SlaveInterface::offset() const { return d->offset; }
+TDEIO::filesize_t SlaveInterface::offset() const { return d->offset; }
void SlaveInterface::requestNetwork(const TQString &host, const TQString &slaveid)
{
@@ -510,7 +510,7 @@ void SlaveInterface::messageBox( int type, const TQString &text, const TQString
TQDataStream stream( packedArgs, IO_WriteOnly );
TQString caption( _caption );
- if ( type == KIO::SlaveBase::SSLMessageBox )
+ if ( type == TDEIO::SlaveBase::SSLMessageBox )
caption = TQString::fromUtf8(kapp->dcopClient()->appId()); // hack, see observer.cpp
emit needProgressId();
diff --git a/kio/kio/slaveinterface.h b/kio/kio/slaveinterface.h
index 9d278adfc..79d797e08 100644
--- a/kio/kio/slaveinterface.h
+++ b/kio/kio/slaveinterface.h
@@ -30,7 +30,7 @@
#include <kio/authinfo.h>
#include <kdatastream.h>
-namespace KIO {
+namespace TDEIO {
class Connection;
// better there is one ...
@@ -85,7 +85,7 @@ class SlaveInterfacePrivate;
/**
* There are two classes that specifies the protocol between application
- * (KIO::Job) and kioslave. SlaveInterface is the class to use on the application
+ * (TDEIO::Job) and kioslave. SlaveInterface is the class to use on the application
* end, SlaveBase is the one to use on the slave end.
*
* A call to foo() results in a call to slotFoo() on the other end.
@@ -109,8 +109,8 @@ public:
*/
void sendResumeAnswer( bool resume );
- void setOffset( KIO::filesize_t offset );
- KIO::filesize_t offset() const;
+ void setOffset( TDEIO::filesize_t offset );
+ TDEIO::filesize_t offset() const;
signals:
///////////
@@ -123,19 +123,19 @@ signals:
void connected();
void finished();
void slaveStatus(pid_t, const TQCString &, const TQString &, bool);
- void listEntries( const KIO::UDSEntryList& );
- void statEntry( const KIO::UDSEntry& );
+ void listEntries( const TDEIO::UDSEntryList& );
+ void statEntry( const TDEIO::UDSEntry& );
void needSubURLData();
void needProgressId();
- void canResume( KIO::filesize_t ) ;
+ void canResume( TDEIO::filesize_t ) ;
///////////
// Info sent by the slave
//////////
- void metaData( const KIO::MetaData & );
- void totalSize( KIO::filesize_t ) ;
- void processedSize( KIO::filesize_t ) ;
+ void metaData( const TDEIO::MetaData & );
+ void totalSize( TDEIO::filesize_t ) ;
+ void processedSize( TDEIO::filesize_t ) ;
void redirection( const KURL& ) ;
void localURL( const KURL&, bool ) ;
@@ -172,7 +172,7 @@ protected:
* using default values:
*
* \code
- * KIO::AuthInfo authInfo;
+ * TDEIO::AuthInfo authInfo;
* bool result = openPassDlg( authInfo );
* if ( result )
* {
@@ -203,7 +203,7 @@ protected:
* @param info See AuthInfo.
* @return true if user clicks on "OK", false otherwsie.
*/
- void openPassDlg( KIO::AuthInfo& info );
+ void openPassDlg( TDEIO::AuthInfo& info );
/**
* @deprecated. Use openPassDlg( AuthInfo& ) instead.
@@ -252,16 +252,16 @@ private:
}
-inline TQDataStream &operator >>(TQDataStream &s, KIO::UDSAtom &a )
+inline TQDataStream &operator >>(TQDataStream &s, TDEIO::UDSAtom &a )
{
TQ_INT32 l;
s >> a.m_uds;
- if ( a.m_uds & KIO::UDS_LONG ) {
+ if ( a.m_uds & TDEIO::UDS_LONG ) {
s >> l;
a.m_long = l;
a.m_str = TQString::null;
- } else if ( a.m_uds & KIO::UDS_STRING ) {
+ } else if ( a.m_uds & TDEIO::UDS_STRING ) {
s >> a.m_str;
a.m_long = 0;
} else {} // DIE!
@@ -270,13 +270,13 @@ inline TQDataStream &operator >>(TQDataStream &s, KIO::UDSAtom &a )
return s;
}
-inline TQDataStream &operator <<(TQDataStream &s, const KIO::UDSAtom &a )
+inline TQDataStream &operator <<(TQDataStream &s, const TDEIO::UDSAtom &a )
{
s << a.m_uds;
- if ( a.m_uds & KIO::UDS_LONG )
+ if ( a.m_uds & TDEIO::UDS_LONG )
s << (TQ_INT32) a.m_long;
- else if ( a.m_uds & KIO::UDS_STRING )
+ else if ( a.m_uds & TDEIO::UDS_STRING )
s << a.m_str;
else {} // DIE!
// assert( 0 );
@@ -284,7 +284,7 @@ inline TQDataStream &operator <<(TQDataStream &s, const KIO::UDSAtom &a )
return s;
}
-KIO_EXPORT TQDataStream &operator <<(TQDataStream &s, const KIO::UDSEntry &e );
-KIO_EXPORT TQDataStream &operator >>(TQDataStream &s, KIO::UDSEntry &e );
+KIO_EXPORT TQDataStream &operator <<(TQDataStream &s, const TDEIO::UDSEntry &e );
+KIO_EXPORT TQDataStream &operator >>(TQDataStream &s, TDEIO::UDSEntry &e );
#endif
diff --git a/kio/kio/statusbarprogress.cpp b/kio/kio/statusbarprogress.cpp
index 777f96e58..66517ca03 100644
--- a/kio/kio/statusbarprogress.cpp
+++ b/kio/kio/statusbarprogress.cpp
@@ -30,7 +30,7 @@
#include "jobclasses.h"
#include "statusbarprogress.h"
-namespace KIO {
+namespace TDEIO {
StatusbarProgress::StatusbarProgress( TQWidget* parent, bool button )
: ProgressBase( parent ) {
@@ -71,7 +71,7 @@ StatusbarProgress::StatusbarProgress( TQWidget* parent, bool button )
}
-void StatusbarProgress::setJob( KIO::Job *job )
+void StatusbarProgress::setJob( TDEIO::Job *job )
{
ProgressBase::setJob( job );
@@ -118,20 +118,20 @@ void StatusbarProgress::slotClean() {
}
-void StatusbarProgress::slotTotalSize( KIO::Job*, KIO::filesize_t size ) {
+void StatusbarProgress::slotTotalSize( TDEIO::Job*, TDEIO::filesize_t size ) {
m_iTotalSize = size; // size is measured in bytes
}
-void StatusbarProgress::slotPercent( KIO::Job*, unsigned long percent ) {
+void StatusbarProgress::slotPercent( TDEIO::Job*, unsigned long percent ) {
m_pProgressBar->setValue( percent );
}
-void StatusbarProgress::slotSpeed( KIO::Job*, unsigned long speed ) {
+void StatusbarProgress::slotSpeed( TDEIO::Job*, unsigned long speed ) {
if ( speed == 0 ) { // spped is measured in bytes-per-second
m_pLabel->setText( i18n( " Stalled ") );
} else {
- m_pLabel->setText( i18n( " %1/s ").arg( KIO::convertSize( speed )) );
+ m_pLabel->setText( i18n( " %1/s ").arg( TDEIO::convertSize( speed )) );
}
}
diff --git a/kio/kio/statusbarprogress.h b/kio/kio/statusbarprogress.h
index 6fb460283..58bd77fa9 100644
--- a/kio/kio/statusbarprogress.h
+++ b/kio/kio/statusbarprogress.h
@@ -27,7 +27,7 @@ class TQPushButton;
class TQLabel;
class KProgress;
-namespace KIO {
+namespace TDEIO {
class Job;
@@ -49,7 +49,7 @@ class Job;
* statusBar()->insertWidget( statusProgress, statusProgress->width() , 0 );
* ...
* // create job and connect it to the progress
-* CopyJob* job = KIO::copy(...);
+* CopyJob* job = TDEIO::copy(...);
* statusProgress->setJob( job );
* ...
* \endcode
@@ -76,20 +76,20 @@ public:
* Sets the job to monitor.
* @param job the job to monitor
*/
- void setJob( KIO::Job *job );
+ void setJob( TDEIO::Job *job );
public slots:
virtual void slotClean();
- virtual void slotTotalSize( KIO::Job* job, KIO::filesize_t size );
- virtual void slotPercent( KIO::Job* job, unsigned long percent );
- virtual void slotSpeed( KIO::Job* job, unsigned long speed );
+ virtual void slotTotalSize( TDEIO::Job* job, TDEIO::filesize_t size );
+ virtual void slotPercent( TDEIO::Job* job, unsigned long percent );
+ virtual void slotSpeed( TDEIO::Job* job, unsigned long speed );
protected:
KProgress* m_pProgressBar;
TQLabel* m_pLabel;
TQPushButton* m_pButton;
- KIO::filesize_t m_iTotalSize;
+ TDEIO::filesize_t m_iTotalSize;
enum Mode { None, Label, Progress };
diff --git a/kio/kio/tcpslavebase.cpp b/kio/kio/tcpslavebase.cpp
index dc556ea23..8d3cc49ff 100644
--- a/kio/kio/tcpslavebase.cpp
+++ b/kio/kio/tcpslavebase.cpp
@@ -60,7 +60,7 @@
#include "kio/tcpslavebase.h"
-using namespace KIO;
+using namespace TDEIO;
class TCPSlaveBase::TcpSlaveBasePrivate
{
@@ -327,7 +327,7 @@ bool TCPSlaveBase::connectToHost( const TQString &host,
"WarnOnLeaveSSLMode" );
// Move this setting into KSSL instead
- KConfig *config = new KConfig("kioslaverc");
+ TDEConfig *config = new TDEConfig("kioslaverc");
config->setGroup("Notification Messages");
if (!config->readBoolEntry("WarnOnLeaveSSLMode", true)) {
@@ -369,7 +369,7 @@ bool TCPSlaveBase::connectToHost( const TQString &host,
m_iSock = ks.fd();
// store the IP for later
- const KSocketAddress *sa = ks.peerAddress();
+ const TDESocketAddress *sa = ks.peerAddress();
if (sa)
d->ip = sa->nodeName();
else
@@ -671,7 +671,7 @@ KSSLCertificateHome::KSSLAuthAction aa;
// We're almost committed. If we can read the cert, we'll send it now.
KSSLPKCS12 *pkcs = KSSLCertificateHome::getCertificateByName(certname);
if (!pkcs && KSSLCertificateHome::hasCertificateByName(certname)) { // We need the password
- KIO::AuthInfo ai;
+ TDEIO::AuthInfo ai;
bool first = true;
do {
ai.prompt = i18n("Enter the certificate password:");
@@ -906,7 +906,7 @@ int TCPSlaveBase::verifyCertificate()
arg << theurl << mOutgoingMetaData;
arg << metaData("window-id").toInt();
d->dcc->call("kio_uiserver", "UIServer",
- "showSSLInfoDialog(TQString,KIO::MetaData,int)",
+ "showSSLInfoDialog(TQString,TDEIO::MetaData,int)",
data, ignoretype, ignore);
}
} while (result == KMessageBox::Yes);
@@ -1033,7 +1033,7 @@ int TCPSlaveBase::verifyCertificate()
arg << theurl << mOutgoingMetaData;
arg << metaData("window-id").toInt();
d->dcc->call("kio_uiserver", "UIServer",
- "showSSLInfoDialog(TQString,KIO::MetaData,int)",
+ "showSSLInfoDialog(TQString,TDEIO::MetaData,int)",
data, ignoretype, ignore);
}
} while (result == KMessageBox::Yes);
@@ -1090,7 +1090,7 @@ int TCPSlaveBase::verifyCertificate()
i18n("C&onnect"),
"WarnOnEnterSSLMode" );
// Move this setting into KSSL instead
- KConfig *config = new KConfig("kioslaverc");
+ TDEConfig *config = new TDEConfig("kioslaverc");
config->setGroup("Notification Messages");
if (!config->readBoolEntry("WarnOnEnterSSLMode", true)) {
@@ -1117,7 +1117,7 @@ int TCPSlaveBase::verifyCertificate()
arg << theurl << mOutgoingMetaData;
arg << metaData("window-id").toInt();
d->dcc->call("kio_uiserver", "UIServer",
- "showSSLInfoDialog(TQString,KIO::MetaData,int)",
+ "showSSLInfoDialog(TQString,TDEIO::MetaData,int)",
data, ignoretype, ignore);
}
} while (result != KMessageBox::No);
diff --git a/kio/kio/tcpslavebase.h b/kio/kio/tcpslavebase.h
index fd148b00d..8a4e436ce 100644
--- a/kio/kio/tcpslavebase.h
+++ b/kio/kio/tcpslavebase.h
@@ -31,7 +31,7 @@
#include <kio/slavebase.h>
-namespace KIO {
+namespace TDEIO {
/**
* There are two classes that specifies the protocol between application (job)
diff --git a/kio/kio/thumbcreator.h b/kio/kio/thumbcreator.h
index 3ad6ca8aa..79d499e7f 100644
--- a/kio/kio/thumbcreator.h
+++ b/kio/kio/thumbcreator.h
@@ -26,7 +26,7 @@ class TQString;
class TQImage;
/**
* This is the baseclass for "thumbnail-plugins" in KDE. Using the class
- * KIO::PreviewJob allows you to generate small images (thumbnails)
+ * TDEIO::PreviewJob allows you to generate small images (thumbnails)
* for any kind of file, where a "ThumbCreator" is available. Have a look
* at tdebase/kioslave/thumbnail/ for existing ThumbCreators.
*