Obsolete Members for KNSCore::EngineBase

The following members of class EngineBase are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(since 5.74, deprecated in 6.9) QSharedPointer<KNSCore::Cache> cache() const
(deprecated in 6.9) QList<KNSCore::Provider::CategoryMetadata> categoriesMetadata()
(since 5.63, deprecated in 6.9) QSharedPointer<KNSCore::Provider> defaultProvider() const
(since 5.63, deprecated in 6.9) QSharedPointer<KNSCore::Provider> provider(const QString &providerId) const
(deprecated in 6.9) QList<KNSCore::Provider::SearchPreset> searchPresets()

Signals

(since 5.85, deprecated in 6.9) void providersChanged()
(deprecated in 6.9) void signalCategoriesMetadataLoded(const QList<KNSCore::Provider::CategoryMetadata> &categories)
(since 5.83, deprecated in 6.9) void signalSearchPresetsLoaded(const QList<KNSCore::Provider::SearchPreset> &presets)

Protected Functions

(deprecated in 6.9) virtual void addProvider(QSharedPointer<KNSCore::Provider> provider)
(deprecated in 6.9) QList<QSharedPointer<KNSCore::Provider>> providers() const

Member Function Documentation

[virtual protected, deprecated in 6.9] void EngineBase::addProvider(QSharedPointer<KNSCore::Provider> provider)

This function is deprecated since 6.9. We strongly advise against using it in new code.

Add a provider and connect it to the right slots Use providerAdded signal

[since 5.74, deprecated in 6.9] QSharedPointer<KNSCore::Cache> EngineBase::cache() const

This function is deprecated since 6.9. We strongly advise against using it in new code.

Get the entries cache for this engine (note that it may be null if the engine is not yet initialized).

Returns the cache for this engine (or null if the engine is not initialized)

Do not use the cache directly

This function was introduced in 5.74.

[deprecated in 6.9] QList<KNSCore::Provider::CategoryMetadata> EngineBase::categoriesMetadata()

This function is deprecated since 6.9. We strongly advise against using it in new code.

Use categoriesMetadata2

[since 5.63, deprecated in 6.9] QSharedPointer<KNSCore::Provider> EngineBase::defaultProvider() const

This function is deprecated since 6.9. We strongly advise against using it in new code.

Return the first provider in the providers list (usually the default provider) Do not write provider-specific code

This function was introduced in 5.63.

[since 5.63, deprecated in 6.9] QSharedPointer<KNSCore::Provider> EngineBase::provider(const QString &providerId) const

This function is deprecated since 6.9. We strongly advise against using it in new code.

The Provider instance with the passed ID

providerId The ID of the Provider to fetch

Returns the Provider with the passed ID, or null if non such Provider exists Do not write provider-specific code

This function was introduced in 5.63.

[protected, deprecated in 6.9] QList<QSharedPointer<KNSCore::Provider>> EngineBase::providers() const

This function is deprecated since 6.9. We strongly advise against using it in new code.

Do not write provider-specific code

[signal, since 5.85, deprecated in 6.9] void EngineBase::providersChanged()

This function is deprecated since 6.9. We strongly advise against using it in new code.

Fired whenever the list of providers changes Use providerAdded signal

This function was introduced in 5.85.

[deprecated in 6.9] QList<KNSCore::Provider::SearchPreset> EngineBase::searchPresets()

This function is deprecated since 6.9. We strongly advise against using it in new code.

Use searchPresets2

[signal, deprecated in 6.9] void EngineBase::signalCategoriesMetadataLoded(const QList<KNSCore::Provider::CategoryMetadata> &categories)

This function is deprecated since 6.9. We strongly advise against using it in new code.

Use variant with new argument type

[signal, since 5.83, deprecated in 6.9] void EngineBase::signalSearchPresetsLoaded(const QList<KNSCore::Provider::SearchPreset> &presets)

This function is deprecated since 6.9. We strongly advise against using it in new code.

Fires when the engine has loaded search presets. These represent interesting searches for the user, such as recommendations. Use variant with new argument type

Note: Signal signalSearchPresetsLoaded is overloaded in this class. To connect to this signal by using the function pointer syntax, Qt provides a convenient helper for obtaining the function pointer as shown in this example:

connect(engineBase, QOverload<const QList<KNSCore::Provider::SearchPreset> &>::of(&EngineBase::signalSearchPresetsLoaded),
    [=](const QList<KNSCore::Provider::SearchPreset> &presets){ /* ... */ });

This function was introduced in 5.83.