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

ctmemorycard.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: ctmemorycard.h,v $
00003                              -------------------
00004     cvs         : $Id: ctmemorycard.h,v 1.5 2003/04/24 01:43:29 aquamaniac Exp $
00005     begin       : Wed Aug 29 2001
00006     copyright   : (C) 2001 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  Changes
00030 
00031  */
00032 
00033 
00034 #ifndef CTMEMORYCARD_H
00035 #define CTMEMORYCARD_H
00036 
00037 class CTMemoryCard;
00038 
00039 #include <string>
00040 
00041 #include <chipcard/ctcard.h>
00042 #include <chipcard/cterror.h>
00043 
00044 
00053 class CHIPCARD_API CTMemoryCard : public CTCard {
00054 private:
00055   string _cmdSelectFile;
00056   string _cmdSelectMF;
00057 
00058 public:
00067   CTMemoryCard(const CTCard &c);
00068 
00069   virtual ~CTMemoryCard();
00071 
00090   virtual CTError reopenCard();
00092 
00103   virtual string cardType();
00104 
00113   virtual string cardTypes();
00115 
00130   CTError verifyPin(const string &pin);
00131 
00140   CTError changePin(const string &oldpin,
00141                     const string &newpin);
00142 
00152   CTError selectFile(unsigned short fid);
00153 
00168   CTError selectMF(string &fcp);
00169 
00171 
00172 };
00173 
00174 
00175 
00176 
00177 #endif
00178 
00179 
00180 

Generated on Mon Jun 6 18:17:40 2005 for libchipcard by  doxygen 1.4.2