Merge "[4.0] Add locale property setting" into tizen_4.0
authorHyunJu Shin <hyunjushin@samsung.com>
Fri, 22 Dec 2017 07:52:30 +0000 (07:52 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 22 Dec 2017 07:52:30 +0000 (07:52 +0000)
25 files changed:
adaptors/devel-api/file.list
adaptors/public-api/adaptor-framework/widget-application.cpp [moved from adaptors/devel-api/adaptor-framework/widget-application.cpp with 100% similarity]
adaptors/public-api/adaptor-framework/widget-application.h [moved from adaptors/devel-api/adaptor-framework/widget-application.h with 93% similarity]
adaptors/public-api/adaptor-framework/widget-impl.cpp [moved from adaptors/devel-api/adaptor-framework/widget-impl.cpp with 100% similarity]
adaptors/public-api/adaptor-framework/widget-impl.h [moved from adaptors/devel-api/adaptor-framework/widget-impl.h with 100% similarity]
adaptors/public-api/adaptor-framework/widget.cpp [moved from adaptors/devel-api/adaptor-framework/widget.cpp with 100% similarity]
adaptors/public-api/adaptor-framework/widget.h [moved from adaptors/devel-api/adaptor-framework/widget.h with 95% similarity]
adaptors/public-api/dali-adaptor-version.cpp
adaptors/public-api/dali.h
adaptors/public-api/file.list
adaptors/tizen/file-3.list
adaptors/tizen/file.list
adaptors/tizen/widget-application-impl-tizen-3.cpp [new file with mode: 0644]
adaptors/tizen/widget-application-impl-tizen.cpp [moved from adaptors/tizen/widget-application-impl.cpp with 100% similarity]
adaptors/tizen/widget-application-impl.h
adaptors/tizen/widget-controller-tizen-3.cpp [new file with mode: 0644]
adaptors/tizen/widget-controller-tizen.cpp [moved from adaptors/tizen/widget-controller.cpp with 100% similarity]
adaptors/tizen/widget-controller.h
adaptors/ubuntu/file.list
adaptors/ubuntu/widget-application-impl-ubuntu.cpp [new file with mode: 0644]
adaptors/ubuntu/widget-application-impl.h [new file with mode: 0644]
adaptors/ubuntu/widget-controller-ubuntu.cpp [new file with mode: 0644]
adaptors/ubuntu/widget-controller.h [new file with mode: 0644]
build/tizen/adaptor/Makefile.am
packaging/dali-adaptor.spec

index 3a33fd0..bff0658 100644 (file)
@@ -68,14 +68,3 @@ devel_api_adaptor_framework_header_files = \
   $(adaptor_devel_api_dir)/adaptor-framework/key-extension-plugin.h \
   $(adaptor_devel_api_dir)/adaptor-framework/virtual-keyboard.h \
   $(adaptor_devel_api_dir)/adaptor-framework/physical-keyboard.h
-
-adaptor_widget_src_files = \
-  $(adaptor_devel_api_dir)/adaptor-framework/widget.cpp \
-  $(adaptor_devel_api_dir)/adaptor-framework/widget-impl.cpp \
-  $(adaptor_devel_api_dir)/adaptor-framework/widget-application.cpp
-
-adaptor_widget_header_files = \
-  $(adaptor_devel_api_dir)/adaptor-framework/widget.h \
-  $(adaptor_devel_api_dir)/adaptor-framework/widget-impl.h \
-  $(adaptor_devel_api_dir)/adaptor-framework/widget-application.h
-
  */
 
 // INTERNAL INCLUDES
-#include <public-api/adaptor-framework/application.h>
-
+#ifdef DALI_ADAPTOR_COMPILATION  // full path doesn't exist until adaptor is installed so we have to use relative
+#include <application.h>
+#else
+#include <dali/public-api/adaptor-framework/application.h>
+#endif
 namespace Dali
 {
 
@@ -130,7 +133,7 @@ public:
    * @brief Copy Constructor.
    *
    * @SINCE_1_3_5
-   * @param[in] WidgetApplication Handle to an object
+   * @param[in] widgetApplication Handle to an object
    */
   WidgetApplication( const WidgetApplication& widgetApplication );
 
@@ -138,7 +141,7 @@ public:
    * @brief Assignment operator.
    *
    * @SINCE_1_3_5
-   * @param[in] WidgetApplication Handle to an object
+   * @param[in] widgetApplication Handle to an object
    * @return A reference to this
    */
   WidgetApplication& operator=( const WidgetApplication& widgetApplication );
@@ -73,20 +73,21 @@ public:
 
   /**
    * @brief The default constructor.
+   * @SINCE_1_3_5
    */
   Widget();
 
   /**
    * @brief Copy Constructor.
    * @SINCE_1_3_5
-   * @param[in] Widget Handle to an object
+   * @param[in] widget Handle to an object
    */
   Widget( const Widget& widget );
 
   /**
    * @brief Assignment operator.
    * @SINCE_1_3_5
-   * @param[in] Widget Handle to an object
+   * @param[in] widget Handle to an object
    * @return A reference to this
    */
   Widget& operator=( const Widget& widget );
index 5eeed15..9b7cec9 100755 (executable)
@@ -28,7 +28,7 @@ namespace Dali
 
 const unsigned int ADAPTOR_MAJOR_VERSION = 1;
 const unsigned int ADAPTOR_MINOR_VERSION = 2;
-const unsigned int ADAPTOR_MICRO_VERSION = 75;
+const unsigned int ADAPTOR_MICRO_VERSION = 76;
 const char * const ADAPTOR_BUILD_DATE    = __DATE__ " " __TIME__;
 
 #ifdef DEBUG_ENABLED
index 8a37838..0b7f78a 100644 (file)
@@ -28,6 +28,9 @@
 #include <dali/public-api/adaptor-framework/timer.h>
 #include <dali/public-api/adaptor-framework/tts-player.h>
 #include <dali/public-api/adaptor-framework/native-image-source.h>
+#include <dali/public-api/adaptor-framework/widget-application.h>
+#include <dali/public-api/adaptor-framework/widget.h>
+#include <dali/public-api/adaptor-framework/widget-impl.h>
 #include <dali/public-api/dali-adaptor-version.h>
 
 #endif //__DALI_H__
index 4df586a..539cebb 100644 (file)
@@ -5,6 +5,9 @@ public_api_src_files = \
   $(adaptor_public_api_dir)/adaptor-framework/timer.cpp \
   $(adaptor_public_api_dir)/adaptor-framework/tts-player.cpp \
   $(adaptor_public_api_dir)/adaptor-framework/native-image-source.cpp \
+  $(adaptor_public_api_dir)/adaptor-framework/widget.cpp \
+  $(adaptor_public_api_dir)/adaptor-framework/widget-impl.cpp \
+  $(adaptor_public_api_dir)/adaptor-framework/widget-application.cpp \
   $(adaptor_public_api_dir)/dali-adaptor-version.cpp
 
 
@@ -22,7 +25,10 @@ public_api_adaptor_framework_header_files = \
   $(adaptor_public_api_dir)/adaptor-framework/timer.h \
   $(adaptor_public_api_dir)/adaptor-framework/tts-player.h \
   $(adaptor_public_api_dir)/adaptor-framework/native-image-source.h \
-  $(adaptor_public_api_dir)/adaptor-framework/window.h
+  $(adaptor_public_api_dir)/adaptor-framework/window.h \
+  $(adaptor_public_api_dir)/adaptor-framework/widget.h \
+  $(adaptor_public_api_dir)/adaptor-framework/widget-impl.h \
+  $(adaptor_public_api_dir)/adaptor-framework/widget-application.h
 
 adaptor_dali_header_file = \
   $(adaptor_public_api_dir)/dali.h
index 116f439..e8d0224 100644 (file)
@@ -4,7 +4,9 @@ adaptor_tizen_internal_src_files = \
   $(adaptor_tizen_dir)/adaptor-impl-tizen.cpp \
   $(adaptor_tizen_dir)/vsync-monitor-tizen.cpp \
   $(adaptor_tizen_dir)/tilt-sensor-impl-tizen.cpp \
-  $(adaptor_tizen_dir)/tts-player-impl-tizen.cpp
+  $(adaptor_tizen_dir)/tts-player-impl-tizen.cpp \
+  $(adaptor_tizen_dir)/widget-application-impl-tizen-3.cpp \
+  $(adaptor_tizen_dir)/widget-controller-tizen-3.cpp
 
 # common to tizen platforms except not for mobile
 adaptor_tizen_internal_non_mobile_src_files = \
index 3b8ee99..dbe41c9 100644 (file)
@@ -4,7 +4,9 @@ adaptor_tizen_internal_src_files = \
   $(adaptor_tizen_dir)/adaptor-impl-tizen.cpp \
   $(adaptor_tizen_dir)/vsync-monitor-tizen.cpp \
   $(adaptor_tizen_dir)/tilt-sensor-impl-tizen.cpp \
-  $(adaptor_tizen_dir)/tts-player-impl-tizen.cpp
+  $(adaptor_tizen_dir)/tts-player-impl-tizen.cpp \
+  $(adaptor_tizen_dir)/widget-application-impl-tizen.cpp \
+  $(adaptor_tizen_dir)/widget-controller-tizen.cpp
 
 # common to tizen platforms except not for mobile
 adaptor_tizen_internal_non_mobile_src_files = \
@@ -21,10 +23,6 @@ adaptor_tizen_internal_native_image_src_files = \
   $(adaptor_tizen_dir)/native-render-surface-factory-tizen.cpp \
   $(adaptor_tizen_dir)/native-image-source-impl-tizen.cpp
 
-adaptor_tizen_internal_widget_src_files = \
-  $(adaptor_tizen_dir)/widget-application-impl.cpp \
-  $(adaptor_tizen_dir)/widget-controller.cpp
-
 public_api_adaptor_tizen_header_files = \
   $(adaptor_tizen_dir)/key-grab.h
 
diff --git a/adaptors/tizen/widget-application-impl-tizen-3.cpp b/adaptors/tizen/widget-application-impl-tizen-3.cpp
new file mode 100644 (file)
index 0000000..7248442
--- /dev/null
@@ -0,0 +1,111 @@
+/*
+ * Copyright (c) 2017 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// CLASS HEADER
+#include "widget-application-impl.h"
+
+// INTERNAL INCLUDE
+#include <widget.h>
+#include <widget-impl.h>
+#include <widget-controller.h>
+#include <dali/integration-api/debug.h>
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+WidgetApplicationPtr WidgetApplication::New(
+  int* argc,
+  char **argv[],
+  const std::string& stylesheet)
+{
+  WidgetApplicationPtr widgetApplication( new WidgetApplication (argc, argv, stylesheet ) );
+  return widgetApplication;
+}
+
+WidgetApplication::WidgetApplication( int* argc, char** argv[], const std::string& stylesheet )
+:Application(argc, argv, stylesheet, Dali::WidgetApplication::OPAQUE, PositionSize(), Framework::WIDGET)
+{
+  DALI_LOG_ERROR("WidgetApplication is not implemented in 3.0 tizen profile.\n");
+}
+
+WidgetApplication::~WidgetApplication()
+{
+}
+
+
+void WidgetApplication::RegisterWidgetCreatingFunction( const std::string& widgetName, Dali::WidgetApplication::CreateWidgetFunction createFunction )
+{
+}
+
+void WidgetApplication::AddWidgetCreatingFunctionPair( CreateWidgetFunctionPair pair )
+{
+  mCreateWidgetFunctionContainer.push_back( pair );
+}
+
+WidgetApplication::CreateWidgetFunctionPair WidgetApplication::GetWidgetCreatingFunctionPair( const std::string& widgetName )
+{
+  for( CreateWidgetFunctionContainer::const_iterator iter = mCreateWidgetFunctionContainer.begin(); iter != mCreateWidgetFunctionContainer.end(); ++iter )
+  {
+    if( widgetName.find((*iter).first) != std::string::npos  )
+    {
+      return *iter;
+    }
+  }
+
+  return CreateWidgetFunctionPair( "", NULL );
+}
+
+void WidgetApplication::AddWidget( widget_base_instance_h widgetBaseInstance, Dali::Widget widget )
+{
+  mWidgetInstanceContainer.push_back( WidgetInstancePair(widgetBaseInstance, widget) );
+}
+
+Dali::Widget WidgetApplication::GetWidget( widget_base_instance_h widgetBaseInstance )
+{
+  for( WidgetInstanceContainer::const_iterator iter = mWidgetInstanceContainer.begin(); iter != mWidgetInstanceContainer.end(); ++iter )
+  {
+    if( (*iter).first == widgetBaseInstance  )
+    {
+      return (*iter).second;
+    }
+  }
+  return Dali::Widget();
+}
+
+void WidgetApplication::DeleteWidget( widget_base_instance_h widgetBaseInstance )
+{
+  for( WidgetInstanceContainer::const_iterator iter = mWidgetInstanceContainer.begin(); iter != mWidgetInstanceContainer.end(); ++iter )
+  {
+    if( (*iter).first == widgetBaseInstance  )
+    {
+      mWidgetInstanceContainer.erase(iter);
+      break;
+    }
+  }
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
index 1c33993..57ae1ca 100644 (file)
@@ -19,7 +19,9 @@
  */
 
 // EXTERNAL INCLUDES
+#ifdef WIDGET_SUPPOERTED
 #include <widget_base.h>
+#endif
 
 // INTERNAL INCLUDES
 #include <application-impl.h>
@@ -45,6 +47,10 @@ class WidgetApplication : public Application
 {
 public:
 
+#ifndef WIDGET_SUPPOERTED
+  typedef void* widget_base_instance_h;
+#endif
+
   typedef std::pair<const std::string, Dali::WidgetApplication::CreateWidgetFunction >  CreateWidgetFunctionPair;
   typedef std::vector< CreateWidgetFunctionPair >   CreateWidgetFunctionContainer;
 
diff --git a/adaptors/tizen/widget-controller-tizen-3.cpp b/adaptors/tizen/widget-controller-tizen-3.cpp
new file mode 100644 (file)
index 0000000..aa87134
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ * Copyright (c) 2017 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// CLASS HEADER
+#include "widget-controller.h"
+
+// EXTERNAL INCLUDES
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+Widget::Impl::Impl( widget_base_instance_h instanceHandle )
+: mInstanceHandle( instanceHandle )
+{
+}
+
+Widget::Impl::~Impl()
+{
+}
+
+void Widget::Impl::SetContentInfo( const std::string& contentInfo )
+{
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
index 3a6a485..a1c0949 100644 (file)
@@ -22,7 +22,9 @@
 #include <dali/public-api/signals/connection-tracker.h>
 
 // INTERNAL INCLUDES
+#ifdef WIDGET_SUPPOERTED
 #include <widget_base.h>
+#endif
 #include <widget-impl.h>
 
 namespace Dali
@@ -41,6 +43,10 @@ class Widget::Impl : public ConnectionTracker
 {
 public:
 
+#ifndef WIDGET_SUPPOERTED
+  typedef void* widget_base_instance_h;
+#endif
+
   /**
    * Constructor
    */
index feee7e9..0f06341 100644 (file)
@@ -7,4 +7,6 @@ adaptor_ubuntu_internal_src_files = \
   $(adaptor_ubuntu_dir)/vsync-monitor-ubuntu.cpp \
   $(adaptor_ubuntu_dir)/tilt-sensor-impl-ubuntu.cpp \
   $(adaptor_ubuntu_dir)/tts-player-impl-ubuntu.cpp \
-  $(adaptor_ubuntu_dir)/key-mapping-ubuntu.cpp
+  $(adaptor_ubuntu_dir)/key-mapping-ubuntu.cpp \
+  $(adaptor_ubuntu_dir)/widget-application-impl-ubuntu.cpp \
+  $(adaptor_ubuntu_dir)/widget-controller-ubuntu.cpp
diff --git a/adaptors/ubuntu/widget-application-impl-ubuntu.cpp b/adaptors/ubuntu/widget-application-impl-ubuntu.cpp
new file mode 100644 (file)
index 0000000..321a6e7
--- /dev/null
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) 2017 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// CLASS HEADER
+#include "widget-application-impl.h"
+#include <dali/integration-api/debug.h>
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+WidgetApplicationPtr WidgetApplication::New(
+  int* argc,
+  char **argv[],
+  const std::string& stylesheet)
+{
+  WidgetApplicationPtr widgetApplication( new WidgetApplication (argc, argv, stylesheet ) );
+  return widgetApplication;
+}
+
+WidgetApplication::WidgetApplication( int* argc, char** argv[], const std::string& stylesheet )
+:Application(argc, argv, stylesheet, Dali::WidgetApplication::OPAQUE, PositionSize(), Framework::NORMAL)
+{
+  DALI_LOG_ERROR("WidgetApplication is not implemented in UBUNTU profile.\n");
+}
+
+WidgetApplication::~WidgetApplication()
+{
+}
+
+
+void WidgetApplication::RegisterWidgetCreatingFunction( const std::string& widgetName, Dali::WidgetApplication::CreateWidgetFunction createFunction )
+{
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
diff --git a/adaptors/ubuntu/widget-application-impl.h b/adaptors/ubuntu/widget-application-impl.h
new file mode 100644 (file)
index 0000000..a15ef4b
--- /dev/null
@@ -0,0 +1,109 @@
+#ifndef DALI_INTERNAL_WIDGET_APPLICATION_H
+#define DALI_INTERNAL_WIDGET_APPLICATION_H
+
+/*
+ * Copyright (c) 2017 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// INTERNAL INCLUDES
+#include <application-impl.h>
+#include <widget-application.h>
+
+namespace Dali
+{
+class Widget;
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+class WidgetApplication;
+typedef IntrusivePtr<WidgetApplication> WidgetApplicationPtr;
+
+/**
+ * Implementation of the WidgetApplication class.
+ */
+class WidgetApplication : public Application
+{
+public:
+
+  typedef std::pair<const std::string, Dali::WidgetApplication::CreateWidgetFunction >  CreateWidgetFunctionPair;
+  typedef std::vector< CreateWidgetFunctionPair >   CreateWidgetFunctionContainer;
+
+  /**
+   * Create a new widget application
+   * @param[in]  argc         A pointer to the number of arguments
+   * @param[in]  argv         A pointer to the argument list
+   * @param[in]  stylesheet   The path to user defined theme file
+   */
+  static WidgetApplicationPtr New( int* argc, char **argv[], const std::string& stylesheet );
+
+public:
+
+  /**
+   * @copydoc Dali::WidgetApplication::RegisterWidgetCreator()
+   */
+  void RegisterWidgetCreatingFunction( const std::string& widgetName, Dali::WidgetApplication::CreateWidgetFunction createFunction );
+
+protected:
+
+  /**
+   * Private Constructor
+   * @param[in]  argc         A pointer to the number of arguments
+   * @param[in]  argv         A pointer to the argument list
+   * @param[in]  stylesheet   The path to user defined theme file
+   */
+  WidgetApplication( int* argc, char **argv[], const std::string& stylesheet );
+
+  /**
+   * Destructor
+   */
+  virtual ~WidgetApplication();
+
+  // Undefined
+  WidgetApplication(const Application&);
+  WidgetApplication& operator=(Application&);
+
+
+};
+
+inline WidgetApplication& GetImplementation(Dali::WidgetApplication& widgetApplication)
+{
+  DALI_ASSERT_ALWAYS(widgetApplication && "widget application handle is empty");
+
+  BaseObject& handle = widgetApplication.GetBaseObject();
+
+  return static_cast<Internal::Adaptor::WidgetApplication&>(handle);
+}
+
+inline const WidgetApplication& GetImplementation(const Dali::WidgetApplication& widgetApplication)
+{
+  DALI_ASSERT_ALWAYS(widgetApplication && "widget application handle is empty");
+
+  const BaseObject& handle = widgetApplication.GetBaseObject();
+
+  return static_cast<const Internal::Adaptor::WidgetApplication&>(handle);
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
+
+#endif // DALI_INTERNAL_WIDGET_APPLICATION_H
diff --git a/adaptors/ubuntu/widget-controller-ubuntu.cpp b/adaptors/ubuntu/widget-controller-ubuntu.cpp
new file mode 100644 (file)
index 0000000..ac247df
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2017 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// CLASS HEADER
+#include "widget-controller.h"
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+Widget::Impl::Impl()
+{
+}
+
+Widget::Impl::~Impl()
+{
+}
+
+void Widget::Impl::SetContentInfo( const std::string& contentInfo )
+{
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
diff --git a/adaptors/ubuntu/widget-controller.h b/adaptors/ubuntu/widget-controller.h
new file mode 100644 (file)
index 0000000..e537530
--- /dev/null
@@ -0,0 +1,67 @@
+#ifndef DALI_WIDGET_CONTROLLER_H
+#define DALI_WIDGET_CONTROLLER_H
+
+/*
+ * Copyright (c) 2017 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.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+// EXTERNAL INCLUDES
+#include <dali/public-api/signals/connection-tracker.h>
+
+// INTERNAL INCLUDES
+#include <widget-impl.h>
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+/**
+ * @brief Holds the Implementation for the internal WidgetImpl class
+ */
+class Widget::Impl : public ConnectionTracker
+{
+public:
+
+  /**
+   * Constructor
+   */
+  Impl();
+
+  /**
+   * Destructor
+   */
+  ~Impl();
+
+public:
+
+  /**
+   * Set content information to widget framework
+   */
+  void SetContentInfo( const std::string& contentInfo );
+};
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
+
+#endif // DALI_WIDGET_CONTROLLER_H
index d310fd8..7983ce9 100644 (file)
@@ -256,13 +256,6 @@ endif # WAYLAND
 
 endif # IVI_PROFILE
 
-if USE_APPFW
-if USE_APPFW_EFL_BASE
-else
-adaptor_internal_src_files += $(adaptor_tizen_internal_widget_src_files)
-endif
-endif
-
 main_loop_integration_src_files = $(adaptor_common_internal_ecore_src_files)
 input_event_handler_src_files = $(adaptor_ecore_x_event_handler_internal_src_files)
 
@@ -296,14 +289,6 @@ LIBDALI_ADAPTOR_LA_SOURCES += \
   $(base_adaptor_networking_src_files)
 endif
 
-if USE_APPFW
-if USE_APPFW_EFL_BASE
-else # over Tizen 3.0
-LIBDALI_ADAPTOR_LA_SOURCES += \
-                     $(adaptor_widget_src_files)
-endif
-endif
-
 libdali_adaptor_la_DEPENDENCIES =
 
 # List include directories with more platform-specific (tizen) before portable root:
@@ -463,7 +448,8 @@ LIBDALI_ADAPTOR_LA_CXXFLAGS += $(BUNDLE_CFLAGS) \
                                $(CAPI_APPFW_CONTROL_CFLAGS) \
                                $(CAPI_APPFW_WIDGET_BASE_CFLAGS) \
                                $(ECORE_IMF_CFLAGS) \
-                               $(FRIBIDI_CFLAGS)
+                               $(FRIBIDI_CFLAGS) \
+                               -DWIDGET_SUPPOERTED
 
 LIBDALI_ADAPTOR_LA_LIBADD += $(BUNDLE_LIBS) \
                              $(CAPI_APPFW_COMMON_LIBS) \
@@ -596,13 +582,6 @@ tizenwatchpublicapi_HEADERS = $(public_dali_watch_header_files)
 tizencapturepublicapidir = $(tizenadaptorpublicapidir)/capture
 tizencapturepublicapi_HEADERS = $(public_dali_capture_header_files)
 
-if USE_APPFW
-if USE_APPFW_EFL_BASE
-else
-tizenadaptorframeworkdevelapi_HEADERS += $(adaptor_widget_header_files)
-endif
-endif
-
 install-data-local:
        $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}
 
index 2c9ea46..cd25865 100755 (executable)
@@ -19,7 +19,7 @@
 
 Name:       dali-adaptor
 Summary:    The DALi Tizen Adaptor
-Version:    1.2.75
+Version:    1.2.76
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0 and BSD-3-Clause and MIT