00001 /*************************************************************************** 00002 $RCSfile: ctcardtrader.h,v $ 00003 ------------------- 00004 cvs : $Id: ctcardtrader.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 CTCARDTRADER_H 00030 #define CTCARDTRADER_H 00031 00032 00033 #include <chipcard/ctreadertrader.h> 00034 #include <chipcard/ctcard.h> 00035 00036 00037 00041 class CTCardTrader: public CTReaderTrader { 00042 protected: 00043 virtual CallBackResult callback(bool first); 00044 00045 public: 00046 CTCardTrader(); 00047 CTCardTrader(bool next=false, 00048 unsigned int readerFlags=0, 00049 unsigned int readerFlagsMask=0, 00050 unsigned int status=0, 00051 unsigned int statusMask=CHIPCARD_STATUS_LOCKED_BY_OTHER, 00052 unsigned int statusDelta=0); 00053 virtual ~CTCardTrader(); 00054 00055 CTError start(); 00056 00057 CTError getNext(CTCard* &card, int timeout); 00058 00059 }; 00060 00061 00062 00063 00064 #endif 00065 00066 00067