diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-08-25 00:25:25 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2015-08-25 00:25:25 -0500 |
commit | 31ebb6568fd8557ba184b38481887e540cbf5647 (patch) | |
tree | c5c50929cee795292fae4827e4d6993c2eb2a7ba /tdecore/tdehw/tdecryptographiccarddevice_private.h | |
parent | 5fdf839b35497b5470dc9e27e8503083f0b55266 (diff) | |
download | tdelibs-31ebb6568fd8557ba184b38481887e540cbf5647.tar.gz tdelibs-31ebb6568fd8557ba184b38481887e540cbf5647.zip |
Add preliminary cryptographic card support to TDEHWLib
Diffstat (limited to 'tdecore/tdehw/tdecryptographiccarddevice_private.h')
-rw-r--r-- | tdecore/tdehw/tdecryptographiccarddevice_private.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tdecore/tdehw/tdecryptographiccarddevice_private.h b/tdecore/tdehw/tdecryptographiccarddevice_private.h new file mode 100644 index 000000000..a82fe1ae5 --- /dev/null +++ b/tdecore/tdehw/tdecryptographiccarddevice_private.h @@ -0,0 +1,59 @@ + +/* This file is part of the TDE libraries + Copyright (C) 2015 Timothy Pearson <kb9vqf@pearsoncomputing.net> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef _TDECRYPTOGRAPHICCARDDEVICE_PRIVATE_H +#define _TDECRYPTOGRAPHICCARDDEVICE_PRIVATE_H + +#include "tdegenericdevice.h" + +#ifdef WITH_PCSC + #include <pcsclite.h> + #include <wintypes.h> + #include <winscard.h> + #include <reader.h> +#endif + +class TDECryptographicCardDevice; + +class CryptoCardDeviceWatcher : public TQObject +{ + TQ_OBJECT + + public: + CryptoCardDeviceWatcher(); + ~CryptoCardDeviceWatcher(); + + public slots: + void run(); + void requestTermination(); + TQString getCardATR(TQString readerName); + + signals: + void statusChanged(TQString, TQString); + + public: + TDECryptographicCardDevice *cardDevice; + + private: + bool m_terminationRequested; + SCARDCONTEXT m_cardContext; + SCARD_READERSTATE *m_readerStates; +}; + +#endif // _TDECRYPTOGRAPHICCARDDEVICE_PRIVATE_H
\ No newline at end of file |