blob: 9b023bceeeeed5938660fb50d0ad9992fa4fe7ec [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_OBJECT_INFO_H
20#define _MTP_OBJECT_INFO_H
21
22#include "MtpTypes.h"
23
24
25class MtpDataPacket;
26
27class MtpObjectInfo {
28public:
29 MtpObjectHandle mHandle;
30 MtpStorageID mStorageID;
31 MtpObjectFormat mFormat;
32 uint16_t mProtectionStatus;
33 uint32_t mCompressedSize;
34 MtpObjectFormat mThumbFormat;
35 uint32_t mThumbCompressedSize;
36 uint32_t mThumbPixWidth;
37 uint32_t mThumbPixHeight;
38 uint32_t mImagePixWidth;
39 uint32_t mImagePixHeight;
40 uint32_t mImagePixDepth;
41 MtpObjectHandle mParent;
42 uint16_t mAssociationType;
43 uint32_t mAssociationDesc;
44 uint32_t mSequenceNumber;
45 char* mName;
46 time_t mDateCreated;
47 time_t mDateModified;
48 char* mKeywords;
49
50public:
51 MtpObjectInfo(MtpObjectHandle handle);
52 virtual ~MtpObjectInfo();
53
54 void read(MtpDataPacket& packet);
55
56 void print();
57};
58
59
60#endif // _MTP_OBJECT_INFO_H