123456789101112131415161718192021222324252627282930313233343536373839 |
- //
- // KMBatchOperateManager.swift
- // PDF Reader Pro
- //
- // Created by kdanmobile on 2023/11/2.
- //
- import Foundation
- class KMBatchOperateManager: NSObject{
- var files: [KMBatchOperateFile]?
- var currentType: KMBatchOperationType?{
- willSet{
-
- }
- didSet {
- if currentType != oldValue {
- if ((self.files?.isEmpty) != nil){
- return
- }
- for i in 0..<self.files!.count {
- let file = self.files![i]
- if file.currentOperateType != self.currentType {
- file.currentOperateType = self.currentType
- }
- }
- }
- }
- }
-
- static let defaultManager: KMBatchOperateManager = {
- let manager = KMBatchOperateManager()
- manager.files = (NSMutableArray() as! [KMBatchOperateFile])
- manager.currentType = .Convert
- return manager
- }()
-
-
- }
|