Modified creation aborted and faulted signal
[platform/core/uifw/widget-viewer-dali.git] / internal / widget_view / widget_view_impl.h
index 94669d2..e27786f 100644 (file)
@@ -28,6 +28,7 @@
 #include <dali-toolkit/public-api/controls/image-view/image-view.h>
 #include <wayland-extension/tizen-remote-surface-client-protocol.h>
 #include <tbm_surface.h>
+#include <screen_connector_toolkit.h>
 
 namespace Dali
 {
@@ -111,20 +112,19 @@ public: // Internal API
 
   float GetUpdatePeriod() const;
 
-  void ShowPreview( bool show );
+  void SetPreviewVisible( bool visible );
 
   bool IsPreviewVisible();
 
-  void ShowStateText( bool show );
+  void SetLoadingTextVisible( bool visible );
 
-  bool IsStateTextVisible();
+  bool IsLoadingTextVisible();
 
   bool IsWidgetFaulted();
 
   void SetPermanentDelete( bool permanentDelete );
 
-// ToDo: This funstion will be used for widgetDeletedSignal
-  void RemoveObjectView();
+  void RemoveWidgetImage();
 
   bool IsPermanentDelete();
 
@@ -142,6 +142,14 @@ public: // Internal API
 
   void CloseRemoteSurface();
 
+  void SetLoadingTextPropertyMap( Dali::Property::Map map );
+
+  void ShowLoadingState( bool show );
+
+  void ShowRetryState( bool show );
+
+  void TerminateWidget();
+
 public: //Signals
 
   /**
@@ -174,6 +182,8 @@ public: //Signals
    */
   Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetFaultedSignal();
 
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetTerminatedSignal();
+
 protected:
 
   /**
@@ -191,6 +201,8 @@ protected:
    */
   virtual ~WidgetView();
 
+  float TextPixelToPointSize( int pixelSize );
+
 private: // From Control
 
   /**
@@ -240,7 +252,10 @@ private:
 
   Toolkit::ImageView mWidgetImageView;     ///< Widget content
   Toolkit::ImageView mPreviewImage;   ///< Preview image
-  Toolkit::TextLabel mStateText;      ///< State text
+  Toolkit::TextLabel mLoadingText;      ///< Loading text
+  Toolkit::TextLabel mRetryText;      ///< Retry text
+  Dali::Actor mPreviewActor;
+  Dali::Actor mStateTextActor;
   Dali::NativeImageSourcePtr mImageSource;
 
   std::string mWidgetId;
@@ -254,9 +269,11 @@ private:
   float mUpdatePeriod;
 
   bool mPreviewVisible;
-  bool mStateTextVisible;
+  bool mLoadingTextVisible;
+  bool mRetryTextVisible;
+  bool mRetryState;
   bool mPermanentDelete;
-
+  screen_connector_toolkit_h mWatcherHandle;
   tizen_remote_surface* mRemoteSurface;
 
   // Signals
@@ -266,6 +283,9 @@ private:
   Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetContentUpdatedSignal;
   Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetUpdatePeriodChangedSignal;
   Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetFaultedSignal;
+
+  // Internal signal
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetTerminatedSignal;
 };
 
 } // namespace Internal