X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=cae4f9f86ea8e8146f750a13ea1c911fd7e26ad1;hp=8a824c379fa29be4153096d49302c93f2de2886e;hb=2517c75cb456db066aec68f99eed6e42d12a827d;hpb=902c95728306e5ba115de84800fc8d5d239c9d62 diff --git a/src/client/client.h b/src/client/client.h index 8a824c37..cae4f9f8 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -1,11 +1,11 @@ /*************************************************************************** - * Copyright (C) 2005-07 by The Quassel IRC Development Team * + * Copyright (C) 2005-07 by the Quassel IRC Team * * devel@quassel-irc.org * * * * 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 * @@ -35,7 +35,7 @@ class NetworkInfo; class AbstractUi; class AbstractUiMsg; -class BufferTreeModel; +class NetworkModel; class SignalProxy; class QTimer; @@ -51,7 +51,7 @@ public: static QList networkInfos(); static NetworkInfo *networkInfo(uint networkid); - + static QList allBufferInfos(); static QList buffers(); static Buffer *buffer(uint bufferUid); @@ -59,13 +59,16 @@ public: static BufferInfo statusBufferInfo(QString net); static BufferInfo bufferInfo(QString net, QString buf); - static BufferTreeModel *bufferModel(); + static NetworkModel *networkModel(); static SignalProxy *signalProxy(); static AbstractUiMsg *layoutMsg(const Message &); static bool isConnected(); + 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(); @@ -78,7 +81,6 @@ signals: void bufferSelected(Buffer *); void bufferUpdated(Buffer *); void bufferActivity(Buffer::ActivityLevel, Buffer *); - void bufferDestroyed(Buffer *); void backlogReceived(Buffer *, QList); void requestBacklog(BufferInfo, QVariant, QVariant); void requestNetworkStates(); @@ -88,6 +90,8 @@ signals: void coreConnectionMsg(const QString &msg); void coreConnectionProgress(uint part, uint total); + void showConfigWizard(const QVariantMap &coredata); + void connected(); void disconnected(); @@ -101,6 +105,8 @@ public slots: 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); @@ -109,7 +115,6 @@ private slots: void coreHasData(); void coreSocketConnected(); void coreSocketDisconnected(); - void coreSocketStateChanged(QAbstractSocket::SocketState); void userInput(BufferInfo, QString); @@ -122,31 +127,32 @@ private slots: void recvBacklogData(BufferInfo, QVariantList, bool); void updateBufferInfo(BufferInfo); - void removeBuffer(Buffer *); - 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 instanceptr; - + QPointer socket; QPointer _signalProxy; QPointer mainUi; - QPointer _bufferModel; + QPointer _networkModel; ClientMode clientMode; quint32 blockSize; bool connectedToCore; - + QVariantMap coreConnectionInfo; QHash _buffers; QHash _networkInfo;