- 時間撮記:
- 2014-2-21 下午07:53:11 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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;
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器