Add smartlock interface and simplify simpleclosable interface

pull/135/head
Simon Stürz 2018-06-11 10:28:32 +02:00 committed by Michael Zanetti
parent 9c49712a99
commit d641833eca
5 changed files with 27 additions and 11 deletions

View File

@ -1,3 +1,8 @@
{ {
"extends": "simpleclosable" "extends": "simpleclosable"
"actions": [
{
"name": "stop"
}
]
} }

View File

@ -1,17 +1,10 @@
{ {
"extends": "simpleclosable",
"states": [ "states": [
{ {
"name": "state", "name": "state",
"type": "QString", "type": "QString",
"allowedValues": ["open", "closed", "opening", "closing"] "allowedValues": ["open", "closed", "opening", "closing"]
} }
],
"actions": [
{
"name": "open"
},
{
"name": "close"
}
] ]
} }

View File

@ -1,3 +1,8 @@
{ {
"extends": "simpleclosable" "extends": "simpleclosable"
"actions": [
{
"name": "stop"
}
]
} }

View File

@ -5,9 +5,6 @@
}, },
{ {
"name": "close" "name": "close"
},
{
"name": "stop"
} }
] ]
} }

View File

@ -0,0 +1,16 @@
{
"extends": "simpleclosable",
"states": [
{
"name": "state",
"type": "QString",
"allowedValues": ["locked", "locking", "unlocked", "unlocking", "unlatched", "unlatching"]
}
],
"actions": [
{
"name": "unlatch"
}
]
}