X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=40086acc9e6a3c24cfaa52182b29ac940ba8e75c;hp=b8faf9fbd20db11233857681952e144332eba39d;hb=f7e987956ef7e469a493a669e2f0c0901f5a7ead;hpb=0d49f7e83bd1055711e66aa880f3a0d62f7eefc9 diff --git a/src/client/client.h b/src/client/client.h index b8faf9fb..40086acc 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -112,6 +112,9 @@ public: static void setBufferLastSeenMsg(BufferId id, const MsgId &msgId); // this is synced to core and other clients static void removeBuffer(BufferId id); + static void logMessage(QtMsgType type, const char *msg); + static inline const QString &debugLog() { return instance()->_debugLogBuffer; } + signals: void sendInput(BufferInfo, QString message); void requestNetworkStates(); @@ -149,6 +152,8 @@ signals: void newClientSyncer(ClientSyncer *); + void logUpdated(const QString &msg); + public slots: //void selectBuffer(Buffer *); @@ -169,9 +174,9 @@ private slots: void coreNetworkCreated(NetworkId); void coreNetworkRemoved(NetworkId); - void setConnectedToCore(QIODevice *socket, AccountId id); - void setConnectedToInternalCore(); + void setConnectedToCore(AccountId id, QIODevice *socket = 0); void setSyncedToCore(); + void requestInitialBacklog(); void setSecuredConnection(); @@ -207,6 +212,9 @@ private: static AccountId _currentCoreAccount; + QString _debugLogBuffer; + QTextStream _debugLog; + friend class ClientSyncer; };