summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-16 16:39:26 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-16 16:39:26 -0500
commit670a4b340e3f9cd618a615a98bf0e8f4a30dfd49 (patch)
tree06701254ff783928afaf70c036df15265d7252ae
parenta611eec8a079786dbfc6b6b803e5fee9b111b8eb (diff)
downloadtdelibs-670a4b340e3f9cd618a615a98bf0e8f4a30dfd49.tar.gz
tdelibs-670a4b340e3f9cd618a615a98bf0e8f4a30dfd49.zip
Add certificate list availability signal to tdehwlib cryptographic card module
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.cpp6
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp
index 111cbce17..0125c39a9 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.cpp
+++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp
@@ -540,6 +540,9 @@ void TDECryptographicCardDevice::cardStatusChanged(TQString status, TQString atr
m_cardPresent = true;
m_cardATR = atr;
emit(cardInserted(this));
+ if (m_cardCertificates.count() > 0) {
+ emit(certificateListAvailable(this));
+ }
}
else if (status == "REMOVED") {
m_cardPresent = false;
@@ -549,6 +552,9 @@ void TDECryptographicCardDevice::cardStatusChanged(TQString status, TQString atr
else if (status == "PRESENT") {
m_cardATR = atr;
m_cardPresent = true;
+ if (m_cardCertificates.count() > 0) {
+ emit(certificateListAvailable(this));
+ }
}
}
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.h b/tdecore/tdehw/tdecryptographiccarddevice.h
index e917c9ae3..ba4007906 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.h
+++ b/tdecore/tdehw/tdecryptographiccarddevice.h
@@ -149,6 +149,7 @@ class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice
signals:
void cardInserted(TDECryptographicCardDevice*);
void cardRemoved(TDECryptographicCardDevice*);
+ void certificateListAvailable(TDECryptographicCardDevice*);
void pinRequested(TQString prompt, TDECryptographicCardDevice* cdevice);
private: