* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "coreusersettings.h"
***************************************************************************/
#include "coreusersettings.h"
-QVariantMap CoreUserSettings::sessionData() {
- QVariantMap res;
- foreach(QString key, localChildKeys(QString("SessionData"))) {
- res[key] = localValue(QString("SessionData/%1").arg(key));
- }
- return res;
+QVariant CoreUserSettings::sessionState(const QVariant& def) const
+{
+ return localValue("SessionState", def);
-void CoreUserSettings::setSessionValue(const QString &key, const QVariant &data) {
- setLocalValue(QString("SessionData/%1").arg(key), data);
+QVariantMap CoreUserSettings::sessionData() const
+{
+ QVariantMap res;
+ foreach (QString key, localChildKeys(QString("SessionData"))) {
+ res[key] = localValue(QString("SessionData/%1").arg(key));
+ }
+ return res;
-QVariant CoreUserSettings::sessionValue(const QString &key, const QVariant &def) {
- return localValue(QString("SessionData/%1").arg(key), def);
+void CoreUserSettings::setSessionValue(const QString& key, const QVariant& data)
+{
+ setLocalValue(QString("SessionData/%1").arg(key), data);