Add runWithPlugin helper

Authored by nicolasfella on Oct 29 2018, 2:07 PM.

Description

Add runWithPlugin helper

Summary:
There is a common pattern:
BackgroundService.RunCommand

getDevice
check device != null
getPlugin
check plugin != null
doCode

Add a helper for this pattern and port existing code

Reviewers: KDE Connect, albertvaka

Reviewed By: KDE Connect, albertvaka

Subscribers: albertvaka, kdeconnect

Tags: KDE Connect

Differential Revision: https://phabricator.kde.org/D16472

Details

Committed
nicolasfellaOct 29 2018, 2:07 PM
Reviewer
KDE Connect
Differential Revision
D16472: Add runWithPlugin helper
Parents
R225:901ead5b1fc6: Fix mobile data detection
Branches
Unknown
Tags
Unknown