X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=52133b68b4c7037e3ace2ad06eddb5fc34338f09;hb=034708a59ca1ee3195263a90941a2b145c520fef;hp=b8faf9fbd20db11233857681952e144332eba39d;hpb=fadb064c526843a7f6f6e4532372eee009fa3c3b;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index b8faf9fb..52133b68 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(); + public slots: //void selectBuffer(Buffer *); @@ -207,6 +212,9 @@ private: static AccountId _currentCoreAccount; + QString _debugLogBuffer; + QTextStream _debugLog; + friend class ClientSyncer; };