projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed creation of buffer schema
[quassel.git]
/
src
/
core
/
coresession.h
diff --git
a/src/core/coresession.h
b/src/core/coresession.h
index
9726f4c
..
545bf9c
100644
(file)
--- a/
src/core/coresession.h
+++ b/
src/core/coresession.h
@@
-26,6
+26,7
@@
#include "message.h"
#include "message.h"
+class BufferSyncer;
class Identity;
class NetworkConnection;
class Network;
class Identity;
class NetworkConnection;
class Network;
@@
-88,7
+89,7
@@
public slots:
//! Create a network and propagate the changes to the clients.
/** \param info The network's settings.
*/
//! Create a network and propagate the changes to the clients.
/** \param info The network's settings.
*/
- void createNetwork(const NetworkInfo &info
, bool useId = false
);
+ void createNetwork(const NetworkInfo &info);
//! Update a network and propagate the changes to the clients.
/** \param info The updated network settings.
//! Update a network and propagate the changes to the clients.
/** \param info The updated network settings.
@@
-100,6
+101,12
@@
public slots:
*/
void removeNetwork(NetworkId 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();
signals:
void initialized();
@@
-130,13
+137,16
@@
signals:
void networkCreated(NetworkId);
void networkRemoved(NetworkId);
void networkCreated(NetworkId);
void networkRemoved(NetworkId);
+ void bufferRemoved(BufferId);
private slots:
void recvStatusMsgFromServer(QString msg);
private slots:
void recvStatusMsgFromServer(QString msg);
- void recvMessageFromServer(Message::Type, QString target, QString text, QString sender = "", quint8 flags = Message::None);
+ void recvMessageFromServer(Message::Type,
BufferInfo::Type,
QString target, QString text, QString sender = "", quint8 flags = Message::None);
void networkConnected(NetworkId networkid);
void networkDisconnected(NetworkId networkid);
void networkConnected(NetworkId networkid);
void networkDisconnected(NetworkId networkid);
+ void destroyNetwork(NetworkId);
+
//! Called when storage updated a BufferInfo.
/** This emits bufferInfoUpdated() via SignalProxy, iff it's one of our buffers.
* \param user The buffer's owner (not necessarily us)
//! Called when storage updated a BufferInfo.
/** This emits bufferInfoUpdated() via SignalProxy, iff it's one of our buffers.
* \param user The buffer's owner (not necessarily us)
@@
-144,6
+154,8
@@
private slots:
*/
void updateBufferInfo(UserId user, const BufferInfo &bufferInfo);
*/
void updateBufferInfo(UserId user, const BufferInfo &bufferInfo);
+ void storeBufferLastSeen(BufferId buffer, const QDateTime &lastSeen);
+
void scriptRequest(QString script);
private:
void scriptRequest(QString script);
private:
@@
-155,8
+167,11
@@
private:
SignalProxy *_signalProxy;
QHash<NetworkId, NetworkConnection *> _connections;
QHash<NetworkId, Network *> _networks;
SignalProxy *_signalProxy;
QHash<NetworkId, NetworkConnection *> _connections;
QHash<NetworkId, Network *> _networks;
+ QHash<NetworkId, Network *> _networksToRemove;
QHash<IdentityId, Identity *> _identities;
QHash<IdentityId, Identity *> _identities;
+ BufferSyncer *_bufferSyncer;
+
QScriptEngine *scriptEngine;
};
QScriptEngine *scriptEngine;
};