Changeset 27796 in vbox for trunk/src/VBox/Main/ApplianceImpl.cpp
- Timestamp:
- Mar 29, 2010 4:04:55 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 59453
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r27792 r27796 748 748 { 749 749 TaskOVF(Appliance *aThat) 750 : pAppliance(aThat) 751 , rc(S_OK) {} 750 : pAppliance(aThat), 751 rc(S_OK) 752 {} 752 753 753 754 static int updateProgress(unsigned uPercent, void *pvUser); … … 759 760 }; 760 761 761 struct Appliance::TaskImportOVF : Appliance::TaskOVF762 struct Appliance::TaskImportOVF : Appliance::TaskOVF 762 763 { 763 764 enum TaskType … … 768 769 769 770 TaskImportOVF(Appliance *aThat) 770 : TaskOVF(aThat) 771 , taskType(Read) {} 771 : TaskOVF(aThat), 772 taskType(Read) 773 {} 772 774 773 775 int startThread(); … … 776 778 }; 777 779 778 struct Appliance::TaskExportOVF : Appliance::TaskOVF780 struct Appliance::TaskExportOVF : Appliance::TaskOVF 779 781 { 780 782 enum OVFFormat … … 790 792 791 793 TaskExportOVF(Appliance *aThat) 792 : TaskOVF(aThat) 793 , taskType(Write) {} 794 : TaskOVF(aThat), 795 taskType(Write) 796 {} 794 797 795 798 int startThread(); … … 813 816 Appliance::TaskOVF* pTask = *(Appliance::TaskOVF**)pvUser; 814 817 815 if ( pTask &&816 !pTask->progress.isNull())818 if ( pTask 819 && !pTask->progress.isNull()) 817 820 { 818 821 BOOL fCanceled; … … 871 874 } 872 875 876 /** 877 * Implementation of the import code. This gets called from the public Appliance::ImportMachines() 878 * method as well as Appliance::importS3(). 879 * @param aLocInfo 880 * @param aProgress 881 * @return 882 */ 873 883 HRESULT Appliance::importImpl(const LocationInfo &aLocInfo, ComObjPtr<Progress> &aProgress) 874 884 { … … 3956 3966 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3957 3967 3968 // do not allow entering this method if the appliance is busy reading or writing 3958 3969 if (!isApplianceIdle()) 3959 3970 return E_ACCESSDENIED; … … 3989 4000 3990 4001 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3991 3992 if (!isApplianceIdle())3993 return E_ACCESSDENIED;3994 4002 3995 4003 ComObjPtr<VFSExplorer> explorer; … … 4027 4035 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 4028 4036 4037 // do not allow entering this method if the appliance is busy reading or writing 4029 4038 if (!isApplianceIdle()) 4030 4039 return E_ACCESSDENIED; … … 4079 4088 4080 4089 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 4081 4082 if (!isApplianceIdle())4083 return E_ACCESSDENIED;4084 4090 4085 4091 com::SafeArray<BSTR> sfaWarnings(m->llWarnings.size());
Note:
See TracChangeset
for help on using the changeset viewer.