| 1 | /* |
| 2 | * Copyright 2013 Canonical Ltd. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU Lesser General Public License as published by |
| 6 | * the Free Software Foundation; version 3. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU Lesser General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU Lesser General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #ifndef COM_LOMIRI_CONTENTICONPROVIDER_H_ |
| 18 | #define COM_LOMIRI_CONTENTICONPROVIDER_H_cxx . . $ `import/Lomiri/Content/contenticonprovider.h:18:9`! |
| 19 | |
| 20 | #include <QMap> |
| 21 | #include <QQuickImageProvider> |
| 22 | #include <QString> |
| 23 | #include <QImage> |
| 24 | |
| 25 | class ContentIconProvidercxx . . $ ContentIconProvider# : public QQuickImageProvidercxx . . $ QQuickImageProvider# |
| 26 | { |
| 27 | |
| 28 | public: |
| 29 | ContentIconProvidercxx . . $ ContentIconProvider#ContentIconProvider(49f6e7a06ebc5aa8).(); |
| 30 | |
| 31 | static ContentIconProvidercxx . . $ ContentIconProvider# *instancecxx . . $ ContentIconProvider#instance(b4de0ffcce45666d).(); |
| 32 | |
| 33 | QImagecxx . . $ QImage# requestImagecxx . . $ ContentIconProvider#requestImage(2f1731eab5b8c2b3).(const QStringcxx . . $ QString# &id, QSizecxx . . $ QSize# *size, const QSizecxx . . $ QSize# &requestedSize); |
| 34 | void addImagecxx . . $ ContentIconProvider#addImage(2fc6005f4c39585c).(QStringcxx . . $ QString# appId, QImagecxx . . $ QImage# image); |
| 35 | |
| 36 | private: |
| 37 | QMapcxx . . $ QMap#<QStringcxx . . $ QString#, QImagecxx . . $ QImage#> *appIdImageMapcxx . . $ ContentIconProvider#appIdImageMap.; |
| 38 | }; |
| 39 | |
| 40 | #endif // COM_LOMIRI_CONTENTICONPROVIDER_H_ |