X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoresession.h;h=ade372a37dd5cf471f8023a4771e9ea009589fd8;hb=bc715c756677bee7cdb7109cc656e3e5f526c988;hp=98d60d4e55d5725085766b4edf563f4531dfadfc;hpb=5b686746c880e5cda6d5de3e08180ea4332ff222;p=quassel.git diff --git a/src/core/coresession.h b/src/core/coresession.h index 98d60d4e..ade372a3 100644 --- a/src/core/coresession.h +++ b/src/core/coresession.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 by the Quassel Project * + * Copyright (C) 2005-2014 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -27,6 +27,7 @@ #include "corecoreinfo.h" #include "corealiasmanager.h" #include "coreignorelistmanager.h" +#include "protocol.h" #include "message.h" #include "storage.h" @@ -38,12 +39,16 @@ class CoreIrcListHelper; class CoreNetwork; class CoreNetworkConfig; class CoreSessionEventProcessor; +class CoreTransferManager; class CtcpParser; class EventManager; class EventStringifier; +class InternalPeer; class IrcParser; +class Peer; class MessageEvent; class NetworkConnection; +class RemotePeer; class SignalProxy; struct NetworkInfo; @@ -65,7 +70,7 @@ public: inline CoreNetworkConfig *networkConfig() const { return _networkConfig; } NetworkConnection *networkConnection(NetworkId) const; - QVariant sessionState(); + Protocol::SessionState sessionState() const; inline SignalProxy *signalProxy() const { return _signalProxy; } @@ -81,14 +86,16 @@ public: inline CoreIrcListHelper *ircListHelper() const { return _ircListHelper; } inline CoreIgnoreListManager *ignoreListManager() { return &_ignoreListManager; } + inline CoreTransferManager *transferManager() const { return _transferManager; } + // void attachNetworkConnection(NetworkConnection *conn); //! Return necessary data for restoring the session after restarting the core void restoreSessionState(); public slots: - void addClient(QIODevice *device); - void addClient(SignalProxy *proxy); + void addClient(RemotePeer *peer); + void addClient(InternalPeer *peer); void msgFromClient(BufferInfo, QString message); @@ -127,7 +134,7 @@ public slots: signals: void initialized(); - void sessionState(const QVariant &); + void sessionState(const Protocol::SessionState &sessionState); //void msgFromGui(uint netid, QString buf, QString message); void displayMsg(Message message); @@ -155,7 +162,7 @@ protected: virtual void customEvent(QEvent *event); private slots: - void removeClient(QIODevice *dev); + void removeClient(Peer *peer); void recvStatusMsgFromServer(QString msg); void recvMessageFromServer(NetworkId networkId, Message::Type, BufferInfo::Type, const QString &target, const QString &text, const QString &sender = "", Message::Flags flags = Message::None); @@ -195,6 +202,7 @@ private: CoreIrcListHelper *_ircListHelper; CoreNetworkConfig *_networkConfig; CoreCoreInfo _coreInfo; + CoreTransferManager *_transferManager; EventManager *_eventManager; EventStringifier *_eventStringifier; // should eventually move into client