X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fbuffertreemodel.h;h=3f4e5974ccaf5881139884b6e2237682204f0682;hp=23471ad8d46fbaed7ac35f642083ff317aec057e;hb=012df68ce8a743a71bfe3beda529a21c02daddb6;hpb=0ac9ce4d7cf768d13993d6aa1d6b791c4149a843 diff --git a/src/client/buffertreemodel.h b/src/client/buffertreemodel.h index 23471ad8..3f4e5974 100644 --- a/src/client/buffertreemodel.h +++ b/src/client/buffertreemodel.h @@ -34,6 +34,9 @@ class BufferTreeItem : public TreeItem { public: BufferTreeItem(Buffer *, TreeItem *parent = 0); + + virtual uint id() const; + QVariant data(int column, int role) const; Buffer *buffer() const { return buf; } void setActivity(const Buffer::ActivityLevel &); @@ -46,6 +49,21 @@ protected: Buffer::ActivityLevel activity; }; +/***************************************** + * Network Items + *****************************************/ +class NetworkTreeItem : public TreeItem { + Q_OBJECT + +public: + NetworkTreeItem(const QString &, TreeItem *parent = 0); + + virtual uint id() const; + +private: + QString net; + +}; /***************************************** * BufferTreeModel @@ -66,8 +84,6 @@ public: virtual Qt::ItemFlags flags(const QModelIndex &index) const; -// void clearActivity(Buffer *buffer); - public slots: void bufferUpdated(Buffer *); void changeCurrent(const QModelIndex &, const QModelIndex &); @@ -91,8 +107,6 @@ private: QMimeData *mimeData(const QModelIndexList &) const; bool dropMimeData(const QMimeData *, Qt::DropAction, int, int, const QModelIndex &); - QHash networkItem; - QHash bufferItem; Buffer *currentBuffer; };