X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fbuffer.h;h=84f34a3994e9ab2ffcfde87010e108c484620ac7;hb=28d1a6cc6e9b153dbed0257241abb8aedf706ac2;hp=afaa07f32b03a7f46123d681f5c8ee0f81a1dae4;hpb=9f9d207ecf28dd5470ecef9d4076a3f447662a20;p=quassel.git diff --git a/src/client/buffer.h b/src/client/buffer.h index afaa07f3..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,34 +49,9 @@ public: Buffer(BufferInfo, QObject *parent = 0); BufferInfo bufferInfo() 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); private: BufferInfo _bufferInfo; - bool _isVisible; - MsgId _lastSeenMsg; - ActivityLevel _activityLevel; - - QList layoutQueue; - QList layoutedMsgs; - - void updateActivityLevel(const Message &msg); }; Q_DECLARE_OPERATORS_FOR_FLAGS(Buffer::ActivityLevel)