Activate cliparser and adapt old global variables to it.
[quassel.git] / src / core / coresettings.h
index cf2cb45..775d88e 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
+ *   Copyright (C) 2005-08 by the Quassel Project                          *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -30,15 +30,17 @@ class CoreSettings : public Settings {
     virtual ~CoreSettings();
     CoreSettings(const QString group = "Core");
 
-    void setDatabaseSettings(const QVariant &data);
-    QVariant databaseSettings(const QVariant &def = QVariant());
+    void setStorageSettings(const QVariant &data);
+    QVariant storageSettings(const QVariant &def = QVariant());
+
+    QVariant oldDbSettings();  // FIXME remove
 
     void setPort(const uint &port);
-    uint port(const uint &def = Global::defaultPort);
+    uint port(const uint &def = Global::parser.value("port").toUInt());
 
     void setCoreState(const QVariant &data);
     QVariant coreState(const QVariant &def = QVariant());
 
 };
 
-#endif /*CORESETTINGS_H_*/
+#endif /*_CORESETTINGS_H_*/