Fix for 42792
[apps/osp/Call.git] / inc / CallActiveCallForm.h
index 822f8af..8e3782d 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
 //
@@ -26,6 +26,7 @@
 #include <FBase.h>
 #include <FUi.h>
 #include "CallBaseForm.h"
+#include "CallIAppStateChangeListner.h"
 
 class CallButtonsPanel;
 class DtmfKeyPadPanel;
@@ -39,17 +40,20 @@ class AppCallInfo;
  */
 class ActiveCallForm
        : public BaseForm
+       , public IAppStateChangeListener
        , public Tizen::Ui::Controls::IListViewItemEventListener
        , public Tizen::Ui::Controls::IListViewItemProvider
        , 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);
@@ -65,9 +69,15 @@ 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
+       virtual void OnForeground(void);
+       virtual void OnBackground(void){};
+       virtual void OnScreenOff(void){};
 
 private:
        // Create the call buttons panel and add to form
@@ -104,6 +114,8 @@ private:
        void HideDTMFKeypad(void);
        //Used to show text in text field
        void SetTextToDTMFTextField(const Tizen::Base::String& dtmfStr);
+       // Set hold button status
+       void SetHoldButtonShowState(bool showState);
 
        //From IListViewItemEventListener
        virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state);
@@ -117,6 +129,8 @@ 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
@@ -126,12 +140,15 @@ private:
        //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;
        Tizen::Ui::Controls::Label* __pSmallPhotoLabel;
+       Tizen::Base::String __DtmfString;
        AppCallInfo* __pActiveCallInfo;
        AppCallInfo* __pHeldCallInfo;
+       bool            __isSwapInProgress;
 };
 
 #endif  //_PHN_ACTIVE_CALL_FORM_H_