Changeset View
Changeset View
Standalone View
Standalone View
src/scriptengines/qml/plasmoid/containmentinterface.h
Show All 22 Lines | |||||
23 | 23 | | |||
24 | #include <QMenu> | 24 | #include <QMenu> | ||
25 | 25 | | |||
26 | #include <Plasma/Containment> | 26 | #include <Plasma/Containment> | ||
27 | 27 | | |||
28 | #include "appletinterface.h" | 28 | #include "appletinterface.h" | ||
29 | 29 | | |||
30 | class WallpaperInterface; | 30 | class WallpaperInterface; | ||
31 | class DropMenu; | ||||
31 | 32 | | |||
32 | namespace KIO | 33 | namespace KIO | ||
33 | { | 34 | { | ||
34 | class Job; | 35 | class Job; | ||
35 | class DropJob; | 36 | class DropJob; | ||
36 | } | 37 | } | ||
37 | 38 | | |||
38 | namespace KActivities | 39 | namespace KActivities | ||
▲ Show 20 Lines • Show All 174 Lines • ▼ Show 20 Line(s) | 212 | private Q_SLOTS: | |||
213 | Plasma::Applet *createApplet(const QString &plugin, const QVariantList &args, const QRectF &geom); | 214 | Plasma::Applet *createApplet(const QString &plugin, const QVariantList &args, const QRectF &geom); | ||
214 | 215 | | |||
215 | private: | 216 | private: | ||
216 | void clearDataForMimeJob(KIO::Job *job); | 217 | void clearDataForMimeJob(KIO::Job *job); | ||
217 | void setAppletArgs(Plasma::Applet *applet, const QString &mimetype, const QString &data); | 218 | void setAppletArgs(Plasma::Applet *applet, const QString &mimetype, const QString &data); | ||
218 | 219 | | |||
219 | WallpaperInterface *m_wallpaperInterface; | 220 | WallpaperInterface *m_wallpaperInterface; | ||
220 | QList<QObject *> m_appletInterfaces; | 221 | QList<QObject *> m_appletInterfaces; | ||
221 | QHash<KJob *, QPoint> m_dropPoints; | | |||
222 | QHash<KJob *, QMenu *> m_dropMenus; | | |||
223 | QHash<KJob *, QJSValue *> m_dropCallbacks; | | |||
224 | QHash<KJob *, KIO::DropJob *> m_dropJobs; | | |||
225 | KActivities::Info *m_activityInfo; | 222 | KActivities::Info *m_activityInfo; | ||
226 | QPointer<Plasma::Containment> m_containment; | 223 | QPointer<Plasma::Containment> m_containment; | ||
227 | QPointer<QMenu> m_contextMenu; | 224 | QPointer<QMenu> m_contextMenu; | ||
225 | QPointer<DropMenu> m_dropMenu; | ||||
228 | int m_wheelDelta; | 226 | int m_wheelDelta; | ||
229 | friend class AppletInterface; | 227 | friend class AppletInterface; | ||
230 | }; | 228 | }; | ||
231 | 229 | | |||
232 | QML_DECLARE_TYPEINFO(ContainmentInterface, QML_HAS_ATTACHED_PROPERTIES) | 230 | QML_DECLARE_TYPEINFO(ContainmentInterface, QML_HAS_ATTACHED_PROPERTIES) | ||
233 | 231 | | |||
234 | #endif | 232 | #endif |