Changeset 25903 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Jan 18, 2010 6:15:43 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56719
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/MachineImpl.h
r25901 r25903 889 889 IProgress *aProgress, 890 890 ULONG aWeight, 891 bool aOnline); 892 HRESULT deleteImplicitDiffs(); 891 bool aOnline, 892 bool *pfNeedsSaveSettings); 893 HRESULT deleteImplicitDiffs(bool *pfNeedsSaveSettings); 893 894 894 895 MediumAttachment* findAttachment(const MediaData::AttachmentList &ll, … … 901 902 Guid &id); 902 903 903 void fixupMedia(bool aCommit, bool aOnline = false); 904 void commitMedia(bool aOnline = false); 905 void rollbackMedia(); 904 906 905 907 bool isInOwnDir(Utf8Str *aSettingsDir = NULL); … … 1088 1090 1089 1091 HRESULT endSavingState(BOOL aSuccess); 1090 HRESULT endTakingSnapshot(BOOL aSuccess);1091 1092 1092 1093 typedef std::map<ComObjPtr<Machine>, MachineState_T> AffectedMachines; -
trunk/src/VBox/Main/include/MediumImpl.h
r25888 r25903 78 78 HRESULT init(VirtualBox *aVirtualBox, 79 79 CBSTR aFormat, 80 CBSTR aLocation); 80 CBSTR aLocation, 81 bool *pfNeedsSaveSettings); 81 82 HRESULT init(VirtualBox *aVirtualBox, 82 83 CBSTR aLocation, … … 193 194 */ 194 195 HRESULT deleteStorageNoWait(ComObjPtr<Progress> &aProgress) 195 { return deleteStorage(&aProgress, false /* aWait */ ); }196 { return deleteStorage(&aProgress, false /* aWait */, NULL /* pfNeedsSaveSettings */); } 196 197 197 198 /** … … 199 200 * blocking the current thread. 200 201 */ 201 HRESULT deleteStorageAndWait(ComObjPtr<Progress> *aProgress = NULL)202 { return deleteStorage(aProgress, true /* aWait */ ); }202 HRESULT deleteStorageAndWait(ComObjPtr<Progress> *aProgress, bool *pfNeedsSaveSettings) 203 { return deleteStorage(aProgress, true /* aWait */, pfNeedsSaveSettings); } 203 204 204 205 /** … … 209 210 MediumVariant_T aVariant, 210 211 ComObjPtr<Progress> &aProgress) 211 { return createDiffStorage(aTarget, aVariant, &aProgress, false /* aWait */ ); }212 { return createDiffStorage(aTarget, aVariant, &aProgress, false /* aWait */, NULL /* pfNeedsSaveSettings*/ ); } 212 213 213 214 /** … … 217 218 HRESULT createDiffStorageAndWait(ComObjPtr<Medium> &aTarget, 218 219 MediumVariant_T aVariant, 219 ComObjPtr<Progress> *aProgress = NULL)220 { return createDiffStorage(aTarget, aVariant, aProgress, true /* aWait */); }220 bool *pfNeedsSaveSettings) 221 { return createDiffStorage(aTarget, aVariant, NULL /*aProgress*/, true /* aWait */, pfNeedsSaveSettings); } 221 222 222 223 HRESULT prepareMergeTo(Medium *aTarget, MergeChain * &aChain, … … 229 230 HRESULT mergeToNoWait(MergeChain *aChain, 230 231 ComObjPtr<Progress> &aProgress) 231 { return mergeTo(aChain, &aProgress, false /* aWait */ ); }232 { return mergeTo(aChain, &aProgress, false /* aWait */, NULL /*pfNeedsSaveSettings*/); } 232 233 233 234 /** … … 236 237 */ 237 238 HRESULT mergeToAndWait(MergeChain *aChain, 238 ComObjPtr<Progress> *aProgress = NULL) 239 { return mergeTo(aChain, aProgress, true /* aWait */); } 239 ComObjPtr<Progress> *aProgress, 240 bool *pfNeedsSaveSettings) 241 { return mergeTo(aChain, aProgress, true /* aWait */, pfNeedsSaveSettings); } 240 242 241 243 void cancelMergeTo(MergeChain *aChain); … … 244 246 245 247 HRESULT prepareDiscard(MergeChain * &aChain); 246 HRESULT discard(ComObjPtr<Progress> &aProgress, ULONG ulWeight, MergeChain *aChain );248 HRESULT discard(ComObjPtr<Progress> &aProgress, ULONG ulWeight, MergeChain *aChain, bool *pfNeedsSaveSettings); 247 249 void cancelDiscard(MergeChain *aChain); 248 250 … … 273 275 * this object's AutoMayUninitSpan and from under mVirtualBox write lock. 274 276 */ 275 HRESULT unregisterWithVirtualBox( );277 HRESULT unregisterWithVirtualBox(bool *pfNeedsSaveSettings); 276 278 277 279 HRESULT setStateError(); 278 280 279 HRESULT deleteStorage(ComObjPtr<Progress> *aProgress, bool aWait );281 HRESULT deleteStorage(ComObjPtr<Progress> *aProgress, bool aWait, bool *pfNeedsSaveSettings); 280 282 281 283 HRESULT createDiffStorage(ComObjPtr<Medium> &aTarget, 282 284 MediumVariant_T aVariant, 283 285 ComObjPtr<Progress> *aProgress, 284 bool aWait); 286 bool aWait, 287 bool *pfNeedsSaveSettings); 285 288 286 289 HRESULT mergeTo(MergeChain *aChain, 287 290 ComObjPtr<Progress> *aProgress, 288 bool aWait); 291 bool aWait, 292 bool *pfNeedsSaveSettings); 289 293 290 294 HRESULT setLocation(const Utf8Str &aLocation, const Utf8Str &aFormat = Utf8Str()); -
trunk/src/VBox/Main/include/VirtualBoxImpl.h
r25834 r25903 274 274 void calculateRelativePath(const Utf8Str &strPath, Utf8Str &aResult); 275 275 276 HRESULT registerHardDisk(Medium *aHardDisk, bool aSaveRegistry = true);277 HRESULT unregisterHardDisk(Medium *aHardDisk, bool aSaveRegistry = true);278 279 HRESULT registerImage(Medium *aImage, DeviceType_T argType, bool aSaveRegistry = true);280 HRESULT unregisterImage(Medium *aImage, DeviceType_T argType, bool aSaveRegistry = true);276 HRESULT registerHardDisk(Medium *aHardDisk, bool *pfNeedsSaveSettings); 277 HRESULT unregisterHardDisk(Medium *aHardDisk, bool *pfNeedsSaveSettings); 278 279 HRESULT registerImage(Medium *aImage, DeviceType_T argType, bool *pfNeedsSaveSettings); 280 HRESULT unregisterImage(Medium *aImage, DeviceType_T argType, bool *pfNeedsSaveSettings); 281 281 282 282 HRESULT saveSettings(); … … 289 289 const Utf8Str& settingsFilePath(); 290 290 291 RWLockHandle& hardDiskTreeLockHandle();291 RWLockHandle& getMediaTreeLockHandle(); 292 292 293 293 /* for VirtualBoxSupportErrorInfoImpl */
Note:
See TracChangeset
for help on using the changeset viewer.