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 
16 #ifndef INTERFACES_INNERKITS_NATIVE_INCLUDE_MEDIA_VOLUME_ASSET_H_
17 #define INTERFACES_INNERKITS_NATIVE_INCLUDE_MEDIA_VOLUME_ASSET_H_
18 
19 #include <string>
20 #include <unordered_map>
21 
22 namespace OHOS {
23 namespace Media {
24 #define EXPORT __attribute__ ((visibility ("default")))
25 /**
26  * @brief Data class for MediaVolume details
27  *
28  * @since 1.0
29  * @version 1.0
30  */
31 class MediaVolume {
32 public:
33     EXPORT MediaVolume();
34     EXPORT virtual ~MediaVolume();
35     EXPORT void SetSize(const int mediaType, const int64_t size);
36 
37     EXPORT int64_t GetFilesSize() const;
38     EXPORT int64_t GetVideosSize() const;
39     EXPORT int64_t GetImagesSize() const;
40     EXPORT int64_t GetAudiosSize() const;
41 
42 private:
43     std::unordered_map<int, int64_t> mediaVolumeMap_;
44 };
45 } // namespace Media
46 } // namespace OHOS
47 
48 #endif  // INTERFACES_INNERKITS_NATIVE_INCLUDE_MEDIA_VOLUME_ASSET_H_
49