projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixing BR #369 (handle onotice/omsg properly, add /notice command)
[quassel.git]
/
src
/
uisupport
/
abstractbuffercontainer.h
diff --git
a/src/uisupport/abstractbuffercontainer.h
b/src/uisupport/abstractbuffercontainer.h
index
a8c5055
..
0e46627
100644
(file)
--- a/
src/uisupport/abstractbuffercontainer.h
+++ b/
src/uisupport/abstractbuffercontainer.h
@@
-37,6
+37,9
@@
class AbstractBufferContainer : public AbstractItemView {
inline BufferId currentBuffer() const { return _currentBuffer; }
inline BufferId currentBuffer() const { return _currentBuffer; }
+ signals:
+ void currentChanged(BufferId);
+
protected:
//! Create an AbstractChatView for the given BufferId and add it to the UI if necessary
virtual AbstractChatView *createChatView(BufferId) = 0;
protected:
//! Create an AbstractChatView for the given BufferId and add it to the UI if necessary
virtual AbstractChatView *createChatView(BufferId) = 0;
@@
-46,7
+49,7
@@
class AbstractBufferContainer : public AbstractItemView {
* It also shall delete the object afterwards.
* \param view The chat view to be removed and deleted
*/
* It also shall delete the object afterwards.
* \param view The chat view to be removed and deleted
*/
- virtual void removeChatView(
AbstractChatView *view
) = 0;
+ virtual void removeChatView(
BufferId
) = 0;
protected slots:
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
protected slots:
virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous);
@@
-57,11
+60,9
@@
class AbstractBufferContainer : public AbstractItemView {
* selecting the appropriate page in a QStackedWidget.
* \param view The chat view to be displayed. May be 0 if no chat view is selected.
*/
* selecting the appropriate page in a QStackedWidget.
* \param view The chat view to be displayed. May be 0 if no chat view is selected.
*/
- virtual void showChatView(
AbstractChatView *view
) = 0;
+ virtual void showChatView(
BufferId
) = 0;
private slots:
private slots:
- void appendMsg(AbstractUiMsg *);
- void prependMsg(AbstractUiMsg *);
void removeBuffer(BufferId bufferId);
void setCurrentBuffer(BufferId bufferId);
void removeBuffer(BufferId bufferId);
void setCurrentBuffer(BufferId bufferId);
@@
-74,10
+75,7
@@
class AbstractChatView {
public:
virtual ~AbstractChatView() {};
public:
virtual ~AbstractChatView() {};
- virtual void appendMsg(AbstractUiMsg *msg) = 0;
- virtual void prependMsg(AbstractUiMsg *msg) = 0;
- virtual void setContents(const QList<AbstractUiMsg *> &contents) = 0;
-
+ virtual MsgId lastMsgId() const = 0;
};
#endif
};
#endif