Use modern construct 'using' instead of typedef.
[platform/core/uifw/dali-core.git] / dali / public-api / events / tap-gesture-detector.h
index f51ebb4..2fbd806 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_TAP_GESTURE_DETECTOR_H__
-#define __DALI_TAP_GESTURE_DETECTOR_H__
+#ifndef DALI_TAP_GESTURE_DETECTOR_H
+#define DALI_TAP_GESTURE_DETECTOR_H
 
 /*
- * Copyright (c) 2018 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.
@@ -18,6 +18,9 @@
  *
  */
 
+// EXTERNAL INCLUDES
+#include <cstdint> // uint32_t
+
 // INTERNAL INCLUDES
 #include <dali/public-api/events/gesture-detector.h>
 #include <dali/public-api/signals/dali-signal.h>
@@ -34,7 +37,7 @@ namespace Internal DALI_INTERNAL
 class TapGestureDetector;
 }
 
-struct TapGesture;
+class TapGesture;
 
 /**
  * @brief This class emits a signal when a tap gesture occurs that meets the requirements set by the
@@ -72,7 +75,7 @@ public: // Typedefs
    * @brief Signal type for detected signal.
    * @SINCE_1_0.0
    */
-  typedef Signal< void ( Actor, const TapGesture& ) > DetectedSignalType;
+  using DetectedSignalType = Signal<void( Actor, const TapGesture& )>;
 
 public: // Creation & Destruction
 
@@ -100,7 +103,7 @@ public: // Creation & Destruction
    * @param[in] tapsRequired The minimum & maximum number of taps required
    * @return A handle to a newly allocated Dali resource
    */
-  static TapGestureDetector New( unsigned int tapsRequired );
+  static TapGestureDetector New( uint32_t tapsRequired );
 
   /**
    * @brief Downcasts a handle to TapGestureDetector handle.
@@ -147,9 +150,9 @@ public: // Setters
    * @SINCE_1_0.0
    * @param[in] minimumTaps The minimum taps required
    * @pre The gesture detector has been initialized.
-   * @note The default is '1'.
+   * @note The default is '1', the maximum is 2.
    */
-  void SetMinimumTapsRequired( unsigned int minimumTaps );
+  void SetMinimumTapsRequired( uint32_t minimumTaps );
 
   /**
    * @brief Sets the maximum number of taps required.
@@ -158,9 +161,9 @@ public: // Setters
    * @SINCE_1_0.0
    * @param[in] maximumTaps The maximum taps required
    * @pre The gesture detector has been initialized.
-   * @note The default is '1'.
+   * @note The default is '1', the maximum is 2.
    */
-  void SetMaximumTapsRequired( unsigned int maximumTaps );
+  void SetMaximumTapsRequired( uint32_t maximumTaps );
 
 public: // Getters
 
@@ -171,7 +174,7 @@ public: // Getters
    * @return The minimum taps required
    * @pre The gesture detector has been initialized.
    */
-  unsigned int GetMinimumTapsRequired() const;
+  uint32_t GetMinimumTapsRequired() const;
 
   /**
    * @brief Retrieves the maximum number of taps required.
@@ -180,7 +183,7 @@ public: // Getters
    * @return The maximum taps required
    * @pre The gesture detector has been initialized.
    */
-  unsigned int GetMaximumTapsRequired() const;
+  uint32_t GetMaximumTapsRequired() const;
 
 public: // Signals
 
@@ -216,4 +219,4 @@ public: // Not intended for Application developers
 
 } // namespace Dali
 
-#endif // __DALI_TAP_GESTURE_DETECTOR_H__
+#endif // DALI_TAP_GESTURE_DETECTOR_H