Changeset 50528 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Feb 20, 2014 7:13:18 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/trunk/src (added) merged: 92342
- Property svn:mergeinfo changed
-
trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp
r50516 r50528 5 5 6 6 /* 7 * Copyright (C) 2012 Oracle Corporation7 * Copyright (C) 2012-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 87 87 } 88 88 89 // implementation of publicgetters/setters for attributes89 // implementation of wrapped private getters/setters for attributes 90 90 ///////////////////////////////////////////////////////////////////////////// 91 91 92 STDMETHODIMP GuestFsObjInfo::COMGETTER(AccessTime)(LONG64 *aAccessTime) 93 { 94 #ifndef VBOX_WITH_GUEST_CONTROL 95 ReturnComNotImplemented(); 96 #else 97 AutoCaller autoCaller(this); 98 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 99 100 CheckComArgOutPointerValid(aAccessTime); 92 HRESULT GuestFsObjInfo::getAccessTime(LONG64 *aAccessTime) 93 { 94 #ifndef VBOX_WITH_GUEST_CONTROL 95 ReturnComNotImplemented(); 96 #else 101 97 102 98 *aAccessTime = mData.mAccessTime; … … 106 102 } 107 103 108 STDMETHODIMP GuestFsObjInfo::COMGETTER(AllocatedSize)(LONG64 *aAllocatedSize) 109 { 110 #ifndef VBOX_WITH_GUEST_CONTROL 111 ReturnComNotImplemented(); 112 #else 113 AutoCaller autoCaller(this); 114 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 115 116 CheckComArgOutPointerValid(aAllocatedSize); 104 HRESULT GuestFsObjInfo::getAllocatedSize(LONG64 *aAllocatedSize) 105 { 106 #ifndef VBOX_WITH_GUEST_CONTROL 107 ReturnComNotImplemented(); 108 #else 117 109 118 110 *aAllocatedSize = mData.mAllocatedSize; … … 122 114 } 123 115 124 STDMETHODIMP GuestFsObjInfo::COMGETTER(BirthTime)(LONG64 *aBirthTime) 125 { 126 #ifndef VBOX_WITH_GUEST_CONTROL 127 ReturnComNotImplemented(); 128 #else 129 AutoCaller autoCaller(this); 130 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 131 132 CheckComArgOutPointerValid(aBirthTime); 116 HRESULT GuestFsObjInfo::getBirthTime(LONG64 *aBirthTime) 117 { 118 #ifndef VBOX_WITH_GUEST_CONTROL 119 ReturnComNotImplemented(); 120 #else 133 121 134 122 *aBirthTime = mData.mBirthTime; … … 138 126 } 139 127 140 STDMETHODIMP GuestFsObjInfo::COMGETTER(ChangeTime)(LONG64 *aChangeTime) 141 { 142 #ifndef VBOX_WITH_GUEST_CONTROL 143 ReturnComNotImplemented(); 144 #else 145 AutoCaller autoCaller(this); 146 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 147 148 CheckComArgOutPointerValid(aChangeTime); 128 HRESULT GuestFsObjInfo::getChangeTime(LONG64 *aChangeTime) 129 { 130 #ifndef VBOX_WITH_GUEST_CONTROL 131 ReturnComNotImplemented(); 132 #else 149 133 150 134 *aChangeTime = mData.mChangeTime; … … 154 138 } 155 139 156 STDMETHODIMP GuestFsObjInfo::COMGETTER(DeviceNumber)(ULONG *aDeviceNumber) 157 { 158 #ifndef VBOX_WITH_GUEST_CONTROL 159 ReturnComNotImplemented(); 160 #else 161 AutoCaller autoCaller(this); 162 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 163 164 CheckComArgOutPointerValid(aDeviceNumber); 140 141 142 HRESULT GuestFsObjInfo::getDeviceNumber(ULONG *aDeviceNumber) 143 { 144 #ifndef VBOX_WITH_GUEST_CONTROL 145 ReturnComNotImplemented(); 146 #else 165 147 166 148 *aDeviceNumber = mData.mDeviceNumber; … … 170 152 } 171 153 172 STDMETHODIMP GuestFsObjInfo::COMGETTER(FileAttributes)(BSTR *aAttributes) 173 { 174 #ifndef VBOX_WITH_GUEST_CONTROL 175 ReturnComNotImplemented(); 176 #else 177 AutoCaller autoCaller(this); 178 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 179 180 CheckComArgOutPointerValid(aAttributes); 181 182 mData.mFileAttrs.cloneTo(aAttributes); 183 184 return S_OK; 185 #endif /* VBOX_WITH_GUEST_CONTROL */ 186 } 187 188 STDMETHODIMP GuestFsObjInfo::COMGETTER(GenerationId)(ULONG *aGenerationId) 189 { 190 #ifndef VBOX_WITH_GUEST_CONTROL 191 ReturnComNotImplemented(); 192 #else 193 AutoCaller autoCaller(this); 194 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 195 196 CheckComArgOutPointerValid(aGenerationId); 154 HRESULT GuestFsObjInfo::getFileAttributes(com::Utf8Str &aFileAttributes) 155 { 156 #ifndef VBOX_WITH_GUEST_CONTROL 157 ReturnComNotImplemented(); 158 #else 159 160 aFileAttributes = mData.mFileAttrs; 161 162 return S_OK; 163 #endif /* VBOX_WITH_GUEST_CONTROL */ 164 } 165 166 HRESULT GuestFsObjInfo::getGenerationId(ULONG *aGenerationId) 167 { 168 #ifndef VBOX_WITH_GUEST_CONTROL 169 ReturnComNotImplemented(); 170 #else 197 171 198 172 *aGenerationId = mData.mGenerationID; … … 202 176 } 203 177 204 STDMETHODIMP GuestFsObjInfo::COMGETTER(GID)(ULONG *aGID) 205 { 206 #ifndef VBOX_WITH_GUEST_CONTROL 207 ReturnComNotImplemented(); 208 #else 209 AutoCaller autoCaller(this); 210 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 211 212 CheckComArgOutPointerValid(aGID); 178 HRESULT GuestFsObjInfo::getGID(ULONG *aGID) 179 { 180 #ifndef VBOX_WITH_GUEST_CONTROL 181 ReturnComNotImplemented(); 182 #else 213 183 214 184 *aGID = mData.mGID; … … 218 188 } 219 189 220 STDMETHODIMP GuestFsObjInfo::COMGETTER(GroupName)(BSTR *aGroupName) 221 { 222 #ifndef VBOX_WITH_GUEST_CONTROL 223 ReturnComNotImplemented(); 224 #else 225 AutoCaller autoCaller(this); 226 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 227 228 CheckComArgOutPointerValid(aGroupName); 229 230 mData.mGroupName.cloneTo(aGroupName); 231 232 return S_OK; 233 #endif /* VBOX_WITH_GUEST_CONTROL */ 234 } 235 236 STDMETHODIMP GuestFsObjInfo::COMGETTER(HardLinks)(ULONG *aHardLinks) 237 { 238 #ifndef VBOX_WITH_GUEST_CONTROL 239 ReturnComNotImplemented(); 240 #else 241 AutoCaller autoCaller(this); 242 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 243 244 CheckComArgOutPointerValid(aHardLinks); 190 HRESULT GuestFsObjInfo::getGroupName(com::Utf8Str &aGroupName) 191 { 192 #ifndef VBOX_WITH_GUEST_CONTROL 193 ReturnComNotImplemented(); 194 #else 195 196 aGroupName = mData.mGroupName; 197 198 return S_OK; 199 #endif /* VBOX_WITH_GUEST_CONTROL */ 200 } 201 202 HRESULT GuestFsObjInfo::getHardLinks(ULONG *aHardLinks) 203 { 204 #ifndef VBOX_WITH_GUEST_CONTROL 205 ReturnComNotImplemented(); 206 #else 245 207 246 208 *aHardLinks = mData.mNumHardLinks; … … 250 212 } 251 213 252 STDMETHODIMP GuestFsObjInfo::COMGETTER(ModificationTime)(LONG64 *aModificationTime) 253 { 254 #ifndef VBOX_WITH_GUEST_CONTROL 255 ReturnComNotImplemented(); 256 #else 257 AutoCaller autoCaller(this); 258 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 259 260 CheckComArgOutPointerValid(aModificationTime); 214 HRESULT GuestFsObjInfo::getModificationTime(LONG64 *aModificationTime) 215 { 216 #ifndef VBOX_WITH_GUEST_CONTROL 217 ReturnComNotImplemented(); 218 #else 261 219 262 220 *aModificationTime = mData.mModificationTime; … … 266 224 } 267 225 268 STDMETHODIMP GuestFsObjInfo::COMGETTER(Name)(BSTR *aName) 269 { 270 #ifndef VBOX_WITH_GUEST_CONTROL 271 ReturnComNotImplemented(); 272 #else 273 AutoCaller autoCaller(this); 274 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 275 276 CheckComArgOutPointerValid(aName); 277 278 mData.mName.cloneTo(aName); 279 280 return S_OK; 281 #endif /* VBOX_WITH_GUEST_CONTROL */ 282 } 283 284 STDMETHODIMP GuestFsObjInfo::COMGETTER(NodeId)(LONG64 *aNodeId) 285 { 286 #ifndef VBOX_WITH_GUEST_CONTROL 287 ReturnComNotImplemented(); 288 #else 289 AutoCaller autoCaller(this); 290 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 291 292 CheckComArgOutPointerValid(aNodeId); 226 HRESULT GuestFsObjInfo::getName(com::Utf8Str &aName) 227 { 228 #ifndef VBOX_WITH_GUEST_CONTROL 229 ReturnComNotImplemented(); 230 #else 231 232 aName = mData.mName; 233 234 return S_OK; 235 #endif /* VBOX_WITH_GUEST_CONTROL */ 236 } 237 238 HRESULT GuestFsObjInfo::getNodeId(LONG64 *aNodeId) 239 { 240 #ifndef VBOX_WITH_GUEST_CONTROL 241 ReturnComNotImplemented(); 242 #else 293 243 294 244 *aNodeId = mData.mNodeID; … … 298 248 } 299 249 300 STDMETHODIMP GuestFsObjInfo::COMGETTER(NodeIdDevice)(ULONG *aNodeIdDevice) 301 { 302 #ifndef VBOX_WITH_GUEST_CONTROL 303 ReturnComNotImplemented(); 304 #else 305 AutoCaller autoCaller(this); 306 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 307 308 CheckComArgOutPointerValid(aNodeIdDevice); 250 HRESULT GuestFsObjInfo::getNodeIdDevice(ULONG *aNodeIdDevice) 251 { 252 #ifndef VBOX_WITH_GUEST_CONTROL 253 ReturnComNotImplemented(); 254 #else 309 255 310 256 *aNodeIdDevice = mData.mNodeIDDevice; … … 314 260 } 315 261 316 STDMETHODIMP GuestFsObjInfo::COMGETTER(ObjectSize)(LONG64 *aObjectSize) 317 { 318 #ifndef VBOX_WITH_GUEST_CONTROL 319 ReturnComNotImplemented(); 320 #else 321 AutoCaller autoCaller(this); 322 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 323 324 CheckComArgOutPointerValid(aObjectSize); 262 HRESULT GuestFsObjInfo::getObjectSize(LONG64 *aObjectSize) 263 { 264 #ifndef VBOX_WITH_GUEST_CONTROL 265 ReturnComNotImplemented(); 266 #else 325 267 326 268 *aObjectSize = mData.mObjectSize; … … 330 272 } 331 273 332 STDMETHODIMP GuestFsObjInfo::COMGETTER(Type)(FsObjType_T *aType) 333 { 334 #ifndef VBOX_WITH_GUEST_CONTROL 335 ReturnComNotImplemented(); 336 #else 337 AutoCaller autoCaller(this); 338 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 339 340 CheckComArgOutPointerValid(aType); 274 HRESULT GuestFsObjInfo::getType(FsObjType_T *aType) 275 { 276 #ifndef VBOX_WITH_GUEST_CONTROL 277 ReturnComNotImplemented(); 278 #else 341 279 342 280 *aType = mData.mType; … … 346 284 } 347 285 348 STDMETHODIMP GuestFsObjInfo::COMGETTER(UID)(ULONG *aUID) 349 { 350 #ifndef VBOX_WITH_GUEST_CONTROL 351 ReturnComNotImplemented(); 352 #else 353 AutoCaller autoCaller(this); 354 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 355 356 CheckComArgOutPointerValid(aUID); 286 HRESULT GuestFsObjInfo::getUID(ULONG *aUID) 287 { 288 #ifndef VBOX_WITH_GUEST_CONTROL 289 ReturnComNotImplemented(); 290 #else 357 291 358 292 *aUID = mData.mUID; … … 362 296 } 363 297 364 STDMETHODIMP GuestFsObjInfo::COMGETTER(UserFlags)(ULONG *aUserFlags) 365 { 366 #ifndef VBOX_WITH_GUEST_CONTROL 367 ReturnComNotImplemented(); 368 #else 369 AutoCaller autoCaller(this); 370 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 371 372 CheckComArgOutPointerValid(aUserFlags); 298 HRESULT GuestFsObjInfo::getUserFlags(ULONG *aUserFlags) 299 { 300 #ifndef VBOX_WITH_GUEST_CONTROL 301 ReturnComNotImplemented(); 302 #else 373 303 374 304 *aUserFlags = mData.mUserFlags; … … 378 308 } 379 309 380 STDMETHODIMP GuestFsObjInfo::COMGETTER(UserName)(BSTR *aUserName) 381 { 382 #ifndef VBOX_WITH_GUEST_CONTROL 383 ReturnComNotImplemented(); 384 #else 385 AutoCaller autoCaller(this); 386 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 387 388 CheckComArgOutPointerValid(aUserName); 389 390 mData.mUserName.cloneTo(aUserName); 391 392 return S_OK; 393 #endif /* VBOX_WITH_GUEST_CONTROL */ 394 } 395 396 STDMETHODIMP GuestFsObjInfo::COMGETTER(ACL)(BSTR *aACL) 397 { 398 #ifndef VBOX_WITH_GUEST_CONTROL 399 ReturnComNotImplemented(); 400 #else 401 AutoCaller autoCaller(this); 402 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 403 404 CheckComArgOutPointerValid(aACL); 405 406 mData.mACL.cloneTo(aACL); 407 408 return S_OK; 409 #endif /* VBOX_WITH_GUEST_CONTROL */ 410 } 411 310 HRESULT GuestFsObjInfo::getUserName(com::Utf8Str &aUserName) 311 { 312 #ifndef VBOX_WITH_GUEST_CONTROL 313 ReturnComNotImplemented(); 314 #else 315 316 aUserName = mData.mUserName; 317 318 return S_OK; 319 #endif /* VBOX_WITH_GUEST_CONTROL */ 320 } -
trunk/src/VBox/Main/src-client/xpcom/module.cpp
r50516 r50528 73 73 NS_DECL_CLASSINFO(GuestFile) 74 74 NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestFile, IGuestFile, IFile) 75 NS_DECL_CLASSINFO(GuestFsObjInfo)76 NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestFsObjInfo, IGuestFsObjInfo, IFsObjInfo)77 75 NS_DECL_CLASSINFO(GuestProcess) 78 76 NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestProcess, IGuestProcess, IProcess)
Note:
See TracChangeset
for help on using the changeset viewer.