X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fpublic-api%2Fobject%2Ftype-info.cpp;h=92f1b672265b76caaa6c67e7c3159a04bf623b73;hb=16cb8b3fafec2ae61ce0397318eb0cd28bedc9ea;hp=1af4079dfeaf0c76b52284a5f8ec29ecd773b1b8;hpb=24a826711c9b42968089e6ad54faead44a5df376;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/public-api/object/type-info.cpp b/dali/public-api/object/type-info.cpp index 1af4079..92f1b67 100644 --- a/dali/public-api/object/type-info.cpp +++ b/dali/public-api/object/type-info.cpp @@ -1,18 +1,19 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2018 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ // CLASS HEADER #include @@ -33,39 +34,65 @@ TypeInfo::~TypeInfo() { } -const std::string& TypeInfo::GetName() +TypeInfo::TypeInfo(const TypeInfo& copy) +: BaseHandle(copy) +{ +} + +TypeInfo& TypeInfo::operator=(const TypeInfo& rhs) +{ + BaseHandle::operator=(rhs); + return *this; +} + +const std::string& TypeInfo::GetName() const { return GetImplementation(*this).GetName(); } -const std::string& TypeInfo::GetBaseName() +const std::string& TypeInfo::GetBaseName() const { return GetImplementation(*this).GetBaseName(); } -BaseHandle TypeInfo::CreateInstance() +BaseHandle TypeInfo::CreateInstance() const { return GetImplementation(*this).CreateInstance(); } -TypeInfo::CreateFunction TypeInfo::GetCreator() +TypeInfo::CreateFunction TypeInfo::GetCreator() const { return GetImplementation(*this).GetCreator(); } -TypeInfo::NameContainer TypeInfo::GetActions() +size_t TypeInfo::GetActionCount() const +{ + return GetImplementation(*this).GetActionCount(); +} + +std::string TypeInfo::GetActionName(size_t index) +{ + return GetImplementation(*this).GetActionName(index); +} + +size_t TypeInfo::GetSignalCount() const +{ + return GetImplementation(*this).GetSignalCount(); +} + +std::string TypeInfo::GetSignalName(size_t index) { - return GetImplementation(*this).GetActions(); + return GetImplementation(*this).GetSignalName(index); } -TypeInfo::NameContainer TypeInfo::GetSignals() +size_t TypeInfo::GetPropertyCount() const { - return GetImplementation(*this).GetSignals(); + return GetImplementation(*this).GetPropertyCount(); } void TypeInfo::GetPropertyIndices( Property::IndexContainer& indices ) const { - indices.clear(); // We do not want to clear the container if called internally, so only clear here + indices.Clear(); // We do not want to clear the container if called internally, so only clear here GetImplementation(*this).GetPropertyIndices( indices ); } @@ -74,10 +101,30 @@ const std::string& TypeInfo::GetPropertyName( Property::Index index ) const return GetImplementation(*this).GetPropertyName( index ); } +Property::Index TypeInfo::GetChildPropertyIndex( const std::string& name ) const +{ + return GetImplementation(*this).GetChildPropertyIndex( name ); +} + +const std::string& TypeInfo::GetChildPropertyName( Property::Index index ) const +{ + return GetImplementation(*this).GetChildPropertyName( index ); +} + +Property::Type TypeInfo::GetChildPropertyType( Property::Index index ) const +{ + return GetImplementation(*this).GetChildPropertyType( index ); +} + +void TypeInfo::GetChildPropertyIndices( Property::IndexContainer& indices ) const +{ + indices.Clear(); // We do not want to clear the container if called internally, so only clear here + GetImplementation(*this).GetChildPropertyIndices( indices ); +} + TypeInfo::TypeInfo(Internal::TypeInfo* internal) : BaseHandle(internal) { } } // namespace Dali -