Add package signature files generation code in spec file
[apps/osp/Call.git] / inc / CallPresentationModel.h
index 6631416..1762c7b 100644 (file)
@@ -1,7 +1,7 @@
 //
 // 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
 //
@@ -25,6 +25,7 @@
 
 #include <FApp.h>
 #include <FTelephony.h>
+#include <FMessaging.h>
 #include "CallAppControlRequestMgr.h"
 #include "CallTypes.h"
 #include "CallITelephonyEventListener.h"
@@ -44,6 +45,7 @@ class CallPresentationModel: public ITelephonyEventListener
                , public Tizen::App::IAppControlResponseListener
                , public Tizen::Telephony::ITelephonyNetworkEventListener
                , public Tizen::Telephony::ITelephonySimEventListener
+               , public Tizen::Messaging::ISmsListener
 {
 public:
        //create a singleton instance
@@ -155,6 +157,10 @@ public:
        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);
@@ -169,6 +175,7 @@ public:
        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;
@@ -180,11 +187,13 @@ private:
        // 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_