summaryrefslogtreecommitdiffstats
path: root/kate/part/katedocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/part/katedocument.cpp')
-rw-r--r--kate/part/katedocument.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kate/part/katedocument.cpp b/kate/part/katedocument.cpp
index b264e6533..f8f190c14 100644
--- a/kate/part/katedocument.cpp
+++ b/kate/part/katedocument.cpp
@@ -1879,7 +1879,7 @@ void KateDocument::setDontChangeHlOnSave()
//END
//BEGIN KTextEditor::ConfigInterface stuff
-void KateDocument::readConfig(KConfig *config)
+void KateDocument::readConfig(TDEConfig *config)
{
config->setGroup("Kate Document Defaults");
@@ -1895,7 +1895,7 @@ void KateDocument::readConfig(KConfig *config)
KateRendererConfig::global()->readConfig (config);
}
-void KateDocument::writeConfig(KConfig *config)
+void KateDocument::writeConfig(TDEConfig *config)
{
config->setGroup("Kate Document Defaults");
@@ -1913,18 +1913,18 @@ void KateDocument::writeConfig(KConfig *config)
void KateDocument::readConfig()
{
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
readConfig (config);
}
void KateDocument::writeConfig()
{
- KConfig *config = kapp->config();
+ TDEConfig *config = kapp->config();
writeConfig (config);
config->sync();
}
-void KateDocument::readSessionConfig(KConfig *kconfig)
+void KateDocument::readSessionConfig(TDEConfig *kconfig)
{
// restore the url
KURL url (kconfig->readEntry("URL"));
@@ -1953,7 +1953,7 @@ void KateDocument::readSessionConfig(KConfig *kconfig)
addMark( marks[i], KateDocument::markType01 );
}
-void KateDocument::writeSessionConfig(KConfig *kconfig)
+void KateDocument::writeSessionConfig(TDEConfig *kconfig)
{
if ( m_url.isLocalFile() && !TDEGlobal::dirs()->relativeLocation("tmp", m_url.path()).startsWith("/"))
return;
@@ -2302,14 +2302,14 @@ bool KateDocument::openURL( const KURL &url )
m_tempFile = new KTempFile ();
m_file = m_tempFile->name();
- m_job = KIO::get ( url, false, isProgressInfoEnabled() );
+ m_job = TDEIO::get ( url, false, isProgressInfoEnabled() );
// connect to slots
- connect( m_job, TQT_SIGNAL( data( KIO::Job*, const TQByteArray& ) ),
- TQT_SLOT( slotDataKate( KIO::Job*, const TQByteArray& ) ) );
+ connect( m_job, TQT_SIGNAL( data( TDEIO::Job*, const TQByteArray& ) ),
+ TQT_SLOT( slotDataKate( TDEIO::Job*, const TQByteArray& ) ) );
- connect( m_job, TQT_SIGNAL( result( KIO::Job* ) ),
- TQT_SLOT( slotFinishedKate( KIO::Job* ) ) );
+ connect( m_job, TQT_SIGNAL( result( TDEIO::Job* ) ),
+ TQT_SLOT( slotFinishedKate( TDEIO::Job* ) ) );
TQWidget *w = widget ();
if (!w && !m_views.isEmpty ())
@@ -2324,7 +2324,7 @@ bool KateDocument::openURL( const KURL &url )
}
}
-void KateDocument::slotDataKate ( KIO::Job *, const TQByteArray &data )
+void KateDocument::slotDataKate ( TDEIO::Job *, const TQByteArray &data )
{
// kdDebug(13020) << "KateDocument::slotData" << endl;
@@ -2334,7 +2334,7 @@ void KateDocument::slotDataKate ( KIO::Job *, const TQByteArray &data )
m_tempFile->file()->writeBlock (data);
}
-void KateDocument::slotFinishedKate ( KIO::Job * job )
+void KateDocument::slotFinishedKate ( TDEIO::Job * job )
{
// kdDebug(13020) << "KateDocument::slotJobFinished" << endl;
@@ -2373,7 +2373,7 @@ bool KateDocument::openFile()
return openFile (0);
}
-bool KateDocument::openFile(KIO::Job * job)
+bool KateDocument::openFile(TDEIO::Job * job)
{
m_loading = true;
// add new m_file to dirwatch
@@ -2520,8 +2520,8 @@ bool KateDocument::save()
// get the right permissions, start with safe default
mode_t perms = 0600;
- KIO::UDSEntry fentry;
- if (KIO::NetAccess::stat (url(), fentry, kapp->mainWidget()))
+ TDEIO::UDSEntry fentry;
+ if (TDEIO::NetAccess::stat (url(), fentry, kapp->mainWidget()))
{
kdDebug () << "stating succesfull: " << url() << endl;
KFileItem item (fentry, url());
@@ -2530,8 +2530,8 @@ bool KateDocument::save()
// first del existing file if any, than copy over the file we have
// failure if a: the existing file could not be deleted, b: the file could not be copied
- if ( (!KIO::NetAccess::exists( u, false, kapp->mainWidget() ) || KIO::NetAccess::del( u, kapp->mainWidget() ))
- && KIO::NetAccess::file_copy( url(), u, perms, true, false, kapp->mainWidget() ) )
+ if ( (!TDEIO::NetAccess::exists( u, false, kapp->mainWidget() ) || TDEIO::NetAccess::del( u, kapp->mainWidget() ))
+ && TDEIO::NetAccess::file_copy( url(), u, perms, true, false, kapp->mainWidget() ) )
{
kdDebug(13020)<<"backing up successfull ("<<url().prettyURL()<<" -> "<<u.prettyURL()<<")"<<endl;
}