1 /* 2 * Copyright (c) 2024 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 META_INTERFACE_PROPERTY_INTERNAL_H 17 #define META_INTERFACE_PROPERTY_INTERNAL_H 18 19 #include <meta/base/interface_macros.h> 20 #include <meta/base/namespace.h> 21 #include <meta/base/types.h> 22 #include <meta/interface/intf_any.h> 23 #include <meta/interface/intf_object.h> 24 #include <meta/interface/property/intf_property.h> 25 26 META_BEGIN_NAMESPACE() 27 28 META_REGISTER_INTERFACE(IPropertyInternal, "1757f95f-07ab-4d2a-af53-5fd6b2f3048a") 29 META_REGISTER_INTERFACE(IPropertyInternalAny, "65c7309e-21ee-4087-af33-76b297ab4f93") 30 31 class IPropertyInternal : public CORE_NS::IInterface { 32 META_INTERFACE(CORE_NS::IInterface, IPropertyInternal) 33 public: 34 virtual void SetOwner(IObject::Ptr owner) = 0; 35 virtual void SetSelf(IProperty::Ptr self) = 0; 36 }; 37 38 class IPropertyInternalAny : public CORE_NS::IInterface { 39 META_INTERFACE(CORE_NS::IInterface, IPropertyInternalAny) 40 public: 41 virtual AnyReturnValue SetInternalAny(IAny::Ptr any) = 0; 42 virtual IAny::Ptr GetInternalAny() const = 0; 43 }; 44 45 META_END_NAMESPACE() 46 47 #endif 48