DALi signals refactor to remove V2 naming
[platform/core/uifw/dali-toolkit.git] / optional / dali-toolkit / public-api / controls / navigation-frame / navigation-control.h
index 40fab89..7ebaf8d 100644 (file)
  *
  */
 
-// EXTERNAL INCLUDES
-#include <boost/function.hpp>
-
 // INTERNAL INCLUDES
 #include <dali-toolkit/public-api/controls/control.h>
 #include <dali-toolkit/public-api/controls/navigation-frame/page.h>
 #include <dali-toolkit/public-api/controls/navigation-frame/navigation-bar-style.h>
 
-namespace Dali DALI_IMPORT_API
+namespace Dali
 {
 
 namespace Toolkit
@@ -78,7 +75,7 @@ class NavigationControl;
  *                 +----------------------------------------+
  */
 
-class NavigationControl : public Control
+class DALI_IMPORT_API NavigationControl : public Control
 {
 
 public:
@@ -105,9 +102,11 @@ public:
   NavigationControl& operator=( const NavigationControl& handle );
 
   /**
-   * virtual Destructor.
+   * @brief Destructor
+   *
+   * This is non-virtual since derived Handle types must not contain data or virtual methods.
    */
-  virtual ~NavigationControl();
+  ~NavigationControl();
 
   /**
    * Create an initialized NavigationControl.
@@ -197,8 +196,8 @@ public:
 
 public: //Signal
 
-  typedef SignalV2< void( NavigationControl, Page ) > ItemPushedSignalV2;
-  typedef SignalV2< void( NavigationControl, Page ) > ItemPoppedSignalV2;
+  typedef Signal< void( NavigationControl, Page ) > ItemPushedSignalType;
+  typedef Signal< void( NavigationControl, Page ) > ItemPoppedSignalType;
 
   /**
    * Signal emitted right after a new item is pushed into the navigation stack.
@@ -208,7 +207,7 @@ public: //Signal
    * @endcode
    * @return The signal to connect to.
    */
-  ItemPushedSignalV2& ItemPushedSignal();
+  ItemPushedSignalType& ItemPushedSignal();
 
   /**
    * Signal emitted right after an item is popped out from the navigation stack.
@@ -220,7 +219,7 @@ public: //Signal
    * The app can use this signal and check the poppedItem to be uninitialized to know the app window should be lower
    * @return The signal to connect to.
    */
-  ItemPoppedSignalV2& ItemPoppedSignal();
+  ItemPoppedSignalType& ItemPoppedSignal();
 
 
 
@@ -230,13 +229,13 @@ public: // Not intended for application developers
    * Creates a handle using the Toolkit::Internal implementation.
    * @param[in]  implementation  The Control implementation.
    */
-  NavigationControl( Internal::NavigationControl& implementation );
+  DALI_INTERNAL NavigationControl( Internal::NavigationControl& implementation );
 
   /**
    * Allows the creation of this Control from an Internal::CustomActor pointer.
    * @param[in]  internal  A pointer to the internal CustomActor.
    */
-  NavigationControl( Dali::Internal::CustomActor* internal );
+  explicit DALI_INTERNAL NavigationControl( Dali::Internal::CustomActor* internal );
 
 }; // class NavigationControl