#define _PHN_CALL_PRESENTATION_MODEL_H_
#include <FApp.h>
+#include <FTelephony.h>
#include "CallAppControlRequestMgr.h"
#include "CallTypes.h"
#include "CallITelephonyEventListener.h"
*/
class CallPresentationModel: public ITelephonyEventListener
, public Tizen::App::IAppControlResponseListener
+ , public Tizen::Telephony::ITelephonyNetworkEventListener
+ , public Tizen::Telephony::ITelephonySimEventListener
{
public:
//create a singleton instance
result Construct(void);
static void CreateInstance(void);
static void DestroyInstance(void);
+ //gets the sim info
+ result GetSimInfo(void);
+ //Used to check if sim is available
+ bool IsSimAvailable(void);
+ bool IfNumberEndsWithHash(Tizen::Base::String& contactNumber);
public:
//set the telephony event listener
//From IAppControlResponseListener
virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData);
virtual void OnAppForeground(void);
+ virtual void OnTelephonyNetworkStatusChanged(const Tizen::Telephony::NetworkStatus& networkStatus);
+ virtual void OnTelephonySimStateChanged(Tizen::Telephony::SimState state);
private:
static CallPresentationModel* __pInstance;
bool __isDialAppControlRunning;
//Used to manage AppControl requests.
CallAppControlRequestMgr* __pAppControlMgr;
+ Tizen::Telephony::NetworkManager* __pNetworkManager;
+ Tizen::Telephony::SimStateManager* __psimStateManager;
+ Tizen::Telephony::SimInfo* __psimInfo;
};
#endif // _PHN_CALL_PRESENTATION_MODEL_H_