From 703fb0c89c2eee56a1e613e67a446db9d4287929 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:35:07 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- KDE2PORTING.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'KDE2PORTING.html') diff --git a/KDE2PORTING.html b/KDE2PORTING.html index 41b9f5379..f23a2443b 100644 --- a/KDE2PORTING.html +++ b/KDE2PORTING.html @@ -31,7 +31,7 @@ or this page online.

  • khtmlw
  • KIntegerLine, KIntLineEdit
  • KDNDIcon, KDNDDropZone, KDNDWidget, tdecore/drag.h
  • -
  • KConfigBase, KConfig, KSimpleConfig
  • +
  • TDEConfigBase, TDEConfig, KSimpleConfig
  • libkfm
  • KDialog
  • kcharsets
  • @@ -205,7 +205,7 @@ must have created a TDEApplication object before the methods can be used.

           #include <kglobal.h>
    -      #include <kconfig.h>      // Needed to use KConfig
    +      #include <kconfig.h>      // Needed to use TDEConfig
           #include <klocale.h>      // Needed to use KLocale
           #include <kiconloader.h>  // Needed to use KIconLoader
         
    @@ -215,7 +215,7 @@ must have created a TDEApplication object before the methods can be used.

         ...
    -        	KConfig *appcfg = TDEGlobal::config();
    +        	TDEConfig *appcfg = TDEGlobal::config();
     	        TQString mystr	 = i18n( "This is a string" );
     
     
    @@ -469,17 +469,17 @@ are necessary to convert your old KDND-based stuff to Qt DND.

    Return to the Table of Contents

    -

    KConfigBase, KConfig, KSimpleConfig

    +

    TDEConfigBase, TDEConfig, KSimpleConfig

    These classes have been largely re-implemented. The external API remains mostly the same, with the single notable change that the groupIterator and entryIterator methods have been removed and instead replaced by groupList (which returns a TQStringList of groups) and entryMap(const TQString &group) (which returns a TQMap of entries - in the specified group). This is due to internal changes in KConfig + in the specified group). This is due to internal changes in TDEConfig which would make providing iterators possibly rather difficult.

    - Much more extensive documentation on the KConfig and friends API can + Much more extensive documentation on the TDEConfig and friends API can be found in the kdoc generated documentation from the header files, and in tdecore/KCONFIG_DESIGN.

    @@ -505,16 +505,16 @@ are necessary to convert your old KDND-based stuff to Qt DND.

    Replacement table :

    - - + + - +
    KFM::download -> KIO::NetAccess::download (tdelibs/kio/netaccess.h)
    KFM::removeTempFile -> KIO::NetAccess::removeTempFile
    KFM::download -> TDEIO::NetAccess::download (tdelibs/kio/netaccess.h)
    KFM::removeTempFile -> TDEIO::NetAccess::removeTempFile
    refreshDesktop, sortDesktop, selectRootIcons : removed; kdesktop handles it
    KFM::configure -> see konqueror DCOP interface
    KFM::openURL -> "(void) new KRun (url)" (tdelibs/kio/krun.h)
    KFM::refreshDirectory -> not needed anymore since konqy/kdesktop use KDirWatch
    KFM::openProperties -> "(void) new KPropertiesDialog (url)" (tdelibs/kfile/kpropsdlg.h)
    KFM::exec -> "(void) new KRun (url)" (tdelibs/kio/krun.h)
    KFM::copy, KFM::move -> KIO::Job (async, see kio/job.h)
    - or KIO::NetAccess (sync, see kio/netaccess.h)
    KFM::copy, KFM::move -> TDEIO::Job (async, see kio/job.h)
    + or TDEIO::NetAccess (sync, see kio/netaccess.h)
    DlgLocation -> Use KLineEditDlg (tdeui/klineeditdlg.h) instead
    -- cgit v1.2.1