mirror of https://github.com/Nheko-Reborn/nheko
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.pull/27/head
parent
22a08ba6a4
commit
6c31f5fe7a
@ -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
|
Loading…
Reference in new issue