X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcore.h;h=ae39dc18c45b9818207c0bec8e9d23ce536774f7;hb=a3a8e528916f4930bd731ed074bcdd190d4fe327;hp=602f7bf4c6039cc20bf756afbd94e06e2d8edcd0;hpb=97d674034551438238c568e8b42efb08e1ba7354;p=quassel.git diff --git a/src/core/core.h b/src/core/core.h index 602f7bf4..ae39dc18 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-08 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 * - * (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; @@ -45,14 +46,18 @@ class Core : public QObject { static QVariant connectLocalClient(QString user, QString passwd); static void disconnectLocalClient(); + static void saveState(); + static void restoreState(); + private slots: - bool startListening(uint port = DEFAULT_PORT); + bool startListening(uint port = Global::defaultPort); void stopListening(); void incomingConnection(); void clientHasData(); void clientDisconnected(); - bool initStorageSqlite(QVariantMap dbSettings, bool setup); + bool initStorage(QVariantMap dbSettings, bool setup); + bool initStorage(QVariantMap dbSettings); private: Core();