123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #ifndef __BACKUPPHOTO_H__
- #define __BACKUPPHOTO_H__
- #include "BackupFactory.h"
- #include "BackupInterface.h"
- class CLock;
- class DataBaseOpt;
- typedef struct ST_TblNetShareInfo TblNetShareInfo, *LPTblNetShareInfo;;
- class BackupPhoto
- {
- BackupPhoto();
- public:
- ~BackupPhoto();
- static BackupPhoto* GetInstance()
- {
- static BackupPhoto obj;
- return &obj;
- }
- int LoadBakModule(IN LPCTSTR strDll); //加载备份模块
-
- BOOL InitBackupInfo(
- IN LPCTSTR lpDomain,
- IN LPCTSTR lpOrderNum,
- IN LPCTSTR lpDest, // 备份的目标目录,如:\\\\127.0.0.1\\客户原片备份(管理软件)$
- IN const BYTE byPhotoType, // 相片类型
- IN const BOOL bBakMImage
- );
- virtual BOOL InitShareDirData(
- IN const BOOL bEnable, //是否可用
- IN LPCTSTR lpBranchId, //域名
- IN LPCTSTR lpShareDir, //共享目录
- IN const BYTE byMinCapacity, //最小容量
- IN const BYTE byMaxCapacity, //最大容量
- IN const BYTE byPhotoType, //相片类型
- IN const BYTE byPriority //优先级
- );
- virtual BOOL InitShareDirData(LPTblNetShareInfo lp);
- int StartBackup(IN LPCTSTR lpLocalDomain, IN PFCALLBACK callbackfun/*回调函数通知备份完成*/);
- BOOL IsBackupping();
- private:
-
- void FreeBakModule(); //释放备份接口
- private:
- HINSTANCE m_hDllInst;
- CSC_BackupFactory* m_pFactory;
- ISC_BackupInterface* m_pInterface;
- };
- #endif //#ifndef __BACKUPORDERLOGMGR_H__
|