1 /*
  2  *  ---------
  3  * |.##> <##.|  Open Smart Card Development Platform (www.openscdp.org)
  4  * |#       #|  
  5  * |#       #|  Copyright (c) 1999-2006 CardContact Software & System Consulting
  6  * |'##> <##'|  Andreas Schwier, 32429 Minden, Germany (www.cardcontact.de)
  7  *  --------- 
  8  *
  9  *  This file is part of OpenSCDP.
 10  *
 11  *  OpenSCDP is free software; you can redistribute it and/or modify
 12  *  it under the terms of the GNU General Public License version 2 as
 13  *  published by the Free Software Foundation.
 14  *
 15  *  OpenSCDP is distributed in the hope that it will be useful,
 16  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 18  *  GNU General Public License for more details.
 19  *
 20  *  You should have received a copy of the GNU General Public License
 21  *  along with OpenSCDP; if not, write to the Free Software
 22  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 23  *
 24  *  GeldKarte Explorer
 25  */
 26 
 27 load("tools/CardOutlineFactory.js");
 28 
 29 // Create crypto object
 30 var crypto = new Crypto();
 31 
 32 // Create application factory that holds all application profiles
 33 var af = new ApplicationFactory(crypto);
 34 
 35 // Add ec-card application profiles
 36 af.addApplicationProfile("ap_mf.xml");
 37 af.addApplicationProfile("ap_geldkarte.xml");
 38 	
 39 // Create ec-card card object
 40 var card = new Card(_scsh3.reader, "cp_eccard.xml");
 41 
 42 // Create card outline factory
 43 var of = new CardOutlineFactory();
 44 
 45 // and go...
 46 try     {
 47         var eccard = new OutlineCard(of, card, af);
 48         eccard.view.show();
 49 }
 50 
 51 catch(e) {
 52         print("No card in reader or problem with reset: " + e);
 53 }
 54 
 55