blob: 80f87529195487353c325495319d0dbb590701e2 [file] [log] [blame]
bigbiff bigbiffaf32bb92018-12-18 18:39:53 -05001/*
2 * Copyright (C) 2010 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * Copyright (C) 2014 TeamWin - bigbiff and Dees_Troy mtp database conversion to C++
17 */
18
19#ifndef _MTP_STORAGE_INFO_H
20#define _MTP_STORAGE_INFO_H
21
22#include "MtpTypes.h"
23
24
25class MtpDataPacket;
26
27class MtpStorageInfo {
28public:
29 MtpStorageID mStorageID;
30 uint16_t mStorageType;
31 uint16_t mFileSystemType;
32 uint16_t mAccessCapability;
33 uint64_t mMaxCapacity;
34 uint64_t mFreeSpaceBytes;
35 uint32_t mFreeSpaceObjects;
36 char* mStorageDescription;
37 char* mVolumeIdentifier;
38
39public:
40 MtpStorageInfo(MtpStorageID id);
41 virtual ~MtpStorageInfo();
42
43 void read(MtpDataPacket& packet);
44
45 void print();
46};
47
48
49#endif // _MTP_STORAGE_INFO_H