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=84ef7b74fa5f37fb38844a08cf26208bce7c7c3b;hp=a8bdb3c076b3ad2611803e971c12ecf854f7e3f6;hb=07bbc876b9b069903dd4ed86c9dd5f2f66fc3b86;hpb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2;ds=sidebyside 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 a8bdb3c..84ef7b7 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 @@ -2,7 +2,7 @@ #define __DALI_TOOLKIT_ITEM_FACTORY_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2015 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. @@ -26,6 +26,10 @@ namespace Dali namespace Toolkit { +/** + * @addtogroup dali-toolkit-controls-item-view + * @{ + */ /** * @brief ItemFactory is for providing actors to ItemView. @@ -35,10 +39,12 @@ class ItemFactory { public: + class Extension; ///< Forward declare future extension interface + /** * @brief Virtual destructor. */ - DALI_EXPORT_API virtual ~ItemFactory() = 0; + DALI_EXPORT_API virtual ~ItemFactory() {}; /** * @brief Query the number of items available from the factory. @@ -63,8 +69,21 @@ public: * @param[in] actor The actor that represents the released item. */ virtual void ItemReleased(unsigned int itemId, Actor actor) {}; + + /** + * Retrieve the extension for this control + * + * @return The extension if available, NULL otherwise + */ + virtual Extension* GetExtension() + { + return NULL; + } }; +/** + * @} + */ } // namespace Toolkit } // namespace Dali