X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.h;h=daa130ac8415bbd07cb2b8572bcee75bbb611f3c;hp=70206cb7dc627ccc01f168cd91343b13dbc2e42f;hb=a2d4978097260c8af1f51ade497071793db2a0c0;hpb=50706d89d4d60e258ebb6873d3778383621898e4 diff --git a/src/uisupport/nickview.h b/src/uisupport/nickview.h index 70206cb7..daa130ac 100644 --- a/src/uisupport/nickview.h +++ b/src/uisupport/nickview.h @@ -21,8 +21,13 @@ #ifndef _NICKVIEW_H_ #define _NICKVIEW_H_ + #include +#include "types.h" +#include "bufferinfo.h" + + class NickModel; class FilteredNickModel; class QSortFilterProxyModel; @@ -37,12 +42,18 @@ class NickView : public QTreeView { protected: void rowsInserted(const QModelIndex &, int, int); -// public slots: -// void setModel(NickModel *model); + public slots: + void setModel(QAbstractItemModel *model); + void init(); + void showContextMenu(const QPoint & pos); + void startQuery(const QModelIndex & modelIndex); -// private: -// QSortFilterProxyModel *filteredModel; + private: + BufferInfo bufferInfoFromModelIndex(const QModelIndex & index); + QString nickFromModelIndex(const QModelIndex & index); + void executeCommand(const BufferInfo & bufferInfo, const QString & command); }; + #endif