diff options
author | redsky17 <joedonofry@gmail.com> | 2019-01-26 18:03:49 +0000 |
---|---|---|
committer | redsky17 <joedonofry@gmail.com> | 2019-01-26 18:03:49 +0000 |
commit | 6c31f5fe7a417ba904b7c31aa5065363a8f9d94b (patch) | |
tree | 3f2e9cb311f3f4cc951a616207fce65e99939518 /includes | |
parent | Fix lint issue (diff) | |
download | nheko-6c31f5fe7a417ba904b7c31aa5065363a8f9d94b.tar.xz |
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.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/jdenticoninterface.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 <QString> + +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 |