VirtualBox

Ignore:
Timestamp:
May 4, 2015 1:39:18 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100020
Message:

Removed 106 #ifdef/#ifndef VBOX_WITH_GUEST_CONTROL statements that was never really necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp

    r55613 r55645  
    55
    66/*
    7  * Copyright (C) 2012-2014 Oracle Corporation
     7 * Copyright (C) 2012-2015 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2020*   Header Files                                                               *
    2121*******************************************************************************/
     22#ifndef VBOX_WITH_GUEST_CONTROL
     23# error "VBOX_WITH_GUEST_CONTROL must defined in this file"
     24#endif
    2225#include "GuestFsObjInfoImpl.h"
    2326#include "GuestCtrlImplPrivate.h"
     
    9295HRESULT GuestFsObjInfo::getAccessTime(LONG64 *aAccessTime)
    9396{
    94 #ifndef VBOX_WITH_GUEST_CONTROL
    95     ReturnComNotImplemented();
    96 #else
    97 
    9897    *aAccessTime = mData.mAccessTime;
    9998
    10099    return S_OK;
    101 #endif /* VBOX_WITH_GUEST_CONTROL */
    102100}
    103101
    104102HRESULT GuestFsObjInfo::getAllocatedSize(LONG64 *aAllocatedSize)
    105103{
    106 #ifndef VBOX_WITH_GUEST_CONTROL
    107     ReturnComNotImplemented();
    108 #else
    109 
    110104    *aAllocatedSize = mData.mAllocatedSize;
    111105
    112106    return S_OK;
    113 #endif /* VBOX_WITH_GUEST_CONTROL */
    114107}
    115108
    116109HRESULT GuestFsObjInfo::getBirthTime(LONG64 *aBirthTime)
    117110{
    118 #ifndef VBOX_WITH_GUEST_CONTROL
    119     ReturnComNotImplemented();
    120 #else
    121 
    122111    *aBirthTime = mData.mBirthTime;
    123112
    124113    return S_OK;
    125 #endif /* VBOX_WITH_GUEST_CONTROL */
    126114}
    127115
    128116HRESULT GuestFsObjInfo::getChangeTime(LONG64 *aChangeTime)
    129117{
    130 #ifndef VBOX_WITH_GUEST_CONTROL
    131     ReturnComNotImplemented();
    132 #else
    133 
    134118    *aChangeTime = mData.mChangeTime;
    135119
    136120    return S_OK;
    137 #endif /* VBOX_WITH_GUEST_CONTROL */
    138121}
    139122
     
    142125HRESULT GuestFsObjInfo::getDeviceNumber(ULONG *aDeviceNumber)
    143126{
    144 #ifndef VBOX_WITH_GUEST_CONTROL
    145     ReturnComNotImplemented();
    146 #else
    147 
    148127    *aDeviceNumber = mData.mDeviceNumber;
    149128
    150129    return S_OK;
    151 #endif /* VBOX_WITH_GUEST_CONTROL */
    152130}
    153131
    154132HRESULT GuestFsObjInfo::getFileAttributes(com::Utf8Str &aFileAttributes)
    155133{
    156 #ifndef VBOX_WITH_GUEST_CONTROL
    157     ReturnComNotImplemented();
    158 #else
    159 
    160134    aFileAttributes = mData.mFileAttrs;
    161135
    162136    return S_OK;
    163 #endif /* VBOX_WITH_GUEST_CONTROL */
    164137}
    165138
    166139HRESULT GuestFsObjInfo::getGenerationId(ULONG *aGenerationId)
    167140{
    168 #ifndef VBOX_WITH_GUEST_CONTROL
    169     ReturnComNotImplemented();
    170 #else
    171 
    172141    *aGenerationId = mData.mGenerationID;
    173142
    174143    return S_OK;
    175 #endif /* VBOX_WITH_GUEST_CONTROL */
    176144}
    177145
    178146HRESULT GuestFsObjInfo::getGID(ULONG *aGID)
    179147{
    180 #ifndef VBOX_WITH_GUEST_CONTROL
    181     ReturnComNotImplemented();
    182 #else
    183 
    184148    *aGID = mData.mGID;
    185149
    186150    return S_OK;
    187 #endif /* VBOX_WITH_GUEST_CONTROL */
    188151}
    189152
    190153HRESULT GuestFsObjInfo::getGroupName(com::Utf8Str &aGroupName)
    191154{
    192 #ifndef VBOX_WITH_GUEST_CONTROL
    193     ReturnComNotImplemented();
    194 #else
    195 
    196155    aGroupName = mData.mGroupName;
    197156
    198157    return S_OK;
    199 #endif /* VBOX_WITH_GUEST_CONTROL */
    200158}
    201159
    202160HRESULT GuestFsObjInfo::getHardLinks(ULONG *aHardLinks)
    203161{
    204 #ifndef VBOX_WITH_GUEST_CONTROL
    205     ReturnComNotImplemented();
    206 #else
    207 
    208162    *aHardLinks = mData.mNumHardLinks;
    209163
    210164    return S_OK;
    211 #endif /* VBOX_WITH_GUEST_CONTROL */
    212165}
    213166
    214167HRESULT GuestFsObjInfo::getModificationTime(LONG64 *aModificationTime)
    215168{
    216 #ifndef VBOX_WITH_GUEST_CONTROL
    217     ReturnComNotImplemented();
    218 #else
    219 
    220169    *aModificationTime = mData.mModificationTime;
    221170
    222171    return S_OK;
    223 #endif /* VBOX_WITH_GUEST_CONTROL */
    224172}
    225173
    226174HRESULT GuestFsObjInfo::getName(com::Utf8Str &aName)
    227175{
    228 #ifndef VBOX_WITH_GUEST_CONTROL
    229     ReturnComNotImplemented();
    230 #else
    231 
    232176    aName = mData.mName;
    233177
    234178    return S_OK;
    235 #endif /* VBOX_WITH_GUEST_CONTROL */
    236179}
    237180
    238181HRESULT GuestFsObjInfo::getNodeId(LONG64 *aNodeId)
    239182{
    240 #ifndef VBOX_WITH_GUEST_CONTROL
    241     ReturnComNotImplemented();
    242 #else
    243 
    244183    *aNodeId = mData.mNodeID;
    245184
    246185    return S_OK;
    247 #endif /* VBOX_WITH_GUEST_CONTROL */
    248186}
    249187
    250188HRESULT GuestFsObjInfo::getNodeIdDevice(ULONG *aNodeIdDevice)
    251189{
    252 #ifndef VBOX_WITH_GUEST_CONTROL
    253     ReturnComNotImplemented();
    254 #else
    255 
    256190    *aNodeIdDevice = mData.mNodeIDDevice;
    257191
    258192    return S_OK;
    259 #endif /* VBOX_WITH_GUEST_CONTROL */
    260193}
    261194
    262195HRESULT GuestFsObjInfo::getObjectSize(LONG64 *aObjectSize)
    263196{
    264 #ifndef VBOX_WITH_GUEST_CONTROL
    265     ReturnComNotImplemented();
    266 #else
    267 
    268197    *aObjectSize = mData.mObjectSize;
    269198
    270199    return S_OK;
    271 #endif /* VBOX_WITH_GUEST_CONTROL */
    272200}
    273201
    274202HRESULT GuestFsObjInfo::getType(FsObjType_T *aType)
    275203{
    276 #ifndef VBOX_WITH_GUEST_CONTROL
    277     ReturnComNotImplemented();
    278 #else
    279 
    280204    *aType = mData.mType;
    281205
    282206    return S_OK;
    283 #endif /* VBOX_WITH_GUEST_CONTROL */
    284207}
    285208
    286209HRESULT GuestFsObjInfo::getUID(ULONG *aUID)
    287210{
    288 #ifndef VBOX_WITH_GUEST_CONTROL
    289     ReturnComNotImplemented();
    290 #else
    291 
    292211    *aUID = mData.mUID;
    293212
    294213    return S_OK;
    295 #endif /* VBOX_WITH_GUEST_CONTROL */
    296214}
    297215
    298216HRESULT GuestFsObjInfo::getUserFlags(ULONG *aUserFlags)
    299217{
    300 #ifndef VBOX_WITH_GUEST_CONTROL
    301     ReturnComNotImplemented();
    302 #else
    303 
    304218    *aUserFlags = mData.mUserFlags;
    305219
    306220    return S_OK;
    307 #endif /* VBOX_WITH_GUEST_CONTROL */
    308221}
    309222
    310223HRESULT GuestFsObjInfo::getUserName(com::Utf8Str &aUserName)
    311224{
    312 #ifndef VBOX_WITH_GUEST_CONTROL
    313     ReturnComNotImplemented();
    314 #else
    315 
    316225    aUserName = mData.mUserName;
    317226
    318227    return S_OK;
    319 #endif /* VBOX_WITH_GUEST_CONTROL */
    320 }
     228}
     229
Note: See TracChangeset for help on using the changeset viewer.

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