1 Star 0 Fork 1

ivanallen/qtbot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qtassistant.h 3.82 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef QTASSISTANT_H
#define QTASSISTANT_H
#if _MSC_VER >= 1600
# pragma execution_character_set("utf-8")
#endif
#include "cqportal.h"
#include "sqldatas/masterlevels.h"
#include "htmlfeedback/htmlfeedback.h"
// class QtAssistant
class QtAssistantPrivate;
class QtAssistant : public CqPortal
{
Q_OBJECT
Q_DECLARE_PRIVATE(QtAssistant)
public:
explicit QtAssistant(QObject *parent = Q_NULLPTR);
virtual ~QtAssistant();
public:
bool privateMessageEventFilter(const MessageEvent &ev) Q_DECL_FINAL;
bool groupMessageEventFilter(const MessageEvent &ev) Q_DECL_FINAL;
bool discussMessageEventFilter(const MessageEvent &ev) Q_DECL_FINAL;
bool masterChangeEventFilter(const MasterChangeEvent &ev) Q_DECL_FINAL;
bool friendRequestEventFilter(const FriendRequestEvent &ev) Q_DECL_FINAL;
bool groupRequestEventFilter(const GroupRequestEvent &ev) Q_DECL_FINAL;
bool friendAddEventFilter(const FriendAddEvent &ev) Q_DECL_FINAL;
bool memberJoinEventFilter(const MemberJoinEvent &ev) Q_DECL_FINAL;
bool memberLeaveEventFilter(const MemberLeaveEvent &ev) Q_DECL_FINAL;
private:
void timerEvent(QTimerEvent *) Q_DECL_FINAL;
private:
void groupHelp(const MessageEvent &ev, const QStringList &args);
void groupLevel(const MessageEvent &ev, const QStringList &args);
void groupRename(const MessageEvent &ev, const QStringList &args);
void groupFormat(const MessageEvent &ev, const QStringList &args);
void groupMember(const MessageEvent &ev, const QStringList &args);
void groupBan(const MessageEvent &ev, const QStringList &args);
void groupKill(const MessageEvent &ev, const QStringList &args);
void groupPower(const MessageEvent &ev, const QStringList &args);
void groupUnban(const MessageEvent &ev, const QStringList &args);
void groupUnkill(const MessageEvent &ev, const QStringList &args);
void groupUnpower(const MessageEvent &ev, const QStringList &args);
void groupWelcome(const MessageEvent &ev, const QStringList &args);
void groupBlacklist(const MessageEvent &ev, const QStringList &args);
private:
void groupHelpHelp(qint64 gid);
void groupLevelHelp(qint64 gid);
void groupRenameHelp(qint64 gid);
void groupFormatHelp(qint64 gid);
void groupMemberHelp(qint64 gid);
void groupBanHelp(qint64 gid);
void groupKillHelp(qint64 gid);
void groupPowerHelp(qint64 gid);
void groupUnbanHelp(qint64 gid);
void groupUnkillHelp(qint64 gid);
void groupUnpowerHelp(qint64 gid);
void groupWelcomeHelp(qint64 gid);
void groupBlacklistHelp(qint64 gid);
private:
void permissionDenied(qint64 gid, qint64 uid, MasterLevel level, const QString &reason = QString());
private:
void showPrimary(qint64 gid, const QString &title, const QString &content);
void showDanger(qint64 gid, const QString &title, const QString &content);
void showWarning(qint64 gid, const QString &title, const QString &content);
void showPrompt(qint64 gid, const QString &title, const QString &content);
void showSuccess(qint64 gid, const QString &title, const QString &content);
void feedback(qint64 gid, const QString &title, const QString &content, HtmlFeedback::Style style);
private:
void showPrimaryList(qint64 gid, const QString &title, const LevelInfoList &members, bool level);
void showDangerList(qint64 gid, const QString &title, const LevelInfoList &members, bool level);
void showWarningList(qint64 gid, const QString &title, const LevelInfoList &members, bool level);
void showPromptList(qint64 gid, const QString &title, const LevelInfoList &members, bool level);
void showSuccessList(qint64 gid, const QString &title, const LevelInfoList &members, bool level);
void feedbackList(qint64 gid, const QString &title, const LevelInfoList &members, bool level, HtmlFeedback::Style style);
};
#endif // QTASSISTANT_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ivan_allen/qtbot.git
git@gitee.com:ivan_allen/qtbot.git
ivan_allen
qtbot
qtbot
master

搜索帮助