1#ifndef DAABSTRACTARCHIVETASK_H
2#define DAABSTRACTARCHIVETASK_H
8class DAAbstractArchive;
20 using FpLoadedCallBack = std::function< void(std::shared_ptr< DAAbstractArchiveTask >) >;
94 void setCode(
int code);
97 QString getName()
const;
98 void setName(
const QString& name);
101 QString getDescribe()
const;
102 void setDescribe(
const QString& describe);
104 void setLoadedCallBack(
const FpLoadedCallBack& callBack);
105 FpLoadedCallBack getLoadedCallBack()
const;
110 FpLoadedCallBack mLoadedCallBack;
114Q_DECLARE_METATYPE(std::shared_ptr< DA::DAAbstractArchiveTask >)
针对
Definition DAAbstractArchiveTask.h:18
virtual bool exec(DAAbstractArchive *archive, Mode mode)=0
执行任务
Mode
模式用来区分读写
Definition DAAbstractArchiveTask.h:26
持久化的基类
Definition DAAbstractArchive.h:16
序列化类都是带异常的,使用中需要处理异常
Definition AppMainWindow.cpp:44