X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcore%2Fcore.h;h=602f7bf4c6039cc20bf756afbd94e06e2d8edcd0;hb=99fb0a0f1f66ae5117fa64cc204256e5b3a19499;hp=eef6a2f03514ccafae7c1a6e405905bf650a33f2;hpb=06a03c2c69ee934aaeec83512bae2fffee83a340;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index eef6a2f0..602f7bf4 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -46,19 +46,20 @@ class Core : public QObject { static void disconnectLocalClient(); private slots: - //void recvProxySignal(CoreSignal, QVariant, QVariant, QVariant); bool startListening(uint port = DEFAULT_PORT); void stopListening(); void incomingConnection(); 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. @@ -66,15 +67,19 @@ 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; Storage *storage; QTcpServer server; // TODO: implement SSL - QHash validClients; QHash blockSizes; + + bool configured; }; #endif