Revert "[4.0] Create Widget Application"
[platform/core/uifw/dali-adaptor.git] / adaptors / common / framework.h
index b0c88fd..6037d57 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>
@@ -36,9 +38,12 @@ namespace Adaptor
 {
 
 /**
- * The Framework class is used to register callbacks with the TIZEN platform so that
+ * The Framework class is ideally placed to provide key API required by Applications.
+ *
+ * The class is also used to register callbacks with the TIZEN platform so that
  * we know when any of the application lifecycle events occur.  This includes events
  * like when our application is to be initialised, terminated, paused, resumed etc.
+ *
  */
 class Framework
 {
@@ -87,6 +92,7 @@ public:
     */
     virtual void OnAppControl(void *) {}
 
+#ifdef APPCORE_WATCH_AVAILABLE
     /**
      * Invoked at every second
      */
@@ -101,6 +107,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.
@@ -175,6 +182,11 @@ public:
    */
   std::string GetBundleId() const;
 
+  /**
+   *  Gets the path at which application resources are stored.
+   */
+  static std::string GetResourcePath();
+
 private:
 
   // Undefined