projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce event filters
[quassel.git]
/
src
/
core
/
coresettings.cpp
diff --git
a/src/core/coresettings.cpp
b/src/core/coresettings.cpp
index
579713a
..
a08fc44
100644
(file)
--- a/
src/core/coresettings.cpp
+++ b/
src/core/coresettings.cpp
@@
-1,11
+1,11
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
7 by The Quassel IRC Development Team
*
+ * Copyright (C) 2005-0
9 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
- * (at your option)
any later version.
*
+ * (at your option)
version 3.
*
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
@@
-20,40
+20,32
@@
#include "coresettings.h"
#include "coresettings.h"
-#include
<QStringList>
+#include
"quassel.h"
-CoreSettings::CoreSettings() : Settings("Core") {
-}
+CoreSettings::CoreSettings(const QString group) : Settings(group, Quassel::buildInfo().coreApplicationName) {
-CoreSettings::~CoreSettings() {
}
}
-void CoreSettings::setDatabaseSettings(const QVariant &data) {
- setLocalValue("DatabaseSettings", data);
-}
-
-QVariant CoreSettings::databaseSettings(const QVariant &def) {
- return localValue("DatabaseSettings", def);
+CoreSettings::~CoreSettings() {
}
}
-void CoreSettings::set
Port(const uint &port
) {
- setLocalValue("
Port", port
);
+void CoreSettings::set
StorageSettings(const QVariant &data
) {
+ setLocalValue("
StorageSettings", data
);
}
}
-
uint CoreSettings::port(const ui
nt &def) {
- return localValue("
Port", def).toUInt(
);
+
QVariant CoreSettings::storageSettings(const QVaria
nt &def) {
+ return localValue("
StorageSettings", def
);
}
}
-QStringList CoreSettings::sessionKeys() {
- Q_ASSERT(false);
- return
QStringList(
);
+// FIXME remove
+QVariant CoreSettings::oldDbSettings() {
+ return
localValue("DatabaseSettings"
);
}
}
-void CoreSettings::set
SessionValue(const QString &key,
const QVariant &data) {
-
Q_ASSERT(false
);
+void CoreSettings::set
CoreState(
const QVariant &data) {
+
setLocalValue("CoreState", data
);
}
}
-QVariant CoreSettings::sessionValue(const QString &key, const QVariant &def) {
- Q_ASSERT(false);
- return QVariant();
+QVariant CoreSettings::coreState(const QVariant &def) {
+ return localValue("CoreState", def);
}
}