-rw-r--r-- | libopie2/opiecore/oconfig.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libopie2/opiecore/oconfig.h b/libopie2/opiecore/oconfig.h index 8c3060c..ab95dc3 100644 --- a/libopie2/opiecore/oconfig.h +++ b/libopie2/opiecore/oconfig.h | |||
@@ -1,10 +1,11 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the Opie Project | 2 | This file is part of the Opie Project |
3 | 3 | ||
4 | (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> | 4 | (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de> |
5 | |||
5 | Inspired by the config classes from the KDE Project which are | 6 | Inspired by the config classes from the KDE Project which are |
6 | =. (C) 1997 Matthias Kalle Dalheimer <kalle@kde.org> | 7 | =. (C) 1997 Matthias Kalle Dalheimer <kalle@kde.org> |
7 | .=l. | 8 | .=l. |
8 | .>+-= | 9 | .>+-= |
9 | _;:, .> :=|. This program is free software; you can | 10 | _;:, .> :=|. This program is free software; you can |
10 | .> <`_, > . <= redistribute it and/or modify it under | 11 | .> <`_, > . <= redistribute it and/or modify it under |
@@ -105,12 +106,20 @@ private: | |||
105 | * out of scope, the group will automatically be restored. If you | 106 | * out of scope, the group will automatically be restored. If you |
106 | * want to use several different groups within a function or method, | 107 | * want to use several different groups within a function or method, |
107 | * you can still use OConfigGroupSaver: Simply enclose all work with | 108 | * you can still use OConfigGroupSaver: Simply enclose all work with |
108 | * one group (including the creation of the OConfigGroupSaver object) | 109 | * one group (including the creation of the OConfigGroupSaver object) |
109 | * in one block. | 110 | * in one block. |
110 | * | 111 | * |
112 | * \code | ||
113 | * OConfigGroupSaver saver(cfg,"TheGroupThatInWhat"); | ||
114 | * \endcode | ||
115 | * | ||
116 | * Note that OConfigGroupSaver (cfg,"TheGroupThatInWhat"); would get imediately | ||
117 | * destructed after created and that you would save in the old group which | ||
118 | * is unwished. | ||
119 | * | ||
111 | * @author Matthias Kalle Dalheimer <Kalle@kde.org> | 120 | * @author Matthias Kalle Dalheimer <Kalle@kde.org> |
112 | * @version $Id$ | 121 | * @version $Id$ |
113 | * @see OConfig | 122 | * @see OConfig |
114 | */ | 123 | */ |
115 | 124 | ||
116 | class OConfigGroupSaver | 125 | class OConfigGroupSaver |