IRC消息类 将原始数据传入其中,由该类对接收到的消息进行解析、分类、格式化 更多...
#include <Message.h>
Public 类型 | |
enum | Type { None , Ping , Error , Notice , Join , Quit , Nick , Kick , Num , Common } |
消息类型 更多... | |
enum | Who { Server , Channel , User , Me } |
消息发送者 更多... | |
Public 成员函数 | |
Message (QObject *parent=nullptr) | |
有参构造函数 更多... | |
~Message () override | |
默认析构函数 更多... | |
Type | msgType () |
Message * | msgType (Type type) |
QString | typeStr () |
Message * | typeStr (QString type) |
QString | server () |
Message * | server (QString server) |
Who | from () |
Message * | from (Who from) |
QString | fromName () |
Message * | fromName (QString fromName) |
Who | to () |
Message * | to (Who to) |
QString | toName () |
Message * | toName (QString toName) |
QString | rawMsg () |
Message * | rawMsg (QString rawMsg) |
QString | mainMsg () |
Message * | mainMsg (QString mainMsg) |
QString | myNick () |
Message * | myNick (QString myNick) |
int | time () |
Message * | parse () |
IRC消息类 将原始数据传入其中,由该类对接收到的消息进行解析、分类、格式化
enum Message::Type |
enum Message::Who |
|
explicit |
有参构造函数
msg | 接收到的原始数据或即将发送的原始数据 |
sender | 消息发送者,默认为User, 如不确定消息发送者,默认即可 注意:用户发送的消息必须传入Owner或手动设置为Owner |
parent | 默认为nullptr |
|
overridedefault |
默认析构函数
Message::Who Message::from | ( | ) |
QString Message::fromName | ( | ) |
Message * Message::fromName | ( | QString | fromName | ) |
QString Message::mainMsg | ( | ) |
Message * Message::mainMsg | ( | QString | mainMsg | ) |
Message::Type Message::msgType | ( | ) |
QString Message::myNick | ( | ) |
Message * Message::myNick | ( | QString | myNick | ) |
Message * Message::parse | ( | ) |
QString Message::rawMsg | ( | ) |
Message * Message::rawMsg | ( | QString | rawMsg | ) |
QString Message::server | ( | ) |
Message * Message::server | ( | QString | server | ) |
int Message::time | ( | ) |
Message::Who Message::to | ( | ) |
QString Message::toName | ( | ) |
Message * Message::toName | ( | QString | toName | ) |
QString Message::typeStr | ( | ) |
Message * Message::typeStr | ( | QString | type | ) |