1 /* 2 * Copyright (c) 2025 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 DFS_STATIC_CAPABILITY_H 17 #define DFS_STATIC_CAPABILITY_H 18 19 #include "single_instance.h" 20 #include "i_static_capability_collector.h" 21 22 #ifndef API_EXPORT 23 #define API_EXPORT __attribute__((visibility("default"))) 24 #endif 25 26 namespace OHOS { 27 namespace Storage { 28 namespace DistributedFile { 29 class DfsStaticCapability : public DistributedDeviceProfile::IStaticCapabilityCollector { 30 DECLARE_SINGLE_INSTANCE_BASE(DfsStaticCapability); 31 public: 32 DfsStaticCapability() = default; 33 ~DfsStaticCapability() = default; 34 API_EXPORT bool IsSupportCapability() override; 35 }; 36 37 #ifdef __cplusplus 38 extern "C" { 39 #endif 40 API_EXPORT DistributedDeviceProfile::IStaticCapabilityCollector* GetStaticCapabilityCollector(); 41 #ifdef __cplusplus 42 } 43 #endif 44 } // namespace DistributedFile 45 } // namespace Storage 46 } // namespace OHOS 47 #endif // DfS_STATIC_CAPABILITY_H 48