diff options
author | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-06-22 12:05:03 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-07-06 06:49:31 +0000 |
commit | 6b7b961e00c87cfbaabbbfabaf348a356558d8da (patch) | |
tree | bfc8a091638427aacd71054f9d469bdc7aa958ec /tests/bttestui/main.qml | |
parent | fc5738fe8fcd9f0491834b453ef2705c31fdbe02 (diff) |
Add security flag support for tests with bttestui
The user presses the "Cycle SecFlag" button and chooses
the required sec level. The sec level is set on client and
server socket shortly before connectToService() and
listen() are called.
Change-Id: Ic841fb22eb2acaf738435d6d34897b7efb59e22e
Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com>
Diffstat (limited to 'tests/bttestui/main.qml')
-rw-r--r-- | tests/bttestui/main.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bttestui/main.qml b/tests/bttestui/main.qml index ddf55d02..caf182c3 100644 --- a/tests/bttestui/main.qml +++ b/tests/bttestui/main.qml @@ -90,6 +90,18 @@ Rectangle { anchors.bottomMargin: 3 text: device.evaluateSocketState(0) } + Text { + id: secFlagLabel; text: "SecFlags: " + anchors.left: parent.left + anchors.bottom: hostModeText.top + anchors.bottomMargin: 3 + } + Text { + anchors.left: secFlagLabel.right + anchors.bottom: hostModeText.top + anchors.bottomMargin: 3 + text: device.secFlags + } Row { anchors.top: parent.top @@ -132,6 +144,10 @@ Rectangle { buttonText: "Unpair" onClicked: device.requestPairingUpdate(false) } + Button { + buttonText: "Cycle SecFlag" + onClicked: device.cycleSecurityFlags() + } } Column { spacing: 8 |