X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=4df6685d57828ef24a1a34bd0905bbdf7ea2f1e0;hp=26e67cc5d504bfa9a83a02f40ff1be726692444e;hb=08aac67d4dc813ed541a81d06fb83d9c4fec5834;hpb=d1b6499b0b848d4287efae89107576548533502c diff --git a/src/client/client.h b/src/client/client.h index 26e67cc5..4df6685d 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -54,14 +54,14 @@ public: static void destroy(); static void init(AbstractUi *); - static QList networks(); - static Network *network(NetworkId networkid); - static QList allBufferInfos(); static QList buffers(); static Buffer *buffer(BufferId bufferUid); static Buffer *buffer(BufferInfo); + static QList networkIds(); + static const Network * network(NetworkId); + static QList identityIds(); static const Identity * identity(IdentityId); @@ -97,8 +97,7 @@ public: static bool isConnected(); static bool isSynced(); - static void fakeInput(BufferId bufferUid, QString message); - static void fakeInput(BufferInfo bufferInfo, QString message); + static void userInput(BufferInfo bufferInfo, QString message); static void storeSessionData(const QString &key, const QVariant &data); static QVariant retrieveSessionData(const QString &key, const QVariant &def = QVariant()); @@ -144,6 +143,8 @@ signals: //! Sent to the core when an identity shall be removed. Should not be used elsewhere. void requestRemoveIdentity(IdentityId); + void networkAdded(NetworkId id); + public slots: //void selectBuffer(Buffer *); @@ -153,14 +154,11 @@ public slots: void setCoreConfiguration(const QVariantMap &settings); - private slots: void recvSessionData(const QString &key, const QVariant &data); //void coreSocketError(QAbstractSocket::SocketError); - void userInput(BufferInfo, QString); - //void networkConnected(NetworkId); //void networkDisconnected(NetworkId);