Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/image.h
Show All 32 Lines | |||||
33 | #include <QPointer> | 33 | #include <QPointer> | ||
34 | #include <QQmlParserStatus> | 34 | #include <QQmlParserStatus> | ||
35 | 35 | | |||
36 | #include <KPackage/Package> | 36 | #include <KPackage/Package> | ||
37 | 37 | | |||
38 | 38 | | |||
39 | class QPropertyAnimation; | 39 | class QPropertyAnimation; | ||
40 | class QFileDialog; | 40 | class QFileDialog; | ||
41 | class QQuickItem; | ||||
41 | 42 | | |||
42 | class KDirWatch; | 43 | class KDirWatch; | ||
43 | class KJob; | 44 | class KJob; | ||
44 | 45 | | |||
45 | namespace KNS3 { | 46 | namespace KNS3 { | ||
46 | class DownloadDialog; | 47 | class DownloadDialog; | ||
47 | } | 48 | } | ||
48 | 49 | | |||
Show All 28 Lines | 66 | public: | |||
77 | 78 | | |||
78 | //this is for QML use | 79 | //this is for QML use | ||
79 | Q_INVOKABLE void addUrl(const QString &url); | 80 | Q_INVOKABLE void addUrl(const QString &url); | ||
80 | Q_INVOKABLE void addUrls(const QStringList &urls); | 81 | Q_INVOKABLE void addUrls(const QStringList &urls); | ||
81 | 82 | | |||
82 | Q_INVOKABLE void addSlidePath(const QString &path); | 83 | Q_INVOKABLE void addSlidePath(const QString &path); | ||
83 | Q_INVOKABLE void removeSlidePath(const QString &path); | 84 | Q_INVOKABLE void removeSlidePath(const QString &path); | ||
84 | 85 | | |||
85 | Q_INVOKABLE void getNewWallpaper(); | 86 | Q_INVOKABLE void getNewWallpaper(QQuickItem *ctx = nullptr); | ||
86 | Q_INVOKABLE void showFileDialog(); | 87 | Q_INVOKABLE void showFileDialog(); | ||
87 | 88 | | |||
88 | Q_INVOKABLE void addUsersWallpaper(const QString &file); | 89 | Q_INVOKABLE void addUsersWallpaper(const QString &file); | ||
89 | Q_INVOKABLE void commitDeletion(); | 90 | Q_INVOKABLE void commitDeletion(); | ||
90 | 91 | | |||
91 | RenderingMode renderingMode() const; | 92 | RenderingMode renderingMode() const; | ||
92 | void setRenderingMode(RenderingMode mode); | 93 | void setRenderingMode(RenderingMode mode); | ||
93 | 94 | | |||
▲ Show 20 Lines • Show All 94 Lines • Show Last 20 Lines |