X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=333479202300ef874c2c11a6abee2eea58b2a304;hp=9a64526e92e890d44364f93797abc24d6e202ec5;hb=f12dbcd32ef6eff25bd730444e5165935e6b0cf5;hpb=8699dd758516d0ded076811e8ea656adc95e69d0 diff --git a/src/client/client.h b/src/client/client.h index 9a64526e..33347920 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,15 +51,13 @@ 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(); static Buffer *buffer(uint bufferUid); static Buffer *buffer(BufferInfo); - static BufferInfo statusBufferInfo(QString net); - static BufferInfo bufferInfo(QString net, QString buf); static QList identityIds(); static const Identity * identity(IdentityId); @@ -82,6 +81,7 @@ public: static void removeIdentity(IdentityId id); static NetworkModel *networkModel(); + static BufferModel *bufferModel(); static SignalProxy *signalProxy(); static AbstractUiMsg *layoutMsg(const Message &); @@ -100,9 +100,7 @@ public: signals: void sendInput(BufferInfo, QString message); void showBuffer(Buffer *); - void bufferSelected(Buffer *); - void bufferUpdated(Buffer *); - void bufferActivity(Buffer::ActivityLevel, Buffer *); + void bufferUpdated(BufferInfo bufferInfo); void backlogReceived(Buffer *, QList); void requestBacklog(BufferInfo, QVariant, QVariant); void requestNetworkStates(); @@ -173,8 +171,7 @@ private slots: void layoutMsg(); void bufferDestroyed(); - void networkInfoDestroyed(); - void ircChannelAdded(QString); + void networkDestroyed(); void coreIdentityCreated(const Identity &); void coreIdentityRemoved(IdentityId); @@ -191,6 +188,7 @@ private: QPointer _signalProxy; QPointer mainUi; QPointer _networkModel; + QPointer _bufferModel; ClientMode clientMode; @@ -199,7 +197,7 @@ private: QVariantMap coreConnectionInfo; QHash _buffers; - QHash _networkInfo; + QHash _network; QHash _identities; QTimer *layoutTimer;