X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fdevel-api%2Fadaptor-framework%2Fapplication-devel.h;h=76e1c830e0cd8c9ea74c51de6e481026169c495a;hb=ae37a5866286d97378c956ff9b55efb0e8c565e8;hp=d29c48781a9d173ffecb469caba0e49344521691;hpb=069115710154dd741a6f3e6efce89a71ce79ebd3;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/devel-api/adaptor-framework/application-devel.h b/adaptors/devel-api/adaptor-framework/application-devel.h index d29c487..76e1c83 100644 --- a/adaptors/devel-api/adaptor-framework/application-devel.h +++ b/adaptors/devel-api/adaptor-framework/application-devel.h @@ -31,6 +31,59 @@ namespace Dali namespace DevelApplication { +/* + * @brief An enum of memory status. + */ +struct MemoryStatus +{ + enum Type + { + /* + * Normal status. + */ + NORMAL, + + /* + * Soft warning status. + */ + SOFT_WARNING, + + /* + * Hard warning status. + */ + HARD_WARNING + }; +}; + +/* + * @brief An enum of battery status. + */ +struct BatteryStatus +{ + enum Type + { + /* + * Normal status. + * Battery status is over 5%. + */ + NORMAL, + + /* + * Battery status is under 5%. + */ + CRITICAL_LOW, + + /* + * Device can be turned off anytime. + * Battery status is under 1%. + */ + POWER_OFF + }; +}; + +typedef Signal< void (BatteryStatus::Type) > LowBatterySignalType; +typedef Signal< void (MemoryStatus::Type) > LowMemorySignalType; + /** * @brief This is the constructor for applications. * @@ -55,6 +108,35 @@ DALI_IMPORT_API Application New( int* argc, char **argv[], const std::string& st */ DALI_IMPORT_API void PreInitialize( int* argc, char** argv[] ); +/** + * @brief This is used to get region information from device. + * + * @return Region information + */ +DALI_IMPORT_API std::string GetRegion( Application application ); + +/** + * @brief This is used to get language information from device. + * + * @return Language information + */ +DALI_IMPORT_API std::string GetLanguage( Application application ); + +/** + * @brief This signal is emitted when the battery level of the device is low. + * @SINCE_1_0.0 + * @return The signal to connect to + */ +DALI_IMPORT_API LowBatterySignalType& LowBatterySignal( Application application ); + +/** + * @brief This signal is emitted when the memory level of the device is low. + * @SINCE_1_0.0 + * @return The signal to connect to + */ +DALI_IMPORT_API LowMemorySignalType& LowMemorySignal( Application application ); + + } // namespace DevelApplication } // namespace Dali