From 6c31f5fe7a417ba904b7c31aa5065363a8f9d94b Mon Sep 17 00:00:00 2001 From: redsky17 Date: Sat, 26 Jan 2019 18:03:49 +0000 Subject: Add initial support for QtIndenticon Add initial loading of qt jdenticon plugin: https://github.com/redsky17/qt-jdenticon Currently, the library's functionality has not been integrated into the rest of nheko. Next step is to add a configuration item in the User Settings and use the plugin to generate avatars for users without their own picture. These avatars should be cached in the Cache object. --- includes/jdenticoninterface.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 includes/jdenticoninterface.h (limited to 'includes') diff --git a/includes/jdenticoninterface.h b/includes/jdenticoninterface.h new file mode 100644 index 00000000..2108a726 --- /dev/null +++ b/includes/jdenticoninterface.h @@ -0,0 +1,17 @@ +#ifndef JDENTICONINTERFACE_H +#define JDENTICONINTERFACE_H + +#include + +class JdenticonInterface +{ +public: + virtual ~JdenticonInterface() {} + virtual QString generate(const QString &message, uint16_t size) = 0; +}; + +#define JdenticonInterface_iid "redsky17.Qt.JdenticonInterface" + +Q_DECLARE_INTERFACE(JdenticonInterface, JdenticonInterface_iid) + +#endif // JDENTICONINTERFACE_H -- cgit 1.4.1