Merge branch 'devel/master' into sandbox/dkdk/tizen
[platform/core/uifw/dali-adaptor.git] / dali / public-api / adaptor-framework / widget-impl.h
index c7e6979..3e7e87a 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_INTERNAL_WIDGET_H
 
 /*
- * Copyright (c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2020 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.
 
 // INTERNAL INCLUDES
 #include <dali/public-api/adaptor-framework/widget.h>
+#include <dali/public-api/adaptor-framework/window.h>
 
 namespace Dali
 {
-class Window;
-
 /**
  * @addtogroup dali_adaptor_framework
  * @{
@@ -36,10 +35,8 @@ class Window;
 
 namespace Internal
 {
-
 namespace Adaptor
 {
-
 class Widget;
 typedef IntrusivePtr<Widget> WidgetPtr;
 
@@ -56,10 +53,9 @@ typedef IntrusivePtr<Widget> WidgetPtr;
  *
  * @SINCE_1_3_5
  */
-class DALI_IMPORT_API Widget : public BaseObject, public ConnectionTrackerInterface
+class DALI_ADAPTOR_API Widget : public BaseObject, public ConnectionTrackerInterface
 {
 public:
-
   /**
    * @brief Creates a new WidgetImpl instance.
    *
@@ -75,7 +71,7 @@ public:
    * @param[in] contentInfo Information from WidgetView for creating. It contains previous status of widget which is sent by SetContentInfo before.
    * @param[in] window Window handle for widget
    */
-  virtual void OnCreate( const std::string& contentInfo, Dali::Window window );
+  virtual void OnCreate(const std::string& contentInfo, Dali::Window window);
 
   /**
    * @brief The user should override this function to determine when they terminate widget.
@@ -84,7 +80,7 @@ public:
    * @param[in] contentInfo Data from WidgetView for deleting
    * @param[in] type Termination type. When user delete widget view, termination type is PERMANENT.
    */
-  virtual void OnTerminate( const std::string& contentInfo, Dali::Widget::Termination type );
+  virtual void OnTerminate(const std::string& contentInfo, Dali::Widget::Termination type);
 
   /**
    * @brief The user should override this function to determine when they pause widget.
@@ -104,7 +100,7 @@ public:
    * @SINCE_1_3_5
    * @param[in] window Window handle for widget
    */
-  virtual void OnResize( Dali::Window window );
+  virtual void OnResize(Dali::Window window);
 
   /**
    * @brief The user should override this function to determine when they update widget.
@@ -113,19 +109,19 @@ public:
    * @param[in] contentInfo Data from WidgetView for updating
    * @param[in] force Although the widget is paused, if it is true, the widget can be updated
    */
-  virtual void OnUpdate( const std::string& contentInfo, int force );
+  virtual void OnUpdate(const std::string& contentInfo, int force);
 
   // From ConnectionTrackerInterface
 
   /**
    * @copydoc ConnectionTrackerInterface::SignalConnected
    */
-  virtual void SignalConnected( SlotObserver* slotObserver, CallbackBase* callback );
+  void SignalConnected(SlotObserver* slotObserver, CallbackBase* callback) override;
 
   /**
    * @copydoc ConnectionTrackerInterface::SignalDisconnected
    */
-  virtual void SignalDisconnected( SlotObserver* slotObserver, CallbackBase* callback );
+  void SignalDisconnected(SlotObserver* slotObserver, CallbackBase* callback) override;
 
   /**
    * @brief Set content info to WidgetView.
@@ -133,10 +129,9 @@ public:
    * @SINCE_1_3_5
    * @param[in] contentInfo Content info is kind of context information which contains current status of widget.
    */
-  void SetContentInfo( const std::string& contentInfo );
+  void SetContentInfo(const std::string& contentInfo);
 
 protected:
-
   /**
    * @brief WidgetImpl constructor
    */
@@ -145,7 +140,7 @@ protected:
   /**
    * @brief Virtual destructor
    */
-  virtual ~Widget();
+  ~Widget() override;
 
   /// @cond internal
 public:
@@ -155,7 +150,7 @@ public:
    * Set pointer of WidgetImpl Internal.
    * @SINCE_1_3_5
    */
-  void SetImpl( Impl* impl );
+  void SetImpl(Impl* impl);
 
 private:
   Impl* mImpl;
@@ -164,7 +159,6 @@ private:
   DALI_INTERNAL Widget(const Widget&);
   DALI_INTERNAL Widget& operator=(Widget&);
   /// @endcond
-
 };
 
 /**
@@ -175,7 +169,7 @@ private:
  * @return Implementation
  * @pre handle is initialized and points to a widget
  */
-DALI_IMPORT_API Internal::Adaptor::Widget& GetImplementation( Dali::Widget& widget );
+DALI_ADAPTOR_API Internal::Adaptor::Widget& GetImplementation(Dali::Widget& widget);
 
 /**
  * @brief Gets implementation from the handle.
@@ -185,7 +179,7 @@ DALI_IMPORT_API Internal::Adaptor::Widget& GetImplementation( Dali::Widget& widg
  * @return Implementation
  * @pre Handle is initialized and points to a widget.
  */
-DALI_IMPORT_API const Internal::Adaptor::Widget& GetImplementation( const Dali::Widget& widget );
+DALI_ADAPTOR_API const Internal::Adaptor::Widget& GetImplementation(const Dali::Widget& widget);
 
 } // namespace Adaptor