[widget-viewer-dali] Add widget event notification
[platform/core/uifw/widget-viewer-dali.git] / public_api / widget_view / widget_view.cpp
index b52ee3f..7712b4c 100644 (file)
@@ -27,9 +27,9 @@ namespace Dali
 namespace WidgetView
 {
 
-WidgetView WidgetView::New( const std::string& widgetId, const std::string& contentInfo, int width, int height, double period )
+WidgetView WidgetView::New( const std::string& widgetId, const std::string& contentInfo, int width, int height, double updatePeriod )
 {
-  return Internal::WidgetView::New( widgetId, contentInfo, width, height, period );
+  return Internal::WidgetView::New( widgetId, contentInfo, width, height, updatePeriod );
 }
 
 WidgetView WidgetView::DownCast( BaseHandle handle )
@@ -69,19 +69,54 @@ const std::string& WidgetView::GetInstanceId() const
   return Dali::WidgetView::GetImplementation( *this ).GetInstanceId();
 }
 
-const std::string& WidgetView::GetContentInfo() const
+const std::string& WidgetView::GetContentInfo()
 {
   return Dali::WidgetView::GetImplementation( *this ).GetContentInfo();
 }
 
-const std::string& WidgetView::GetTitle() const
+const std::string& WidgetView::GetTitle()
 {
   return Dali::WidgetView::GetImplementation( *this ).GetTitle();
 }
 
-double WidgetView::GetPeriod() const
+double WidgetView::GetUpdatePeriod() const
 {
-  return Dali::WidgetView::GetImplementation( *this ).GetPeriod();
+  return Dali::WidgetView::GetImplementation( *this ).GetUpdatePeriod();
+}
+
+void WidgetView::Show()
+{
+  Dali::WidgetView::GetImplementation( *this ).Show();
+}
+
+void WidgetView::Hide()
+{
+  Dali::WidgetView::GetImplementation( *this ).Hide();
+}
+
+bool WidgetView::CancelTouchEvent()
+{
+  return Dali::WidgetView::GetImplementation( *this ).CancelTouchEvent();
+}
+
+void WidgetView::SetPreviewEnabled( bool enabled )
+{
+  Dali::WidgetView::GetImplementation( *this ).SetPreviewEnabled( enabled );
+}
+
+bool WidgetView::GetPreviewEnabled() const
+{
+  return Dali::WidgetView::GetImplementation( *this ).GetPreviewEnabled();
+}
+
+void WidgetView::SetStateTextEnabled( bool enabled )
+{
+  Dali::WidgetView::GetImplementation( *this ).SetStateTextEnabled( enabled );
+}
+
+bool WidgetView::GetStateTextEnabled() const
+{
+  return Dali::WidgetView::GetImplementation( *this ).GetStateTextEnabled();
 }
 
 void WidgetView::ActivateFaultedWidget()
@@ -109,6 +144,31 @@ WidgetView::WidgetViewSignalType& WidgetView::WidgetDeletedSignal()
   return Dali::WidgetView::GetImplementation(*this).WidgetDeletedSignal();
 }
 
+WidgetView::WidgetViewSignalType& WidgetView::WidgetAbortedSignal()
+{
+  return Dali::WidgetView::GetImplementation(*this).WidgetAbortedSignal();
+}
+
+WidgetView::WidgetViewSignalType& WidgetView::WidgetResized()
+{
+  return Dali::WidgetView::GetImplementation(*this).WidgetResized();
+}
+
+WidgetView::WidgetViewSignalType& WidgetView::WidgetContentUpdated()
+{
+  return Dali::WidgetView::GetImplementation(*this).WidgetContentUpdated();
+}
+
+WidgetView::WidgetViewSignalType& WidgetView::WidgetExtraInfoUpdated()
+{
+  return Dali::WidgetView::GetImplementation(*this).WidgetExtraInfoUpdated();
+}
+
+WidgetView::WidgetViewSignalType& WidgetView::WidgetUpdatePeriodChanged()
+{
+  return Dali::WidgetView::GetImplementation(*this).WidgetUpdatePeriodChanged();
+}
+
 WidgetView::WidgetView( Internal::WidgetView& implementation )
 : Control( implementation )
 {