Changeset 55645 in vbox for trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp
- Timestamp:
- May 4, 2015 1:39:18 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100020
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/GuestFsObjInfoImpl.cpp
r55613 r55645 5 5 6 6 /* 7 * Copyright (C) 2012-201 4Oracle Corporation7 * Copyright (C) 2012-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 20 20 * Header Files * 21 21 *******************************************************************************/ 22 #ifndef VBOX_WITH_GUEST_CONTROL 23 # error "VBOX_WITH_GUEST_CONTROL must defined in this file" 24 #endif 22 25 #include "GuestFsObjInfoImpl.h" 23 26 #include "GuestCtrlImplPrivate.h" … … 92 95 HRESULT GuestFsObjInfo::getAccessTime(LONG64 *aAccessTime) 93 96 { 94 #ifndef VBOX_WITH_GUEST_CONTROL95 ReturnComNotImplemented();96 #else97 98 97 *aAccessTime = mData.mAccessTime; 99 98 100 99 return S_OK; 101 #endif /* VBOX_WITH_GUEST_CONTROL */102 100 } 103 101 104 102 HRESULT GuestFsObjInfo::getAllocatedSize(LONG64 *aAllocatedSize) 105 103 { 106 #ifndef VBOX_WITH_GUEST_CONTROL107 ReturnComNotImplemented();108 #else109 110 104 *aAllocatedSize = mData.mAllocatedSize; 111 105 112 106 return S_OK; 113 #endif /* VBOX_WITH_GUEST_CONTROL */114 107 } 115 108 116 109 HRESULT GuestFsObjInfo::getBirthTime(LONG64 *aBirthTime) 117 110 { 118 #ifndef VBOX_WITH_GUEST_CONTROL119 ReturnComNotImplemented();120 #else121 122 111 *aBirthTime = mData.mBirthTime; 123 112 124 113 return S_OK; 125 #endif /* VBOX_WITH_GUEST_CONTROL */126 114 } 127 115 128 116 HRESULT GuestFsObjInfo::getChangeTime(LONG64 *aChangeTime) 129 117 { 130 #ifndef VBOX_WITH_GUEST_CONTROL131 ReturnComNotImplemented();132 #else133 134 118 *aChangeTime = mData.mChangeTime; 135 119 136 120 return S_OK; 137 #endif /* VBOX_WITH_GUEST_CONTROL */138 121 } 139 122 … … 142 125 HRESULT GuestFsObjInfo::getDeviceNumber(ULONG *aDeviceNumber) 143 126 { 144 #ifndef VBOX_WITH_GUEST_CONTROL145 ReturnComNotImplemented();146 #else147 148 127 *aDeviceNumber = mData.mDeviceNumber; 149 128 150 129 return S_OK; 151 #endif /* VBOX_WITH_GUEST_CONTROL */152 130 } 153 131 154 132 HRESULT GuestFsObjInfo::getFileAttributes(com::Utf8Str &aFileAttributes) 155 133 { 156 #ifndef VBOX_WITH_GUEST_CONTROL157 ReturnComNotImplemented();158 #else159 160 134 aFileAttributes = mData.mFileAttrs; 161 135 162 136 return S_OK; 163 #endif /* VBOX_WITH_GUEST_CONTROL */164 137 } 165 138 166 139 HRESULT GuestFsObjInfo::getGenerationId(ULONG *aGenerationId) 167 140 { 168 #ifndef VBOX_WITH_GUEST_CONTROL169 ReturnComNotImplemented();170 #else171 172 141 *aGenerationId = mData.mGenerationID; 173 142 174 143 return S_OK; 175 #endif /* VBOX_WITH_GUEST_CONTROL */176 144 } 177 145 178 146 HRESULT GuestFsObjInfo::getGID(ULONG *aGID) 179 147 { 180 #ifndef VBOX_WITH_GUEST_CONTROL181 ReturnComNotImplemented();182 #else183 184 148 *aGID = mData.mGID; 185 149 186 150 return S_OK; 187 #endif /* VBOX_WITH_GUEST_CONTROL */188 151 } 189 152 190 153 HRESULT GuestFsObjInfo::getGroupName(com::Utf8Str &aGroupName) 191 154 { 192 #ifndef VBOX_WITH_GUEST_CONTROL193 ReturnComNotImplemented();194 #else195 196 155 aGroupName = mData.mGroupName; 197 156 198 157 return S_OK; 199 #endif /* VBOX_WITH_GUEST_CONTROL */200 158 } 201 159 202 160 HRESULT GuestFsObjInfo::getHardLinks(ULONG *aHardLinks) 203 161 { 204 #ifndef VBOX_WITH_GUEST_CONTROL205 ReturnComNotImplemented();206 #else207 208 162 *aHardLinks = mData.mNumHardLinks; 209 163 210 164 return S_OK; 211 #endif /* VBOX_WITH_GUEST_CONTROL */212 165 } 213 166 214 167 HRESULT GuestFsObjInfo::getModificationTime(LONG64 *aModificationTime) 215 168 { 216 #ifndef VBOX_WITH_GUEST_CONTROL217 ReturnComNotImplemented();218 #else219 220 169 *aModificationTime = mData.mModificationTime; 221 170 222 171 return S_OK; 223 #endif /* VBOX_WITH_GUEST_CONTROL */224 172 } 225 173 226 174 HRESULT GuestFsObjInfo::getName(com::Utf8Str &aName) 227 175 { 228 #ifndef VBOX_WITH_GUEST_CONTROL229 ReturnComNotImplemented();230 #else231 232 176 aName = mData.mName; 233 177 234 178 return S_OK; 235 #endif /* VBOX_WITH_GUEST_CONTROL */236 179 } 237 180 238 181 HRESULT GuestFsObjInfo::getNodeId(LONG64 *aNodeId) 239 182 { 240 #ifndef VBOX_WITH_GUEST_CONTROL241 ReturnComNotImplemented();242 #else243 244 183 *aNodeId = mData.mNodeID; 245 184 246 185 return S_OK; 247 #endif /* VBOX_WITH_GUEST_CONTROL */248 186 } 249 187 250 188 HRESULT GuestFsObjInfo::getNodeIdDevice(ULONG *aNodeIdDevice) 251 189 { 252 #ifndef VBOX_WITH_GUEST_CONTROL253 ReturnComNotImplemented();254 #else255 256 190 *aNodeIdDevice = mData.mNodeIDDevice; 257 191 258 192 return S_OK; 259 #endif /* VBOX_WITH_GUEST_CONTROL */260 193 } 261 194 262 195 HRESULT GuestFsObjInfo::getObjectSize(LONG64 *aObjectSize) 263 196 { 264 #ifndef VBOX_WITH_GUEST_CONTROL265 ReturnComNotImplemented();266 #else267 268 197 *aObjectSize = mData.mObjectSize; 269 198 270 199 return S_OK; 271 #endif /* VBOX_WITH_GUEST_CONTROL */272 200 } 273 201 274 202 HRESULT GuestFsObjInfo::getType(FsObjType_T *aType) 275 203 { 276 #ifndef VBOX_WITH_GUEST_CONTROL277 ReturnComNotImplemented();278 #else279 280 204 *aType = mData.mType; 281 205 282 206 return S_OK; 283 #endif /* VBOX_WITH_GUEST_CONTROL */284 207 } 285 208 286 209 HRESULT GuestFsObjInfo::getUID(ULONG *aUID) 287 210 { 288 #ifndef VBOX_WITH_GUEST_CONTROL289 ReturnComNotImplemented();290 #else291 292 211 *aUID = mData.mUID; 293 212 294 213 return S_OK; 295 #endif /* VBOX_WITH_GUEST_CONTROL */296 214 } 297 215 298 216 HRESULT GuestFsObjInfo::getUserFlags(ULONG *aUserFlags) 299 217 { 300 #ifndef VBOX_WITH_GUEST_CONTROL301 ReturnComNotImplemented();302 #else303 304 218 *aUserFlags = mData.mUserFlags; 305 219 306 220 return S_OK; 307 #endif /* VBOX_WITH_GUEST_CONTROL */308 221 } 309 222 310 223 HRESULT GuestFsObjInfo::getUserName(com::Utf8Str &aUserName) 311 224 { 312 #ifndef VBOX_WITH_GUEST_CONTROL313 ReturnComNotImplemented();314 #else315 316 225 aUserName = mData.mUserName; 317 226 318 227 return S_OK; 319 #endif /* VBOX_WITH_GUEST_CONTROL */ 320 } 228 } 229
Note:
See TracChangeset
for help on using the changeset viewer.