X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fclient.h;h=eee57fd5c11ea8288d70d40be05f50fc0b87f971;hb=73edffb5f0f6ecae4118c36a7ca2c0d479b7f8c6;hp=2bf9c02fce2a3585621ee53bad651e9e8d717b4b;hpb=130ccf5033c21ca3ad0e0357a82953b5727bd0e9;p=quassel.git diff --git a/src/client/client.h b/src/client/client.h index 2bf9c02f..eee57fd5 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -18,28 +18,26 @@ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ -#ifndef _GUI_H_ -#define _GUI_H_ +#ifndef _CLIENT_H_ +#define _CLIENT_H_ #include -#include #include -#include "global.h" +#include "quasselui.h" #include "buffer.h" #include "message.h" -#include "guiproxy.h" -#include "bufferviewwidget.h" +#include "proxy_common.h" -class MainWin; class ClientProxy; -//class BufferTreeModel; +class BufferTreeModel; class Client : public QObject { Q_OBJECT public: static Client *instance(); + static void init(AbstractUi *); static void destroy(); static Buffer *buffer(BufferId); @@ -48,6 +46,8 @@ class Client : public QObject { static BufferTreeModel *bufferModel(); + static AbstractUiMsg *layoutMsg(const Message &); + signals: void sendInput(BufferId, QString message); void showBuffer(Buffer *); @@ -80,7 +80,7 @@ class Client : public QObject { void networkConnected(QString); void networkDisconnected(QString); void recvNetworkState(QString, QVariant); - void recvMessage(Message message); + void recvMessage(const Message &message); void recvStatusMsg(QString network, QString message); void setTopic(QString net, QString buf, QString); void addNick(QString net, QString nick, VarMap props); @@ -88,7 +88,7 @@ class Client : public QObject { void renameNick(QString net, QString oldnick, QString newnick); void updateNick(QString net, QString nick, VarMap props); void setOwnNick(QString net, QString nick); - void recvBacklogData(BufferId, QList, bool); + void recvBacklogData(BufferId, const QList &, bool); void updateBufferId(BufferId); void layoutMsg(); @@ -104,7 +104,7 @@ class Client : public QObject { enum ClientMode { LocalCore, RemoteCore }; static ClientMode clientMode; - MainWin *mainWin; + AbstractUi *mainUi; ClientProxy *clientProxy; BufferTreeModel *_bufferModel; @@ -119,7 +119,7 @@ class Client : public QObject { static QList coreBuffers; QTimer *layoutTimer; - QList layoutQueue; + QList layoutQueue; }; #endif