From b08310d8693c480b98cd2a76535f18cc041613af Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sun, 5 Jul 2015 12:16:33 +0200 Subject: [PATCH] Added some doc. --- src/libsnore/utils.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/libsnore/utils.h b/src/libsnore/utils.h index 3d5799b..c36ce6d 100644 --- a/src/libsnore/utils.h +++ b/src/libsnore/utils.h @@ -31,14 +31,55 @@ class SNORE_EXPORT Utils : public QObject { Q_OBJECT public: + /** + * The MARKUP_FLAG enum. + * If a falg is not present the markup key will be removed. + * If any flag is present, special characters mus be html escaped. + */ enum MARKUP_FLAG { + /** + * No markup is supported. + * All markup will be removed. + */ NO_MARKUP = 0, + + /** + * Urls are supprotet. + * <a href="www.foo.bar">Foo Bar</a> + */ HREF = 1 << 0, + + /** + * Line breeaks <br> are supprotet. + * If the flag is not present <br> will be replaced by \\n + */ BREAK = 1 << 1, + + /** + * Bold <b> is supportet. + */ BOLD = 1 << 2, + + /** + * Italic <i> is supportet. + */ ITALIC = 1 << 3, + + /** + * Underline <u> is supportet. + */ UNDERLINE = 1 << 4, + + /** + * Fonst are supportet. + * <font color="blue"> word </font> + */ FONT = 1 << 5, + + /** + * All markup is supported. + * No markup will be removed. + */ ALL_MARKUP = ~0 };