#include "message.h"
+class BufferSyncer;
class Identity;
class NetworkConnection;
class Network;
*/
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);
+
signals:
void initialized();
void networkCreated(NetworkId);
void networkRemoved(NetworkId);
+ void bufferRemoved(BufferId);
private slots:
void recvStatusMsgFromServer(QString msg);
*/
void updateBufferInfo(UserId user, const BufferInfo &bufferInfo);
+ void storeBufferLastSeen(BufferId buffer, const QDateTime &lastSeen);
+
void scriptRequest(QString script);
private:
QHash<NetworkId, Network *> _networksToRemove;
QHash<IdentityId, Identity *> _identities;
+ BufferSyncer *_bufferSyncer;
+
QScriptEngine *scriptEngine;
};