[widget-viewer-dali] Change the license as Flora
[platform/core/uifw/widget-viewer-dali.git] / internal / widget_view / widget_view_impl.h
index e14960d..b58f1a1 100644 (file)
@@ -2,20 +2,20 @@
 #define __DALI_WIDGET_VIEW_INTERNAL_WIDGET_VIEW_H__
 
 /*
+ * Samsung API
  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
+ * Licensed under the Flora License, Version 1.1 (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
+ * 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,
+ * 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.
- *
  */
 
 // INTERNAL INCLUDES
@@ -44,7 +44,17 @@ public:
   /**
    * @copydoc Dali::WidgetView::WidgetView::New
    */
-  static Dali::WidgetView::WidgetView New( const std::string& widgetId, const std::string& contentInfo, int width, int height, double period );
+  static Dali::WidgetView::WidgetView New( const std::string& widgetId, const std::string& contentInfo, int width, int height, double updatePeriod );
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::PauseWidget
+   */
+  bool PauseWidget();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::ResumeWidget
+   */
+  bool ResumeWidget();
 
   /**
    * @copydoc Dali::WidgetView::WidgetView::GetWidgetId
@@ -67,9 +77,9 @@ public:
   const std::string& GetTitle();
 
   /**
-   * @copydoc Dali::WidgetView::WidgetView::GetPeriod
+   * @copydoc Dali::WidgetView::WidgetView::GetUpdatePeriod
    */
-  double GetPeriod() const;
+  double GetUpdatePeriod() const;
 
   /**
    * @copydoc Dali::WidgetView::WidgetView::Show
@@ -124,11 +134,50 @@ public:
   void AddObjectView( Pepper::ObjectView objectView );
   void RemoveObjectView();
 
+  void SendWidgetEvent( int event );
+
 public: //Signals
 
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetAddedSignal
+   */
   Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetAddedSignal();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetDeletedSignal
+   */
   Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetDeletedSignal();
 
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetCreationAbortedSignal
+   */
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetCreationAbortedSignal();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetResizedSignal
+   */
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetResizedSignal();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetContentUpdatedSignal
+   */
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetContentUpdatedSignal();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetExtraInfoUpdatedSignal
+   */
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetExtraInfoUpdatedSignal();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetUpdatePeriodChangedSignal
+   */
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetUpdatePeriodChangedSignal();
+
+  /**
+   * @copydoc Dali::WidgetView::WidgetView::WidgetFaultedSignal
+   */
+  Dali::WidgetView::WidgetView::WidgetViewSignalType& WidgetFaultedSignal();
+
 protected:
 
   /**
@@ -139,7 +188,7 @@ protected:
   /**
    * Construct a new WidgetView.
    */
-  WidgetView( const std::string& widgetId, const std::string& contentInfo, int width, int height, double period );
+  WidgetView( const std::string& widgetId, const std::string& contentInfo, int width, int height, double updatePeriod );
 
   /**
    * A reference counted object may only be deleted by calling Unreference()
@@ -153,6 +202,13 @@ private: // From Control
    */
   virtual void OnInitialize();
 
+private: // From CustomActorImpl
+
+  /**
+   * @copydoc CustomActorImpl::OnSizeSet( const Vector3& targetSize )
+   */
+  virtual void OnSizeSet( const Vector3& targetSize );
+
 private:
 
   // Undefined
@@ -177,7 +233,7 @@ private:
   int mWidth;
   int mHeight;
   int mPid;
-  double mPeriod;
+  double mUpdatePeriod;
 
   bool mPreviewEnabled;
   bool mStateTextEnabled;
@@ -186,6 +242,12 @@ private:
   // Signals
   Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetAddedSignal;
   Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetDeletedSignal;
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetCreationAbortedSignal;
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetResizedSignal;
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetContentUpdatedSignal;
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetExtraInfoUpdatedSignal;
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetUpdatePeriodChangedSignal;
+  Dali::WidgetView::WidgetView::WidgetViewSignalType mWidgetFaultedSignal;
 };
 
 } // namespace Internal