Skip to content

Please remove the use of Utils::getServiceState and Utils::activatePlugin #6362

@npoltorapavlo

Description

@npoltorapavlo

When it is necessary for one plugin to use an interface provided by another plugin, please use a consistent approach of ordering by either "startuporder" options, or Initialiser services. Do not solve it like below as it doesn't consider the second plugin having own dependencies:

if ((Utils::getServiceState(service, USERSETTINGS_CALLSIGN, state) == Core::ERROR_NONE) && (state != PluginHost::IShell::state::ACTIVATED))
Utils::activatePlugin(service, USERSETTINGS_CALLSIGN);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions