Differentiate public header files according to profile 79/76579/3
authorsuhyung Eom <suhyung.eom@samsung.com>
Fri, 24 Jun 2016 08:57:31 +0000 (17:57 +0900)
committersuhyung Eom <suhyung.eom@samsung.com>
Mon, 27 Jun 2016 07:50:13 +0000 (16:50 +0900)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: I96ccf3c8c0ff2f5175a8a792f1b7ca5f5f8cdd50

19 files changed:
adaptors/common/file.list
adaptors/common/framework.h
adaptors/common/watch-application-impl.cpp [deleted file]
adaptors/common/watch-application-impl.h [deleted file]
adaptors/common/watch-time.cpp [deleted file]
adaptors/public-api/adaptor-framework/watch-application.cpp [deleted file]
adaptors/public-api/adaptor-framework/watch-application.h [deleted file]
adaptors/public-api/adaptor-framework/watch-time.h [deleted file]
adaptors/public-api/file.list
adaptors/tizen/framework-tizen.cpp
adaptors/wearable/dali-wearable.h
adaptors/wearable/file.list
adaptors/wearable/watch-application-impl.cpp [new file with mode: 0644]
adaptors/wearable/watch-application-impl.h [new file with mode: 0644]
adaptors/wearable/watch/watch-application.cpp [new file with mode: 0644]
adaptors/wearable/watch/watch-application.h [new file with mode: 0644]
adaptors/wearable/watch/watch-time.cpp [new file with mode: 0644]
adaptors/wearable/watch/watch-time.h [new file with mode: 0644]
build/tizen/adaptor/Makefile.am

index c9c39b725a8b1623184d98fdd2c41f6555531f5b..af0bebe7ae93d520adf3844ef105603436ef46e1 100644 (file)
@@ -28,8 +28,6 @@ adaptor_common_internal_src_files = \
   $(adaptor_common_dir)/style-monitor-impl.cpp \
   $(adaptor_common_dir)/trigger-event.cpp \
   $(adaptor_common_dir)/trigger-event-factory.cpp \
-  $(adaptor_common_dir)/watch-application-impl.cpp \
-  $(adaptor_common_dir)/watch-time.cpp \
   $(adaptor_common_dir)/key-impl.cpp \
   $(adaptor_common_dir)/video-player-impl.cpp \
   $(adaptor_common_dir)/events/gesture-manager.cpp \
index b0c88fd75b72f812109207d48e1fa5cadbb8a5ca..4dacf5f581aee7c263a5a42d1bc64bb62c5d408d 100644 (file)
@@ -21,7 +21,9 @@
 // EXTERNAL INCLUDES
 #include <string>
 #include <dali/public-api/signals/callback.h>
-#include <watch-application.h>
+#ifdef APPCORE_WATCH_AVAILABLE
+#include "wearable/watch/watch-application.h"
+#endif
 
 // INTERNAL INCLUDES
 #include <abort-handler.h>
@@ -87,6 +89,7 @@ public:
     */
     virtual void OnAppControl(void *) {}
 
+#ifdef APPCORE_WATCH_AVAILABLE
     /**
      * Invoked at every second
      */
@@ -101,6 +104,7 @@ public:
      * Invoked when the device enters or exits ambient mode
      */
     virtual void OnAmbientChanged(bool ambient) {}
+#endif
 
     /**
      * Invoked when the language of the device is changed.
diff --git a/adaptors/common/watch-application-impl.cpp b/adaptors/common/watch-application-impl.cpp
deleted file mode 100644 (file)
index da3eae8..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Copyright (c) 2016 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 "watch-application-impl.h"
-
-namespace Dali
-{
-
-namespace Internal
-{
-
-namespace Adaptor
-{
-
-WatchApplicationPtr WatchApplication::New(
-  int* argc,
-  char **argv[],
-  const std::string& stylesheet,
-  Dali::WatchApplication::WINDOW_MODE windowMode)
-{
-  WatchApplicationPtr watch ( new WatchApplication (argc, argv, stylesheet, windowMode ) );
-  return watch;
-}
-
-WatchApplication::WatchApplication( int* argc, char** argv[], const std::string& stylesheet, Dali::Application::WINDOW_MODE windowMode )
-: Application(argc, argv, stylesheet, windowMode, Framework::WATCH)
-{
-}
-
-WatchApplication::~WatchApplication()
-{
-}
-
-void WatchApplication::OnTimeTick(WatchTime& time)
-{
-  Dali::WatchApplication watch(this);
-  mTickSignal.Emit( watch, time );
-}
-
-void WatchApplication::OnAmbientTick(WatchTime& time)
-{
-  Dali::WatchApplication watch(this);
-  mAmbientTickSignal.Emit( watch, time );
-}
-
-void WatchApplication::OnAmbientChanged(bool ambient)
-{
-  Dali::WatchApplication watch(this);
-  mAmbientChangeSignal.Emit( watch, ambient );
-}
-
-} // namespace Adaptor
-
-} // namespace Internal
-
-} // namespace Dali
diff --git a/adaptors/common/watch-application-impl.h b/adaptors/common/watch-application-impl.h
deleted file mode 100644 (file)
index 5466497..0000000
+++ /dev/null
@@ -1,126 +0,0 @@
-#ifndef __DALI_INTERNAL_WATCH_APPLICATION_H__
-#define __DALI_INTERNAL_WATCH_APPLICATION_H__
-
-/*
- * Copyright (c) 2016 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 <watch-application.h>
-#include <application-impl.h>
-
-namespace Dali
-{
-class Adaptor;
-
-namespace Internal
-{
-
-namespace Adaptor
-{
-
-class WatchApplication;
-typedef IntrusivePtr<WatchApplication> WatchApplicationPtr;
-
-/**
- * Implementation of the WatchApplication class.
- */
-class WatchApplication : public Application
-{
-public:
-  typedef Dali::WatchApplication::WatchTimeSignal WatchTimeSignal;
-  typedef Dali::WatchApplication::WatchBoolSignal WatchBoolSignal;
-
-  /**
-   * Create a new watch
-   * @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
-   * @param[in]  windowMode  A member of Dali::Watch::WINDOW_MODE
-   */
-  static WatchApplicationPtr New( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode );
-
-  /**
-   * 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
-   * @param[in]  windowMode  A member of Dali::Watch::WINDOW_MODE
-   */
-  WatchApplication( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode );
-
-  /**
-   * Destructor
-   */
-  virtual ~WatchApplication();
-
-  /**
-   * Called every second
-   */
-  void OnTimeTick(WatchTime& time);
-
-  /**
-   * Called every second in ambient mode
-   */
-  void OnAmbientTick(WatchTime& time);
-
-  /**
-   * Called when the device enters or exits ambient mode
-   */
-  void OnAmbientChanged(bool ambient);
-
-private:
-
-  // @brief Undefined copy constructor.
-  WatchApplication( const WatchApplication& );
-
-  // @brief Undefined assignment operator.
-  WatchApplication& operator=( const WatchApplication& );
-
-public:
-
-  // Signals
-  WatchTimeSignal                        mTickSignal;
-  WatchTimeSignal                        mAmbientTickSignal;
-  WatchBoolSignal                      mAmbientChangeSignal;
-};
-
-inline WatchApplication& GetImplementation(Dali::WatchApplication& watch)
-{
-  DALI_ASSERT_ALWAYS(watch && "watch handle is empty");
-
-  BaseObject& handle = watch.GetBaseObject();
-
-  return static_cast<Internal::Adaptor::WatchApplication&>(handle);
-}
-
-inline const WatchApplication& GetImplementation(const Dali::WatchApplication& watch)
-{
-  DALI_ASSERT_ALWAYS(watch && "Time handle is empty");
-
-  const BaseObject& handle = watch.GetBaseObject();
-
-  return static_cast<const Internal::Adaptor::WatchApplication&>(handle);
-}
-
-
-} // namespace Adaptor
-
-} // namespace Internal
-
-} // namespace Dali
-
-#endif // __DALI_INTERNAL_WATCH_APPLICATION_H__
diff --git a/adaptors/common/watch-time.cpp b/adaptors/common/watch-time.cpp
deleted file mode 100644 (file)
index 756b84e..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-/*
- * Copyright (c) 2016 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 <watch-time.h>
-
-// EXTERNAL INCLUDES
-#ifdef APPCORE_WATCH_AVAILABLE
-#include <appcore-watch/watch_app.h>
-#endif
-
-namespace Dali
-{
-
-struct WatchTime::Impl
-{
-  Impl(void *time_handle)
-  : mTimeHandle(time_handle)
-  {
-  }
-
-  void *mTimeHandle;
-};
-
-WatchTime::WatchTime()
-  :mImpl(NULL)
-{
-}
-
-WatchTime::WatchTime(void *time_handle)
-{
-  mImpl = new Impl(time_handle);
-}
-
-WatchTime::~WatchTime()
-{
-  if( mImpl )
-  {
-    delete mImpl;
-    mImpl = NULL;
-  }
-}
-
-#ifdef APPCORE_WATCH_AVAILABLE
-
-int WatchTime::GetHour() const
-{
-  int hour;
-
-  watch_time_get_hour(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &hour);
-  return hour;
-}
-
-int WatchTime::GetHour24() const
-{
-  int hour24;
-
-  watch_time_get_hour24(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &hour24);
-  return hour24;
-}
-
-int WatchTime::GetMinute() const
-{
-  int minute;
-
-  watch_time_get_minute(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &minute);
-  return minute;
-}
-
-int WatchTime::GetSecond() const
-{
-  int second;
-
-  watch_time_get_second(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &second);
-  return second;
-}
-
-#else
-
-int WatchTime::GetHour() const
-{
-  return 0;
-}
-
-int WatchTime::GetHour24() const
-{
-  return 0;
-}
-
-int WatchTime::GetMinute() const
-{
-  return 0;
-}
-
-int WatchTime::GetSecond() const
-{
-  return 0;
-}
-
-#endif
-
-} // namespace Dali
diff --git a/adaptors/public-api/adaptor-framework/watch-application.cpp b/adaptors/public-api/adaptor-framework/watch-application.cpp
deleted file mode 100644 (file)
index 102b1b9..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-/*
- * Copyright (c) 2016 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 <watch-application.h>
-
-// EXTERNAL INCLUDES
-#include <dali/integration-api/debug.h>
-
-// INTERNAL INCLUDES
-#include <watch-application-impl.h>
-
-namespace Dali
-{
-
-WatchApplication WatchApplication::New()
-{
-  return New( NULL, NULL );
-}
-
-WatchApplication WatchApplication::New( int* argc, char **argv[] )
-{
-  Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New( argc, argv, "", OPAQUE );
-  return WatchApplication(internal.Get());
-}
-
-WatchApplication WatchApplication::New( int* argc, char **argv[], const std::string& stylesheet )
-{
-  Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New( argc, argv, stylesheet, OPAQUE );
-  return WatchApplication(internal.Get());
-}
-
-WatchApplication::~WatchApplication()
-{
-}
-
-WatchApplication::WatchApplication()
-{
-}
-
-WatchApplication::WatchApplication(const WatchApplication& implementation)
-: Application(implementation)
-{
-}
-
-WatchApplication& WatchApplication::operator=(const WatchApplication& application)
-{
-  if( *this != application )
-  {
-    BaseHandle::operator=( application );
-  }
-  return *this;
-}
-
-WatchApplication::WatchTimeSignal& WatchApplication::TimeTickSignal()
-{
-  return Internal::Adaptor::GetImplementation(*this).mTickSignal;
-}
-
-WatchApplication::WatchTimeSignal& WatchApplication::AmbientTickSignal()
-{
-  return Internal::Adaptor::GetImplementation(*this).mAmbientTickSignal;
-}
-
-WatchApplication::WatchBoolSignal& WatchApplication::AmbientChangedSignal()
-{
-  return Internal::Adaptor::GetImplementation(*this).mAmbientChangeSignal;
-}
-
-WatchApplication::WatchApplication(Internal::Adaptor::WatchApplication* implementation)
-: Application(implementation)
-{
-}
-
-
-} // namespace Dali
diff --git a/adaptors/public-api/adaptor-framework/watch-application.h b/adaptors/public-api/adaptor-framework/watch-application.h
deleted file mode 100644 (file)
index 1ba7695..0000000
+++ /dev/null
@@ -1,202 +0,0 @@
-#ifndef __DALI_WATCH_APPLICATION_H__
-#define __DALI_WATCH_APPLICATION_H__
-
-/*
- * Copyright (c) 2016 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 <string>
-#include <dali/public-api/object/base-handle.h>
-#include <dali/public-api/signals/callback.h>
-
-// INTERNAL INCLUDES
-#include "application.h"
-#include "watch-time.h"
-
-namespace Dali
-{
-/**
- * @addtogroup dali_adaptor_framework
- * @{
- */
-namespace Internal DALI_INTERNAL
-{
-namespace Adaptor
-{
-class WatchApplication;
-}
-}
-
-/**
- * @brief A WatchApplication class object should be created by every watch application
- * that wishes to use Dali.
- *
- * It provides a means for initialising the resources required by the Dali::Core.
- * Like Application class, the WatchApplication class manages Tizen watch application life cycle.
- *
- * The WatchApplication class emits additional signals which are availalble only in the watch application
- * (TimeTick, AmbientTick, AmbientChanged)
- *
- * This feature is supported in wearable applications only.
- *
- * WatchApplication should follow the example below:
- *
- * @code
- * class ExampleController: public ConnectionTracker
- * {
- * public:
- *   ExampleController( WatchApplication& application )
- *   : mApplication( application )
- *   {
- *     mApplication.InitSignal().Connect( this, &ExampleController::Create );
- *   }
- *
- *   void Create( Application& application )
- *   {
- *     // Create Dali components...
- *   }
- *  ...
- * private:
- *   WatchApplication&  mApplication;
- * };
- *
- * int DALI_EXPORT_API main (int argc, char **argv)
- * {
- *   WatchApplication app = WatchApplication::New(&argc, &argv);
- *   ExampleController example( app );
- *   app.MainLoop();
- * }
- * @endcode
- *
- * If required, you can also connect class member functions to a signal:
- *
- * @code
- * MyApplication app;
- * app.ResumeSignal().Connect(&app, &MyApplication::Resume);
- * @endcode
- *
- * When the above options are found, they are stripped from argv, and argc is updated appropriately.
- * @SINCE_1_1.37
- */
-
-class DALI_IMPORT_API WatchApplication : public Application
-{
-public:
-  typedef Signal< void (Application&, const WatchTime &) > WatchTimeSignal; ///< Watch pointer signal callback type @SINCE_1_1.37
-  typedef Signal< void (Application&, bool) > WatchBoolSignal; ///< Watch bool signal callback type @SINCE_1_1.37
-
-public:
-
-  /**
-   * @brief This is the constructor for applications without an argument list.
-   * @SINCE_1_1.37
-   */
-  static WatchApplication New();
-
-  /**
-   * @brief This is the constructor for applications.
-   *
-   * @SINCE_1_1.37
-   * @param[in,out]  argc        A pointer to the number of arguments
-   * @param[in,out]  argv        A pointer the the argument list
-   */
-  static WatchApplication New( int* argc, char **argv[] );
-
-  /**
-   * @brief This is the constructor for applications with a name
-   *
-   * @SINCE_1_1.37
-   * @param[in,out]  argc        A pointer to the number of arguments
-   * @param[in,out]  argv        A pointer the the argument list
-   * @param[in]      stylesheet  The path to user defined theme file
-   */
-  static WatchApplication New( int* argc, char **argv[], const std::string& stylesheet );
-
-  /**
-   * @brief Construct an empty handle
-   * @SINCE_1_1.37
-   */
-  WatchApplication();
-
-  /**
-   * @brief Copy Constructor
-   * @SINCE_1_1.37
-   */
-  WatchApplication( const WatchApplication& implementation );
-
-  /**
-   * @brief Assignment operator
-   * @SINCE_1_1.37
-   */
-  WatchApplication& operator=( const WatchApplication& applicaton );
-
-  /**
-   * @brief Destructor
-   *
-   * This is non-virtual since derived Handle types must not contain data or virtual methods.
-   * @SINCE_1_1.37
-   */
-  ~WatchApplication();
-
-public:
-  /**
-   * @brief This signal is emitted at every second
-   * A callback of the following type may be connected:
-   * @code
-   *   void YourCallbackName(Application& application, WatchTimeSignal &time);
-   * @endcode
-   * time(watch time handle) will not be available after returning this callback. It will be freed by the framework.
-   * @SINCE_1_1.37
-   */
-  WatchTimeSignal& TimeTickSignal();
-
-  /**
-   * @brief This signal is emitted at every second in ambient mode
-   * A callback of the following type may be connected:
-   * @code
-   *   void YourCallbackName(Application& application, WatchTimeSignal &time);
-   * @endcode
-   * time(watch time handle) will not be available after returning this callback. It will be freed by the framework.
-   * @SINCE_1_1.37
-   */
-  WatchTimeSignal& AmbientTickSignal();
-
-  /**
-   * @brief This signal is emitted when the device enters or exits ambient mode
-   * A callback of the following type may be connected:
-   * @code
-   *   void YourCallbackName(Application& application, bool ambient);
-   * @endcode
-   * ambient_mode If true the device enters the ambient mode, otherwise false
-   * @SINCE_1_1.37
-   */
-  WatchBoolSignal& AmbientChangedSignal();
-
-public: // Not intended for application developers
-  /**
-   * @brief Internal constructor
-   * @SINCE_1_1.37
-   */
-  explicit DALI_INTERNAL WatchApplication(Internal::Adaptor::WatchApplication* implementation);
-};
-
-/**
- * @}
- */
-} // namespace Dali
-
-#endif // __DALI_WATCH_APPLICATION_H__
diff --git a/adaptors/public-api/adaptor-framework/watch-time.h b/adaptors/public-api/adaptor-framework/watch-time.h
deleted file mode 100644 (file)
index 0dc19e8..0000000
+++ /dev/null
@@ -1,102 +0,0 @@
-#ifndef __DALI_WATCH_TIME_H__
-#define __DALI_WATCH_TIME_H__
-
-/*
- * Copyright (c) 2016 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
-
-// INTERNAL INCLUDES
-#include <dali/public-api/dali-core.h>
-
-namespace Dali
-{
-/**
- * @addtogroup dali_adaptor_framework
- * @{
- */
-
-/**
- * @brief The WatchTime class is used to get time for the WatchApplication.
- *
- * A WatchTime has a time handle from watch application framework.
- * You can get time(hour, minute, second) on receiving timeTick signal
- * @SINCE_1_1.37
- */
-class DALI_IMPORT_API WatchTime
-{
-public:
-
-  /**
-   * @brief Constructor
-   * @SINCE_1_1.37
-   */
-  WatchTime();
-
-  /**
-   * @brief Destructor
-   * @SINCE_1_1.37
-   */
-  ~WatchTime();
-
-  /**
-   * @brief return current hour
-   *
-   * @SINCE_1_1.37
-   * @pre The WatchTime needs to be initialized.
-   */
-  int GetHour() const;
-
-  /**
-   * @brief return current hour24
-   *
-   * @SINCE_1_1.37
-   * @pre The WatchTime needs to be initialized.
-   */
-  int GetHour24() const;
-
-  /**
-   * @brief return current minute
-   *
-   * @SINCE_1_1.37
-   * @pre The WatchTime needs to be initialized.
-   */
-  int GetMinute() const;
-
-  /**
-   * @brief return current second
-   *
-   * @SINCE_1_1.37
-   * @pre The WatchTime needs to be initialized.
-   */
-  int GetSecond() const;
-
-public: // Not intended for application developers
-  DALI_INTERNAL WatchTime(void *time_handle);
-
-private:  // Internal Data
-
-  struct Impl;
-  Impl* mImpl;
-};
-
-/**
- * @}
- */
-} // namespace Dali
-
-#endif // __DALI_WATCH_TIME_H__
index febcab370330c153b7bcff7ad574e894dca53878..dbf643ffce9d3f97d26ec91de9cc07c0ac4b8a09 100644 (file)
@@ -5,7 +5,6 @@ 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/watch-application.cpp \
   $(adaptor_public_api_dir)/dali-adaptor-version.cpp
 
 
