X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fnetworkmodel.h;h=8dceb5a485b0cbb5b1681e99bb327dfc2efc1e20;hp=1a5e4c4bc732ed169ab32f24b0e172e7aaee3020;hb=52a7b4d0f289f075aa386445a47d876743bcb6d0;hpb=43f0f050e5d91f86fc51c644f6343b45b4628a64 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);