/*    */ package com.seuic.scanner;
/*    */ 
/*    */ import android.content.Context;
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ScannerFactory
/*    */ {
/*    */   static final String SCN_SE4500 = "se4500";
/*    */   static final String SCN_N5600 = "N5600";
/*    */   static final String SCN_SE955 = "SE955";
/*    */   static final String SCN_SE965 = "SE965";
/*    */   static final String SCN_N4313 = "N4313";
/*    */   static final String SCN_UE966 = "UE966";
/*    */   static final String SCN_SE655 = "SE655";
/*    */   static final String SCN_SE4710 = "SE4710";
/*    */   private static Scanner scanner;
/*    */   private static scanid mScanid;
/*    */   
/*    */   public static Scanner getScanner(Context context) {
/* 21 */     Scanner.stopScanService(context);
/*    */     
/* 23 */     return getScannerNoStopService(context);
/*    */   }
/*    */ 
/*    */   
/*    */   private static Scanner getScannerNoStopService(Context context) {
/* 28 */     if (scanner == null) {
/*    */       
/* 30 */       mScanid = new scanid();
/* 31 */       String deviceName = mScanid.readScanner();
/* 32 */       if (deviceName != null) {
/* 33 */         if (deviceName.equals("N4313")) {
/* 34 */           scanner = new N4313Scanner(context);
/* 35 */         } else if (deviceName.equals("SE955") || 
/* 36 */           deviceName.equals("SE965") || 
/* 37 */           deviceName.equals("SE655")) {
/* 38 */           scanner = new SE955Scanner(context);
/* 39 */         } else if (deviceName.endsWith("UE966")) {
/* 40 */           scanner = new UE966Scanner(context);
/* 41 */         } else if (deviceName.equals("N5600")) {
/* 42 */           scanner = new HHPScanner(context);
/* 43 */         } else if (deviceName.equals("se4500") || 
/* 44 */           deviceName.equals("SE4710")) {
/* 45 */           scanner = new SE4500Scanner(context);
/*    */         } 
/*    */       } else {
/* 48 */         scanner = new HHPScanner(context);
/*    */       } 
/*    */     } 
/*    */     
/* 52 */     return scanner;
/*    */   }
/*    */ }


/* Location:              E:\Demo\ChaoRan_A9L\libs\ScannerAPI.jar!\com\seuic\scanner\ScannerFactory.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */