- 時間撮記:
- 2014-6-5 下午02:38:31 (10 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp
r51489 r51556 26 26 #include "AutoCaller.h" 27 27 28 #include <algorithm> /* For std::find(). */ 28 29 #include <iprt/cpp/utils.h> /* For unconst(). */ 29 30 … … 90 91 } 91 92 92 // implementation of wrapped private getters/setters for attributes 93 // implementation of wrapped IDnDBase methods. 94 ///////////////////////////////////////////////////////////////////////////// 95 96 HRESULT GuestDnDTarget::isFormatSupported(const com::Utf8Str &aFormat, 97 BOOL *aSupported) 98 { 99 #if !defined(VBOX_WITH_DRAG_AND_DROP) || !defined(VBOX_WITH_DRAG_AND_DROP_GH) 100 ReturnComNotImplemented(); 101 #else /* VBOX_WITH_DRAG_AND_DROP */ 102 103 return GuestDnDBase::isFormatSupported(aFormat, aSupported); 104 #endif /* VBOX_WITH_DRAG_AND_DROP */ 105 } 106 107 HRESULT GuestDnDTarget::getFormats(std::vector<com::Utf8Str> &aFormats) 108 { 109 #if !defined(VBOX_WITH_DRAG_AND_DROP) || !defined(VBOX_WITH_DRAG_AND_DROP_GH) 110 ReturnComNotImplemented(); 111 #else /* VBOX_WITH_DRAG_AND_DROP */ 112 113 return GuestDnDBase::getFormats(aFormats); 114 #endif /* VBOX_WITH_DRAG_AND_DROP */ 115 } 116 117 HRESULT GuestDnDTarget::addFormats(const std::vector<com::Utf8Str> &aFormats) 118 { 119 #if !defined(VBOX_WITH_DRAG_AND_DROP) || !defined(VBOX_WITH_DRAG_AND_DROP_GH) 120 ReturnComNotImplemented(); 121 #else /* VBOX_WITH_DRAG_AND_DROP */ 122 123 return GuestDnDBase::addFormats(aFormats); 124 #endif /* VBOX_WITH_DRAG_AND_DROP */ 125 } 126 127 HRESULT GuestDnDTarget::removeFormats(const std::vector<com::Utf8Str> &aFormats) 128 { 129 #if !defined(VBOX_WITH_DRAG_AND_DROP) || !defined(VBOX_WITH_DRAG_AND_DROP_GH) 130 ReturnComNotImplemented(); 131 #else /* VBOX_WITH_DRAG_AND_DROP */ 132 133 return GuestDnDBase::removeFormats(aFormats); 134 #endif /* VBOX_WITH_DRAG_AND_DROP */ 135 } 136 137 // implementation of wrapped IDnDTarget methods. 93 138 ///////////////////////////////////////////////////////////////////////////// 94 139 … … 127 172 128 173 /* Make a flat data string out of the supported format list. */ 129 Utf8Str strFormats = GuestDnD::toFormatString(GuestDnDInst()->supportedFormats(), 130 aFormats); 174 Utf8Str strFormats = GuestDnD::toFormatString(m_strFormats, aFormats); 131 175 /* If there is no valid supported format, ignore this request. */ 132 176 if (strFormats.isEmpty()) … … 195 239 196 240 /* Make a flat data string out of the supported format list. */ 197 RTCString strFormats = GuestDnD::toFormatString(GuestDnDInst()->supportedFormats(), 198 aFormats); 241 RTCString strFormats = GuestDnD::toFormatString(m_strFormats, aFormats); 199 242 /* If there is no valid supported format, ignore this request. */ 200 243 if (strFormats.isEmpty()) … … 288 331 289 332 /* Make a flat data string out of the supported format list. */ 290 Utf8Str strFormats = GuestDnD::toFormatString(GuestDnDInst()->supportedFormats(), 291 aFormats); 333 Utf8Str strFormats = GuestDnD::toFormatString(m_strFormats, aFormats); 292 334 /* If there is no valid supported format, ignore this request. */ 293 335 if (strFormats.isEmpty())
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器