VirtualBox

Changeset 50528 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Feb 20, 2014 7:13:18 PM (11 years ago)
Author:
vboxsync
Message:

6813 - src-client/GuestFsObjInfoImpl.cpp wrapper issues sorted

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp

    r50516 r50528  
    55
    66/*
    7  * Copyright (C) 2012 Oracle Corporation
     7 * Copyright (C) 2012-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    8787}
    8888
    89 // implementation of public getters/setters for attributes
     89// implementation of wrapped private getters/setters for attributes
    9090/////////////////////////////////////////////////////////////////////////////
    9191
    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);
     92HRESULT GuestFsObjInfo::getAccessTime(LONG64 *aAccessTime)
     93{
     94#ifndef VBOX_WITH_GUEST_CONTROL
     95    ReturnComNotImplemented();
     96#else
    10197
    10298    *aAccessTime = mData.mAccessTime;
     
    106102}
    107103
    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);
     104HRESULT GuestFsObjInfo::getAllocatedSize(LONG64 *aAllocatedSize)
     105{
     106#ifndef VBOX_WITH_GUEST_CONTROL
     107    ReturnComNotImplemented();
     108#else
    117109
    118110    *aAllocatedSize = mData.mAllocatedSize;
     
    122114}
    123115
    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);
     116HRESULT GuestFsObjInfo::getBirthTime(LONG64 *aBirthTime)
     117{
     118#ifndef VBOX_WITH_GUEST_CONTROL
     119    ReturnComNotImplemented();
     120#else
    133121
    134122    *aBirthTime = mData.mBirthTime;
     
    138126}
    139127
    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);
     128HRESULT GuestFsObjInfo::getChangeTime(LONG64 *aChangeTime)
     129{
     130#ifndef VBOX_WITH_GUEST_CONTROL
     131    ReturnComNotImplemented();
     132#else
    149133
    150134    *aChangeTime = mData.mChangeTime;
     
    154138}
    155139
    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
     142HRESULT GuestFsObjInfo::getDeviceNumber(ULONG *aDeviceNumber)
     143{
     144#ifndef VBOX_WITH_GUEST_CONTROL
     145    ReturnComNotImplemented();
     146#else
    165147
    166148    *aDeviceNumber = mData.mDeviceNumber;
     
    170152}
    171153
    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);
     154HRESULT 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
     166HRESULT GuestFsObjInfo::getGenerationId(ULONG *aGenerationId)
     167{
     168#ifndef VBOX_WITH_GUEST_CONTROL
     169    ReturnComNotImplemented();
     170#else
    197171
    198172    *aGenerationId = mData.mGenerationID;
     
    202176}
    203177
    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);
     178HRESULT GuestFsObjInfo::getGID(ULONG *aGID)
     179{
     180#ifndef VBOX_WITH_GUEST_CONTROL
     181    ReturnComNotImplemented();
     182#else
    213183
    214184    *aGID = mData.mGID;
     
    218188}
    219189
    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);
     190HRESULT 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
     202HRESULT GuestFsObjInfo::getHardLinks(ULONG *aHardLinks)
     203{
     204#ifndef VBOX_WITH_GUEST_CONTROL
     205    ReturnComNotImplemented();
     206#else
    245207
    246208    *aHardLinks = mData.mNumHardLinks;
     
    250212}
    251213
    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);
     214HRESULT GuestFsObjInfo::getModificationTime(LONG64 *aModificationTime)
     215{
     216#ifndef VBOX_WITH_GUEST_CONTROL
     217    ReturnComNotImplemented();
     218#else
    261219
    262220    *aModificationTime = mData.mModificationTime;
     
    266224}
    267225
    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);
     226HRESULT 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
     238HRESULT GuestFsObjInfo::getNodeId(LONG64 *aNodeId)
     239{
     240#ifndef VBOX_WITH_GUEST_CONTROL
     241    ReturnComNotImplemented();
     242#else
    293243
    294244    *aNodeId = mData.mNodeID;
     
    298248}
    299249
    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);
     250HRESULT GuestFsObjInfo::getNodeIdDevice(ULONG *aNodeIdDevice)
     251{
     252#ifndef VBOX_WITH_GUEST_CONTROL
     253    ReturnComNotImplemented();
     254#else
    309255
    310256    *aNodeIdDevice = mData.mNodeIDDevice;
     
    314260}
    315261
    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);
     262HRESULT GuestFsObjInfo::getObjectSize(LONG64 *aObjectSize)
     263{
     264#ifndef VBOX_WITH_GUEST_CONTROL
     265    ReturnComNotImplemented();
     266#else
    325267
    326268    *aObjectSize = mData.mObjectSize;
     
    330272}
    331273
    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);
     274HRESULT GuestFsObjInfo::getType(FsObjType_T *aType)
     275{
     276#ifndef VBOX_WITH_GUEST_CONTROL
     277    ReturnComNotImplemented();
     278#else
    341279
    342280    *aType = mData.mType;
     
    346284}
    347285
    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);
     286HRESULT GuestFsObjInfo::getUID(ULONG *aUID)
     287{
     288#ifndef VBOX_WITH_GUEST_CONTROL
     289    ReturnComNotImplemented();
     290#else
    357291
    358292    *aUID = mData.mUID;
     
    362296}
    363297
    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);
     298HRESULT GuestFsObjInfo::getUserFlags(ULONG *aUserFlags)
     299{
     300#ifndef VBOX_WITH_GUEST_CONTROL
     301    ReturnComNotImplemented();
     302#else
    373303
    374304    *aUserFlags = mData.mUserFlags;
     
    378308}
    379309
    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 
     310HRESULT 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  
    7373NS_DECL_CLASSINFO(GuestFile)
    7474NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestFile, IGuestFile, IFile)
    75 NS_DECL_CLASSINFO(GuestFsObjInfo)
    76 NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestFsObjInfo, IGuestFsObjInfo, IFsObjInfo)
    7775NS_DECL_CLASSINFO(GuestProcess)
    7876NS_IMPL_THREADSAFE_ISUPPORTS2_CI(GuestProcess, IGuestProcess, IProcess)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette