- //! Store a piece session-wide data and distribute it to connected clients.
- void storeSessionData(const QString &key, const QVariant &data);
-
- void serverStateRequested();
-
- void addClient(QIODevice *connection);
-
- void connectToNetwork(QString);
-
- //void processSignal(ClientSignal, QVariant, QVariant, QVariant);
- void sendBacklog(BufferInfo, QVariant, QVariant);
- void msgFromGui(BufferInfo, QString message);
-
+ void networkStateRequested();
+
+ void addClient(QObject *socket);
+
+ void connectToNetwork(NetworkId);
+ void disconnectFromNetwork(NetworkId id);
+
+ void msgFromClient(BufferInfo, QString message);
+
+ //! Create an identity and propagate the changes to the clients.
+ /** \param identity The identity to be created.
+ */
+ 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.
+ */
+ void removeIdentity(IdentityId identity);
+
+ //! Create a network and propagate the changes to the clients.
+ /** \param info The network's settings.
+ */
+ void createNetwork(const NetworkInfo &info);
+
+ //! Update a network and propagate the changes to the clients.
+ /** \param info The updated network settings.
+ */
+ void updateNetwork(const NetworkInfo &info);
+
+ //! Remove identity and propagate that fact to the clients.
+ /** \param identity The identity to be removed.
+ */
+ void removeNetwork(NetworkId network);
+
+ //! Remove a buffer and it's backlog permanently
+ /** \param bufferId The id of the buffer to be removed.
+ * emits bufferRemoved(bufferId) on success.
+ */
+ void removeBufferRequested(BufferId bufferId);
+
+ //! Rename a Buffer for a given network
+ /* \param networkId The id of the network the buffer belongs to
+ * \param newName The new name of the buffer
+ * \param oldName The old name of the buffer
+ * emits bufferRenamed(bufferId, newName) on success.
+ */
+ void renameBuffer(const NetworkId &networkId, const QString &newName, const QString &oldName);
+
+ void channelJoined(NetworkId id, const QString &channel, const QString &key = QString());
+ void channelParted(NetworkId, const QString &channel);
+ QHash<QString, QString> persistentChannels(NetworkId) const;
+