|
DAWorkbench 0.0.1
DAWorkbench API
|
把文件压缩到压缩包的任务 更多...
#include <DAZipArchiveTask_ArchiveFile.h>
Public 成员函数 | |
| DAZipArchiveTask_ArchiveFile (const QString &archivePath, const QString &tempFilePath) | |
| DAZipArchiveTask_ArchiveFile (const QString &archivePath) | |
| QString | getTempFilePath () const |
| void | setTempFilePath (const QString &v) |
| QString | getArchivePath () const |
| void | setArchivePath (const QString &v) |
| virtual bool | exec (DAAbstractArchive *archive, DAAbstractArchiveTask::Mode mode) override |
| 执行任务 | |
Public 成员函数 继承自 DA::DAAbstractArchiveTask | |
| int | getCode () const |
| 获取流水号 | |
| void | setCode (int code) |
| 设置流水号 | |
| QString | getName () const |
| void | setName (const QString &name) |
| QString | getDescribe () const |
| void | setDescribe (const QString &describe) |
| void | setLoadedCallBack (const FpLoadedCallBack &callBack) |
| FpLoadedCallBack | getLoadedCallBack () const |
额外继承的成员函数 | |
Public 类型 继承自 DA::DAAbstractArchiveTask | |
| enum | Mode { ReadMode , WriteMode } |
| 模式用来区分读写 | |
| using | FpLoadedCallBack = std::function< void(std::shared_ptr< DAAbstractArchiveTask >) > |
把文件压缩到压缩包的任务
执行 DAZipArchiveTask_ArchiveFile(const QString& tempFilePath, const QString& archivePath); 构造函数的时候为保存, 会把tempFilePath文件保存到zip的archivePath文件中
执行 DAZipArchiveTask_ArchiveFile(const QString& archivePath); 进行读取操作,读取操作会把archivePath的内容,保存到一个临时路径中, 保存的临时路径通过
|
overridevirtual |
执行任务
| archive | 传入的档案基类 |
| mode | 写或读模式 |
示例