Changeset View
Changeset View
Standalone View
Standalone View
src/quickaddons/configmodule.h
Show First 20 Lines • Show All 490 Lines • ▼ Show 20 Line(s) | 442 | public Q_SLOTS: | |||
---|---|---|---|---|---|
491 | void push(QQuickItem *item); | 491 | void push(QQuickItem *item); | ||
492 | 492 | | |||
493 | /** | 493 | /** | ||
494 | * pop the last page of the KCM hyerarchy | 494 | * pop the last page of the KCM hyerarchy | ||
495 | * @since 5.50 | 495 | * @since 5.50 | ||
496 | */ | 496 | */ | ||
497 | void pop(); | 497 | void pop(); | ||
498 | 498 | | |||
499 | /** | ||||
500 | * Ask the shell to show a passive notification | ||||
501 | * @param message The message text to dispalay | ||||
502 | * @param timeout (optional) the timeout, either in milliseconds or the strings "short" and "long" | ||||
503 | * @param actionText (optional) The notification can have a button with this text | ||||
504 | * @param callBack (optional) If actionText is set and callBack is a JavaScript function, it will be called when the use clicks the button. | ||||
505 | * @since 5.68 | ||||
506 | */ | ||||
507 | void showPassiveNotification(const QString &message, const QVariant &timeout = QVariant(), const QString &actionText = QString(), const QJSValue &callBack = QJSValue()); | ||||
broulik: `const QVariant &` | |||||
499 | Q_SIGNALS: | 508 | Q_SIGNALS: | ||
500 | 509 | | |||
501 | /** | 510 | /** | ||
502 | * The auth action name has changed: this signal will relay it to the actual KCM | 511 | * The auth action name has changed: this signal will relay it to the actual KCM | ||
503 | */ | 512 | */ | ||
504 | void authActionNameChanged(); | 513 | void authActionNameChanged(); | ||
505 | 514 | | |||
506 | //QML NOTIFY signaling | 515 | //QML NOTIFY signaling | ||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | |||||
579 | void currentIndexChanged(int index); | 588 | void currentIndexChanged(int index); | ||
580 | 589 | | |||
581 | /** | 590 | /** | ||
582 | * Emitted when the number of pages changed | 591 | * Emitted when the number of pages changed | ||
583 | * @since 5.53 | 592 | * @since 5.53 | ||
584 | */ | 593 | */ | ||
585 | void depthChanged(int index); | 594 | void depthChanged(int index); | ||
586 | 595 | | |||
596 | /** | ||||
597 | * Emitted when the kcm wants the shell to display a passive notification | ||||
598 | * @since 5.68 | ||||
599 | */ | ||||
600 | void passiveNotificationRequested(const QString &message, const QVariant &timeout, const QString &actionText, const QJSValue &callBack); | ||||
601 | | ||||
587 | private: | 602 | private: | ||
588 | ConfigModulePrivate *const d; | 603 | ConfigModulePrivate *const d; | ||
589 | }; | 604 | }; | ||
590 | 605 | | |||
591 | } | 606 | } | ||
592 | 607 | | |||
593 | Q_DECLARE_OPERATORS_FOR_FLAGS(KQuickAddons::ConfigModule::Buttons) | 608 | Q_DECLARE_OPERATORS_FOR_FLAGS(KQuickAddons::ConfigModule::Buttons) | ||
594 | QML_DECLARE_TYPEINFO(KQuickAddons::ConfigModule, QML_HAS_ATTACHED_PROPERTIES) | 609 | QML_DECLARE_TYPEINFO(KQuickAddons::ConfigModule, QML_HAS_ATTACHED_PROPERTIES) | ||
595 | 610 | | |||
596 | #endif //ConfigModule_H | 611 | #endif //ConfigModule_H | ||
597 | 612 | |
const QVariant &