#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.
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;
* @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:
*/
void ReplaceWindow(PositionSize windowPosition, const std::string& name);
+ /**
+ * @copydoc Dali::Application::GetResourcePath();
+ */
+ static std::string GetResourcePath();
+
public: // Stereoscopy
/**
*/
float GetStereoBase() const;
+public: // Lifecycle functionality
+
+ /**
+ * Called when OnInit is called or the framework is initialised.
+ */
+ void DoInit();
+
+ /**
+ * Called after OnInit is called or the framework is started.
+ */
+ void DoStart();
+
+ /**
+ * 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
/**
*/
Dali::Application::AppSignalType& MemoryLowSignal() { return mMemoryLowSignal; }
-private:
+protected:
/**
* Private Constructor
* @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
Application(const Application&);
Application& operator=(Application&);
-private:
/**
* Creates the window
*/
std::string mName;
std::string mStylesheet;
EnvironmentOptions mEnvironmentOptions;
-
- bool mInitialized;
+ bool mUseRemoteSurface;
SlotDelegate< Application > mSlotDelegate;
};