9 class IAppStateChangeListener;
12 * [CallAppApp] UiApp must inherit from UiApp class
13 * which provides basic features necessary to define an UiApp.
16 : public Tizen::App::UiApp
17 , public Tizen::System::IScreenEventListener
18 , public Tizen::App::IAppControlProviderEventListener
22 * [Test] UiApp must have a factory method that creates an instance of itself.
24 static Tizen::App::UiApp* CreateInstance(void);
28 virtual~CallApp(void);
31 // Called when the UiApp is initializing.
32 virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
34 // Called when the UiApp initializing is finished.
35 virtual bool OnAppInitialized(void);
37 // Called when the UiApp is requested to terminate.
38 virtual bool OnAppWillTerminate(void);
40 // Called when the UiApp is terminating.
41 virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
43 // Called when the UiApp's frame moves to the top of the screen.
44 virtual void OnForeground(void);
46 // Called when this UiApp's frame is moved from top of the screen to the background.
47 virtual void OnBackground(void);
49 // Called when the system memory is not sufficient to run the UiApp any further.
50 virtual void OnLowMemory(void);
52 // Called when the battery level changes.
53 virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
55 // Called when the screen turns on.
56 virtual void OnScreenOn(void);
58 // Called when the screen turns off.
59 virtual void OnScreenOff(void);
61 virtual Tizen::Ui::Scenes::SceneId GetInitialScene(void);
63 //Used to get launch arguments at application launch
64 Tizen::Base::Collection::IList* GetAppLaunchArguments(void);
66 void AddAppStateChangeListener(const IAppStateChangeListener& listener);
68 void RemoveAppStateChangeListener(const IAppStateChangeListener& listener);
70 // Called when the application control request is received from the caller application.
71 virtual void OnAppControlRequestReceived(RequestId reqId, const Tizen::Base::String& operationId, const Tizen::Base::String* pUriData, const Tizen::Base::String* pMimeType, const Tizen::Base::Collection::IMap* pExtraData);
72 //Called when incoming call has to be handled
73 void SetTopMostWindow(bool bTopMost);
76 //internal function to process AppControl request.
77 void ProcessAppControlRequest(RequestId reqId, const Tizen::Base::String& operationId,const Tizen::Base::Collection::IMap* pArgsMap);
78 //internal function to handle AppControl Request for Incoming call.
79 void HandleIncomingCallAppControlRequest(RequestId reqId,const Tizen::Base::Collection::IMap* pArgsMap);
80 //internal function to handle AppControl Request for dial call.
81 void HandleDialCallAppControlRequest(RequestId reqId,const Tizen::Base::Collection::IMap* pArgsMap);
82 //Checks if the number is valid
83 bool CheckNumberIsValid(Tizen::Base::String phoneNumber);
88 Tizen::Ui::Scenes::SceneId __initialSceneId;
89 Tizen::Base::Collection::ArrayList* __pLaunchArgs;
90 Tizen::Base::Collection::ArrayList __listenerList;