|
@@ -65,6 +65,7 @@
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(backupsFileRefreshFun:) name:backupsFileRefreshNotification object:nil];
|
|
|
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(downloadFileRefreshFun:) name:downloadFileRefreshNotification object:nil];
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(downloadFileSuspendAllFun:) name:downloadFileSuspendAllNotification object:nil];
|
|
|
|
|
|
[self.view setBackgroundColor:[UIColor whiteColor]];
|
|
|
|
|
@@ -595,9 +596,10 @@
|
|
|
|
|
|
for (int i=0; i<uploadingArr.count; i++) {
|
|
|
uploadFileDataModel*preModel = uploadingArr[i];
|
|
|
- if(preModel.curUploadStateType == uploadStateUploading){
|
|
|
+ if(preModel.curUploadStateType == uploadStateUploading
|
|
|
+ ||preModel.curUploadStateType == uploadStateWait){
|
|
|
preModel.curUploadStateType = uploadStateSuspend;
|
|
|
- break;
|
|
|
+ //break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -906,6 +908,22 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+- (void)downloadFileSuspendAllFun:(NSNotification*)not
|
|
|
+{
|
|
|
+ NSMutableArray *downloadingArr = _midTableView.downloadingArr;
|
|
|
+
|
|
|
+ for (int i=0; i<downloadingArr.count; i++) {
|
|
|
+ couldPhoneFileModel*preModel = downloadingArr[i];
|
|
|
+ if(preModel.curDownloadStateType == downloadStateUploading
|
|
|
+ ||preModel.curDownloadStateType == downloadStateWait){
|
|
|
+ preModel.curDownloadStateType = downloadStateSuspend;
|
|
|
+ //break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ [_midTableView RefreshAllDataFun];
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark 1.3版本UI修改后 下载文件列表的头部点击事件
|
|
|
- (void)didClikRightButInDownloadTableVieFunBy:(NSInteger)section
|
|
|
{
|