@@ -22,9 +21,7 @@ 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/watch-application.h \
-  $(adaptor_public_api_dir)/adaptor-framework/watch-time.h
+  $(adaptor_public_api_dir)/adaptor-framework/window.h
 
 adaptor_dali_header_file = \
   $(adaptor_public_api_dir)/dali.h
index 55edd291025990faa73f6ec413b1effaae85021f..7a4d64b38a6288daa3e781df372fab4086b5ddee 100644 (file)
@@ -34,8 +34,6 @@
 
 // INTERNAL INCLUDES
 #include <callback-manager.h>
-#include <watch-application-impl.h>
-#include <watch-time.h>
 
 namespace Dali
 {
index c32eeb17f765d78a3a27678b8b7ab4e934ae5cd9..15deb81b1c0e346e0f27d7bf2bfd8e53c878f1a3 100644 (file)
@@ -19,6 +19,6 @@
  */
 
 // INTERNAL INCLUDES
-#include <dali/public-api/adaptor-framework/watch-application.h>
+#include <dali/public-api/watch/watch-application.h>
 
 #endif // __DALI_WEARABLE_H__
\ No newline at end of file
index 69498e7969e0bc250fdf87925f4cfb4eb534fb57..0075500d68916dee64b0a83f19e5f21f1e4131ea 100644 (file)
@@ -1,4 +1,13 @@
 # wearable profile public files
 
-adaptor_dali_wearable_header_files = \
+adaptor_internal_wearable_profile_src_files = \
+  $(adaptor_wearable_dir)/watch-application-impl.cpp \
+  $(adaptor_wearable_dir)/watch/watch-application.cpp \
+  $(adaptor_wearable_dir)/watch/watch-time.cpp
+
+adaptor_dali_wearable_header_file = \
   $(adaptor_wearable_dir)/dali-wearable.h
+
+public_dali_watch_header_files = \
+  $(adaptor_wearable_dir)/watch/watch-application.h \
+  $(adaptor_wearable_dir)/watch/watch-time.h
diff --git a/adaptors/wearable/watch-application-impl.cpp b/adaptors/wearable/watch-application-impl.cpp
new file mode 100644 (file)
index 0000000..da3eae8
--- /dev/null
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2016 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 "watch-application-impl.h"
+
+namespace Dali
+{
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+WatchApplicationPtr WatchApplication::New(
+  int* argc,
+  char **argv[],
+  const std::string& stylesheet,
+  Dali::WatchApplication::WINDOW_MODE windowMode)
+{
+  WatchApplicationPtr watch ( new WatchApplication (argc, argv, stylesheet, windowMode ) );
+  return watch;
+}
+
+WatchApplication::WatchApplication( int* argc, char** argv[], const std::string& stylesheet, Dali::Application::WINDOW_MODE windowMode )
+: Application(argc, argv, stylesheet, windowMode, Framework::WATCH)
+{
+}
+
+WatchApplication::~WatchApplication()
+{
+}
+
+void WatchApplication::OnTimeTick(WatchTime& time)
+{
+  Dali::WatchApplication watch(this);
+  mTickSignal.Emit( watch, time );
+}
+
+void WatchApplication::OnAmbientTick(WatchTime& time)
+{
+  Dali::WatchApplication watch(this);
+  mAmbientTickSignal.Emit( watch, time );
+}
+
+void WatchApplication::OnAmbientChanged(bool ambient)
+{
+  Dali::WatchApplication watch(this);
+  mAmbientChangeSignal.Emit( watch, ambient );
+}
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
diff --git a/adaptors/wearable/watch-application-impl.h b/adaptors/wearable/watch-application-impl.h
new file mode 100644 (file)
index 0000000..6617805
--- /dev/null
@@ -0,0 +1,126 @@
+#ifndef __DALI_INTERNAL_WATCH_APPLICATION_H__
+#define __DALI_INTERNAL_WATCH_APPLICATION_H__
+
+/*
+ * Copyright (c) 2016 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 <wearable/watch/watch-application.h>
+#include <application-impl.h>
+
+namespace Dali
+{
+class Adaptor;
+
+namespace Internal
+{
+
+namespace Adaptor
+{
+
+class WatchApplication;
+typedef IntrusivePtr<WatchApplication> WatchApplicationPtr;
+
+/**
+ * Implementation of the WatchApplication class.
+ */
+class WatchApplication : public Application
+{
+public:
+  typedef Dali::WatchApplication::WatchTimeSignal WatchTimeSignal;
+  typedef Dali::WatchApplication::WatchBoolSignal WatchBoolSignal;
+
+  /**
+   * Create a new watch
+   * @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
+   * @param[in]  windowMode  A member of Dali::Watch::WINDOW_MODE
+   */
+  static WatchApplicationPtr New( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode );
+
+  /**
+   * 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
+   * @param[in]  windowMode  A member of Dali::Watch::WINDOW_MODE
+   */
+  WatchApplication( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode );
+
+  /**
+   * Destructor
+   */
+  virtual ~WatchApplication();
+
+  /**
+   * Called every second
+   */
+  void OnTimeTick(WatchTime& time);
+
+  /**
+   * Called every second in ambient mode
+   */
+  void OnAmbientTick(WatchTime& time);
+
+  /**
+   * Called when the device enters or exits ambient mode
+   */
+  void OnAmbientChanged(bool ambient);
+
+private:
+
+  // @brief Undefined copy constructor.
+  WatchApplication( const WatchApplication& );
+
+  // @brief Undefined assignment operator.
+  WatchApplication& operator=( const WatchApplication& );
+
+public:
+
+  // Signals
+  WatchTimeSignal                        mTickSignal;
+  WatchTimeSignal                        mAmbientTickSignal;
+  WatchBoolSignal                      mAmbientChangeSignal;
+};
+
+inline WatchApplication& GetImplementation(Dali::WatchApplication& watch)
+{
+  DALI_ASSERT_ALWAYS(watch && "watch handle is empty");
+
+  BaseObject& handle = watch.GetBaseObject();
+
+  return static_cast<Internal::Adaptor::WatchApplication&>(handle);
+}
+
+inline const WatchApplication& GetImplementation(const Dali::WatchApplication& watch)
+{
+  DALI_ASSERT_ALWAYS(watch && "Time handle is empty");
+
+  const BaseObject& handle = watch.GetBaseObject();
+
+  return static_cast<const Internal::Adaptor::WatchApplication&>(handle);
+}
+
+
+} // namespace Adaptor
+
+} // namespace Internal
+
+} // namespace Dali
+
+#endif // __DALI_INTERNAL_WATCH_APPLICATION_H__
diff --git a/adaptors/wearable/watch/watch-application.cpp b/adaptors/wearable/watch/watch-application.cpp
new file mode 100644 (file)
index 0000000..4a279f4
--- /dev/null
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2016 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 "watch-application.h"
+
+// EXTERNAL INCLUDES
+#include <dali/integration-api/debug.h>
+
+// INTERNAL INCLUDES
+#include <wearable/watch-application-impl.h>
+
+namespace Dali
+{
+
+WatchApplication WatchApplication::New()
+{
+  return New( NULL, NULL );
+}
+
+WatchApplication WatchApplication::New( int* argc, char **argv[] )
+{
+  Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New( argc, argv, "", OPAQUE );
+  return WatchApplication(internal.Get());
+}
+
+WatchApplication WatchApplication::New( int* argc, char **argv[], const std::string& stylesheet )
+{
+  Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New( argc, argv, stylesheet, OPAQUE );
+  return WatchApplication(internal.Get());
+}
+
+WatchApplication::~WatchApplication()
+{
+}
+
+WatchApplication::WatchApplication()
+{
+}
+
+WatchApplication::WatchApplication(const WatchApplication& implementation)
+: Application(implementation)
+{
+}
+
+WatchApplication& WatchApplication::operator=(const WatchApplication& application)
+{
+  if( *this != application )
+  {
+    BaseHandle::operator=( application );
+  }
+  return *this;
+}
+
+WatchApplication::WatchTimeSignal& WatchApplication::TimeTickSignal()
+{
+  return Internal::Adaptor::GetImplementation(*this).mTickSignal;
+}
+
+WatchApplication::WatchTimeSignal& WatchApplication::AmbientTickSignal()
+{
+  return Internal::Adaptor::GetImplementation(*this).mAmbientTickSignal;
+}
+
+WatchApplication::WatchBoolSignal& WatchApplication::AmbientChangedSignal()
+{
+  return Internal::Adaptor::GetImplementation(*this).mAmbientChangeSignal;
+}
+
+WatchApplication::WatchApplication(Internal::Adaptor::WatchApplication* implementation)
+: Application(implementation)
+{
+}
+
+
+} // namespace Dali
diff --git a/adaptors/wearable/watch/watch-application.h b/adaptors/wearable/watch/watch-application.h
new file mode 100644 (file)
index 0000000..37fb62b
--- /dev/null
@@ -0,0 +1,202 @@
+#ifndef __DALI_WATCH_APPLICATION_H__
+#define __DALI_WATCH_APPLICATION_H__
+
+/*
+ * Copyright (c) 2016 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 <string>
+#include <dali/public-api/object/base-handle.h>
+#include <dali/public-api/signals/callback.h>
+
+// INTERNAL INCLUDES
+#include <public-api/adaptor-framework/application.h>
+#include "watch-time.h"
+
+namespace Dali
+{
+/**
+ * @addtogroup dali_adaptor_framework
+ * @{
+ */
+namespace Internal DALI_INTERNAL
+{
+namespace Adaptor
+{
+class WatchApplication;
+}
+}
+
+/**
+ * @brief A WatchApplication class object should be created by every watch application
+ * that wishes to use Dali.
+ *
+ * It provides a means for initialising the resources required by the Dali::Core.
+ * Like Application class, the WatchApplication class manages Tizen watch application life cycle.
+ *
+ * The WatchApplication class emits additional signals which are availalble only in the watch application
+ * (TimeTick, AmbientTick, AmbientChanged)
+ *
+ * This feature is supported in wearable applications only.
+ *
+ * WatchApplication should follow the example below:
+ *
+ * @code
+ * class ExampleController: public ConnectionTracker
+ * {
+ * public:
+ *   ExampleController( WatchApplication& application )
+ *   : mApplication( application )
+ *   {
+ *     mApplication.InitSignal().Connect( this, &ExampleController::Create );
+ *   }
+ *
+ *   void Create( Application& application )
+ *   {
+ *     // Create Dali components...
+ *   }
+ *  ...
+ * private:
+ *   WatchApplication&  mApplication;
+ * };
+ *
+ * int DALI_EXPORT_API main (int argc, char **argv)
+ * {
+ *   WatchApplication app = WatchApplication::New(&argc, &argv);
+ *   ExampleController example( app );
+ *   app.MainLoop();
+ * }
+ * @endcode
+ *
+ * If required, you can also connect class member functions to a signal:
+ *
+ * @code
+ * MyApplication app;
+ * app.ResumeSignal().Connect(&app, &MyApplication::Resume);
+ * @endcode
+ *
+ * When the above options are found, they are stripped from argv, and argc is updated appropriately.
+ * @SINCE_1_1.37
+ */
+
+class DALI_IMPORT_API WatchApplication : public Application
+{
+public:
+  typedef Signal< void (Application&, const WatchTime &) > WatchTimeSignal; ///< Watch pointer signal callback type @SINCE_1_1.37
+  typedef Signal< void (Application&, bool) > WatchBoolSignal; ///< Watch bool signal callback type @SINCE_1_1.37
+
+public:
+
+  /**
+   * @brief This is the constructor for applications without an argument list.
+   * @SINCE_1_1.37
+   */
+  static WatchApplication New();
+
+  /**
+   * @brief This is the constructor for applications.
+   *
+   * @SINCE_1_1.37
+   * @param[in,out]  argc        A pointer to the number of arguments
+   * @param[in,out]  argv        A pointer the the argument list
+   */
+  static WatchApplication New( int* argc, char **argv[] );
+
+  /**
+   * @brief This is the constructor for applications with a name
+   *
+   * @SINCE_1_1.37
+   * @param[in,out]  argc        A pointer to the number of arguments
+   * @param[in,out]  argv        A pointer the the argument list
+   * @param[in]      stylesheet  The path to user defined theme file
+   */
+  static WatchApplication New( int* argc, char **argv[], const std::string& stylesheet );
+
+  /**
+   * @brief Construct an empty handle
+   * @SINCE_1_1.37
+   */
+  WatchApplication();
+
+  /**
+   * @brief Copy Constructor
+   * @SINCE_1_1.37
+   */
+  WatchApplication( const WatchApplication& implementation );
+
+  /**
+   * @brief Assignment operator
+   * @SINCE_1_1.37
+   */
+  WatchApplication& operator=( const WatchApplication& applicaton );
+
+  /**
+   * @brief Destructor
+   *
+   * This is non-virtual since derived Handle types must not contain data or virtual methods.
+   * @SINCE_1_1.37
+   */
+  ~WatchApplication();
+
+public:
+  /**
+   * @brief This signal is emitted at every second
+   * A callback of the following type may be connected:
+   * @code
+   *   void YourCallbackName(Application& application, WatchTimeSignal &time);
+   * @endcode
+   * time(watch time handle) will not be available after returning this callback. It will be freed by the framework.
+   * @SINCE_1_1.37
+   */
+  WatchTimeSignal& TimeTickSignal();
+
+  /**
+   * @brief This signal is emitted at every second in ambient mode
+   * A callback of the following type may be connected:
+   * @code
+   *   void YourCallbackName(Application& application, WatchTimeSignal &time);
+   * @endcode
+   * time(watch time handle) will not be available after returning this callback. It will be freed by the framework.
+   * @SINCE_1_1.37
+   */
+  WatchTimeSignal& AmbientTickSignal();
+
+  /**
+   * @brief This signal is emitted when the device enters or exits ambient mode
+   * A callback of the following type may be connected:
+   * @code
+   *   void YourCallbackName(Application& application, bool ambient);
+   * @endcode
+   * ambient_mode If true the device enters the ambient mode, otherwise false
+   * @SINCE_1_1.37
+   */
+  WatchBoolSignal& AmbientChangedSignal();
+
+public: // Not intended for application developers
+  /**
+   * @brief Internal constructor
+   * @SINCE_1_1.37
+   */
+  explicit DALI_INTERNAL WatchApplication(Internal::Adaptor::WatchApplication* implementation);
+};
+
+/**
+ * @}
+ */
+} // namespace Dali
+
+#endif // __DALI_WATCH_APPLICATION_H__
diff --git a/adaptors/wearable/watch/watch-time.cpp b/adaptors/wearable/watch/watch-time.cpp
new file mode 100644 (file)
index 0000000..34c4089
--- /dev/null
@@ -0,0 +1,116 @@
+/*
+ * Copyright (c) 2016 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 <wearable/watch/watch-time.h>
+
+// EXTERNAL INCLUDES
+#ifdef APPCORE_WATCH_AVAILABLE
+#include <appcore-watch/watch_app.h>
+#endif
+
+namespace Dali
+{
+
+struct WatchTime::Impl
+{
+  Impl(void *time_handle)
+  : mTimeHandle(time_handle)
+  {
+  }
+
+  void *mTimeHandle;
+};
+
+WatchTime::WatchTime()
+  :mImpl(NULL)
+{
+}
+
+WatchTime::WatchTime(void *time_handle)
+{
+  mImpl = new Impl(time_handle);
+}
+
+WatchTime::~WatchTime()
+{
+  if( mImpl )
+  {
+    delete mImpl;
+    mImpl = NULL;
+  }
+}
+
+#ifdef APPCORE_WATCH_AVAILABLE
+
+int WatchTime::GetHour() const
+{
+  int hour;
+
+  watch_time_get_hour(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &hour);
+  return hour;
+}
+
+int WatchTime::GetHour24() const
+{
+  int hour24;
+
+  watch_time_get_hour24(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &hour24);
+  return hour24;
+}
+
+int WatchTime::GetMinute() const
+{
+  int minute;
+
+  watch_time_get_minute(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &minute);
+  return minute;
+}
+
+int WatchTime::GetSecond() const
+{
+  int second;
+
+  watch_time_get_second(reinterpret_cast<watch_time_h>(mImpl->mTimeHandle), &second);
+  return second;
+}
+
+#else
+
+int WatchTime::GetHour() const
+{
+  return 0;
+}
+
+int WatchTime::GetHour24() const
+{
+  return 0;
+}
+
+int WatchTime::GetMinute() const
+{
+  return 0;
+}
+
+int WatchTime::GetSecond() const
+{
+  return 0;
+}
+
+#endif
+
+} // namespace Dali
diff --git a/adaptors/wearable/watch/watch-time.h b/adaptors/wearable/watch/watch-time.h
new file mode 100644 (file)
index 0000000..0dc19e8
--- /dev/null
@@ -0,0 +1,102 @@
+#ifndef __DALI_WATCH_TIME_H__
+#define __DALI_WATCH_TIME_H__
+
+/*
+ * Copyright (c) 2016 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
+
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-core.h>
+
+namespace Dali
+{
+/**
+ * @addtogroup dali_adaptor_framework
+ * @{
+ */
+
+/**
+ * @brief The WatchTime class is used to get time for the WatchApplication.
+ *
+ * A WatchTime has a time handle from watch application framework.
+ * You can get time(hour, minute, second) on receiving timeTick signal
+ * @SINCE_1_1.37
+ */
+class DALI_IMPORT_API WatchTime
+{
+public:
+
+  /**
+   * @brief Constructor
+   * @SINCE_1_1.37
+   */
+  WatchTime();
+
+  /**
+   * @brief Destructor
+   * @SINCE_1_1.37
+   */
+  ~WatchTime();
+
+  /**
+   * @brief return current hour
+   *
+   * @SINCE_1_1.37
+   * @pre The WatchTime needs to be initialized.
+   */
+  int GetHour() const;
+
+  /**
+   * @brief return current hour24
+   *
+   * @SINCE_1_1.37
+   * @pre The WatchTime needs to be initialized.
+   */
+  int GetHour24() const;
+
+  /**
+   * @brief return current minute
+   *
+   * @SINCE_1_1.37
+   * @pre The WatchTime needs to be initialized.
+   */
+  int GetMinute() const;
+
+  /**
+   * @brief return current second
+   *
+   * @SINCE_1_1.37
+   * @pre The WatchTime needs to be initialized.
+   */
+  int GetSecond() const;
+
+public: // Not intended for application developers
+  DALI_INTERNAL WatchTime(void *time_handle);
+
+private:  // Internal Data
+
+  struct Impl;
+  Impl* mImpl;
+};
+
+/**
+ * @}
+ */
+} // namespace Dali
+
+#endif // __DALI_WATCH_TIME_H__
index d23aec920ef86a11b3f48f4e87da2e393d42eaca..d2fcfbc75c4a77315220529771783e8f9a5f4bc8 100644 (file)
@@ -213,7 +213,8 @@ adaptor_internal_src_files += $(adaptor_wayland_tizen_internal_src_files)
 endif # USE_ECORE_WAYLAND
 
 adaptor_internal_src_files += $(adaptor_tizen_internal_egl_extension_src_files) \
-                              $(adaptor_tizen_internal_native_image_src_files)
+                              $(adaptor_tizen_internal_native_image_src_files) \
+                              $(adaptor_internal_wearable_profile_src_files)
 else
 adaptor_internal_src_files += $(adaptor_x11_tizen_internal_src_files) \
                               $(adaptor_common_internal_egl_extension_src_files)
@@ -525,9 +526,6 @@ endif
 
 tizenadaptorpublicapidir = $(devincludepath)/dali/public-api
 tizenadaptorpublicapi_HEADERS = $(public_api_header_files)
-if WEARABLE_PROFILE
-tizenadaptorpublicapi_HEADERS += $(adaptor_dali_wearable_header_files)
-endif
 
 tizenadaptordevelapidir= $(devincludepath)/dali/devel-api
 
@@ -563,6 +561,13 @@ endif # NOT UBUNTU_PROFILE
 tizenadaptordaliheaderdir = $(devincludepath)/dali
 tizenadaptordaliheader_HEADERS = $(adaptor_dali_header_file)
 
+if WEARABLE_PROFILE
+tizenadaptorpublicapi_HEADERS += $(adaptor_dali_wearable_header_file)
+
+tizenwatchpublicapidir = $(tizenadaptorpublicapidir)/watch
+tizenwatchpublicapi_HEADERS = $(public_dali_watch_header_files)
+endif
+
 install-data-local:
        $(MKDIR_P) ${DESTDIR}/${daliUserFontCacheDir} ${DESTDIR}/${daliShaderbinCacheDir}