diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KConfigGroupSaver.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KConfigGroupSaver.java | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kdejava/koala/org/kde/koala/KConfigGroupSaver.java b/kdejava/koala/org/kde/koala/KConfigGroupSaver.java index 36ab2044..6cc7051d 100644 --- a/kdejava/koala/org/kde/koala/KConfigGroupSaver.java +++ b/kdejava/koala/org/kde/koala/KConfigGroupSaver.java @@ -6,10 +6,10 @@ import org.kde.qt.QtSupport; /** - Helper class to facilitate working with KConfig / KSimpleConfig + Helper class to facilitate working with TDEConfig / KSimpleConfig groups. Careful programmers always set the group of a - KConfig KSimpleConfig object to the group they want to read from + TDEConfig KSimpleConfig object to the group they want to read from and set it back to the old one of afterwards. This is usually written as: <pre> @@ -20,43 +20,43 @@ import org.kde.qt.QtSupport; config.setGroup( oldgroup ); </pre> In order to facilitate this task, you can use - KConfigGroupSaver. Simply construct such an object ON THE STACK + TDEConfigGroupSaver. Simply construct such an object ON THE STACK when you want to switch to a new group. Then, when the object goes out of scope, the group will automatically be restored. If you want to use several different groups within a function or method, - you can still use KConfigGroupSaver: Simply enclose all work with - one group (including the creation of the KConfigGroupSaver object) + you can still use TDEConfigGroupSaver: Simply enclose all work with + one group (including the creation of the TDEConfigGroupSaver object) in one block. - KConfigGroup provides similar functionality in a more object oriented + TDEConfigGroup provides similar functionality in a more object oriented way. @author Matthias Kalle Dalheimer <kalle@kde.org> - @short Helper class for easier use of KConfig/KSimpleConfig groups. - @see KConfigBase - @see KConfig + @short Helper class for easier use of TDEConfig/KSimpleConfig groups. + @see TDEConfigBase + @see TDEConfig @see KSimpleConfig - @see KConfigGroup + @see TDEConfigGroup */ -public class KConfigGroupSaver implements QtSupport { +public class TDEConfigGroupSaver implements QtSupport { private long _qt; private boolean _allocatedInJavaWorld = true; - protected KConfigGroupSaver(Class dummy){} + protected TDEConfigGroupSaver(Class dummy){} /** - Constructor. You pass a pointer to the KConfigBase-derived + Constructor. You pass a pointer to the TDEConfigBase-derived object you want to work with and a string indicating the _new_ group. - @param config The KConfigBase-derived object this - KConfigGroupSaver works on. + @param config The TDEConfigBase-derived object this + TDEConfigGroupSaver works on. @param group The new group that the config object should switch to. @short Constructor. */ - public KConfigGroupSaver(KConfigBase config, String group) { - newKConfigGroupSaver(config,group); + public TDEConfigGroupSaver(TDEConfigBase config, String group) { + newTDEConfigGroupSaver(config,group); } - private native void newKConfigGroupSaver(KConfigBase config, String group); - public native KConfigBase config(); + private native void newTDEConfigGroupSaver(TDEConfigBase config, String group); + public native TDEConfigBase config(); /** Deletes the wrapped C++ instance */ protected native void finalize() throws InternalError; /** Delete the wrapped C++ instance ahead of finalize() */ |