//
// 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 CallInfo;
+class AppCallInfo;
/**
* @class ActiveCallForm
*/
class ActiveCallForm
: public BaseForm
+ , public IAppStateChangeListener
, public Tizen::Ui::Controls::IListViewItemEventListener
, public Tizen::Ui::Controls::IListViewItemProvider
, public Tizen::Ui::Scenes::ISceneEventListener
virtual ~ActiveCallForm(void);
//From BaseForm
virtual void Initialize(void);
+ void SetSwapInProgress(bool progress);
public:
virtual result OnInitializing(void);
// Handle the changes(e.g. participant ended) in conference call
void HandleConfCallChanged(void);
// Used to update multiple call screen
- void UpdateMultipleCallScreen(Tizen::Base::Collection::IListT<CallInfo>& activeCallsList);
+ void UpdateMultipleCallScreen(Tizen::Base::Collection::IListT<AppCallInfo>& activeCallsList);
//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
// Set the state of the hold button according to call state
void SetHoldButtonStatus(bool toHoldCall);
// This function is used to fetch person details using phone number.
- void ShowPersonDetails(const Tizen::Base::String& phoneNumber, const Tizen::Base::String& contactLblName, const Tizen::Base::String& nameLblName, bool isSecondCaller, CallInfo* pCallInfo);
+ void ShowPersonDetails(const Tizen::Base::String& phoneNumber, const Tizen::Base::String& contactLblName, const Tizen::Base::String& nameLblName, bool isSecondCaller, AppCallInfo* pCallInfo);
// Method to show phone number on screen for all calls except conference call.
void ShowPhoneNumber(const Tizen::Base::String& phoneNumber, const Tizen::Base::String& contactLblName);
// Method to show caller name for all calls.
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
Tizen::Ui::Controls::ListView* __pMoreOptionsList;
Tizen::Ui::Controls::Label* __pMoreOptionsListAnchor;
Tizen::Ui::Controls::Label* __pSmallPhotoLabel;
- CallInfo* __pActiveCallInfo;
- CallInfo* __pHeldCallInfo;
+ Tizen::Base::String __DtmfString;
+ AppCallInfo* __pActiveCallInfo;
+ AppCallInfo* __pHeldCallInfo;
+ bool __isSwapInProgress;
};
#endif //_PHN_ACTIVE_CALL_FORM_H_