Pages
API Documentation
On this page

Obsolete Members for KNSCore::EngineBase

The following members of class EngineBase are deprecated. We strongly advise against using them in new code.

Public Functions

Signals

Protected Functions

Obsolete 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

[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

[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

[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

[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

[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, 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

[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, 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: This signal is overloaded. To connect to this signal:

// Connect using qOverload:
connect(engineBase, qOverload<const QList<KNSCore::Provider::SearchPreset> &>(&EngineBase::signalSearchPresetsLoaded),
        receiver, &ReceiverClass::slot);

// Or using a lambda:
connect(engineBase, qOverload<const QList<KNSCore::Provider::SearchPreset> &>(&EngineBase::signalSearchPresetsLoaded),
        this, [](const QList<KNSCore::Provider::SearchPreset> &presets) { /* handle signalSearchPresetsLoaded */ });

For more examples and approaches, see connecting to overloaded signals.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.