projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implement authenticator class used for logging in users
[quassel.git]
/
src
/
core
/
coresettings.cpp
diff --git
a/src/core/coresettings.cpp
b/src/core/coresettings.cpp
index
3c38b23
..
243374b
100644
(file)
--- a/
src/core/coresettings.cpp
+++ b/
src/core/coresettings.cpp
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-
07 by the Quassel IRC Team
*
+ * Copyright (C) 2005-
2016 by the Quassel Project
*
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-15,53
+15,58
@@
* 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., *
- * 5
9 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
+ * 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
***************************************************************************/
#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);
+CoreSettings::~CoreSettings()
+{
}
}
-QVariant CoreSettings::databaseSettings(const QVariant &def) {
- return localValue("DatabaseSettings", def);
-}
-void CoreSettings::setPort(const uint &port) {
- setLocalValue("Port", port);
+void CoreSettings::setStorageSettings(const QVariant &data)
+{
+ setLocalValue("StorageSettings", data);
}
}
-uint CoreSettings::port(const uint &def) {
- return localValue("Port", def).toUInt();
-}
-void CoreSettings::setCoreState(const QVariant &data) {
- setLocalValue("CoreState", data);
+QVariant CoreSettings::storageSettings(const QVariant &def)
+{
+ return localValue("StorageSettings", def);
}
}
-QVariant CoreSettings::coreState(const QVariant &def) {
- return localValue("CoreState", def);
+QVariant CoreSettings::authSettings(const QVariant &def)
+{
+ return localValue("AuthSettings", def);
}
}
-QStringList CoreSettings::sessionKeys() {
- Q_ASSERT(false);
- return QStringList();
+void CoreSettings::setAuthSettings(const QVariant &data)
+{
+ setLocalValue("AuthSettings", data);
+}
+
+// FIXME remove
+QVariant CoreSettings::oldDbSettings()
+{
+ return localValue("DatabaseSettings");
}
}
-void CoreSettings::setSessionValue(const QString &key, const QVariant &data) {
- Q_ASSERT(false);
+
+void CoreSettings::setCoreState(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);
}
}