mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
6c31f5fe7a
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.
17 lines
389 B
C++
17 lines
389 B
C++
#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
|