X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=core%2Fcoreproxy.h;h=8cdea8310302333c8757316d8b861991a7f65957;hp=3272a347b657690feb3fe52fadc0970ef809ed20;hb=057883f768f86257c9dbefeb5ef12403b207b773;hpb=82403b8a8777d44cbc35619e3bbd4feabfad5dc4 diff --git a/core/coreproxy.h b/core/coreproxy.h index 3272a347..8cdea831 100644 --- a/core/coreproxy.h +++ b/core/coreproxy.h @@ -22,6 +22,8 @@ #define _COREPROXY_H_ #include "proxy_common.h" +#include "message.h" +#include "global.h" #include #include @@ -39,12 +41,19 @@ class CoreProxy : public QObject { public slots: inline void csUpdateGlobalData(QString key, QVariant data) { send(CS_UPDATE_GLOBAL_DATA, key, data); } - inline void csSendMessage(QString net, QString chan, QString msg) { send(CS_SEND_MESSAGE, net, chan, msg); } - inline void csSendStatusMsg(QString net, QString msg) { send(CS_SEND_STATUS_MSG, net, msg); } + inline void csDisplayMsg(QString net, QString buf, Message msg) { send(CS_DISPLAY_MSG, net, buf, QVariant::fromValue(msg)); } + inline void csDisplayStatusMsg(QString net, QString msg) { send(CS_DISPLAY_STATUS_MSG, net, msg); } + inline void csModeSet(QString net, QString target, QString mode) { send(CS_MODE_SET, net, target, mode); } + inline void csTopicSet(QString net, QString buf, QString topic) { send(CS_TOPIC_SET, net, buf, topic); } + inline void csSetNicks(QString net, QString buf, QStringList nicks) { send(CS_SET_NICKS, net, buf, nicks); } + inline void csNickAdded(QString net, QString nick, VarMap props) { send(CS_NICK_ADDED, net, nick, props); } + inline void csNickRemoved(QString net, QString nick) { send(CS_NICK_REMOVED, net, nick); } + inline void csNickUpdated(QString net, QString nick, VarMap props) { send(CS_NICK_UPDATED, net, nick, props); } + inline void csOwnNickSet(QString net, QString nick) { send(CS_OWN_NICK_SET, net, nick); } signals: void gsPutGlobalData(QString, QVariant); - void gsUserInput(QString); + void gsUserInput(QString, QString, QString); void gsRequestConnect(QStringList networks); private: