Merge "(ItemFactory) Add GetExtension" into tizen
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Wed, 27 May 2015 10:35:38 +0000 (03:35 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Wed, 27 May 2015 10:35:38 +0000 (03:35 -0700)
automated-tests/src/dali-toolkit/utc-Dali-ItemView.cpp
dali-toolkit/public-api/controls/scrollable/item-view/item-factory.h

index 9efd53f..3dcc6e8 100644 (file)
@@ -763,3 +763,11 @@ int UtcDaliItemViewSetItemsParentOriginP(void)
   DALI_TEST_CHECK(view.GetItem(0).GetCurrentParentOrigin() == parentOrigin);
   END_TEST;
 }
+
+int UtcDaliItemFactoryGetExtention(void)
+{
+  ToolkitTestApplication application;
+  TestItemFactory factory;
+  DALI_TEST_CHECK( factory.GetExtension() == NULL );
+  END_TEST;
+}
index e02c62b..97d12f6 100644 (file)
@@ -35,6 +35,8 @@ class ItemFactory
 {
 public:
 
+  class Extension; ///< Forward declare future extension interface
+
   /**
    * @brief Virtual destructor.
    */
@@ -63,6 +65,16 @@ 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