今奥全景相机
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

277 lines
8.3 KiB

.class public abstract Lcom/viatech/gallery/BaseUploadController;
.super Ljava/lang/Object;
.source "BaseUploadController.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/viatech/gallery/BaseUploadController$IUpload;,
Lcom/viatech/gallery/BaseUploadController$UploadBean;,
Lcom/viatech/gallery/BaseUploadController$UploadTask;
}
.end annotation
# static fields
.field private static final TAG:Ljava/lang/String;
.field protected static final UPLOAD_PHOTO:I = 0x1
.field protected static final UPLOAD_PHOTO_THUMBNAIL:I = 0x0
.field protected static final UPLOAD_VIDEO:I = 0x2
.field protected static final UPLOAD_VIDEO_THUMBNAIL:I = 0x3
# instance fields
.field protected mContext:Landroid/content/Context;
.field private mNotifyReceiver:Lcom/viatech/a/b;
.field private mUploadQueue:Ljava/util/Queue;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Queue",
"<",
"Lcom/viatech/gallery/BaseUploadController$UploadTask;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 2
.prologue
.line 22
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "Vpai_"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
const-class v1, Lcom/viatech/gallery/BaseUploadController;
invoke-virtual {v1}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/viatech/gallery/BaseUploadController;->TAG:Ljava/lang/String;
return-void
.end method
.method public constructor <init>()V
.locals 1
.prologue
.line 21
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 28
new-instance v0, Ljava/util/LinkedList;
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
iput-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mUploadQueue:Ljava/util/Queue;
.line 29
new-instance v0, Lcom/viatech/a/b;
invoke-direct {v0}, Lcom/viatech/a/b;-><init>()V
iput-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mNotifyReceiver:Lcom/viatech/a/b;
return-void
.end method
.method static synthetic access$600()Ljava/lang/String;
.locals 1
.prologue
.line 21
sget-object v0, Lcom/viatech/gallery/BaseUploadController;->TAG:Ljava/lang/String;
return-object v0
.end method
.method static synthetic access$800(Lcom/viatech/gallery/BaseUploadController;)Ljava/util/Queue;
.locals 1
.prologue
.line 21
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mUploadQueue:Ljava/util/Queue;
return-object v0
.end method
# virtual methods
.method public createTask(Lcom/viatech/gallery/BaseUploadController$UploadBean;)Lcom/viatech/gallery/BaseUploadController$UploadTask;
.locals 3
.prologue
.line 61
new-instance v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;
const/4 v1, 0x0
invoke-direct {v0, p0, p1, v1}, Lcom/viatech/gallery/BaseUploadController$UploadTask;-><init>(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$1;)V
.line 62
iget-object v1, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
invoke-virtual {p0}, Lcom/viatech/gallery/BaseUploadController;->getIUpload()Lcom/viatech/gallery/BaseUploadController$IUpload;
move-result-object v2
invoke-static {v1, v2}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->access$302(Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$IUpload;)Lcom/viatech/gallery/BaseUploadController$IUpload;
.line 63
return-object v0
.end method
.method public createTask(Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$UploadBean;)Lcom/viatech/gallery/BaseUploadController$UploadTask;
.locals 3
.prologue
.line 67
new-instance v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;
const/4 v1, 0x0
invoke-direct {v0, p0, p1, p2, v1}, Lcom/viatech/gallery/BaseUploadController$UploadTask;-><init>(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$1;)V
.line 68
iget-object v1, v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean;
invoke-virtual {p0}, Lcom/viatech/gallery/BaseUploadController;->getIUpload()Lcom/viatech/gallery/BaseUploadController$IUpload;
move-result-object v2
invoke-static {v1, v2}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->access$302(Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$IUpload;)Lcom/viatech/gallery/BaseUploadController$IUpload;
.line 69
return-object v0
.end method
.method abstract customFail(Ljava/lang/String;)V
.end method
.method protected abstract getIUpload()Lcom/viatech/gallery/BaseUploadController$IUpload;
.end method
.method protected onCreate(Landroid/content/Context;)V
.locals 2
.prologue
.line 32
iput-object p1, p0, Lcom/viatech/gallery/BaseUploadController;->mContext:Landroid/content/Context;
.line 33
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mNotifyReceiver:Lcom/viatech/a/b;
invoke-virtual {v0, p1}, Lcom/viatech/a/b;->a(Landroid/content/Context;)V
.line 34
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mNotifyReceiver:Lcom/viatech/a/b;
new-instance v1, Lcom/viatech/gallery/BaseUploadController$1;
invoke-direct {v1, p0}, Lcom/viatech/gallery/BaseUploadController$1;-><init>(Lcom/viatech/gallery/BaseUploadController;)V
invoke-virtual {v0, v1}, Lcom/viatech/a/b;->a(Lcom/viatech/a/b$a;)V
.line 42
return-void
.end method
.method protected onDestroy()V
.locals 2
.prologue
.line 45
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mNotifyReceiver:Lcom/viatech/a/b;
iget-object v1, p0, Lcom/viatech/gallery/BaseUploadController;->mContext:Landroid/content/Context;
invoke-virtual {v0, v1}, Lcom/viatech/a/b;->b(Landroid/content/Context;)V
.line 46
return-void
.end method
.method public varargs startUpload([Lcom/viatech/gallery/BaseUploadController$UploadTask;)V
.locals 1
.prologue
.line 49
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mUploadQueue:Ljava/util/Queue;
invoke-static {v0, p1}, Ljava/util/Collections;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
.line 50
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mUploadQueue:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->peek()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->access$000(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V
.line 52
return-void
.end method
.method public stopUpload()V
.locals 2
.prologue
.line 55
iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController;->mUploadQueue:Ljava/util/Queue;
invoke-interface {v0}, Ljava/util/Queue;->iterator()Ljava/util/Iterator;
move-result-object v1
:goto_0
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_0
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/viatech/gallery/BaseUploadController$UploadTask;
.line 56
invoke-static {v0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->access$100(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V
goto :goto_0
.line 58
:cond_0
return-void
.end method