X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Fdevel-api%2Fcontrols%2Fpopup%2Fconfirmation-popup.h;h=ebf6a65e88eeee4e0b2172bfad07f7a9665b7399;hb=HEAD;hp=4a804cbea3f10546fc5f95b2b5892cc9a5ebb267;hpb=b694e7e2ae624e206e1548b1a863c554eb9cd4d7;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/devel-api/controls/popup/confirmation-popup.h b/dali-toolkit/devel-api/controls/popup/confirmation-popup.h index 4a804cb..ebf6a65 100644 --- a/dali-toolkit/devel-api/controls/popup/confirmation-popup.h +++ b/dali-toolkit/devel-api/controls/popup/confirmation-popup.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_CONFIRMATION_POPUP_H /* - * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * Copyright (c) 2022 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. @@ -23,10 +23,8 @@ namespace Dali { - namespace Toolkit { - // Forward declarations namespace Internal DALI_INTERNAL { @@ -51,14 +49,13 @@ class ConfirmationPopup; class DALI_TOOLKIT_API ConfirmationPopup : public Popup { public: - /** * @brief The start and end property ranges for this control. */ enum PropertyRange { PROPERTY_START_INDEX = Control::CONTROL_PROPERTY_END_INDEX + 1 + DEFAULT_PROPERTY_MAX_COUNT_PER_DERIVATION + 1, - PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices + PROPERTY_END_INDEX = PROPERTY_START_INDEX + 1000 ///< Reserve property indices }; /** @@ -78,8 +75,8 @@ public: */ enum ControlIndex { - CONTROL_OK = 0, ///< Index of control 1 - CONTROL_CANCEL, ///< Index of control 2 + CONTROL_OK = 0, ///< Index of control 1 + CONTROL_CANCEL, ///< Index of control 2 }; /** @@ -91,13 +88,29 @@ public: /** * @brief Copy constructor. + * @param[in] confirmationPopup The handle to copy from. */ - ConfirmationPopup( const ConfirmationPopup& confirmationPopup ); + ConfirmationPopup(const ConfirmationPopup& confirmationPopup); /** * @brief Assignment operator. + * @param[in] confirmationPopup The handle to copy from. + * @return reference to this + */ + ConfirmationPopup& operator=(const ConfirmationPopup& confirmationPopup); + + /** + * @brief Move constructor. + * @param[in] confirmationPopup The handle to move from. */ - ConfirmationPopup& operator=( const ConfirmationPopup& confirmationPopup ); + ConfirmationPopup(ConfirmationPopup&& confirmationPopup); + + /** + * @brief Move assignment operator. + * @param[in] confirmationPopup The handle to move from. + * @return reference to this + */ + ConfirmationPopup& operator=(ConfirmationPopup&& confirmationPopup); /** * @brief Destructor. @@ -122,23 +135,22 @@ public: * @param[in] handle Handle to an object * @return handle to a ConfirmationPopup or an uninitialized handle */ - static ConfirmationPopup DownCast( BaseHandle handle ); + static ConfirmationPopup DownCast(BaseHandle handle); public: // Not intended for application developers - /** * @brief Creates a handle using the Toolkit::Internal implementation. * * @param[in] implementation The Control implementation. */ - DALI_INTERNAL ConfirmationPopup( Internal::ConfirmationPopup& implementation ); + DALI_INTERNAL ConfirmationPopup(Internal::ConfirmationPopup& implementation); /** * @brief Allows the creation of this Control from an Internal::CustomActor pointer. * * @param[in] internal A pointer to the internal CustomActor. */ - DALI_INTERNAL ConfirmationPopup( Dali::Internal::CustomActor* internal ); + DALI_INTERNAL ConfirmationPopup(Dali::Internal::CustomActor* internal); }; } // namespace Toolkit