X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffer.h;h=84f34a3994e9ab2ffcfde87010e108c484620ac7;hb=c2718511214289f58a02207f7988876c420e8c7e;hp=17e9b23c9ddcaf8948f0d3b844daf611223a7188;hpb=e416a73af88ef581b262745feeea0add49779395;p=quassel.git diff --git a/src/client/buffer.h b/src/client/buffer.h index 17e9b23c..84f34a39 100644 --- a/src/client/buffer.h +++ b/src/client/buffer.h @@ -32,7 +32,6 @@ struct BufferState; #include "message.h" #include "bufferinfo.h" -/// Encapsulates the contents of a single channel, query or server status context. /** */ class Buffer : public QObject { @@ -50,35 +49,9 @@ public: Buffer(BufferInfo, QObject *parent = 0); BufferInfo bufferInfo() const; - const QList &contents() const; - inline bool isVisible() const { return _isVisible; } - inline MsgId lastSeenMsg() const { return _lastSeenMsg; } - inline ActivityLevel activityLevel() const { return _activityLevel; } - -signals: - void msgAppended(AbstractUiMsg *); - void msgPrepended(AbstractUiMsg *); - void layoutQueueEmpty(); - -public slots: - void appendMsg(const Message &); - void prependMsg(const Message &); - bool layoutMsg(); - void setVisible(bool visible); - void setLastSeenMsg(const MsgId &msgId); - void setActivityLevel(ActivityLevel level); - void updateActivityLevel(const Message &msg); private: BufferInfo _bufferInfo; - bool _isVisible; - MsgId _lastSeenMsg; - Message _lastRcvdMsg; - ActivityLevel _activityLevel; - - QLinkedList layoutQueue; - QList layoutedMsgs; - }; Q_DECLARE_OPERATORS_FOR_FLAGS(Buffer::ActivityLevel)