BackupPhoto.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. #ifndef __BACKUPPHOTO_H__
  2. #define __BACKUPPHOTO_H__
  3. #include "BackupFactory.h"
  4. #include "BackupInterface.h"
  5. class CLock;
  6. class DataBaseOpt;
  7. typedef struct ST_TblNetShareInfo TblNetShareInfo, *LPTblNetShareInfo;;
  8. class BackupPhoto
  9. {
  10. BackupPhoto();
  11. public:
  12. ~BackupPhoto();
  13. static BackupPhoto* GetInstance()
  14. {
  15. static BackupPhoto obj;
  16. return &obj;
  17. }
  18. int LoadBakModule(IN LPCTSTR strDll); //加载备份模块
  19. BOOL InitBackupInfo(
  20. IN LPCTSTR lpDomain,
  21. IN LPCTSTR lpOrderNum,
  22. IN LPCTSTR lpDest, // 备份的目标目录,如:\\\\127.0.0.1\\客户原片备份(管理软件)$
  23. IN const BYTE byPhotoType, // 相片类型
  24. IN const BOOL bBakMImage
  25. );
  26. virtual BOOL InitShareDirData(
  27. IN const BOOL bEnable, //是否可用
  28. IN LPCTSTR lpBranchId, //域名
  29. IN LPCTSTR lpShareDir, //共享目录
  30. IN const BYTE byMinCapacity, //最小容量
  31. IN const BYTE byMaxCapacity, //最大容量
  32. IN const BYTE byPhotoType, //相片类型
  33. IN const BYTE byPriority //优先级
  34. );
  35. virtual BOOL InitShareDirData(LPTblNetShareInfo lp);
  36. int StartBackup(IN LPCTSTR lpLocalDomain, IN PFCALLBACK callbackfun/*回调函数通知备份完成*/);
  37. BOOL IsBackupping();
  38. private:
  39. void FreeBakModule(); //释放备份接口
  40. private:
  41. HINSTANCE m_hDllInst;
  42. CSC_BackupFactory* m_pFactory;
  43. ISC_BackupInterface* m_pInterface;
  44. };
  45. #endif //#ifndef __BACKUPORDERLOGMGR_H__