Updated all header files to new format
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / internal / controls / popup / confirmation-popup-impl.h
index 4db8bd1..ecdfab9 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TOOLKIT_INTERNAL_CONFIRMATION_POPUP_H
 
 /*
 #define DALI_TOOLKIT_INTERNAL_CONFIRMATION_POPUP_H
 
 /*
- * Copyright (c) 2019 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  */
 
 // EXTERNAL INCLUDES
  */
 
 // EXTERNAL INCLUDES
+#include <dali/devel-api/signals/signal-delegate.h>
 #include <dali/public-api/animation/animation.h>
 #include <dali/public-api/common/dali-vector.h>
 #include <dali/public-api/animation/animation.h>
 #include <dali/public-api/common/dali-vector.h>
-#include <dali/devel-api/signals/signal-delegate.h>
 
 // INTERNAL INCLUDES
 
 // INTERNAL INCLUDES
-#include "popup-impl.h"
 #include <dali-toolkit/devel-api/controls/popup/confirmation-popup.h>
 #include <dali-toolkit/devel-api/controls/popup/confirmation-popup.h>
+#include "popup-impl.h"
 
 namespace Dali
 {
 
 namespace Dali
 {
-
 namespace Toolkit
 {
 namespace Toolkit
 {
-
 namespace Internal
 {
 namespace Internal
 {
-
 #define MAXIMUM_NUMBER_OF_CONTROLS 2
 
 /**
 #define MAXIMUM_NUMBER_OF_CONTROLS 2
 
 /**
@@ -46,7 +43,6 @@ namespace Internal
 class ConfirmationPopup : public Dali::Toolkit::Internal::Popup
 {
 public:
 class ConfirmationPopup : public Dali::Toolkit::Internal::Popup
 {
 public:
-
   /**
    * Create a new ConfirmationPopup.
    * @return A smart-pointer to the newly allocated ConfirmationPopup.
   /**
    * Create a new ConfirmationPopup.
    * @return A smart-pointer to the newly allocated ConfirmationPopup.
@@ -54,7 +50,6 @@ public:
   static Dali::Toolkit::ConfirmationPopup New();
 
 protected:
   static Dali::Toolkit::ConfirmationPopup New();
 
 protected:
-
   /**
    * Construct a new ConfirmationPopup.
    */
   /**
    * Construct a new ConfirmationPopup.
    */
@@ -66,14 +61,13 @@ protected:
   virtual ~ConfirmationPopup();
 
 public:
   virtual ~ConfirmationPopup();
 
 public:
-
   /**
    * Called when a property of an object of this type is set.
    * @param[in] object The object whose property is set.
    * @param[in] propertyIndex The property index.
    * @param[in] value The new property value.
    */
   /**
    * Called when a property of an object of this type is set.
    * @param[in] object The object whose property is set.
    * @param[in] propertyIndex The property index.
    * @param[in] value The new property value.
    */
-  static void SetProperty( BaseObject* object, Property::Index propertyIndex, const Property::Value& value );
+  static void SetProperty(BaseObject* object, Property::Index propertyIndex, const Property::Value& value);
 
   /**
    * Called to retrieve a property of an object of this type.
 
   /**
    * Called to retrieve a property of an object of this type.
@@ -81,7 +75,7 @@ public:
    * @param[in] propertyIndex The property index.
    * @return The current value of the property.
    */
    * @param[in] propertyIndex The property index.
    * @return The current value of the property.
    */
-  static Property::Value GetProperty( BaseObject* object, Property::Index propertyIndex );
+  static Property::Value GetProperty(BaseObject* object, Property::Index propertyIndex);
 
   /**
    * Connects a callback function with the object's signals.
 
   /**
    * Connects a callback function with the object's signals.
@@ -92,24 +86,22 @@ public:
    * @return True if the signal was connected.
    * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
    */
    * @return True if the signal was connected.
    * @post If a signal was connected, ownership of functor was passed to CallbackBase. Otherwise the caller is responsible for deleting the unused functor.
    */
-  static bool DoConnectSignal( BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor );
+  static bool DoConnectSignal(BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor);
 
 private:
 
 private:
-
   /**
    * This type houses a list of dynamically created signals.
    */
   /**
    * This type houses a list of dynamically created signals.
    */
-  typedef std::vector< std::pair< std::string, SignalDelegate* > > SignalContainerType;
+  typedef std::vector<std::pair<std::string, SignalDelegate*> > SignalContainerType;
 
 private:
 
 private:
-
   /**
    * Sets the name of the signal to connect to within the specified actor.
    *
    * @param[in] controlNumber The index of the control.
    * @param[in] signalName The name of the signal to connect to.
    */
   /**
    * Sets the name of the signal to connect to within the specified actor.
    *
    * @param[in] controlNumber The index of the control.
    * @param[in] signalName The name of the signal to connect to.
    */
-  void SetControlSignalName( const unsigned int controlNumber, const std::string& signalName );
+  void SetControlSignalName(const unsigned int controlNumber, const std::string& signalName);
 
   /**
    * Gets the name of the signal to connect to within the specified actor.
 
   /**
    * Gets the name of the signal to connect to within the specified actor.
@@ -117,57 +109,52 @@ private:
    * @param[in] controlNumber The index of the control.
    * @return The name of the signal to connect to.
    */
    * @param[in] controlNumber The index of the control.
    * @return The name of the signal to connect to.
    */
-  std::string GetControlSignalName( unsigned int controlNumber ) const;
+  std::string GetControlSignalName(unsigned int controlNumber) const;
 
   /**
    * @copydoc Control::GetControlSignal()
    */
 
   /**
    * @copydoc Control::GetControlSignal()
    */
-  SignalDelegate* GetControlSignal( const std::string& signalName );
+  SignalDelegate* GetControlSignal(const std::string& signalName);
 
 private:
 
 private:
-
   // Undefined
   // Undefined
-  ConfirmationPopup( const ConfirmationPopup& );
+  ConfirmationPopup(const ConfirmationPopup&);
 
   // Undefined
 
   // Undefined
-  ConfirmationPopup& operator=( const ConfirmationPopup& );
+  ConfirmationPopup& operator=(const ConfirmationPopup&);
 
 private:
 
 private:
-
   // Properties:
 
   // Properties:
 
-  std::string mControlSignalNames[ MAXIMUM_NUMBER_OF_CONTROLS ]; ///< Stores the names of the signals to connect to per control.
+  std::string mControlSignalNames[MAXIMUM_NUMBER_OF_CONTROLS]; ///< Stores the names of the signals to connect to per control.
 
   // Internal variables:
 
 
   // Internal variables:
 
-  SignalContainerType mControlSignals;                           ///< Stores the dynamically created signals.
-
+  SignalContainerType mControlSignals; ///< Stores the dynamically created signals.
 };
 
 } // namespace Internal
 
 };
 
 } // namespace Internal
 
-
 // Helpers for public-api forwarding methods
 
 // Helpers for public-api forwarding methods
 
-inline Toolkit::Internal::ConfirmationPopup& GetDerivedImplementation( Toolkit::ConfirmationPopup& popup )
+inline Toolkit::Internal::ConfirmationPopup& GetDerivedImplementation(Toolkit::ConfirmationPopup& popup)
 {
 {
-  DALI_ASSERT_ALWAYS( popup );
+  DALI_ASSERT_ALWAYS(popup);
 
   Dali::RefObject& handle = popup.GetImplementation();
 
 
   Dali::RefObject& handle = popup.GetImplementation();
 
-  return static_cast<Toolkit::Internal::ConfirmationPopup&>( handle );
+  return static_cast<Toolkit::Internal::ConfirmationPopup&>(handle);
 }
 
 }
 
-inline const Toolkit::Internal::ConfirmationPopup& GetDerivedImplementation( const Toolkit::ConfirmationPopup& popup )
+inline const Toolkit::Internal::ConfirmationPopup& GetDerivedImplementation(const Toolkit::ConfirmationPopup& popup)
 {
 {
-  DALI_ASSERT_ALWAYS( popup );
+  DALI_ASSERT_ALWAYS(popup);
 
   const Dali::RefObject& handle = popup.GetImplementation();
 
 
   const Dali::RefObject& handle = popup.GetImplementation();
 
-  return static_cast<const Toolkit::Internal::ConfirmationPopup&>( handle );
+  return static_cast<const Toolkit::Internal::ConfirmationPopup&>(handle);
 }
 
 }
 
-
 } // namespace Toolkit
 
 } // namespace Dali
 } // namespace Toolkit
 
 } // namespace Dali