MCPcopy Create free account
hub / github.com/chris2511/xca / changePin

Method changePin

widgets/KeyTreeView.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void KeyTreeView::changePin()
82{
83 pki_scard *scard;
84 QModelIndex currentIdx = currentIndex();
85
86 if (!currentIdx.isValid())
87 return;
88 scard = db_base::fromIndex<pki_scard>(currentIdx);
89 try {
90 if (!scard->isToken()) {
91 throw errorEx(tr("This is not a token"));
92 }
93 scard->changePin();
94 } catch (errorEx &err) {
95 XCA_ERROR(err);
96 }
97}
98
99void KeyTreeView::initPin()
100{

Callers

nothing calls this directly

Calls 3

errorExClass · 0.85
isValidMethod · 0.45
isTokenMethod · 0.45

Tested by

no test coverage detected