[4.0] Support event processing during pause state
[platform/core/uifw/dali-adaptor.git] / adaptors / common / framework.h
index 4dacf5f..a8b01f2 100644 (file)
@@ -27,6 +27,7 @@
 
 // INTERNAL INCLUDES
 #include <abort-handler.h>
+#include <device-status.h>
 
 namespace Dali
 {
@@ -38,17 +39,22 @@ 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
 {
 public:
+
   enum Type
   {
-    NORMAL,       ///<  normal appFramework
-    WATCH     ///< watch appFramework
+    NORMAL,       ///< normal appFramework
+    WATCH,        ///< watch appFramework
+    WIDGET,       ///< widget appFramework
   };
 
   /**
@@ -119,12 +125,12 @@ public:
     /**
     * Invoked when the battery level of the device is low.
     */
-    virtual void OnBatteryLow() {}
+    virtual void OnBatteryLow( Dali::DeviceStatus::Battery::Status status ) {}
 
     /**
     * Invoked when the memory level of the device is low.
     */
-    virtual void OnMemoryLow() {}
+    virtual void OnMemoryLow( Dali::DeviceStatus::Memory::Status status ) {}
   };
 
 public:
@@ -179,6 +185,31 @@ public:
    */
   std::string GetBundleId() const;
 
+  /**
+   *  Gets the path at which application resources are stored.
+   */
+  static std::string GetResourcePath();
+
+  /**
+   * Sets system language.
+   */
+  void SetLanguage( const std::string& language );
+
+  /**
+   * Sets system region.
+   */
+  void SetRegion( const std::string& region );
+
+  /**
+   * Gets system language.
+   */
+  std::string GetLanguage() const;
+
+  /**
+   * Gets system region.
+   */
+  std::string GetRegion() const;
+
 private:
 
   // Undefined