[4.0] Support event processing during pause state
[platform/core/uifw/dali-adaptor.git] / adaptors / common / framework.h
index 7dcbdbc..a8b01f2 100644 (file)
@@ -20,7 +20,6 @@
 
 // EXTERNAL INCLUDES
 #include <string>
-#include <application-devel.h>
 #include <dali/public-api/signals/callback.h>
 #ifdef APPCORE_WATCH_AVAILABLE
 #include "wearable/watch/watch-application.h"
@@ -28,6 +27,7 @@
 
 // INTERNAL INCLUDES
 #include <abort-handler.h>
+#include <device-status.h>
 
 namespace Dali
 {
@@ -49,11 +49,12 @@ namespace Adaptor
 class Framework
 {
 public:
+
   enum Type
   {
-    NORMAL,       ///<  normal appFramework
-    WATCH,        ///<  watch appFramework
-    WIDGET        ///<  widget appFramework
+    NORMAL,       ///< normal appFramework
+    WATCH,        ///< watch appFramework
+    WIDGET,       ///< widget appFramework
   };
 
   /**
@@ -114,22 +115,22 @@ public:
     /**
      * Invoked when the language of the device is changed.
      */
-    virtual void OnLanguageChanged( const std::string& language ) {}
+    virtual void OnLanguageChanged() {}
 
     /**
     * Invoked when the region is changed.
     */
-    virtual void OnRegionChanged( const std::string& region ) {}
+    virtual void OnRegionChanged() {}
 
     /**
     * Invoked when the battery level of the device is low.
     */
-    virtual void OnBatteryLow( Dali::DevelApplication::BatteryStatus::Type status ) {}
+    virtual void OnBatteryLow( Dali::DeviceStatus::Battery::Status status ) {}
 
     /**
     * Invoked when the memory level of the device is low.
     */
-    virtual void OnMemoryLow( Dali::DevelApplication::MemoryStatus::Type status ) {}
+    virtual void OnMemoryLow( Dali::DeviceStatus::Memory::Status status ) {}
   };
 
 public:
@@ -189,6 +190,26 @@ public:
    */
   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