X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=53ad0b5b5274df11f5ef4e938b1fbc5b84a0028d;hb=fd7c2c4a41b5bb9cffcfe7a8f86a28ab7f38ac27;hp=9a64526e92e890d44364f93797abc24d6e202ec5;hpb=8699dd758516d0ded076811e8ea656adc95e69d0;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index 9a64526e..53ad0b5b 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -31,12 +31,13 @@ class BufferInfo; class Message; class Identity; -class NetworkInfo; +class Network; class AbstractUi; class AbstractUiMsg; class NetworkModel; +class BufferModel; class SignalProxy; class QTimer; @@ -50,8 +51,8 @@ public: static void destroy(); static void init(AbstractUi *); - static QList networkInfos(); - static NetworkInfo *networkInfo(uint networkid); + static QList networks(); + static Network *network(uint networkid); static QList allBufferInfos(); static QList buffers(); @@ -82,6 +83,7 @@ public: static void removeIdentity(IdentityId id); static NetworkModel *networkModel(); + static BufferModel *bufferModel(); static SignalProxy *signalProxy(); static AbstractUiMsg *layoutMsg(const Message &); @@ -173,7 +175,7 @@ private slots: void layoutMsg(); void bufferDestroyed(); - void networkInfoDestroyed(); + void networkDestroyed(); void ircChannelAdded(QString); void coreIdentityCreated(const Identity &); void coreIdentityRemoved(IdentityId); @@ -191,6 +193,7 @@ private: QPointer _signalProxy; QPointer mainUi; QPointer _networkModel; + QPointer _bufferModel; ClientMode clientMode; @@ -199,7 +202,7 @@ private: QVariantMap coreConnectionInfo; QHash _buffers; - QHash _networkInfo; + QHash _network; QHash _identities; QTimer *layoutTimer;