Fix a few remaining references to kio_

pull/16/head
Timothy Pearson 12 years ago
parent 120efd17d0
commit 21bc754111

@ -43,8 +43,8 @@ LDFLAGS: -module $(KDE_PLUGIN)
KIOSlave
========
Name: kio_<protocol>.la
Definition: kde_module_LTLIBRARIES = kio_<protocol>.la
Name: tdeio_<protocol>.la
Definition: kde_module_LTLIBRARIES = tdeio_<protocol>.la
LDFLAGS: -module $(KDE_PLUGIN)

@ -68,7 +68,7 @@ KPlayObject *KPlayObjectFactory::createPlayObject(const KURL& _url, const TQStri
// I hate it
// I hate it
// It sucks
// kio_media please die
// tdeio_media please die
KURL url = TDEIO::NetAccess::mostLocalURL(_url, 0);
if(!m_server.isNull())
@ -139,7 +139,7 @@ KDE::PlayObject *KDE::PlayObjectFactory::createPlayObject(const KURL& _url, cons
// I hate it
// I hate it
// It sucks
// kio_media please die
// tdeio_media please die
KURL url = TDEIO::NetAccess::mostLocalURL(_url, 0);
// return a NULL playobject if the server is NULL
@ -154,7 +154,7 @@ KDE::PlayObject *KDE::PlayObjectFactory::createPlayObject(const KURL& _url, cons
createBUS = false;
}
// decide if it's a local file. mpeglib provides cdda reading and decoding, so we prefer that over kio_audiocd
// decide if it's a local file. mpeglib provides cdda reading and decoding, so we prefer that over tdeio_audiocd
if ( url.isLocalFile() || !d->allowStreaming || (url.protocol() == "audiocd" && mimetype == "application/x-cda" && mimeTypes().contains( "application/x-cda" ) ) )
{
// we rely on the delivered mimetype if it's a local file

@ -254,7 +254,7 @@ LDIF::ParseVal LDIF::processLine()
break;
case Entry_Mod:
if ( mModType == Mod_None ) {
kdDebug(5700) << "kio_ldap: new modtype " << mAttr << endl;
kdDebug(5700) << "tdeio_ldap: new modtype " << mAttr << endl;
if ( mAttr.isEmpty() && mVal.size() == 0 ) {
retval = EndEntry;
} else if ( attrLower == "add" ) {

@ -565,7 +565,7 @@ class KateDocument : public Kate::Document,
void setModified( bool m );
private slots:
void slotDataKate ( TDEIO::Job* kio_job, const TQByteArray &data );
void slotDataKate ( TDEIO::Job* tdeio_job, const TQByteArray &data );
void slotFinishedKate ( TDEIO::Job * job );
private:

@ -1283,7 +1283,7 @@ KLauncher::requestSlave(const TQString &protocol,
return 0;
}
TQCString name = _name.latin1(); // ex: "kio_ftp"
TQCString name = _name.latin1(); // ex: "tdeio_ftp"
TQCString arg1 = protocol.latin1();
TQCString arg2 = TQFile::encodeName(mPoolSocketName);
TQCString arg3 = TQFile::encodeName(app_socket);

@ -167,7 +167,7 @@ Example update file
# This is comment
Id=kde2.2
File=tdeioslaverc,kio_httprc
File=tdeioslaverc,tdeio_httprc
Group=Proxy Settings
Key=NoProxyFor
Key=UseProxy
@ -182,20 +182,20 @@ RemoveGroup=KDE
The above update file extracts config information from the file "tdeioslaverc"
and stores it into the file "kio_httprc".
and stores it into the file "tdeio_httprc".
It reads the keys "NoProxyFor", "UseProxy" and "httpProxy" from the group
"Proxy Settings" in the "tdeioslaverc" file. If any of these options are present
they are written to the keys "NoProxyFor", "UseProxy" and "Proxy" (!) in
the group "Proxy Settings" in the "kio_httprc" file.
the group "Proxy Settings" in the "tdeio_httprc" file.
It also reads the keys "MaxCacheSize" and "UseCache" from the group
"Cache Settings" in the "tdeioslaverc" file and writes this information to the
keys "MaxCacheSize" and "UseCache" in the group "Cache" (!) in the
"kio_httprc" file.
"tdeio_httprc" file.
Then it takes all keys in the "UserAgent" group of the file "tdeioslaverc"
and moves then to the "UserAgent" group in the "kio_httprc" file.
and moves then to the "UserAgent" group in the "tdeio_httprc" file.
Finally it removes the entire "KDE" group in the tdeioslaverc file.

@ -261,34 +261,34 @@
7043 kio (bookmarks)
# 71xx are for tdeioslaves
7101 kio_file
7102 kio_ftp
7103 kio_http
7101 tdeio_file
7102 tdeio_ftp
7103 tdeio_http
7104 kcookiejar
7105 kio_pop3
7106 kio_smb
7107 kio_man
7108 kio_info
7109 kio_tar
7110 kio_gzip
7111 kio_sql
7112 kio_smtp
7113 kio_http_debug
7114 kio_nntp
7115 kio_thumbnail
7116 kio_imap
7117 kio_audiocd
7118 kio_bzip2
7119 kio_help
7120 kio_sftp
7121 kio_nfs
7122 kio_sieve
7123 kio_kamera
7124 kio_cgi
7125 kio_ldap
7126 kio_devices
7127 kio_fish
7128 kio_svn
7105 tdeio_pop3
7106 tdeio_smb
7107 tdeio_man
7108 tdeio_info
7109 tdeio_tar
7110 tdeio_gzip
7111 tdeio_sql
7112 tdeio_smtp
7113 tdeio_http_debug
7114 tdeio_nntp
7115 tdeio_thumbnail
7116 tdeio_imap
7117 tdeio_audiocd
7118 tdeio_bzip2
7119 tdeio_help
7120 tdeio_sftp
7121 tdeio_nfs
7122 tdeio_sieve
7123 tdeio_kamera
7124 tdeio_cgi
7125 tdeio_ldap
7126 tdeio_devices
7127 tdeio_fish
7128 tdeio_svn
# tdesdk
8100 kompare

@ -112,7 +112,7 @@ InfoOutput=4
[5901]
InfoOutput=4
# kio_http_debug debug info off
# tdeio_http_debug debug info off
[7113]
InfoOutput=4
@ -120,7 +120,7 @@ InfoOutput=4
[7118]
InfoOutput=4
# kio_nntp debug info off
# tdeio_nntp debug info off
[7114]
InfoOutput=4

@ -539,7 +539,7 @@ void TDEGlobalSettings::initStatic() // should be called initPaths(). Don't put
if ( !s_documentPath->endsWith("/"))
s_documentPath->append('/');
// Trash Path - TODO remove in KDE4 (kio_trash can't use it for interoperability reasons)
// Trash Path - TODO remove in KDE4 (tdeio_trash can't use it for interoperability reasons)
*s_trashPath = *s_desktopPath + i18n("Trash") + "/";
*s_trashPath = g.readPathEntry( "Trash" , *s_trashPath);
*s_trashPath = TQDir::cleanDirPath( *s_trashPath );

@ -403,7 +403,7 @@ TQString KProtocolInfo::config( const TQString& _protocol )
if ( !prot )
return TQString::null;
return TQString("kio_%1rc").arg(prot->m_config);
return TQString("tdeio_%1rc").arg(prot->m_config);
}
int KProtocolInfo::maxSlaves( const TQString& _protocol )

@ -1377,7 +1377,7 @@ bool KSimpleDirWatchPrivate::isNoisyFile( const char * filename )
if (strncmp(filename, ".X.err", 6) == 0) return true;
if (strncmp(filename, ".xsession-errors", 16) == 0) return true;
// fontconfig updates the cache on every KDE app start
// (inclusive kio_thumbnail slaves)
// (inclusive tdeio_thumbnail slaves)
if (strncmp(filename, ".fonts.cache", 12) == 0) return true;
}

@ -393,7 +393,7 @@ void XMLHttpRequest::send(const TQString& _body)
// Set the default referrer if one is not already supplied
// through setRequestHeader. NOTE: the user can still disable
// this feature at the protocol level (kio_http).
// this feature at the protocol level (tdeio_http).
// ### does find() ever succeed? the headers are stored in lower case!
if (requestHeaders.find("Referer") == requestHeaders.end()) {
KURL documentURL(doc->URL());
@ -476,7 +476,7 @@ void XMLHttpRequest::setRequestHeader(const TQString& _name, const TQString &val
// Sanitize the request headers below and handle them as if they are
// calls to open. Otherwise, we will end up ignoring them all together!
// TODO: Do something about "put" which kio_http sort of supports and
// TODO: Do something about "put" which tdeio_http sort of supports and
// the webDAV headers such as PROPFIND etc...
if (name == "get" || name == "post") {
KURL reqURL (doc->URL(), value.stripWhiteSpace());

@ -36,7 +36,7 @@ class TDEHTMLPageCachePrivate;
* These operations always want to use the original document and
* don't want to fetch the data from the network again.
*
* It operates completely independent from the kio_http cache.
* It operates completely independent from the tdeio_http cache.
*/
class TDEHTMLPageCache : public TQObject
{

@ -1511,9 +1511,9 @@ DOM::DocumentImpl *TDEHTMLPart::xmlDocImpl() const
return 0;
}
void TDEHTMLPart::slotInfoMessage(TDEIO::Job* kio_job, const TQString& msg)
void TDEHTMLPart::slotInfoMessage(TDEIO::Job* tdeio_job, const TQString& msg)
{
assert(d->m_job == kio_job);
assert(d->m_job == tdeio_job);
if (!parentPart())
setStatusBarText(msg, BarDefaultText);
@ -1562,9 +1562,9 @@ void TDEHTMLPart::setPageSecurity( PageSecurity sec )
d->m_statusBarIconLabel->setPixmap( SmallIcon( iconName, instance() ) );
}
void TDEHTMLPart::slotData( TDEIO::Job* kio_job, const TQByteArray &data )
void TDEHTMLPart::slotData( TDEIO::Job* tdeio_job, const TQByteArray &data )
{
assert ( d->m_job == kio_job );
assert ( d->m_job == tdeio_job );
//kdDebug( 6050 ) << "slotData: " << data.size() << endl;
// The first data ?

@ -260,7 +260,7 @@ void KMultiPart::slotData( TDEIO::Job *job, const TQByteArray &data )
#endif
startOfData();
}
// First header (when we know it from kio_http)
// First header (when we know it from tdeio_http)
else if ( line == m_boundary )
; // nothing to do
else if ( !line.isEmpty() ) // this happens with e.g. Set-Cookie:

@ -109,7 +109,7 @@ ssl_proxied bool Presently exists only if true. Set in TCPSlaveBase to indicat
main_frame_request bool Actually for SSL, this is set in the caller to tell TCPSlaveBase if this is the request for the main frame of an html page. (dfault: true)
HTTP-Version string The HTTP version in use for kio_http (set by http)
HTTP-Version string The HTTP version in use for tdeio_http (set by http)
PropagateHttpHeader bool Whether HTTP headers should be send back (read by http)

@ -3,14 +3,14 @@ Type=Service
Name=tdeio_uiserver
Name[de]=Server der graphischen Oberfläche
Name[fy]=Kio_uiserver
Name[ja]=kio_uiサーバ
Name[ja]=tdeio_uiサーバ
Name[mn]=График гадаргуугийн сервер
Name[nds]=tdeio_uiserver, Server för de graafsche Böversiet
Name[nl]=Kio_uiserver
Name[nso]=kio_uiseabi
Name[nso]=tdeio_uiseabi
Name[ro]=Kio_uiserver
Name[sv]=Kio-gränssnittsserver
Name[ta]=kio_uiசேவையகம்
Name[ta]=tdeio_uiசேவையகம்
Name[te]=కేఐఓ_యుఐసెర్వర్
Exec=tdeio_uiserver
Comment=TDE's Progress Info UI server

@ -781,7 +781,7 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props )
// Extract the file name only
filename = properties->defaultName();
if ( filename.isEmpty() ) { // no template
filename = item->name(); // this gives support for UDS_NAME, e.g. for kio_trash or kio_system
filename = item->name(); // this gives support for UDS_NAME, e.g. for tdeio_trash or tdeio_system
} else {
m_bFromTemplate = true;
setDirty(); // to enforce that the copy happens

@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_chmodjob_h__
#define __kio_chmodjob_h__
#ifndef __tdeio_chmodjob_h__
#define __tdeio_chmodjob_h__
#include <kurl.h>
#include <tqstring.h>

@ -47,19 +47,19 @@ using namespace TDEIO;
extern "C" {
int kdemain( int argc, char **argv ) {
TDEInstance instance( "kio_data" );
TDEInstance instance( "tdeio_data" );
kdDebug(7101) << "*** Starting kio_data " << endl;
kdDebug(7101) << "*** Starting tdeio_data " << endl;
if (argc != 4) {
kdDebug(7101) << "Usage: kio_data protocol domain-socket1 domain-socket2" << endl;
kdDebug(7101) << "Usage: tdeio_data protocol domain-socket1 domain-socket2" << endl;
exit(-1);
}
DataProtocol slave(argv[2], argv[3]);
slave.dispatchLoop();
kdDebug(7101) << "*** kio_data Done" << endl;
kdDebug(7101) << "*** tdeio_data Done" << endl;
return 0;
}
}
@ -242,7 +242,7 @@ static void parseDataHeader(const KURL &url, DataHeader &header_info) {
#ifdef DATAKIOSLAVE
DataProtocol::DataProtocol(const TQCString &pool_socket, const TQCString &app_socket)
: SlaveBase("kio_data", pool_socket, app_socket) {
: SlaveBase("tdeio_data", pool_socket, app_socket) {
#else
DataProtocol::DataProtocol() {
#endif
@ -260,7 +260,7 @@ DataProtocol::~DataProtocol() {
void DataProtocol::get(const KURL& url) {
ref();
//kdDebug() << "===============================================================================================================================================================================" << endl;
kdDebug() << "kio_data@"<<this<<"::get(const KURL& url)" << endl ;
kdDebug() << "tdeio_data@"<<this<<"::get(const KURL& url)" << endl ;
DataHeader hdr;
parseDataHeader(url,hdr);

@ -18,8 +18,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_davjob_h__
#define __kio_davjob_h__
#ifndef __tdeio_davjob_h__
#define __tdeio_davjob_h__
#include <kurl.h>

@ -15,8 +15,8 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_global_h__
#define __kio_global_h__
#ifndef __tdeio_global_h__
#define __tdeio_global_h__
#include <tqstring.h>
#include <tqvaluelist.h>

@ -1354,7 +1354,7 @@ TransferJob *TDEIO::http_post( const KURL& url, const TQByteArray &postData, boo
static TQValueList< int >* overriden_ports = NULL;
if( !override_loaded )
{
TDEConfig cfg( "kio_httprc", true );
TDEConfig cfg( "tdeio_httprc", true );
overriden_ports = new TQValueList< int >;
*overriden_ports = cfg.readIntListEntry( "OverriddenPorts" );
override_loaded = true;
@ -2307,7 +2307,7 @@ void CopyJob::slotStart()
}
// For unit test purposes
TDEIO_EXPORT bool kio_resolve_local_urls = true;
TDEIO_EXPORT bool tdeio_resolve_local_urls = true;
void CopyJob::slotResultStating( Job *job )
{
@ -2376,7 +2376,7 @@ void CopyJob::slotResultStating( Job *job )
if ( isGlobalDest )
d->m_globalDestinationState = destinationState;
if ( !sLocalPath.isEmpty() && kio_resolve_local_urls ) {
if ( !sLocalPath.isEmpty() && tdeio_resolve_local_urls ) {
m_dest = KURL();
m_dest.setPath(sLocalPath);
if ( isGlobalDest )
@ -2586,7 +2586,7 @@ void CopyJob::slotEntries(TDEIO::Job* job, const UDSEntryList& list)
}
}
//kdDebug(7007) << "displayName=" << displayName << " url=" << url << endl;
if (!localPath.isEmpty() && kio_resolve_local_urls) {
if (!localPath.isEmpty() && tdeio_resolve_local_urls) {
url = KURL();
url.setPath(localPath);
}

@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_job_h__
#define __kio_job_h__
#ifndef __tdeio_job_h__
#define __tdeio_job_h__
#include <tdeio/jobclasses.h>
@ -92,7 +92,7 @@ namespace TDEIO {
/**
* Execute any command that is specific to one slave (protocol).
*
* Examples are : HTTP POST, mount and unmount (kio_file)
* Examples are : HTTP POST, mount and unmount (tdeio_file)
*
* @param url The URL isn't passed to the slave, but is used to know
* which slave to send it to :-)
@ -106,7 +106,7 @@ namespace TDEIO {
/**
* Mount filesystem.
*
* Special job for @p kio_file.
* Special job for @p tdeio_file.
*
* @param ro Mount read-only if @p true.
* @param fstype File system type (e.g. "ext2", can be 0L).
@ -120,7 +120,7 @@ namespace TDEIO {
/**
* Unmount filesystem.
*
* Special job for @p kio_file.
* Special job for @p tdeio_file.
*
* @param point Point to unmount.
* @param showProgressInfo true to show progress information

@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_jobclasses_h__
#define __kio_jobclasses_h__
#ifndef __tdeio_jobclasses_h__
#define __tdeio_jobclasses_h__
#include <tqobject.h>
#include <tqptrlist.h>
@ -37,7 +37,7 @@
class Observer;
class TQTimer;
#define KIO_COPYJOB_HAS_SETINTERACTIVE // new in 3.4. Used by kio_trash.
#define KIO_COPYJOB_HAS_SETINTERACTIVE // new in 3.4. Used by tdeio_trash.
namespace TDEIO {

@ -1396,7 +1396,7 @@ bool KDirWatchPrivate::isNoisyFile( const char * filename )
if (strncmp(filename, ".X.err", 6) == 0) return true;
if (strncmp(filename, ".xsession-errors", 16) == 0) return true;
// fontconfig updates the cache on every KDE app start
// (inclusive kio_thumbnail slaves)
// (inclusive tdeio_thumbnail slaves)
if (strncmp(filename, ".fonts.cache", 12) == 0) return true;
}

@ -729,7 +729,7 @@ TQString KDEDesktopMimeType::icon( const KURL& _url, bool _is_local ) const
const KURL url( u );
if ( url.protocol() == "trash" ) {
// We need to find if the trash is empty, preferrably without using a KIO job.
// So instead kio_trash leaves an entry in its config file for us.
// So instead tdeio_trash leaves an entry in its config file for us.
KSimpleConfig trashConfig( "trashrc", true );
trashConfig.setGroup( "Status" );
if ( trashConfig.readBoolEntry( "Empty", true ) ) {

@ -104,8 +104,8 @@ public:
/**
* Returns the library / executable to open for the protocol @p protocol
* Example : "kio_ftp", meaning either the executable "kio_ftp" or
* the library "kio_ftp.la" (recommended), whichever is available.
* Example : "tdeio_ftp", meaning either the executable "tdeio_ftp" or
* the library "tdeio_ftp.la" (recommended), whichever is available.
*
* This corresponds to the "exec=" field in the protocol description file.
* @param protocol the protocol to check
@ -422,7 +422,7 @@ public:
* copying a file or directory to another directory. By default the destination
* filename is made out of the filename in the source URL. However if the
* ioslave displays names that are different from the filename of the URL
* (e.g. kio_fonts shows Arial for arial.ttf, or kio_trash shows foo.txt and
* (e.g. tdeio_fonts shows Arial for arial.ttf, or tdeio_trash shows foo.txt and
* uses some internal URL), using Name means that the display name (UDS_NAME)
* will be used to as the filename in the destination directory.
*

@ -102,7 +102,7 @@ TDEConfig *KProtocolManager::http_config()
if (!d->http_config)
{
d->http_config = new TDEConfig("kio_httprc", false, false);
d->http_config = new TDEConfig("tdeio_httprc", false, false);
}
return d->http_config;
}

@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_metainfojob_h__
#define __kio_metainfojob_h__
#ifndef __tdeio_metainfojob_h__
#define __tdeio_metainfojob_h__
#include <tdeio/job.h>
#include <tdefileitem.h>

@ -20,8 +20,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_netaccess_h
#define __kio_netaccess_h
#ifndef __tdeio_netaccess_h
#define __tdeio_netaccess_h
#include <tqobject.h>
#include <tqstring.h>

@ -16,8 +16,8 @@
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_observer_h__
#define __kio_observer_h__
#ifndef __tdeio_observer_h__
#define __tdeio_observer_h__
#include <tqobject.h>
#include <dcopobject.h>

@ -17,8 +17,8 @@
Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __kio_pass_dlg_h__
#define __kio_pass_dlg_h__
#ifndef __tdeio_pass_dlg_h__
#define __tdeio_pass_dlg_h__
#include <kdialogbase.h>

@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_paste_h__
#define __kio_paste_h__
#ifndef __tdeio_paste_h__
#define __tdeio_paste_h__
#include <tqstring.h>
#include <tqmemarray.h>

@ -21,8 +21,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_previewjob_h__
#define __kio_previewjob_h__
#ifndef __tdeio_previewjob_h__
#define __tdeio_previewjob_h__
#include <tdefileitem.h>
#include <tdeio/job.h>

@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_rename_dlg__
#define __kio_rename_dlg__
#ifndef __tdeio_rename_dlg__
#define __tdeio_rename_dlg__
#include <kurl.h>
#include <tqdialog.h>

@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef _kio_scheduler_h
#define _kio_scheduler_h
#ifndef _tdeio_scheduler_h
#define _tdeio_scheduler_h
#include "tdeio/job.h"
#include "tdeio/jobclasses.h"

@ -16,8 +16,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_skip_dlg__
#define __kio_skip_dlg__
#ifndef __tdeio_skip_dlg__
#define __tdeio_skip_dlg__
#include <tdelibs_export.h>
#include <kdialog.h>

@ -482,11 +482,11 @@ public:
virtual void del( const KURL &url, bool isfile);
// TODO KDE4: add setLinkDest() or something, to modify symlink targets.
// Will be used for kio_file but also kio_remote (#97129)
// Will be used for tdeio_file but also tdeio_remote (#97129)
/**
* Used for any command that is specific to this slave (protocol)
* Examples are : HTTP POST, mount and unmount (kio_file)
* Examples are : HTTP POST, mount and unmount (tdeio_file)
*
* @param data packed data; the meaning is completely dependent on the
* slave, but usually starts with an int for the command number.

@ -38,7 +38,7 @@ namespace TDEIO {
* configuration items of an io-slave when the io-slave is used by
* your application.
*
* Normally io-slaves are being configured by "kio_<protocol>rc"
* Normally io-slaves are being configured by "tdeio_<protocol>rc"
* configuration files. Groups defined in such files are treated as host
* or domain specification. Configuration items defined in a group are
* only applied when the slave is connecting with a host that matches with

@ -17,8 +17,8 @@
Boston, MA 02110-1301, USA.
*/
#ifndef __kio_slaveinterface_h
#define __kio_slaveinterface_h
#ifndef __tdeio_slaveinterface_h
#define __tdeio_slaveinterface_h
#include <unistd.h>
#include <sys/types.h>

@ -1,6 +1,6 @@
# Hello world
Id=kde2.2/r1
File=tdeioslaverc,kio_httprc
File=tdeioslaverc,tdeio_httprc
Group=Cache Settings,
Key=MaxCacheSize
Key=MaxCacheAge
@ -9,7 +9,7 @@ File=tdeioslaverc
Group=Browser Settings/UserAgent,UserAgent
AllKeys
Id=kde2.2/r2
File=tdeioslaverc,kio_httprc
File=tdeioslaverc,tdeio_httprc
Group=UserAgent
Script=useragent.pl,perl
Id=kde2.2/r3

@ -250,12 +250,12 @@ const TQChar * const charset_urls[] = {
#endif
int main(int /*argc*/,char* /*argv*/[]) {
DataProtocol kio_data;
DataProtocol tdeio_data;
kio_data.initTestrun();
tdeio_data.initTestrun();
for (uint i = 0; i < sizeof testcases/sizeof testcases[0]; i++) {
kio_data.beginTestcase(testcases[i].name);
kio_data.setExpectedMimeType(testcases[i].exp_mime_type != 0
tdeio_data.beginTestcase(testcases[i].name);
tdeio_data.setExpectedMimeType(testcases[i].exp_mime_type != 0
? testcases[i].exp_mime_type : "text/plain");
bool has_charset = false;
@ -268,20 +268,20 @@ int main(int /*argc*/,char* /*argv*/[]) {
}/*next j*/
}
if (!has_charset) exp_attrs["charset"] = "us-ascii";
kio_data.setExpectedAttributes(exp_attrs);
tdeio_data.setExpectedAttributes(exp_attrs);
TQByteArray exp_content;
uint exp_content_len = strlen(testcases[i].exp_content);
exp_content.setRawData(testcases[i].exp_content,exp_content_len);
kio_data.setExpectedContent(exp_content);
tdeio_data.setExpectedContent(exp_content);
kio_data.get(testcases[i].url);
tdeio_data.get(testcases[i].url);
kio_data.endTestcase();
tdeio_data.endTestcase();
exp_content.resetRawData(testcases[i].exp_content,exp_content_len);
}/*next i*/
kio_data.endTestrun();
tdeio_data.endTestrun();
return kio_data.hasFailedTestcases() ? 1 : 0;
return tdeio_data.hasFailedTestcases() ? 1 : 0;
}

@ -227,7 +227,7 @@ void JobTest::copyLocalFile( const TQString& src, const TQString& dest )
{
// check that the timestamp is the same (#24443)
// Note: this only works because of copy() in kio_file.
// Note: this only works because of copy() in tdeio_file.
// The datapump solution ignores mtime, the app has to call FileCopyJob::setModificationTime()
TQFileInfo srcInfo( src );
TQFileInfo destInfo( dest );
@ -533,7 +533,7 @@ void JobTest::slotEntries( TDEIO::Job*, const TDEIO::UDSEntryList& lst )
void JobTest::copyFileToSystem()
{
if ( !KProtocolInfo::isKnownProtocol( TQString::fromLatin1( "system" ) ) ) {
kdDebug() << k_funcinfo << "no kio_system, skipping test" << endl;
kdDebug() << k_funcinfo << "no tdeio_system, skipping test" << endl;
return;
}
@ -551,8 +551,8 @@ void JobTest::copyFileToSystem()
void JobTest::copyFileToSystem( bool resolve_local_urls )
{
kdDebug() << k_funcinfo << resolve_local_urls << endl;
extern TDEIO_EXPORT bool kio_resolve_local_urls;
kio_resolve_local_urls = resolve_local_urls;
extern TDEIO_EXPORT bool tdeio_resolve_local_urls;
tdeio_resolve_local_urls = resolve_local_urls;
const TQString src = homeTmpDir() + "fileFromHome";
createTestFile( src );
@ -583,7 +583,7 @@ void JobTest::copyFileToSystem( bool resolve_local_urls )
// Check mimetype
kdDebug() << m_mimetype << endl;
// There's no mimemagic determination in kio_file in trinity. Fixing this for kde4...
// There's no mimemagic determination in tdeio_file in trinity. Fixing this for kde4...
assert( m_mimetype == "application/octet-stream" );
//assert( m_mimetype == "text/plain" );
@ -601,7 +601,7 @@ void JobTest::copyFileToSystem( bool resolve_local_urls )
}
// restore normal behavior
kio_resolve_local_urls = true;
tdeio_resolve_local_urls = true;
}
void JobTest::slotMimetype(TDEIO::Job* job, const TQString& type)

@ -34,7 +34,7 @@ public:
void runAll();
void cleanup();
// Local tests (kio_file only)
// Local tests (tdeio_file only)
void get();
void copyFileToSamePartition();
void copyDirectoryToSamePartition();

@ -52,7 +52,7 @@ int main(int argc, char **argv) {
assert( protocol == "http" );
TQStringList capabilities = KProtocolInfo::capabilities( "imap" );
kdDebug() << "kio_imap capabilities: " << capabilities << endl;
kdDebug() << "tdeio_imap capabilities: " << capabilities << endl;
//assert(capabilities.contains("ACL"));
return 0;

Loading…
Cancel
Save