As preparation for revamping the whole networking stuff, I did two renames:
[quassel.git] / src / core / coresession.h
index 304c70d..27417e5 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-07 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  *
@@ -28,7 +28,7 @@
 #include "message.h"
 
 class Identity;
-class Server;
+class NetworkConnection;
 class SignalProxy;
 class Storage;
 
@@ -51,7 +51,7 @@ public:
 
   SignalProxy *signalProxy() const;
 
-  void attachServer(Server *server);
+  void attachNetworkConnection(NetworkConnection *conn);
 
   //! Return necessary data for restoring the session after restarting the core
   QVariant state() const;
@@ -61,7 +61,7 @@ public slots:
   //! Store a piece session-wide data and distribute it to connected clients.
   void storeSessionData(const QString &key, const QVariant &data);
 
-  void serverStateRequested();
+  void networkStateRequested();
 
   void addClient(QIODevice *connection);
 
@@ -72,10 +72,15 @@ public slots:
   void sendBacklog(BufferInfo, QVariant, QVariant);
   void msgFromGui(BufferInfo, QString message);
 
-  //! Create or update an identity and propagate the changes to the clients.
-  /** \param identity The identity to be created/updated.
+  //! Create an identity and propagate the changes to the clients.
+  /** \param identity The identity to be created.
    */
-  void createOrUpdateIdentity(const Identity &identity);
+  void createIdentity(const Identity &identity);
+
+  //! Update an identity and propagate the changes to the clients.
+  /** \param identity The identity to be updated.
+   */
+  void updateIdentity(const Identity &identity);
 
   //! Remove identity and propagate that fact to the clients.
   /** \param identity The identity to be removed.
@@ -113,8 +118,8 @@ signals:
 private slots:
   void recvStatusMsgFromServer(QString msg);
   void recvMessageFromServer(Message::Type, QString target, QString text, QString sender = "", quint8 flags = Message::None);
-  void serverConnected(uint networkid);
-  void serverDisconnected(uint networkid);
+  void networkConnected(uint networkid);
+  void networkDisconnected(uint networkid);
 
   void scriptRequest(QString script);
   
@@ -125,7 +130,7 @@ private:
   
   SignalProxy *_signalProxy;
   Storage *storage;
-  QHash<NetworkId, Server *> servers;
+  QHash<NetworkId, NetworkConnection *> connections;
   
   QVariantMap sessionData;
   QMutex mutex;