X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Fcommon%2Fapplication-impl.h;h=aeadb176ed18528cb199cec55c44aae22f3b8078;hb=722841a906467435b9265313f12d8a606bfde759;hp=1a8e612176cff45feb12d8ea7472ab8477ac2c45;hpb=8662d9566c568ebb35281da5cc4b49e836c90755;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/common/application-impl.h b/adaptors/common/application-impl.h index 1a8e612..aeadb17 100644 --- a/adaptors/common/application-impl.h +++ b/adaptors/common/application-impl.h @@ -2,7 +2,7 @@ #define __DALI_INTERNAL_APPLICATION_H__ /* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * Copyright (c) 2016 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -54,7 +54,6 @@ typedef IntrusivePtr ApplicationPtr; class Application : public BaseObject, public Framework::Observer { public: - typedef Dali::Application::AppSignalType AppSignalType; typedef Dali::Application::AppControlSignalType AppControlSignalType; typedef Dali::Application::WINDOW_MODE WINDOW_MODE; @@ -65,8 +64,10 @@ public: * @param[in] argv A pointer to the argument list * @param[in] stylesheet The path to user defined theme file * @param[in] windowMode A member of Dali::Application::WINDOW_MODE + * @param[in] applicationType A member of Dali::Framework::Type */ - static ApplicationPtr New( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode ); + static ApplicationPtr New( int* argc, char **argv[], const std::string& stylesheet, + WINDOW_MODE windowMode, Framework::Type applicationType ); public: @@ -105,6 +106,11 @@ public: */ void ReplaceWindow(PositionSize windowPosition, const std::string& name); + /** + * @copydoc Dali::Application::GetResourcePath(); + */ + static std::string GetResourcePath(); + public: // Stereoscopy /** @@ -127,6 +133,33 @@ public: // Stereoscopy */ float GetStereoBase() const; +public: // Lifecycle functionality + + /** + * Called when OnInit is called or the framework is initialised. + */ + void DoInit(); + + /** + * Called when OnTerminate is called or the framework is terminated. + */ + void DoTerminate(); + + /** + * Called when OnPause is called or the framework is paused. + */ + void DoPause(); + + /** + * Called when OnResume is called or the framework resumes from a paused state. + */ + void DoResume(); + + /** + * Called when OnLanguageChanged is called or the framework informs the application that the language of the device has changed. + */ + void DoLanguageChange(); + public: // From Framework::Observer /** @@ -245,7 +278,7 @@ public: // Signals */ Dali::Application::AppSignalType& MemoryLowSignal() { return mMemoryLowSignal; } -private: +protected: /** * Private Constructor @@ -254,7 +287,8 @@ private: * @param[in] stylesheet The path to user defined theme file * @param[in] windowMode A member of Dali::Application::WINDOW_MODE */ - Application( int* argc, char **argv[], const std::string& stylesheet, WINDOW_MODE windowMode ); + Application( int* argc, char **argv[], const std::string& stylesheet, + WINDOW_MODE windowMode, Framework::Type applicationType ); /** * Destructor @@ -265,7 +299,6 @@ private: Application(const Application&); Application& operator=(Application&); -private: /** * Creates the window */ @@ -308,8 +341,7 @@ private: std::string mName; std::string mStylesheet; EnvironmentOptions mEnvironmentOptions; - - bool mInitialized; + bool mUseRemoteSurface; SlotDelegate< Application > mSlotDelegate; };