//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
#include <FApp.h>
#include <FTelephony.h>
+#include <FMessaging.h>
#include "CallAppControlRequestMgr.h"
#include "CallTypes.h"
#include "CallITelephonyEventListener.h"
, public Tizen::App::IAppControlResponseListener
, public Tizen::Telephony::ITelephonyNetworkEventListener
, public Tizen::Telephony::ITelephonySimEventListener
+ , public Tizen::Messaging::ISmsListener
{
public:
//create a singleton instance
void AbortAppControlRequest(void);
//Used to complete any running AppControl request.
void AppControlRequestCompleted(void);
+ //Used to send message
+ void SendMessage(Tizen::Base::String& strMsg,Tizen::Base::String& recpientNum);
+ //Checks if message sending is in progress
+ bool IsMessageSendingInProgress(void);
//Event Listener methods from ITelephonyEventListener
virtual void HandleCallConnected(Tizen::Base::Collection::IListT<AppCallInfo>& pCallList);
virtual void OnAppForeground(void);
virtual void OnTelephonyNetworkStatusChanged(const Tizen::Telephony::NetworkStatus& networkStatus);
virtual void OnTelephonySimStateChanged(Tizen::Telephony::SimState state);
+ virtual void OnSmsMessageSent(result r);
private:
static CallPresentationModel* __pInstance;
// incoming call is rejected with "Reject With message" by opening Msg AppControl.
bool __isMessageAppControlRunning;
bool __isDialAppControlRunning;
+ bool __isMessageSendInProgress;
//Used to manage AppControl requests.
CallAppControlRequestMgr* __pAppControlMgr;
Tizen::Telephony::NetworkManager* __pNetworkManager;
Tizen::Telephony::SimStateManager* __psimStateManager;
Tizen::Telephony::SimInfo* __psimInfo;
+ Tizen::Messaging::SmsManager* __pSmsManager;
};
#endif // _PHN_CALL_PRESENTATION_MODEL_H_