first commit
[bylock.git] / sources / net / client / by / lock / b / d.java
blob61f9942e9fde85ec7e1082abfbb2d72dc1f77fac
1 package net.client.by.lock.b;
3 import java.io.File;
4 import javax.crypto.spec.IvParameterSpec;
5 import javax.crypto.spec.SecretKeySpec;
6 import net.client.by.lock.d.k;
7 import net.client.by.lock.f.h;
8 import net.client.by.lock.f.j;
9 import net.client.by.lock.task.FileTask;
11 /* compiled from: MyApp */
12 public abstract class d extends k implements a {
13 protected int a = -1;
14 protected FileTask b;
15 private String c;
16 private String i;
17 private File j;
18 private String k = null;
19 private h l = new h("fileId");
20 private SecretKeySpec m;
21 private IvParameterSpec n;
23 protected d() {
24 this.f = new h("IDLE", "stateProperty");
27 /* access modifiers changed from: protected */
28 @Override // net.client.by.lock.d.k
29 public String a() {
30 return String.valueOf(this.i) + " (Dosya) (" + j.a((long) this.a) + ")";
33 public void g() {
34 this.f.a("COMPLETED");
37 public void a(Throwable th) {
38 this.f.a("ERROR");
39 this.b = null;
40 j.a("Error occured in file transfer", th);
43 @Override // net.client.by.lock.b.a
44 public Integer f() {
45 if (this.a > 0) {
46 return Integer.valueOf(this.a);
48 if (this.j == null || !this.j.exists()) {
49 return 0;
51 return Integer.valueOf((int) this.j.length());
54 public void a(int i2) {
55 this.a = i2;
58 public void a(String str) {
59 this.l.a(str);
62 @Override // net.client.by.lock.b.a
63 public String b() {
64 return (String) this.l.a();
67 public h h() {
68 return this.l;
71 public void a(IvParameterSpec ivParameterSpec) {
72 this.n = ivParameterSpec;
75 @Override // net.client.by.lock.b.a
76 public IvParameterSpec d() {
77 return this.n;
80 @Override // net.client.by.lock.b.a
81 public String e() {
82 if (this.i != null || this.j == null) {
83 return this.i;
85 return this.j.getName();
88 public void b(String str) {
89 this.i = str;
92 @Override // net.client.by.lock.b.a
93 public SecretKeySpec c() {
94 return this.m;
97 public void a(SecretKeySpec secretKeySpec) {
98 this.m = secretKeySpec;
101 public String i() {
102 return this.c;
105 public void c(String str) {
106 this.c = str;
109 public void a(File file) {
110 this.j = file;
113 public File j() {
114 return this.j;
117 public void k() {
118 if (this.b != null) {
119 this.b.cancelTask(true);
120 this.f.a("IDLE");
121 this.b = null;