X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=core%2Fcoreproxy.h;h=4f6185aa816a50fb4ef2df06ecaa0e4b5eb6c0c0;hb=11ee1cf78677b51d8fea2749e8501216a831dfd7;hp=d1fd9c7433c8d9403ea147e596c27a74dcf42040;hpb=1c7d9f13b744cd517c0769f453fd8dc3106cd94c;p=quassel.git diff --git a/core/coreproxy.h b/core/coreproxy.h index d1fd9c74..4f6185aa 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,16 @@ 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 csNickRenamed(QString net, QString oldn, QString newn) { send(CS_NICK_RENAMED, net, oldn, newn); } + 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);