Fix for N_SE-48378 N_SE-48015
[apps/osp/Call.git] / inc / CallActiveCallForm.h
index f98d864..d7e5820 100644 (file)
@@ -46,12 +46,14 @@ class ActiveCallForm
        , public Tizen::Ui::Scenes::ISceneEventListener
        , public Tizen::Base::Runtime::ITimerEventListener
        , public Tizen::Ui::IOrientationEventListener
+       , public Tizen::Social::IAddressbookChangeEventListener
 {
 public:
        ActiveCallForm(FormType formType);
        virtual ~ActiveCallForm(void);
        //From BaseForm
        virtual void Initialize(void);
+       void SetSwapInProgress(bool progress);
 
 public:
        virtual result OnInitializing(void);
@@ -67,7 +69,9 @@ public:
        void HandleConfCallChanged(void);
        // Used to update multiple call screen
        void UpdateMultipleCallScreen(Tizen::Base::Collection::IListT<AppCallInfo>& activeCallsList);
-
+       //IAddressbookChangeEventListener
+       virtual void OnContactsChanged(const Tizen::Base::Collection::IList& contactChangeInfoList);
+       virtual void OnCategoriesChanged(const Tizen::Base::Collection::IList& categoryChangeInfoList);
        //From IOrientationEventListener
        virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
        //From IAppStateChangeListener
@@ -125,15 +129,19 @@ private:
        virtual int GetItemCount(void);
        //Method to show thumbnail image
        void ShowThumbnailImage(const Tizen::Graphics::Bitmap* pPhotoId,Tizen::Base::String& photoLabel);
+       //Check if swap in progress
+       bool IsSwapInProgress(void);
 
 private:
        //Start time for Active call
        long long __activeCallStartTime;
+       long long __referenceticks;
        //Timer used to show call time
        Tizen::Base::Runtime::Timer* __pActiveCallTimer;
        //Custom Buttons Panel
        CallButtonsPanel* __pCallButtonsPanel;
        DtmfKeyPadPanel* __pDTMFKeypad;
+       Tizen::Social::Addressbook* __pAddressbook;
        //Option Menu List for conference call
        Tizen::Ui::Controls::ListView* __pMoreOptionsList;
        Tizen::Ui::Controls::Label* __pMoreOptionsListAnchor;
@@ -141,6 +149,7 @@ private:
        Tizen::Base::String __DtmfString;
        AppCallInfo* __pActiveCallInfo;
        AppCallInfo* __pHeldCallInfo;
+       bool            __isSwapInProgress;
 };
 
 #endif  //_PHN_ACTIVE_CALL_FORM_H_