Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

ctreadercontext.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: ctreadercontext.h,v $
00003                              -------------------
00004     cvs         : $Id: ctreadercontext.h,v 1.1 2003/04/24 01:43:28 aquamaniac Exp $
00005     begin       : Wed Apr 23 2003
00006     copyright   : (C) 2003 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *                                                                         *
00011  *   This library is free software; you can redistribute it and/or         *
00012  *   modify it under the terms of the GNU Lesser General Public            *
00013  *   License as published by the Free Software Foundation; either          *
00014  *   version 2.1 of the License, or (at your option) any later version.    *
00015  *                                                                         *
00016  *   This library is distributed in the hope that it will be useful,       *
00017  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00018  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00019  *   Lesser General Public License for more details.                       *
00020  *                                                                         *
00021  *   You should have received a copy of the GNU Lesser General Public      *
00022  *   License along with this library; if not, write to the Free Software   *
00023  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston,                 *
00024  *   MA  02111-1307  USA                                                   *
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 

Generated on Mon Jan 5 20:56:27 2004 for libchipcard by doxygen 1.3.4