diff --git a/src/actionshandler.cpp b/src/actionshandler.cpp index 9433e2d29..14e466669 100644 --- a/src/actionshandler.cpp +++ b/src/actionshandler.cpp @@ -3,8 +3,6 @@ #include "actionshandler.h" -#include "controller.h" - #include #include @@ -13,13 +11,10 @@ #include #include -#include "controller.h" #include "models/actionsmodel.h" #include "models/customemojimodel.h" #include "neochatconfig.h" #include "neochatroom.h" -#include "neochatuser.h" -#include "roommanager.h" #include "texthandler.h" using namespace Quotient; diff --git a/src/actionshandler.h b/src/actionshandler.h index 85e30e4d6..dd2502b8b 100644 --- a/src/actionshandler.h +++ b/src/actionshandler.h @@ -12,13 +12,31 @@ class CustomEmojiModel; class NeoChatRoom; -/// \brief Handles user interactions with NeoChat (joining room, creating room, -/// sending message). Account management is handled by Controller. +/** + * @class ActionsHandler + * + * This class handles chat messages ready for posting to a room. + * + * Everything that needs to be done to prepare the message for posting in a room + * including: + * - File handling + * - User mentions + * - Quick edits + * - Chat actions + * - Custom emojis + * + * @note A chat action is a message starting with /, resulting in something other + * than a normal message being sent (e.g. /me, /join). + * + * @sa ActionsModel, NeoChatRoom + */ class ActionsHandler : public QObject { Q_OBJECT - /// \brief The room that messages will be sent to. + /** + * @brief The room that messages will be sent to. + */ Q_PROPERTY(NeoChatRoom *room READ room WRITE setRoom NOTIFY roomChanged) public: