X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffertreemodel.h;h=f84901809a817255ce3a6b11360378b39ef2caeb;hp=0848c8ff44075c06c032957ecc18517802579007;hb=64ff44560cc13569ab4968e3d974b0b7e9820607;hpb=13b2affbdccd1d52479e49affdb81a77258392a6 diff --git a/src/client/buffertreemodel.h b/src/client/buffertreemodel.h index 0848c8ff..f8490180 100644 --- a/src/client/buffertreemodel.h +++ b/src/client/buffertreemodel.h @@ -22,6 +22,7 @@ #define _BUFFERTREEMODEL_H_ #include +#include // FIXME Dependency on QtGui #include "treemodel.h" #include "buffer.h" @@ -57,7 +58,9 @@ class BufferTreeModel : public TreeModel { public: enum myRoles { BufferTypeRole = Qt::UserRole, - BufferActiveRole + BufferActiveRole, + BufferNameRole, + BufferIdRole }; //BufferTreeModel(const QList &, QObject *parent = 0); @@ -80,6 +83,7 @@ signals: void invalidateFilter(); void fakeUserInput(BufferId, QString); void updateSelection(const QModelIndex &, QItemSelectionModel::SelectionFlags); + void addBuffer(const uint &, const QString &); private: bool isBufferIndex(const QModelIndex &) const;