00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
#ifndef CTREADERCONTEXT_H
00030
#define CTREADERCONTEXT_H
00031
00032
00033
#include <chipcard/cterror.h>
00034
#include <chipcard/libchipcard.h>
00035
00036
00040 class CHIPCARD_API CTReaderContext {
00041
private:
00042
unsigned int _readerId;
00043
unsigned int _cardId;
00044
int _readerNumber;
00045
CHIPCARD_READERDESCR _readerDescr;
00046
bool _connected;
00047
unsigned int _flags;
00048
unsigned int _status;
00049
00050
public:
00051 CTReaderContext(
unsigned int tid,
00052
unsigned int cardId=0,
00053
unsigned int flags=0,
00054
unsigned int status=0);
00055 CTReaderContext();
00056
virtual ~CTReaderContext();
00057
00058 unsigned int readerFlags()
const {
return _flags;};
00059 unsigned int readerStatus()
const {
return _status;};
00060 unsigned int readerId()
const {
return _readerId;};
00061 unsigned int cardId()
const {
return _cardId;};
00062 int readerNumber()
const {
return _readerNumber;};
00063 void setReaderNumber(
int i) { _readerNumber=i;};
00064 bool connected()
const {
return _connected;};
00065 void setConnected(
bool b) { _connected=b;};
00066 const CHIPCARD_READERDESCR &readerDescription()
const {
00067
return _readerDescr;
00068 };
00069 void setReaderDescription(
const CHIPCARD_READERDESCR &rd) {
00070 _readerDescr=rd;
00071 };
00072
00073 };
00074
00075
00076
00077
00078
00079
#endif
00080
00081
00082
00083
00084