Changeset View
Changeset View
Standalone View
Standalone View
src/scriptengines/qml/plasmoid/appletinterface.h
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Line(s) | 253 | //QML API------------------------------------------------------------------- | |||
---|---|---|---|---|---|
319 | * @returns The list of files that have been downloaded | 319 | * @returns The list of files that have been downloaded | ||
320 | */ | 320 | */ | ||
321 | Q_INVOKABLE QStringList downloadedFiles() const; | 321 | Q_INVOKABLE QStringList downloadedFiles() const; | ||
322 | 322 | | |||
323 | QVariantList availableScreenRegion() const; | 323 | QVariantList availableScreenRegion() const; | ||
324 | 324 | | |||
325 | QRect availableScreenRect() const; | 325 | QRect availableScreenRect() const; | ||
326 | 326 | | |||
327 | /** | ||||
328 | * By default a QtQuick applet is marked as ready when the source is loaded | ||||
329 | * and the root component is initialised. | ||||
330 | * | ||||
331 | * Calling this method during initial component creation allows a user | ||||
332 | * to defer this. | ||||
333 | * | ||||
334 | * @returns an opaque cookie that inhibits signalling that the UI is ready. | ||||
335 | * When all inhibitors are released the UiReady constraint is set. | ||||
336 | */ | ||||
337 | Q_INVOKABLE QVariant createUiReadyInhibitor(); | ||||
338 | | ||||
327 | static AppletInterface *qmlAttachedProperties(QObject *object) | 339 | static AppletInterface *qmlAttachedProperties(QObject *object) | ||
328 | { | 340 | { | ||
329 | return qobject_cast<AppletInterface *>(AppletQuickItem::qmlAttachedProperties(object)); | 341 | return qobject_cast<AppletInterface *>(AppletQuickItem::qmlAttachedProperties(object)); | ||
330 | } | 342 | } | ||
331 | 343 | | |||
332 | //PROPERTY ACCESSORS------------------------------------------------------------------- | 344 | //PROPERTY ACCESSORS------------------------------------------------------------------- | ||
333 | QString pluginName() const; | 345 | QString pluginName() const; | ||
334 | 346 | | |||
▲ Show 20 Lines • Show All 134 Lines • ▼ Show 20 Line(s) | 480 | //UI-specific members ------------------ | |||
469 | 481 | | |||
470 | QString m_toolTipMainText; | 482 | QString m_toolTipMainText; | ||
471 | QString m_toolTipSubText; | 483 | QString m_toolTipSubText; | ||
472 | int m_toolTipTextFormat; | 484 | int m_toolTipTextFormat; | ||
473 | QPointer<QQuickItem> m_toolTipItem; | 485 | QPointer<QQuickItem> m_toolTipItem; | ||
474 | QVariantList m_args; | 486 | QVariantList m_args; | ||
475 | Plasma::Types::BackgroundHints m_backgroundHints; | 487 | Plasma::Types::BackgroundHints m_backgroundHints; | ||
476 | bool m_hideOnDeactivate : 1; | 488 | bool m_hideOnDeactivate : 1; | ||
489 | int m_loadingRef = 0; | ||||
477 | //this is used to build an emacs style shortcut | 490 | //this is used to build an emacs style shortcut | ||
478 | int m_oldKeyboardShortcut; | 491 | int m_oldKeyboardShortcut; | ||
479 | QObject *m_dummyNativeInterface; | 492 | QObject *m_dummyNativeInterface; | ||
480 | 493 | | |||
481 | friend class ContainmentInterface; | 494 | friend class ContainmentInterface; | ||
482 | //This is used by ContainmentInterface | 495 | //This is used by ContainmentInterface | ||
483 | QPointF m_positionBeforeRemoval; | 496 | QPointF m_positionBeforeRemoval; | ||
484 | }; | 497 | }; | ||
485 | 498 | | |||
486 | QML_DECLARE_TYPEINFO(AppletInterface, QML_HAS_ATTACHED_PROPERTIES) | 499 | QML_DECLARE_TYPEINFO(AppletInterface, QML_HAS_ATTACHED_PROPERTIES) | ||
487 | 500 | | |||
488 | #endif | 501 | #endif |