Various smaller stuff, some parts of the new identity settingspage, plus Quassel
[quassel.git] / src / core / core.h
index 602f7bf..1ceaec4 100644 (file)
@@ -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 <QTcpSocket>
 
 #include "global.h"
+#include "types.h"
 
 class CoreSession;
 class Storage;
@@ -45,8 +46,11 @@ 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();