X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fcommon%2Fframework.h;h=6b5965a4c93b10351cb341aca4f0efa3167aa186;hb=3735e8b0ab7959c919c4f0f699bb4607e1807afd;hp=b0c88fd75b72f812109207d48e1fa5cadbb8a5ca;hpb=f9f2fa4353e48c8320d7d36c6a2b8789bbbaa505;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/common/framework.h b/adaptors/common/framework.h index b0c88fd..6b5965a 100644 --- a/adaptors/common/framework.h +++ b/adaptors/common/framework.h @@ -21,10 +21,13 @@ // EXTERNAL INCLUDES #include #include -#include +#ifdef APPCORE_WATCH_AVAILABLE +#include "wearable/watch/watch-application.h" +#endif // INTERNAL INCLUDES #include +#include namespace Dali { @@ -36,13 +39,17 @@ 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 @@ -87,6 +94,7 @@ public: */ virtual void OnAppControl(void *) {} +#ifdef APPCORE_WATCH_AVAILABLE /** * Invoked at every second */ @@ -101,6 +109,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. @@ -115,12 +124,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: @@ -175,6 +184,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