Changeset 81393 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Oct 21, 2019 8:33:26 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImplMoveVM.h
r79955 r81393 49 49 typedef struct 50 50 { 51 RTCList<MEDIUMTASKMOVE> 51 RTCList<MEDIUMTASKMOVE> chain; 52 52 DeviceType_T devType; 53 53 bool fCreateDiffs; … … 66 66 class MachineMoveVM : public ThreadTask 67 67 { 68 struct ErrorInfoItem69 {70 ErrorInfoItem(HRESULT aCode, const char* aDescription)71 : m_code(aCode)72 , m_description(aDescription == NULL ? "There is no description" : aDescription)73 {74 }75 76 #ifdef DEBUG77 void logItem() const;78 #endif79 80 HRESULT m_code;81 Utf8Str m_description;82 };83 84 68 RTCList<MEDIUMTASKCHAINMOVE> m_llMedias; 85 69 RTCList<SAVESTATETASKMOVE> m_llSaveStateFiles; … … 91 75 ComObjPtr<Progress> m_pProgress; 92 76 ComObjPtr<Progress> m_pRollBackProgress; 93 ComPtr<ISession> m_pSession;94 ComPtr<IMachine> m_pSessionMachine;95 77 Utf8Str m_targetPath; 96 78 Utf8Str m_type; … … 116 98 117 99 HRESULT init(); 100 private: 118 101 static DECLCALLBACK(int) updateProgress(unsigned uPercent, void *pvUser); 119 102 static DECLCALLBACK(int) copyFileProgress(unsigned uPercentage, void *pvUser); 120 static void i_MoveVMThreadTask(MachineMoveVM *task);103 static void i_MoveVMThreadTask(MachineMoveVM *task); 121 104 105 public: 122 106 void handler() 123 107 { … … 125 109 } 126 110 127 HRESULT createMachineList(const ComPtr<ISnapshot> &pSnapshot, std::vector< ComObjPtr<Machine> > &aMachineList) const; 111 private: 112 HRESULT createMachineList(const ComPtr<ISnapshot> &pSnapshot, std::vector<ComObjPtr<Machine> > &aMachineList) const; 128 113 inline HRESULT queryBaseName(const ComPtr<IMedium> &pMedium, Utf8Str &strBaseName) const; 129 114 HRESULT queryMediasForAllStates(const std::vector<ComObjPtr<Machine> > &aMachineList); … … 131 116 HRESULT addSaveState(const ComObjPtr<Machine> &machine); 132 117 void printStateFile(settings::SnapshotsList &snl); 133 HRESULT getFilesList(const Utf8Str &strRootFolder, fileList_t &filesList);134 HRESULT getFolderSize(const Utf8Str & strRootFolder, uint64_t&size);135 HRESULT deleteFiles(const RTCList<Utf8Str> &listOfFiles);136 HRESULT updatePathsToStateFiles(const std::map<Utf8Str, SAVESTATETASKMOVE> &listOfFiles,137 const Utf8Str & sourcePath, const Utf8Str&targetPath);138 HRESULT moveAllDisks(const std::map<Utf8Str, MEDIUMTASKMOVE> & listOfDisks, const Utf8Str* strTargetFolder = NULL);139 HRESULT restoreAllDisks(const std::map<Utf8Str, MEDIUMTASKMOVE> &listOfDisks);118 HRESULT getFilesList(const Utf8Str &strRootFolder, fileList_t &filesList); 119 HRESULT getFolderSize(const Utf8Str &strRootFolder, uint64_t &size); 120 HRESULT deleteFiles(const RTCList<Utf8Str> &listOfFiles); 121 HRESULT updatePathsToStateFiles(const std::map<Utf8Str, SAVESTATETASKMOVE> &listOfFiles, 122 const Utf8Str &sourcePath, const Utf8Str &targetPath); 123 HRESULT moveAllDisks(const std::map<Utf8Str, MEDIUMTASKMOVE> &listOfDisks, const Utf8Str &strTargetFolder = Utf8Str::Empty); 124 HRESULT restoreAllDisks(const std::map<Utf8Str, MEDIUMTASKMOVE> &listOfDisks); 140 125 HRESULT isMediumTypeSupportedForMoving(const ComPtr<IMedium> &pMedium); 141 126 };
Note:
See TracChangeset
for help on using the changeset viewer.