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_DIR_ASSET_ASSET_H_
17 #define INTERFACES_INNERKITS_NATIVE_INCLUDE_DIR_ASSET_ASSET_H_
18 
19 #include <string>
20 #include <vector>
21 
22 namespace OHOS {
23 namespace Media {
24 #define EXPORT __attribute__ ((visibility ("default")))
25 /**
26  * @brief Data class for dir details
27  *
28  * @since 1.0
29  * @version 1.0
30  */
31 class DirAsset {
32 public:
33     EXPORT DirAsset();
34     EXPORT virtual ~DirAsset();
35 
36     EXPORT void SetDirType(const int32_t dirType);
37     EXPORT void SetMediaTypes(const std::string mediaTypes);
38     EXPORT void SetDirectory(const std::string directory);
39     EXPORT void SetExtensions(const std::string extensions);
40     EXPORT int32_t GetDirType() const;
41     EXPORT std::string GetMediaTypes() const;
42     EXPORT std::string GetDirectory() const;
43     EXPORT std::string GetExtensions() const;
44 
45 private:
46     int32_t dirType_;
47     std::string mediaTypes_;
48     std::string directory_;
49     std::string extensions_;
50 };
51 } // namespace Media
52 } // namespace OHOS
53 
54 #endif  // INTERFACES_INNERKITS_NATIVE_INCLUDE_DIR_ASSET_ASSET_H_
55