Add move semantics to BaseHandle derived classes in Adaptor public API
[platform/core/uifw/dali-adaptor.git] / dali / public-api / adaptor-framework / widget.h
old mode 100644 (file)
new mode 100755 (executable)
index c22245e..c00a914
@@ -2,7 +2,7 @@
 #define DALI_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.
@@ -21,6 +21,9 @@
 // EXTERNAL INCLUDES
 #include <dali/public-api/object/base-handle.h>
 
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
 namespace Dali
 {
 
@@ -39,7 +42,6 @@ class Widget;
 
 }
 
-class Window;
 
 /**
  * @brief Widget class is the base class for custom widget.
@@ -48,7 +50,7 @@ class Window;
  *
  * @SINCE_1_3_5
  */
-class DALI_IMPORT_API Widget : public BaseHandle
+class DALI_ADAPTOR_API Widget : public BaseHandle
 {
 public:
 
@@ -93,6 +95,23 @@ public:
   Widget& operator=( const Widget& widget );
 
   /**
+   * @brief Move constructor.
+   *
+   * @SINCE_1_9.24
+   * @param[in] rhs A reference to the moved handle
+   */
+  Widget( Widget&& rhs );
+
+  /**
+   * @brief Move assignment operator.
+   *
+   * @SINCE_1_9.24
+   * @param[in] rhs A reference to the moved handle
+   * @return A reference to this handle
+   */
+  Widget& operator=( Widget&& rhs );
+
+  /**
    * @brief Destructor
    * @SINCE_1_3_5
    */