X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=core%2Fcoreproxy.h;h=8cdea8310302333c8757316d8b861991a7f65957;hp=d1fd9c7433c8d9403ea147e596c27a74dcf42040;hb=057883f768f86257c9dbefeb5ef12403b207b773;hpb=1c7d9f13b744cd517c0769f453fd8dc3106cd94c diff --git a/core/coreproxy.h b/core/coreproxy.h index d1fd9c74..8cdea831 100644 --- a/core/coreproxy.h +++ b/core/coreproxy.h @@ -23,6 +23,7 @@ #include "proxy_common.h" #include "message.h" +#include "global.h" #include #include @@ -40,10 +41,15 @@ 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 buf, Message msg) { send(CS_SEND_MESSAGE, net, buf, QVariant::fromValue(msg)); } - inline void csSendStatusMsg(QString net, QString msg) { send(CS_SEND_STATUS_MSG, net, msg); } - inline void csSetTopic(QString net, QString buf, QString topic) { send(CS_SET_TOPIC, net, buf, topic); } + 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);