mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-01 03:19:23 +00:00
25 lines
499 B
C++
25 lines
499 B
C++
#ifndef AVATAR_PROVIDER_H_
|
|
#define AVATAR_PROVIDER_H_
|
|
|
|
#include <QQuickImageProvider>
|
|
|
|
// =============================================================================
|
|
|
|
class AvatarProvider : public QQuickImageProvider {
|
|
public:
|
|
AvatarProvider ();
|
|
~AvatarProvider () = default;
|
|
|
|
QImage requestImage (
|
|
const QString &id,
|
|
QSize *size,
|
|
const QSize &requested_size
|
|
) override;
|
|
|
|
static const QString PROVIDER_ID;
|
|
|
|
private:
|
|
QString m_avatars_path;
|
|
};
|
|
|
|
#endif // AVATAR_PROVIDER_H_
|