Changeset 50548 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Feb 21, 2014 7:53:11 PM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 92401
- Location:
- trunk/src/VBox/Main/src-client
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestDirectoryImpl.cpp
r50547 r50548 143 143 } 144 144 145 // implementation of p rivate wrappedgetters/setters for attributes145 // implementation of public getters/setters for attributes 146 146 ///////////////////////////////////////////////////////////////////////////// 147 147 148 HRESULT GuestDirectory::getDirectoryName(com::Utf8Str &aDirectoryName) 149 { 150 LogFlowThisFuncEnter(); 148 STDMETHODIMP GuestDirectory::COMGETTER(DirectoryName)(BSTR *aName) 149 { 150 LogFlowThisFuncEnter(); 151 152 CheckComArgOutPointerValid(aName); 153 154 AutoCaller autoCaller(this); 155 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 151 156 152 157 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 153 158 154 aDirectoryName = mData.mOpenInfo.mPath;159 mData.mOpenInfo.mPath.cloneTo(aName); 155 160 156 161 return S_OK; 157 162 } 158 163 159 HRESULT GuestDirectory::getFilter(com::Utf8Str &aFilter) 160 { 161 LogFlowThisFuncEnter(); 164 STDMETHODIMP GuestDirectory::COMGETTER(Filter)(BSTR *aFilter) 165 { 166 LogFlowThisFuncEnter(); 167 168 CheckComArgOutPointerValid(aFilter); 169 170 AutoCaller autoCaller(this); 171 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 162 172 163 173 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 164 174 165 aFilter = mData.mOpenInfo.mFilter;175 mData.mOpenInfo.mFilter.cloneTo(aFilter); 166 176 167 177 return S_OK; … … 219 229 220 230 /* static */ 221 Utf8Str GuestDirectory:: i_guestErrorToString(int guestRc)231 Utf8Str GuestDirectory::guestErrorToString(int guestRc) 222 232 { 223 233 Utf8Str strError; … … 253 263 254 264 /* static */ 255 HRESULT GuestDirectory:: i_setErrorExternal(VirtualBoxBase *pInterface, int guestRc)265 HRESULT GuestDirectory::setErrorExternal(VirtualBoxBase *pInterface, int guestRc) 256 266 { 257 267 AssertPtr(pInterface); 258 268 AssertMsg(RT_FAILURE(guestRc), ("Guest rc does not indicate a failure when setting error\n")); 259 269 260 return pInterface->setError(VBOX_E_IPRT_ERROR, GuestDirectory:: i_guestErrorToString(guestRc).c_str());270 return pInterface->setError(VBOX_E_IPRT_ERROR, GuestDirectory::guestErrorToString(guestRc).c_str()); 261 271 } 262 272 263 273 // implementation of public methods 264 274 ///////////////////////////////////////////////////////////////////////////// 265 HRESULT GuestDirectory::close() 275 276 STDMETHODIMP GuestDirectory::Close(void) 266 277 { 267 278 #ifndef VBOX_WITH_GUEST_CONTROL … … 308 319 } 309 320 310 HRESULT GuestDirectory::read(ComPtr<IFsObjInfo> &aObjInfo)321 STDMETHODIMP GuestDirectory::Read(IFsObjInfo **aInfo) 311 322 { 312 323 #ifndef VBOX_WITH_GUEST_CONTROL … … 359 370 { 360 371 /* Return info object to the caller. */ 361 hr2 = pFsObjInfo.queryInterfaceTo(a ObjInfo.asOutParam());372 hr2 = pFsObjInfo.queryInterfaceTo(aInfo); 362 373 if (FAILED(hr2)) 363 374 rc = VERR_COM_UNEXPECTED; -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r50547 r50548 2780 2780 2781 2781 case VERR_GSTCTL_GUEST_ERROR: 2782 hr = GuestDirectory:: i_setErrorExternal(this, guestRc);2782 hr = GuestDirectory::setErrorExternal(this, guestRc); 2783 2783 break; 2784 2784 … … 2885 2885 2886 2886 case VERR_GSTCTL_GUEST_ERROR: 2887 hr = GuestDirectory:: i_setErrorExternal(this, guestRc);2887 hr = GuestDirectory::setErrorExternal(this, guestRc); 2888 2888 break; 2889 2889 -
trunk/src/VBox/Main/src-client/xpcom/module.cpp
r50547 r50548 69 69 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(Guest, IGuest) 70 70 #ifdef VBOX_WITH_GUEST_CONTROL 71 NS_DECL_CLASSINFO(GuestDirectory) 72 NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestDirectory, IGuestDirectory, IDirectory) 71 73 NS_DECL_CLASSINFO(GuestFile) 72 74 NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestFile, IGuestFile, IFile)
Note:
See TracChangeset
for help on using the changeset viewer.