VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/SCard.h
blob: b02f14f0f3984c5f1a69705d203c9bbb0d6039e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef TC_HEADER_Common_SCard
#define TC_HEADER_Common_SCard

#include "Platform/PlatformBase.h"

#include "SCardManager.h"

namespace VeraCrypt
{
	class SCard
	{
    protected:
        shared_ptr<SCardReader> m_reader;
	public:
		static SCardManager manager;
		SCard();
		SCard(size_t slotId);
		SCard(const SCard& other);
		SCard(SCard&& other);
		SCard& operator = (const SCard& other);
		SCard& operator = (SCard&& other);
		virtual ~SCard();
        bool IsCardHandleValid() const;
	};
}

#endif // TC_HEADER_Common_SCard