Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kurifilter.h
Show First 20 Lines • Show All 638 Lines • ▼ Show 20 Line(s) | |||||
639 | * | 639 | * | ||
640 | * @short Abstract class for URI filter plugins. | 640 | * @short Abstract class for URI filter plugins. | ||
641 | */ | 641 | */ | ||
642 | class KIOWIDGETS_EXPORT KUriFilterPlugin : public QObject | 642 | class KIOWIDGETS_EXPORT KUriFilterPlugin : public QObject | ||
643 | { | 643 | { | ||
644 | Q_OBJECT | 644 | Q_OBJECT | ||
645 | 645 | | |||
646 | public: | 646 | public: | ||
647 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(4, 6) | ||||
647 | /** | 648 | /** | ||
648 | * List for holding the following search provider information: | 649 | * List for holding the following search provider information: | ||
649 | * ([search provider name], [search query, search query icon name]) | 650 | * ([search provider name], [search query, search query icon name]) | ||
650 | * | 651 | * | ||
651 | * @since 4.5 | 652 | * @since 4.5 | ||
652 | * @deprecated Use @ref KUriFilterSearchProvider instead. See @ref setSearchProviders; | 653 | * @deprecated Since 4.6, use @ref KUriFilterSearchProvider instead. See @ref setSearchProviders; | ||
653 | */ | 654 | */ | ||
654 | #ifndef KIOWIDGETS_NO_DEPRECATED | 655 | KIOWIDGETS_DEPRECATED_VERSION(4, 6, "Use KUriFilterSearchProvider") | ||
655 | KIOWIDGETS_DEPRECATED typedef QHash<QString, QPair<QString, QString> > ProviderInfoList; | 656 | typedef QHash<QString, QPair<QString, QString> > ProviderInfoList; | ||
656 | #endif | 657 | #endif | ||
657 | 658 | | |||
658 | /** | 659 | /** | ||
659 | * Constructs a filter plugin with a given name | 660 | * Constructs a filter plugin with a given name | ||
660 | * | 661 | * | ||
661 | * @param parent the parent object, or @c nullptr for no parent | 662 | * @param parent the parent object, or @c nullptr for no parent | ||
662 | * @param name the name of the plugin, mandatory | 663 | * @param name the name of the plugin, mandatory | ||
663 | */ | 664 | */ | ||
▲ Show 20 Lines • Show All 280 Lines • ▼ Show 20 Line(s) | 865 | public: | |||
944 | * | 945 | * | ||
945 | * @param uri the URI to filter. | 946 | * @param uri the URI to filter. | ||
946 | * @param filters specify the list of filters to be used. | 947 | * @param filters specify the list of filters to be used. | ||
947 | * | 948 | * | ||
948 | * @return the filtered URI or null if it cannot be filtered | 949 | * @return the filtered URI or null if it cannot be filtered | ||
949 | */ | 950 | */ | ||
950 | QString filteredUri(const QString &uri, const QStringList &filters = QStringList()); | 951 | QString filteredUri(const QString &uri, const QStringList &filters = QStringList()); | ||
951 | 952 | | |||
953 | #if KIOWIDGETS_ENABLE_DEPRECATED_SINCE(4, 6) | ||||
952 | /** | 954 | /** | ||
953 | * See @ref filterSearchUri(KUriFilterData&, SearchFilterTypes) | 955 | * See @ref filterSearchUri(KUriFilterData&, SearchFilterTypes) | ||
954 | * | 956 | * | ||
955 | * @since 4.5 | 957 | * @since 4.5 | ||
956 | * @deprecated Use filterSearchUri(KUriFilterData&, SearchFilterTypes) instead. | 958 | * @deprecated Since 4.6, use filterSearchUri(KUriFilterData&, SearchFilterTypes) instead. | ||
957 | */ | 959 | */ | ||
958 | #ifndef KIOWIDGETS_NO_DEPRECATED | 960 | KIOWIDGETS_DEPRECATED_VERSION(4, 6, "Use KUriFilter::filterSearchUri(KUriFilterData &, SearchFilterTypes)") | ||
959 | KIOWIDGETS_DEPRECATED bool filterSearchUri(KUriFilterData &data); | 961 | bool filterSearchUri(KUriFilterData &data); | ||
960 | #endif | 962 | #endif | ||
961 | 963 | | |||
962 | /** | 964 | /** | ||
963 | * Filter @p data using the criteria specified by @p types. | 965 | * Filter @p data using the criteria specified by @p types. | ||
964 | * | 966 | * | ||
965 | * The search filter type can be individual value of @ref SearchFilterTypes | 967 | * The search filter type can be individual value of @ref SearchFilterTypes | ||
966 | * or a combination of those types using the bitwise OR operator. | 968 | * or a combination of those types using the bitwise OR operator. | ||
967 | * | 969 | * | ||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |