1 /*
2 * Copyright (C) 2022 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15 #ifndef FRAMEWORKS_SERVICES_MEDIA_MTP_INCLUDE_OBJECT_INFO_H_
16 #define FRAMEWORKS_SERVICES_MEDIA_MTP_INCLUDE_OBJECT_INFO_H_
17 #include <stdint.h>
18 #include <time.h>
19 #include <string>
20 namespace OHOS {
21 namespace Media {
22 class ObjectInfo {
23 public:
24     uint32_t handle {0};
25     uint32_t storageID {0};
26     uint16_t format {0};
27     uint16_t protectionStatus {0};
28     uint32_t compressedSize {0};
29     uint32_t size {0};
30     uint16_t thumbFormat {0};
31     uint32_t thumbCompressedSize {0};
32     uint32_t thumbPixelWidth {0};
33     uint32_t thumbPixelHeight {0};
34     uint32_t imagePixelWidth {0};
35     uint32_t imagePixelHeight {0};
36     uint32_t imagePixelDepth {0};
37     uint32_t parent {0};
38     uint16_t associationType {0};
39     uint32_t associationDesc {0};
40     uint32_t sequenceNumber {0};
41     std::string name;
42     time_t dateCreated {0};
43     time_t dateModified {0};
44     std::string keywords;
45 
46     explicit ObjectInfo(uint32_t h);
47     virtual ~ObjectInfo();
48 
49     void Dump();
50 };
51 } // namespace Media
52 } // namespace OHOS
53 #endif // FRAMEWORKS_SERVICES_MEDIA_MTP_INCLUDE_OBJECT_INFO_H_
54