.class public Lcom/viatech/gallery/BaseUploadController$UploadTask; .super Ljava/lang/Object; .source "BaseUploadController.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/viatech/gallery/BaseUploadController; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x1 name = "UploadTask" .end annotation # instance fields .field protected mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; .field private mLastUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; .field private mUpload:Lcom/via/vpaicloud/storage/Upload; .field final synthetic this$0:Lcom/viatech/gallery/BaseUploadController; # direct methods .method private constructor (Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;)V .locals 3 .prologue .line 79 iput-object p1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->this$0:Lcom/viatech/gallery/BaseUploadController; invoke-direct {p0}, Ljava/lang/Object;->()V .line 80 iput-object p2, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; .line 81 new-instance v0, Lcom/via/vpaicloud/storage/Upload$UploadOption; invoke-direct {v0}, Lcom/via/vpaicloud/storage/Upload$UploadOption;->()V .line 82 invoke-static {p2}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->access$500(Lcom/viatech/gallery/BaseUploadController$UploadBean;)Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lcom/via/vpaicloud/storage/Upload$UploadOption;->userId:Ljava/lang/String; .line 83 invoke-virtual {p2}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->getFileName()Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lcom/via/vpaicloud/storage/Upload$UploadOption;->fileName:Ljava/lang/String; .line 84 invoke-virtual {p2}, Lcom/viatech/gallery/BaseUploadController$UploadBean;->getFilePath()Ljava/lang/String; move-result-object v1 iput-object v1, v0, Lcom/via/vpaicloud/storage/Upload$UploadOption;->filePath:Ljava/lang/String; .line 85 iget-object v1, p2, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mEndpoint:Ljava/lang/String; iput-object v1, v0, Lcom/via/vpaicloud/storage/Upload$UploadOption;->endpoint:Ljava/lang/String; .line 86 iget-object v1, p2, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mBucket:Ljava/lang/String; iput-object v1, v0, Lcom/via/vpaicloud/storage/Upload$UploadOption;->bucket:Ljava/lang/String; .line 87 new-instance v1, Lcom/via/vpaicloud/storage/Upload; iget-object v2, p1, Lcom/viatech/gallery/BaseUploadController;->mContext:Landroid/content/Context; invoke-direct {v1, v2, v0}, Lcom/via/vpaicloud/storage/Upload;->(Landroid/content/Context;Lcom/via/vpaicloud/storage/Upload$UploadOption;)V iput-object v1, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mUpload:Lcom/via/vpaicloud/storage/Upload; .line 88 return-void .end method .method synthetic constructor (Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$1;)V .locals 0 .prologue .line 74 invoke-direct {p0, p1, p2}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;)V return-void .end method .method private constructor (Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$UploadBean;)V .locals 0 .prologue .line 91 invoke-direct {p0, p1, p2}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;)V .line 92 iput-object p3, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mLastUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; .line 93 return-void .end method .method synthetic constructor (Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$1;)V .locals 0 .prologue .line 74 invoke-direct {p0, p1, p2, p3}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->(Lcom/viatech/gallery/BaseUploadController;Lcom/viatech/gallery/BaseUploadController$UploadBean;Lcom/viatech/gallery/BaseUploadController$UploadBean;)V return-void .end method .method static synthetic access$000(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V .locals 0 .prologue .line 74 invoke-direct {p0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->start()V return-void .end method .method static synthetic access$100(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V .locals 0 .prologue .line 74 invoke-direct {p0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->stop()V return-void .end method .method static synthetic access$700(Lcom/viatech/gallery/BaseUploadController$UploadTask;)Lcom/viatech/gallery/BaseUploadController$UploadBean; .locals 1 .prologue .line 74 iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mLastUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; return-object v0 .end method .method private createCallback()Lcom/via/vpaicloud/storage/Upload$UploadCallback; .locals 1 .prologue .line 110 new-instance v0, Lcom/viatech/gallery/BaseUploadController$UploadTask$1; invoke-direct {v0, p0}, Lcom/viatech/gallery/BaseUploadController$UploadTask$1;->(Lcom/viatech/gallery/BaseUploadController$UploadTask;)V return-object v0 .end method .method private start()V .locals 2 .prologue .line 97 invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String; move-result-object v0 const-string v1, "uploadtask start" invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I .line 98 iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mUpload:Lcom/via/vpaicloud/storage/Upload; invoke-direct {p0}, Lcom/viatech/gallery/BaseUploadController$UploadTask;->createCallback()Lcom/via/vpaicloud/storage/Upload$UploadCallback; move-result-object v1 invoke-virtual {v0, v1}, Lcom/via/vpaicloud/storage/Upload;->start(Lcom/via/vpaicloud/storage/Upload$UploadCallback;)V .line 99 return-void .end method .method private stop()V .locals 2 .prologue .line 102 invoke-static {}, Lcom/viatech/gallery/BaseUploadController;->access$600()Ljava/lang/String; move-result-object v0 const-string v1, "uploadtask stop" invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I .line 103 iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mUpload:Lcom/via/vpaicloud/storage/Upload; if-eqz v0, :cond_0 .line 104 iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mUpload:Lcom/via/vpaicloud/storage/Upload; invoke-virtual {v0}, Lcom/via/vpaicloud/storage/Upload;->cancel()V .line 105 iget-object v0, p0, Lcom/viatech/gallery/BaseUploadController$UploadTask;->mCurrentUploadBean:Lcom/viatech/gallery/BaseUploadController$UploadBean; iget-object v0, v0, Lcom/viatech/gallery/BaseUploadController$UploadBean;->mFileInfo:Lcom/viatech/gallery/FileInfo; invoke-virtual {v0}, Lcom/viatech/gallery/FileInfo;->deleteThumbnail()V .line 107 :cond_0 return-void .end method