2
import QtQuick.Layouts 1.0
3
import Ubuntu.Components 1.0
4
import Ubuntu.Components.ListItems 1.0 as ListItem
5
import Ubuntu.DevicesModel 0.1
9
property var input: null
10
property string inputRole
11
property alias checkable: switchbox.enabled
14
if(input == FeatureState.Available)
15
switchbox.checked = true;
17
switchbox.checked = false;
23
visible: input === FeatureState.Unknown
28
visible: input !== FeatureState.Unknown
29
checked: input === FeatureState.Available
32
if (checked && input == FeatureState.NotAvailable) {
33
devicesModel.set(index,inputRole,true);
36
else if ((!checked) && input == FeatureState.Available) {
37
devicesModel.set(index,inputRole,false);