//
// 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 <FBase.h>
#include <FUi.h>
#include "CallBaseForm.h"
+#include "CallIAppStateChangeListner.h"
class CallButtonsPanel;
class DtmfKeyPadPanel;
*/
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);
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
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);
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
//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_