Update cryptographic card API to send card device with insert/remove signals

pull/1/head
Timothy Pearson 10 years ago
parent 161491fac6
commit a611eec8a0

@ -539,12 +539,12 @@ void TDECryptographicCardDevice::cardStatusChanged(TQString status, TQString atr
if (status == "INSERTED") { if (status == "INSERTED") {
m_cardPresent = true; m_cardPresent = true;
m_cardATR = atr; m_cardATR = atr;
emit(cardInserted()); emit(cardInserted(this));
} }
else if (status == "REMOVED") { else if (status == "REMOVED") {
m_cardPresent = false; m_cardPresent = false;
m_cardATR = atr; m_cardATR = atr;
emit(cardRemoved()); emit(cardRemoved(this));
} }
else if (status == "PRESENT") { else if (status == "PRESENT") {
m_cardATR = atr; m_cardATR = atr;

@ -25,7 +25,7 @@
#ifdef KSSL_HAVE_SSL #ifdef KSSL_HAVE_SSL
typedef struct x509_st X509; typedef struct x509_st X509;
#else #else
class X509; struct X509;
#endif #endif
#endif #endif
@ -147,8 +147,8 @@ class TDECORE_EXPORT TDECryptographicCardDevice : public TDEGenericDevice
void workerRequestedPin(TQString prompt); void workerRequestedPin(TQString prompt);
signals: signals:
void cardInserted(); void cardInserted(TDECryptographicCardDevice*);
void cardRemoved(); void cardRemoved(TDECryptographicCardDevice*);
void pinRequested(TQString prompt, TDECryptographicCardDevice* cdevice); void pinRequested(TQString prompt, TDECryptographicCardDevice* cdevice);
private: private:

Loading…
Cancel
Save