X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=inc%2FCallPresentationModel.h;h=19f84614cb68e204776644b038413ed91c36469c;hb=968ce47ae7a353e2ad110ef3b64be43d5c9b0b36;hp=50d07e4f8bf407a286ac3c80e3ae926127259c78;hpb=0fc070c3be46085c5d15c0b9b10a2f9e6b100ab7;p=apps%2Fosp%2FCall.git diff --git a/inc/CallPresentationModel.h b/inc/CallPresentationModel.h index 50d07e4..19f8461 100644 --- a/inc/CallPresentationModel.h +++ b/inc/CallPresentationModel.h @@ -24,6 +24,7 @@ #define _PHN_CALL_PRESENTATION_MODEL_H_ #include +#include "CallAppControlRequestMgr.h" #include "CallTypes.h" #include "CallITelephonyEventListener.h" #include "CalllogManager.h" @@ -51,10 +52,11 @@ private: virtual ~CallPresentationModel(void); CallPresentationModel& operator =(const CallPresentationModel& presentor); - result Construct(void); static void CreateInstance(void); static void DestroyInstance(void); + //gets the sim info + result GetSimInfo(void); public: //set the telephony event listener @@ -130,9 +132,24 @@ public: //Function is used to auto reject the call based on call settings and return true, if rejected. bool CheckIncomingCallToBeRejected(AppCallInfo* pIncomingCallInfo); //Launch dial appcontrol for add call senario - result LaunchDialAppControl(); + void LaunchDialAppControl(); //Used to check if Join button should be enabled or not bool IsEnableJoinCallButton(void); + //Used to check if incomig call is present + bool IsIncomingorDialingCallPresent(void); + //Used to launch Messaging AppControl to compose message. + bool LaunchComposeMessageAppControl(Tizen::Base::String& contactNumber, Tizen::App::IAppControlResponseListener* pListener); + //Used to make "ViewContact" AppControl request. + bool LaunchViewContactAppControl(Tizen::Base::String& contactId, Tizen::App::IAppControlResponseListener* pListener); + //Used to make "AddContact" AppControl request. + bool LaunchAddContactAppControl(Tizen::Base::String& contactNumber, Tizen::App::IAppControlResponseListener* pListener); + //Used to check if there is any AppControl request in progress. + bool IsAppControlRunning(void); + //Used to abort any running AppControl request. + void AbortAppControlRequest(void); + //Used to complete any running AppControl request. + void AppControlRequestCompleted(void); + //Event Listener methods from ITelephonyEventListener virtual void HandleCallConnected(Tizen::Base::Collection::IListT& pCallList); virtual void HandleCallDisconnected(bool isLastCall, Tizen::Base::Collection::IListT& pCallList); @@ -155,6 +172,8 @@ private: // incoming call is rejected with "Reject With message" by opening Msg AppControl. bool __isMessageAppControlRunning; bool __isDialAppControlRunning; + //Used to manage AppControl requests. + CallAppControlRequestMgr* __pAppControlMgr; }; #endif // _PHN_CALL_PRESENTATION_MODEL_H_