aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ImageBoard.hpp27
1 files changed, 17 insertions, 10 deletions
diff --git a/plugins/ImageBoard.hpp b/plugins/ImageBoard.hpp
index 157ac1c..b324ea9 100644
--- a/plugins/ImageBoard.hpp
+++ b/plugins/ImageBoard.hpp
@@ -3,16 +3,23 @@
#include "Page.hpp"
namespace QuickMedia {
- enum class PostResult {
- OK,
- TRY_AGAIN,
- INVALID_CAPTCHA,
- BANNED,
- //FILE_TOO_LARGE,
- NO_SUCH_FILE,
- FILE_TYPE_NOT_ALLOWED,
- UPLOAD_FAILED,
- ERR
+ struct PostResult {
+ enum class Type {
+ OK,
+ TRY_AGAIN,
+ INVALID_CAPTCHA,
+ BANNED,
+ //FILE_TOO_LARGE,
+ NO_SUCH_FILE,
+ FILE_TYPE_NOT_ALLOWED,
+ UPLOAD_FAILED,
+ ERR
+ };
+
+ PostResult(Type type) : type(type) {}
+
+ Type type;
+ std::string err_msg;
};
// All fields are optional