Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 3b543760cb
commit c624bc4eb9

@ -81,7 +81,7 @@
* KMFConfigDialog: platform and backend values are now set by the plugins properties
* KMFSelectInterface: added new dialog that lets you chooss the interface at startup, not finished yet
* KMFSelectInterface: added screenshot loading, smaller fixes
* Switching to KConfig XT framework: replaces kmfconfiguration class
* Switching to TDEConfig XT framework: replaces kmfconfiguration class
* Several cosmetical changes
* New Class KMFAppState: Holds some static variables giving information about the app's state
* Some minor Fixes

@ -39,7 +39,7 @@ MainApp::MainApp() : TDEApplication() {
// Get the current application configuration handle
// KMessageBox::information( 0, i18n( "Starting Deamon" ) );
// KConfig *ksConfig = config();
// TDEConfig *ksConfig = config();
// KMFIPTWatcher *watch = new KMFIPTWatcher( this, "KMFIPTWatcher" );
// MainWidget *mainWid = new MainWidget( 0 );
// connect( watch, TQT_SIGNAL( sigUpdateActive( bool ) ), mainWid, TQT_SLOT( slotSetRunningStatus( bool ) ) );

@ -68,7 +68,7 @@ private: // Methods
private:
TDEAboutData *_aboutData;
KConfig *ksConfig;
TDEConfig *ksConfig;
TQWidget *mainView;
TQPixmap baseIcon;

@ -101,7 +101,7 @@ void KMFIPTablesCompiler::slotExportIPT() {
return ;
int answer = 0;
while ( answer != 3 ) {
if ( KIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( answer == 4 ) {
slotExportIPT();
return ;
@ -125,7 +125,7 @@ void KMFIPTablesCompiler::slotExportIPT() {
if ( m_errorHandler->showError( m_err ) ) {
if ( KIO::NetAccess::upload( tempfile.name(), url, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::upload( tempfile.name(), url, TDEApplication::kApplication()->mainWidget() ) ) {
// statusBar() ->message( i18n( "Wrote file: " ) + url.fileName() , 5000 );
} else {
kdDebug() << "Couldn't upload file!!!" << tempfile.name() << endl;

@ -146,7 +146,7 @@ KMFError* KMFDoc::exportXMLRuleset( bool promptFile, bool asTemplate ) {
}
int answer = 0;
while ( answer != KMessageBox::Yes ) {
if ( KIO::NetAccess::exists( saveUrl, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::exists( saveUrl, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( answer == 4 ) {
return exportXMLRuleset( promptFile, asTemplate );
} else {
@ -177,7 +177,7 @@ KMFError* KMFDoc::exportXMLRuleset( const KURL& url ) {
f.flush();
f.close();
if ( ! KIO::NetAccess::upload( file.name(), url, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::upload( file.name(), url, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "Coudn't save File: " << url.url() << endl;
m_err->setErrType( KMFError::NORMAL );
m_err->setErrMsg( i18n( "<qt><p><b>Saving <i>%1</i> Failed.</b></p>"

@ -287,7 +287,7 @@ const TQString& KMFGenericDoc::compile() {
void KMFGenericDoc::parseDocument( const KURL& url, TQStringList& errors ) {
// kdDebug() << "KMFDoc* KMFGenericDoc::parseDocument( const KURL& )" << endl;
TQString xmlfile;
if ( ! KIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
clear();
m_url.setFileName( i18n( "Untitled" ) );
return;
@ -318,11 +318,11 @@ void KMFGenericDoc::parseDocument( const KURL& url, TQStringList& errors ) {
m_url = url;
// setUrl( url );
emit documentChanged();
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return;
// return this;
}
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
// return this;
}

@ -408,7 +408,7 @@ const TQString& KMFIPTDoc::compile() {
void KMFIPTDoc::parseDocument( const KURL& url, TQStringList& errors ) {
// kdDebug() << "KMFIPTDoc::parseDocument()" << endl;
TQString xmlfile;
if ( ! KIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
clear();
m_url.setFileName( i18n( "Untitled" ) );
return;
@ -447,11 +447,11 @@ void KMFIPTDoc::parseDocument( const KURL& url, TQStringList& errors ) {
// setUrl( url );
m_url = url;
emit documentChanged();
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return;
// return this;
}
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
// return this;
}

@ -216,7 +216,7 @@ bool KMFNetwork::isEmpty() {
void KMFNetwork::parseDocument( const KURL& url, TQStringList& errors ) {
kdDebug() << "KMFDoc* KMFNetwork::parseDocument( const KURL& url )" << endl;
TQString xmlfile;
if ( ! KIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
clear();
m_url.setFileName( i18n( "Untitled" ) );
return;
@ -256,10 +256,10 @@ void KMFNetwork::parseDocument( const KURL& url, TQStringList& errors ) {
m_url = url;
m_newSavePathNeeded = false;
emit documentChanged();
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return;
}
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return;
}

@ -126,7 +126,7 @@ void KMFProtocolLibrary::forceProtocolLibraryReload() {
url.setPath( file );
kdDebug() << "CUSTOM lib at: " << file << endl;
// KURL tmpurl = KURL( dir + "protocols/kmfcustomprotocollibrary.xml" );
if ( ! KIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "KMFGenericDoc::loadProtocolLibrary() - no custom protocols found." << endl;
return;
}
@ -146,9 +146,9 @@ void KMFProtocolLibrary::loadProtocolDefinitionsFromURL( const KURL& url, KMFEr
kdDebug() << "KMFProtocolLibrary::loadProtocolDefinitionsFromURL( const KURL& " << url.fileName() << " )" << endl;
// TQPtrList<KMFProtocol> *prots = new TQPtrList<KMFProtocol>();
KIO::UDSEntry f_props;
TDEIO::UDSEntry f_props;
if ( ! KIO::NetAccess::stat( url , f_props, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::stat( url , f_props, TDEApplication::kApplication()->mainWidget() ) ) {
const TQString msg = i18n( "<qt><p>The file <b>%1</b> could not be loaded.</p>"
"<p>If you are working with files stored on remote computers "
@ -168,7 +168,7 @@ void KMFProtocolLibrary::loadProtocolDefinitionsFromURL( const KURL& url, KMFEr
}
TQString xmlfile;
if ( ! KIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
const TQString msg = i18n( "<qt><p>Could not download file: <b>%1</b></p></qt>" ).arg( url.url() );
err->setErrType( KMFError::NORMAL );
err->setErrMsg( msg );
@ -278,7 +278,7 @@ KMFError* KMFProtocolLibrary::saveProtocolLibrary() {
f.close();
if ( ! KIO::NetAccess::upload( file.name(), url, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::upload( file.name(), url, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "Coudn't save File: " << url.url() << endl;
err->setErrType( KMFError::NORMAL );
err->setErrMsg( i18n( "<qt><p><b>Saving <i>%1</i> Failed.</b></p>"

@ -229,7 +229,7 @@ KMFError* KMFTarget::tryAutoConfiguration() {
kdDebug() << "Search Path: " << path << endl;
TQString localFile = TDEGlobal::dirs() ->findResource( "data", path );
if ( ! KIO::NetAccess::exists( localFile, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::exists( localFile, false, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "No autoconfigure script found for os: " << config()->oS() << endl;
emit sigTargetChanged( this );
err->setErrType( KMFError::NORMAL );

@ -71,7 +71,7 @@ void TDEProcessWrapper::slotStartLocalJob( const TQString& jobName, const TQStri
m_stdErr = "";
TQString localScriptFile = command;
KTempFile *f = new KTempFile();
if ( ! KIO::NetAccess::exists( localScriptFile, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::exists( localScriptFile, false, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "TDEProcessWrapper::slotStartLocalJob(...) - creating temporary script file." << endl;
TQTextStream *ts = f->textStream();
*ts << command << endl;
@ -105,7 +105,7 @@ void TDEProcessWrapper::slotStartRemoteJob( const TQString& jobName, const TQStr
m_stdOut = "";
m_stdErr = "";
KTempFile *f = new KTempFile();
if ( ! KIO::NetAccess::exists( scriptFile, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::exists( scriptFile, false, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "TDEProcessWrapper::slotStartRemoteJob(...) - creating temporary script file." << endl;
TQTextStream *ts = f->textStream();
*ts << scriptFile << endl;
@ -119,7 +119,7 @@ void TDEProcessWrapper::slotStartRemoteJob( const TQString& jobName, const TQStr
KURL remFileUrl( execHost->getFishUrl() + "/tmp/" + uuid.toString() );
kdDebug() << "UPLOADING: Temporary script file: " << localScriptFile << " to: " << remFileUrl.url() << endl;
if ( ! KIO::NetAccess::upload( localScriptFile, remFileUrl, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::upload( localScriptFile, remFileUrl, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "ERROR: Could not upload temp file." << endl;
m_exitedNormal = false;
m_status = 1;
@ -136,8 +136,8 @@ void TDEProcessWrapper::slotStartRemoteJob( const TQString& jobName, const TQStr
TQString cmd = "bash /tmp/" + uuid.toString();
kdDebug() << "Execute: " << cmd << " at: " << execHost->getFishUrl() << endl;
const TQString& ret = KIO::NetAccess::fish_execute( execHost->getFishUrl(), cmd, TDEApplication::kApplication()->mainWidget() );
if ( ! KIO::NetAccess::del( remFileUrl, TDEApplication::kApplication()->mainWidget() ) ) {
const TQString& ret = TDEIO::NetAccess::fish_execute( execHost->getFishUrl(), cmd, TDEApplication::kApplication()->mainWidget() );
if ( ! TDEIO::NetAccess::del( remFileUrl, TDEApplication::kApplication()->mainWidget() ) ) {
m_exitedNormal = false;
m_status = 1;
m_stdErr = i18n( "Could not delete the temporary comand script file." );

@ -186,7 +186,7 @@ void KMFInstallerPlugin::generateInstallerPackage( KMFTarget* tg ) {
if ( url.fileName().isEmpty() )
return;
if ( KIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
TQDateTime now = TQDateTime::currentDateTime();
TQString backUp;
@ -201,12 +201,12 @@ void KMFInstallerPlugin::generateInstallerPackage( KMFTarget* tg ) {
backUp.append( now.toString( "dd.MM.yyyy.hh:mm:ss" ) );
KIO::NetAccess::file_move( url, newUrl, 700, true, true, TDEApplication::kApplication()->mainWidget() );
KIO::NetAccess::fish_execute( remDir, "chmod 400 /tmp/" + backFileName, TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::file_move( url, newUrl, 700, true, true, TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::fish_execute( remDir, "chmod 400 /tmp/" + backFileName, TDEApplication::kApplication()->mainWidget() );
}
inst2->generateInstallerPackage( tg, url );
KIO::NetAccess::fish_execute( remDir, "chmod 700 /tmp/kmfpackage.kmfpkg", TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::fish_execute( remDir, "chmod 700 /tmp/kmfpackage.kmfpkg", TDEApplication::kApplication()->mainWidget() );
}
}
@ -366,7 +366,7 @@ void KMFInstallerPlugin::slotGenerateInstallerPackage() {
int answer = 0;
if ( KIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
answer = KMessageBox::warningYesNo( 0, i18n( "<qt>File <b>%1</b> already exists!</p>"
"<p><b>Overwrite the existing file?</b></p></qt>" ).arg( url.url() ) );
if ( answer == KMessageBox::No ) {

@ -870,7 +870,7 @@ void KMFIPTInstaller::generateInstallerPackage( KMFTarget* tg ) {
if ( url.fileName().isEmpty() )
return;
if ( KIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
TQDateTime now = TQDateTime::currentDateTime();
TQString backUp;
@ -885,12 +885,12 @@ void KMFIPTInstaller::generateInstallerPackage( KMFTarget* tg ) {
backUp.append( now.toString( "dd.MM.yyyy.hh:mm:ss" ) );
KIO::NetAccess::file_move( url, newUrl, 700, true, true, TDEApplication::kApplication()->mainWidget() );
KIO::NetAccess::fish_execute( remDir, "chmod 400 /tmp/" + backFileName, TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::file_move( url, newUrl, 700, true, true, TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::fish_execute( remDir, "chmod 400 /tmp/" + backFileName, TDEApplication::kApplication()->mainWidget() );
}
inst2->generateInstallerPackage( tg, url );
KIO::NetAccess::fish_execute( remDir, "chmod 700 /tmp/kmfpackage.kmfpkg", TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::fish_execute( remDir, "chmod 700 /tmp/kmfpackage.kmfpkg", TDEApplication::kApplication()->mainWidget() );
}
}
@ -1094,8 +1094,8 @@ void KMFIPTInstaller::generateInstallerPackage( KMFTarget* target, const KURL& p
// KIO::NetAccess::upload( packageArch->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
KIO::NetAccess::upload( kmf_install_package->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
// TDEIO::NetAccess::upload( packageArch->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
TDEIO::NetAccess::upload( kmf_install_package->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
kdDebug() << "Wrote package: " << packageURL.prettyURL() << endl;

@ -828,7 +828,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// if ( url.fileName().isEmpty() )
// return;
//
// if ( KIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
// if ( TDEIO::NetAccess::exists( url, false, TDEApplication::kApplication()->mainWidget() ) ) {
// TQDateTime now = TQDateTime::currentDateTime();
//
// TQString backUp;
@ -843,12 +843,12 @@ void KMFPFInstaller::cmdUninstallFW() {
// backUp.append( now.toString( "dd.MM.yyyy.hh:mm:ss" ) );
//
//
// KIO::NetAccess::file_move( url, newUrl, 700, true, true, TDEApplication::kApplication()->mainWidget() );
// KIO::NetAccess::fish_execute( remDir, "chmod 400 /tmp/" + backFileName, TDEApplication::kApplication()->mainWidget() );
// TDEIO::NetAccess::file_move( url, newUrl, 700, true, true, TDEApplication::kApplication()->mainWidget() );
// TDEIO::NetAccess::fish_execute( remDir, "chmod 400 /tmp/" + backFileName, TDEApplication::kApplication()->mainWidget() );
// }
//
// inst2->generateInstallerPackage( tg, url );
// KIO::NetAccess::fish_execute( remDir, "chmod 700 /tmp/kmfpackage.kmfpkg", TDEApplication::kApplication()->mainWidget() );
// TDEIO::NetAccess::fish_execute( remDir, "chmod 700 /tmp/kmfpackage.kmfpkg", TDEApplication::kApplication()->mainWidget() );
// }
// }
@ -1053,8 +1053,8 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
//
//
//
// // KIO::NetAccess::upload( packageArch->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
// KIO::NetAccess::upload( kmf_install_package->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
// // TDEIO::NetAccess::upload( packageArch->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
// TDEIO::NetAccess::upload( kmf_install_package->name(), packageURL, TDEApplication::kApplication()->mainWidget() );
//
// kdDebug() << "Wrote package: " << packageURL.prettyURL() << endl;
//

@ -33,7 +33,7 @@ KMFDisclaimer::KMFDisclaimer( TQWidget *parent, const char *name, bool modal, WF
KMFDisclaimer::~KMFDisclaimer() {}
void KMFDisclaimer::accept() {
KConfig * _config = kapp->config();
TDEConfig * _config = kapp->config();
_config->setGroup( "STARTUP" );
if ( c_show->isChecked() ) {
_config->writeEntry( "show_disclaimer", "false" );

@ -241,7 +241,7 @@ void KMFHostWidget::slotTestConnection() {
if ( ! m_target ) {
return;
}
if ( KIO::NetAccess::fish_execute( m_target->getFishUrl(), "ls /",
if ( TDEIO::NetAccess::fish_execute( m_target->getFishUrl(), "ls /",
TDEApplication::kApplication()->mainWidget() ) != 0) {
KMessageBox::information( this, i18n("Conneted successfully to: %1").arg( m_target->toFriendlyString() ) );
} else {

@ -395,7 +395,7 @@ bool KMyFirewall::checkRoot() {
"As the file format used to save the rulesets has changed, "
"rulesets created with KMyFirewall &lt; 1.0beta1 <b>WILL NOT</b> work, don't even try it!"
"</p></qt>" );
KConfig* _config = kapp->config();
TDEConfig* _config = kapp->config();
_config->setGroup( "Notification Messages" );
TQString warn = "";
warn = _config->readEntry( "compatibility_warning" );
@ -632,7 +632,7 @@ bool KMyFirewall::prepareForFileOpen( const KURL& url ) {
return false;
}
if ( ! KIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "Could not download file." << endl;
return false;
}
@ -708,7 +708,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
kdDebug() << "void KMyFirewall::getDocumentLoaderForUrl( const KURL&" << url.fileName() << " )" << endl;
err->setErrType( KMFError::OK );
TQString xmlfile;
if ( ! KIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::download( url, xmlfile, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "Could not download file." << endl;
err->setErrType( KMFError::NORMAL );
err->setErrMsg( i18n( "<qt>Could not download file %1</qt>" ).arg( url.url() ) );
@ -768,7 +768,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
network()->setCurrentTarget( tg );
updateCaption();
kdDebug() << "Returned IPT Doc for target: " << network()->currentTarget()->guiName() << endl;
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return network()->currentDocAsIPTDoc();
}
} else if ( root.nodeName() == XML::GenericDoc_DocumentElement ) {
@ -782,7 +782,7 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
network()->setCurrentTarget( tg );
updateCaption();
kdDebug() << "Returned GEneric Doc for target: " << network()->currentTarget()->guiName() << endl;
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return network()->currentDocAsGenericDoc();
}
} else if ( root.nodeName() == XML::KMFNetwork_DocumentElement ) {
@ -802,16 +802,16 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
kdDebug() << "Returned KMFNetwork " << network()->currentTarget()->guiName() << endl;
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
return network();
}
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
kdDebug() << "ERROR: No Loader Found!" << endl;
err->setErrType( KMFError::NORMAL );
err->setErrMsg( i18n( "<qt>The document is not a valid KMyFirewall document.</qt>" ) );
return 0;
}
KIO::NetAccess::removeTempFile( xmlfile );
TDEIO::NetAccess::removeTempFile( xmlfile );
err->setErrType( KMFError::NORMAL );
err->setErrMsg( i18n( "<qt>Could not download file %1.</qt>" ).arg( url.url() ) );
return 0;
@ -819,9 +819,9 @@ KMFDoc* KMyFirewall::getDocumentLoaderForUrl( const KURL& url, KMFError* err ) {
KMFError* KMyFirewall::parseDocument( const KURL& url ) {
kdDebug() << "void KMyFirewall::parseDocument(TQString& file)" << endl;
KIO::UDSEntry f_props;
TDEIO::UDSEntry f_props;
if ( ! KIO::NetAccess::stat( url , f_props, TDEApplication::kApplication()->mainWidget() ) ) {
if ( ! TDEIO::NetAccess::stat( url , f_props, TDEApplication::kApplication()->mainWidget() ) ) {
closeSplash();
const TQString msg = i18n( "<qt><p>The file <b>%1</b> could not be loaded.</p>"
"<p>If you are working with files stored on remote computers "
@ -1018,7 +1018,7 @@ void KMyFirewall::checkStatus() {
fclose( sbin1 );
}
} else {
if ( KIO::NetAccess::exists( network()->currentTarget()->getFishUrl() + "/etc/kmyfirewall", true, TDEApplication::kApplication()->mainWidget() ) ) {
if ( TDEIO::NetAccess::exists( network()->currentTarget()->getFishUrl() + "/etc/kmyfirewall", true, TDEApplication::kApplication()->mainWidget() ) ) {
kdDebug() << "Firewall is installed" << endl;
isInstalled = true;
}

Loading…
Cancel
Save