qmlFrontend/previewimageprovider.h
author unc0rr
Fri, 20 Nov 2015 23:56:13 +0300 (2015-11-20)
branchqmlfrontend
changeset 11418 091149424aa4
parent 10424 4be6cd55f1cf
permissions -rw-r--r--
Handle ROOMS and ROOM ADD protocol commands
#ifndef PREVIEWIMAGEPROVIDER_H
#define PREVIEWIMAGEPROVIDER_H

#include <QQuickImageProvider>
#include <QPixmap>
#include <QSize>

class PreviewImageProvider : public QQuickImageProvider
{
public:
    PreviewImageProvider();

    QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);

    void setPixmap(const QByteArray & px);

private:
    QPixmap m_px;
};

#endif // PREVIEWIMAGEPROVIDER_H