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