qmlFrontend/themeiconprovider.h
author unc0rr
Thu, 16 Apr 2015 23:31:13 +0300
branchqmlfrontend
changeset 10896 5a74923120d5
parent 10436 084e046f6bd5
permissions -rw-r--r--
Start network support: only setting up a connection for now

#ifndef THEMEICONPROVIDER_H
#define THEMEICONPROVIDER_H

#include <QQuickImageProvider>
#include <QImage>

#include "flib.h"

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

    void setFileContentsFunction(getThemeIcon_t *f);

    QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
private:
    getThemeIcon_t *getThemeIcon;
};

#endif // THEMEICONPROVIDER_H