projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved debuging:
[quassel.git]
/
src
/
client
/
client.h
diff --git
a/src/client/client.h
b/src/client/client.h
index
2d073c5
..
52133b6
100644
(file)
--- 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 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();
signals:
void sendInput(BufferInfo, QString message);
void requestNetworkStates();
@@
-149,21
+152,18
@@
signals:
void newClientSyncer(ClientSyncer *);
void newClientSyncer(ClientSyncer *);
+ void logUpdated();
+
public slots:
//void selectBuffer(Buffer *);
void disconnectFromCore();
public slots:
//void selectBuffer(Buffer *);
void disconnectFromCore();
- void setCoreConfiguration(const QVariantMap &settings);
-
void bufferRemoved(BufferId bufferId);
void bufferRenamed(BufferId bufferId, const QString &newName);
private slots:
void bufferRemoved(BufferId bufferId);
void bufferRenamed(BufferId bufferId, const QString &newName);
private slots:
- //void coreSocketError(QAbstractSocket::SocketError);
-
- //void networkConnected(NetworkId);
- //void networkDisconnected(NetworkId);
+ void disconnectedFromCore();
void recvMessage(const Message &message);
void recvStatusMsg(QString network, QString message);
void recvMessage(const Message &message);
void recvStatusMsg(QString network, QString message);
@@
-175,6
+175,7
@@
private slots:
void coreNetworkRemoved(NetworkId);
void setConnectedToCore(QIODevice *socket, AccountId id);
void coreNetworkRemoved(NetworkId);
void setConnectedToCore(QIODevice *socket, AccountId id);
+ void setConnectedToInternalCore();
void setSyncedToCore();
void setSecuredConnection();
void setSyncedToCore();
void setSecuredConnection();
@@
-190,8
+191,6
@@
private:
static QPointer<Client> instanceptr;
static QPointer<Client> instanceptr;
- QPointer<QIODevice> socket;
-
SignalProxy * _signalProxy;
AbstractUi * mainUi;
NetworkModel * _networkModel;
SignalProxy * _signalProxy;
AbstractUi * mainUi;
NetworkModel * _networkModel;
@@
-213,6
+212,9
@@
private:
static AccountId _currentCoreAccount;
static AccountId _currentCoreAccount;
+ QString _debugLogBuffer;
+ QTextStream _debugLog;
+
friend class ClientSyncer;
};
friend class ClientSyncer;
};