X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fscrollable%2Fitem-view%2Fitem-factory.h;h=36c34f09c094ffb55ac36f17adf0df0a9c83572a;hp=e02c62b2a86e2d819cf2f3b343d1b531d317a3d3;hb=2eb0f016cf4d8a8282681283ae0e842c0c67bded;hpb=68106e2cbb8541c18a77f39770ea7759f44e02a0 diff --git a/dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h b/dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h index e02c62b..36c34f0 100644 --- a/dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h +++ b/dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h @@ -26,24 +26,33 @@ namespace Dali namespace Toolkit { +/** + * @addtogroup dali_toolkit_controls_item_view + * @{ + */ /** * @brief ItemFactory is for providing actors to ItemView. * Each actor is identified by a unique ID, and has a linear order from 0 to GetNumberOfItems()-1. + * @SINCE_1_0.0 */ class ItemFactory { public: + class Extension; ///< Forward declare future extension interface + /** * @brief Virtual destructor. + * @SINCE_1_0.0 */ - DALI_EXPORT_API virtual ~ItemFactory() = 0; + DALI_EXPORT_API virtual ~ItemFactory() {}; /** * @brief Query the number of items available from the factory. * * The maximum available item has an ID of GetNumberOfItems() - 1. + * @SINCE_1_0.0 * @return the number of items */ virtual unsigned int GetNumberOfItems() = 0; @@ -51,6 +60,7 @@ public: /** * @brief Create an Actor to represent a visible item. * + * @SINCE_1_0.0 * @param[in] itemId The ID of the newly visible item. * @return An actor, or an uninitialized pointer if the ID is out of range. */ @@ -59,12 +69,27 @@ public: /** * @brief Notify the factory the actor representing the item is removed from ItemView. * + * @SINCE_1_0.0 * @param[in] itemId The ID of the released item. * @param[in] actor The actor that represents the released item. */ virtual void ItemReleased(unsigned int itemId, Actor actor) {}; + + /** + * @brief Retrieve the extension for this control + * + * @SINCE_1_0.0 + * @return The extension if available, NULL otherwise + */ + virtual Extension* GetExtension() + { + return NULL; + } }; +/** + * @} + */ } // namespace Toolkit } // namespace Dali