summaryrefslogtreecommitdiff
path: root/app/pebbleappiconprovider.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/pebbleappiconprovider.h')
-rw-r--r--app/pebbleappiconprovider.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/app/pebbleappiconprovider.h b/app/pebbleappiconprovider.h
new file mode 100644
index 0000000..c76641a
--- /dev/null
+++ b/app/pebbleappiconprovider.h
@@ -0,0 +1,18 @@
+#ifndef PEBBLEAPPICONPROVIDER_H
+#define PEBBLEAPPICONPROVIDER_H
+
+#include <QQuickImageProvider>
+#include "pebbledinterface.h"
+
+class PebbleAppIconProvider : public QQuickImageProvider
+{
+public:
+ explicit PebbleAppIconProvider(PebbledInterface *interface);
+
+ QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
+
+private:
+ PebbledInterface *pebbled;
+};
+
+#endif // PEBBLEAPPICONPROVIDER_H