//Auto-generated by kalyptus. DO NOT EDIT. package org.trinitydesktop.koala; import org.trinitydesktop.qt.Qt; import org.trinitydesktop.qt.QtSupport; /** Helper class to facilitate working with TDEConfig / KSimpleConfig groups. Careful programmers always set the group of a 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:
String oldgroup config.group(); config.setGroup( "TheGroupThatIWant" ); ... config.writeEntry( "Blah", "Blubb" ); config.setGroup( oldgroup );In order to facilitate this task, you can use 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 TDEConfigGroupSaver: Simply enclose all work with one group (including the creation of the TDEConfigGroupSaver object) in one block. TDEConfigGroup provides similar functionality in a more object oriented way. @author Matthias Kalle Dalheimer