class BufferSyncer;
class ClientBacklogManager;
class ClientIrcListHelper;
+class ClientSyncer;
class BufferViewManager;
class IrcUser;
class IrcChannel;
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();
void requestCreateNetwork(const NetworkInfo &info);
void requestRemoveNetwork(NetworkId);
+ void newClientSyncer(ClientSyncer *);
+
+ void logUpdated();
+
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 coreSocketError(QAbstractSocket::SocketError);
-
- //void networkConnected(NetworkId);
- //void networkDisconnected(NetworkId);
+ void disconnectedFromCore();
void recvMessage(const Message &message);
void recvStatusMsg(QString network, QString message);
void coreNetworkRemoved(NetworkId);
void setConnectedToCore(QIODevice *socket, AccountId id);
+ void setConnectedToInternalCore();
void setSyncedToCore();
void setSecuredConnection();
static QPointer<Client> instanceptr;
- QPointer<QIODevice> socket;
-
SignalProxy * _signalProxy;
AbstractUi * mainUi;
NetworkModel * _networkModel;
static AccountId _currentCoreAccount;
+ QString _debugLogBuffer;
+ QTextStream _debugLog;
+
friend class ClientSyncer;
};