* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
+ * (at your option) version 3. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
static QList<NetworkInfo *> networkInfos();
static NetworkInfo *networkInfo(uint networkid);
-
+
static QList<BufferInfo> allBufferInfos();
static QList<Buffer *> buffers();
static Buffer *buffer(uint bufferUid);
static void fakeInput(uint bufferUid, QString message);
static void fakeInput(BufferInfo bufferInfo, QString message);
-
+
static void storeSessionData(const QString &key, const QVariant &data);
static QVariant retrieveSessionData(const QString &key, const QVariant &def = QVariant());
static QStringList sessionDataKeys();
void coreConnectionMsg(const QString &msg);
void coreConnectionProgress(uint part, uint total);
+ void showConfigWizard(const QVariantMap &coredata);
+
void connected();
void disconnected();
void connectToCore(const QVariantMap &);
void disconnectFromCore();
+ void setCoreConfiguration(const QVariantMap &settings);
+
private slots:
void recvCoreState(const QVariant &state);
void recvSessionData(const QString &key, const QVariant &data);
void coreHasData();
void coreSocketConnected();
void coreSocketDisconnected();
- void coreSocketStateChanged(QAbstractSocket::SocketState);
void userInput(BufferInfo, QString);
void recvBacklogData(BufferInfo, QVariantList, bool);
void updateBufferInfo(BufferInfo);
- void bufferDestroyed();
-
void layoutMsg();
+private slots:
+ void bufferDestroyed();
+ void networkInfoDestroyed();
+ void ircChannelAdded(QString);
+
private:
Client(QObject *parent = 0);
virtual ~Client();
void init();
-
+
void syncToCore(const QVariant &coreState);
- QVariant connectToLocalCore(QString user, QString passwd); // defined in main.cpp
- void disconnectFromLocalCore(); // defined in main.cpp
static QPointer<Client> instanceptr;
-
+
QPointer<QIODevice> socket;
QPointer<SignalProxy> _signalProxy;
QPointer<AbstractUi> mainUi;
quint32 blockSize;
bool connectedToCore;
-
+
QVariantMap coreConnectionInfo;
QHash<uint, Buffer *> _buffers;
QHash<uint, NetworkInfo*> _networkInfo;