X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.h;h=8dceb5a485b0cbb5b1681e99bb327dfc2efc1e20;hb=21bae45824145c256bdca18b84b34e31aa2f668d;hp=1a5e4c4bc732ed169ab32f24b0e172e7aaee3020;hpb=4fdf00a414eba03fb95cade3aca3ba53705c7b97;p=quassel.git diff --git a/src/client/networkmodel.h b/src/client/networkmodel.h index 1a5e4c4b..8dceb5a4 100644 --- a/src/client/networkmodel.h +++ b/src/client/networkmodel.h @@ -33,12 +33,12 @@ class BufferInfo; #include "selectionmodelsynchronizer.h" #include "modelpropertymapper.h" #include "clientsettings.h" +#include "ircuser.h" class MappedSelectionModel; class QAbstractItemView; class Network; class IrcChannel; -class IrcUser; /***************************************** * Fancy Buffer Items @@ -179,8 +179,8 @@ public: QString nickName() const; bool isActive() const; - IrcUser *ircUser(); - virtual quint64 id() const; + inline IrcUser *ircUser() { return _ircUser; } + inline virtual quint64 id() const { return _id; } virtual QVariant data(int column, int role) const; virtual QString toolTip(int column) const; @@ -233,6 +233,7 @@ public: bool isBufferIndex(const QModelIndex &) const; //Buffer *getBufferByIndex(const QModelIndex &) const; + QModelIndex networkIndex(NetworkId networkId); QModelIndex bufferIndex(BufferId bufferId); const Network *networkByIndex(const QModelIndex &index) const; @@ -246,7 +247,6 @@ public slots: void networkRemoved(const NetworkId &networkId); private: - QModelIndex networkIndex(NetworkId networkId); NetworkItem *networkItem(NetworkId networkId); NetworkItem *existsNetworkItem(NetworkId networkId); BufferItem *bufferItem(const BufferInfo &bufferInfo);