SharedParamScan.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package com.epson.iprint.shared;
  2. import android.os.Bundle;
  3. import java.io.Serializable;
  4. import java.util.ArrayList;
  5. public class SharedParamScan extends SharedParam implements Serializable {
  6. private static final long serialVersionUID = 1810612490181007537L;
  7. private ArrayList<String> arrayOutFilePath = null;
  8. private String file_name = null;
  9. private String folder_name = null;
  10. private int pixel_main = 0;
  11. private int pixel_sub = 0;
  12. private int res_main = 0;
  13. private int res_sub = 0;
  14. private int scan_mode = 0;
  15. private int scan_type = 0;
  16. public /* bridge */ /* synthetic */ String getPackage_name() {
  17. return super.getPackage_name();
  18. }
  19. public /* bridge */ /* synthetic */ boolean isAvailable() {
  20. return super.isAvailable();
  21. }
  22. /* access modifiers changed from: protected */
  23. public void setParam(Bundle bundle) throws SharedDataException {
  24. this.scan_type = bundle.getInt("SCAN_TYPE");
  25. int i = this.scan_type;
  26. if (i < 1 || i > 3) {
  27. throw new ParametersErrorException("SCAN_TYPE errorr");
  28. }
  29. this.pixel_main = bundle.getInt("PIXEL_MAIN");
  30. if (this.pixel_main >= 0) {
  31. this.pixel_sub = bundle.getInt("PIXEL_SUB");
  32. this.res_main = bundle.getInt("RES_MAIN");
  33. this.res_sub = bundle.getInt("RES_SUB");
  34. this.folder_name = bundle.getString("FOLDER_NAME");
  35. this.file_name = bundle.getString("FILE_NAME");
  36. this.scan_mode = bundle.getInt("SCAN_MODE");
  37. this.package_name = bundle.getString(EpsoniPrintSharedActivity.PARAM_KEY_CALLER_PACKAGE_NAME);
  38. this.arrayOutFilePath = new ArrayList<>();
  39. this.isValid = true;
  40. return;
  41. }
  42. throw new ParametersErrorException("PIXEL_MAIN errorr");
  43. }
  44. public int getScan_type() {
  45. return this.scan_type;
  46. }
  47. public int getPixel_main() {
  48. return this.pixel_main;
  49. }
  50. public int getPixel_sub() {
  51. return this.pixel_sub;
  52. }
  53. public int getRes_main() {
  54. return this.res_main;
  55. }
  56. public int getRes_sub() {
  57. return this.res_sub;
  58. }
  59. public String getFolder_name() {
  60. return this.folder_name;
  61. }
  62. public String getFile_name() {
  63. return this.file_name;
  64. }
  65. public int getScan_mode() {
  66. return this.scan_mode;
  67. }
  68. public ArrayList<String> getArrayOutFilePath() {
  69. return this.arrayOutFilePath;
  70. }
  71. public void setArrayOutFilePath(String str) {
  72. this.arrayOutFilePath.add(str);
  73. }
  74. public void clearArrayOutFilePath() {
  75. this.arrayOutFilePath.clear();
  76. }
  77. }