X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=85fcd49e656f37b7624bfc7211942449e6a56781;hb=8f6f3932998ffb3778e4e077dfb301da4cf34c1f;hp=5e73b7c8c1c48d3560b4f8acf94dadacb11f709c;hpb=48151f63e7f953bf07828be39ba314095c472c74;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index 5e73b7c8..85fcd49e 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005/06 by The Quassel Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * 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 * @@ -27,6 +27,7 @@ #include #include "global.h" +#include "types.h" class CoreSession; class Storage; @@ -52,12 +53,14 @@ class Core : public QObject { void clientHasData(); void clientDisconnected(); + bool initStorageSqlite(QVariantMap dbSettings, bool setup); + private: Core(); ~Core(); void init(); static Core *instanceptr; - + //! Initiate a session for the user with the given credentials if one does not already exist. /** This function is called during the init process for a new client. If there is no session for the * given user, one is created. @@ -65,7 +68,10 @@ class Core : public QObject { * \return A QVariant containing the session data, e.g. global data and buffers */ QVariant initSession(UserId userId); - void processClientInit(QTcpSocket *socket, const QVariant &v); + void processClientInit(QTcpSocket *socket, const QVariantMap &msg); + void processCoreSetup(QTcpSocket *socket, QVariantMap &msg); + + QStringList availableStorageProviders(); UserId guiUser; QHash sessions; @@ -73,6 +79,8 @@ class Core : public QObject { QTcpServer server; // TODO: implement SSL QHash blockSizes; + + bool configured; }; #endif