update Jenkinsfile
This commit is contained in:
parent
7d8be3fc40
commit
a22d936df7
|
@ -4,7 +4,7 @@ pipeline {
|
|||
agent {
|
||||
docker {
|
||||
label 'linux'
|
||||
image 'statusteam/nim-status-client-build:1.0.3'
|
||||
image 'statusteam/nim-status-client-build:1.0.4'
|
||||
/* allows jenkins use cat and mounts '/dev/fuse' for linuxdeployqt */
|
||||
args '--entrypoint="" --cap-add SYS_ADMIN --security-opt apparmor:unconfined --device /dev/fuse'
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ proc delete*(self: KeycardController) =
|
|||
proc reset*(self: KeycardController) =
|
||||
discard
|
||||
|
||||
proc attemptOpenSecureChannel(self: KeycardController): bool =
|
||||
proc attemptOpenSecureChannel(self: KeycardController) : bool =
|
||||
return false
|
||||
|
||||
proc getCardState(self: KeycardController) =
|
||||
|
@ -33,8 +33,10 @@ proc getCardState(self: KeycardController) =
|
|||
self.view.cardState = PreInit
|
||||
elif self.attemptOpenSecureChannel():
|
||||
self.view.cardState = Paired
|
||||
else:
|
||||
elif appInfo.availableSlots > 0:
|
||||
self.view.cardState = Unpaired
|
||||
else:
|
||||
self.view.cardState = NoFreeSlots
|
||||
|
||||
proc init*(self: KeycardController) =
|
||||
discard """
|
||||
|
|
|
@ -11,10 +11,11 @@ type
|
|||
NotKeycard = 1
|
||||
PreInit = 2
|
||||
Unpaired = 3
|
||||
Paired = 4
|
||||
Frozen = 5
|
||||
Blocked = 6
|
||||
Authenticated = 7
|
||||
NoFreeSlots = 4
|
||||
Paired = 5
|
||||
Frozen = 6
|
||||
Blocked = 7
|
||||
Authenticated = 8
|
||||
|
||||
QtObject:
|
||||
type KeycardView* = ref object of QObject
|
||||
|
|
Loading…
Reference in New Issue