summaryrefslogtreecommitdiffstats
path: root/tdecore
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-15 19:20:55 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-09-15 19:20:55 -0500
commita611eec8a079786dbfc6b6b803e5fee9b111b8eb (patch)
tree17b36153ea938746c463192acfe5abac59ecfeb4 /tdecore
parent161491fac6d3d0b272c0480f22f2dce3569787b2 (diff)
downloadtdelibs-a611eec8a079786dbfc6b6b803e5fee9b111b8eb.tar.gz
tdelibs-a611eec8a079786dbfc6b6b803e5fee9b111b8eb.zip
Update cryptographic card API to send card device with insert/remove signals
Diffstat (limited to 'tdecore')
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.cpp4
-rw-r--r--tdecore/tdehw/tdecryptographiccarddevice.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp
index 37aa6cac5..111cbce17 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.cpp
+++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp
@@ -539,12 +539,12 @@ void TDECryptographicCardDevice::cardStatusChanged(TQString status, TQString atr
if (status == "INSERTED") {
m_cardPresent = true;
m_cardATR = atr;
- emit(cardInserted());
+ emit(cardInserted(this));
}
else if (status == "REMOVED") {
m_cardPresent = false;
m_cardATR = atr;
- emit(cardRemoved());
+ emit(cardRemoved(this));
}
else if (status == "PRESENT") {
m_cardATR = atr;
diff --git a/tdecore/tdehw/tdecryptographiccarddevice.h b/tdecore/tdehw/tdecryptographiccarddevice.h
index db0f08289..e917c9ae3 100644
--- a/tdecore/tdehw/tdecryptographiccarddevice.h
+++ b/tdecore/tdehw/tdecryptographiccarddevice.h
@@ -25,7 +25,7 @@
#ifdef KSSL_HAVE_SSL
typedef struct x509_st X509;
#else
- class X509;
+ struct X509;
#endif
#endif
@@ -147,8 +147,8 @@ class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice
void workerRequestedPin(TQString prompt);
signals:
- void cardInserted();
- void cardRemoved();
+ void cardInserted(TDECryptographicCardDevice*);
+ void cardRemoved(TDECryptographicCardDevice*);
void pinRequested(TQString prompt, TDECryptographicCardDevice* cdevice);
private: