Added TypeInfo::GetChildPropertyIndices
[platform/core/uifw/dali-core.git] / dali / public-api / object / type-info.cpp
index 6846c31..92f1b67 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * 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.
@@ -65,24 +65,34 @@ TypeInfo::CreateFunction TypeInfo::GetCreator() const
   return GetImplementation(*this).GetCreator();
 }
 
-void TypeInfo::GetActions( TypeInfo::NameContainer& container ) const
+size_t TypeInfo::GetActionCount() const
 {
-  GetImplementation(*this).GetActions( container );
+  return GetImplementation(*this).GetActionCount();
 }
 
-void TypeInfo::GetSignals( TypeInfo::NameContainer& container ) const
+std::string TypeInfo::GetActionName(size_t index)
 {
-  GetImplementation(*this).GetSignals( container );
+  return GetImplementation(*this).GetActionName(index);
 }
 
-void TypeInfo::GetProperties( TypeInfo::NameContainer& container ) const
+size_t TypeInfo::GetSignalCount() const
 {
-  GetImplementation(*this).GetProperties( container );
+  return GetImplementation(*this).GetSignalCount();
+}
+
+std::string TypeInfo::GetSignalName(size_t index)
+{
+  return GetImplementation(*this).GetSignalName(index);
+}
+
+size_t TypeInfo::GetPropertyCount() const
+{
+  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 );
 }
 
@@ -91,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
-