From b669e35b258dbe25bdf738fcc630eb662ea20643 Mon Sep 17 00:00:00 2001 From: Amith Kumar Mahale Date: Thu, 6 Jun 2013 15:01:12 +0530 Subject: [PATCH] tizen2.1 code merge Change-Id: I774060ede242e0d9558c64bed40c3bd9d3a2ced9 Signed-off-by: Amith Kumar Mahale --- inc/CallActiveCallForm.h | 4 + inc/CallEndCallForm.h | 8 ++ inc/CallTypes.h | 1 + manifest.xml | 3 +- res/eng-GB.xml | 2 +- res/screen-size-normal/IDL_CONFCALL_FORM.xml | 12 +- res/screen-size-normal/IDL_MULTIPLE_CALL_FORM.xml | 5 +- src/CallActiveCallForm.cpp | 24 +++- src/CallApp.cpp | 40 ++++-- src/CallAppFrame.cpp | 2 +- src/CallBaseForm.cpp | 63 +++++++-- src/CallConfCallerListForm.cpp | 12 +- src/CallEndCallForm.cpp | 153 ++++++++++++++++------ src/CallIncomingCallForm.cpp | 7 +- src/CallOptionPopup.cpp | 2 +- src/CallPresentationModel.cpp | 41 +++--- src/CallTelephonyManager.cpp | 50 ++++--- src/CallTypes.cpp | 1 + 18 files changed, 309 insertions(+), 121 deletions(-) diff --git a/inc/CallActiveCallForm.h b/inc/CallActiveCallForm.h index f98d864..4584155 100644 --- a/inc/CallActiveCallForm.h +++ b/inc/CallActiveCallForm.h @@ -52,6 +52,7 @@ public: virtual ~ActiveCallForm(void); //From BaseForm virtual void Initialize(void); + void SetSwapInProgress(bool progress); public: virtual result OnInitializing(void); @@ -125,6 +126,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 @@ -141,6 +144,7 @@ private: Tizen::Base::String __DtmfString; AppCallInfo* __pActiveCallInfo; AppCallInfo* __pHeldCallInfo; + bool __isSwapInProgress; }; #endif //_PHN_ACTIVE_CALL_FORM_H_ diff --git a/inc/CallEndCallForm.h b/inc/CallEndCallForm.h index 395d554..1bd8c62 100644 --- a/inc/CallEndCallForm.h +++ b/inc/CallEndCallForm.h @@ -42,6 +42,7 @@ class EndCallForm , public Tizen::Ui::Scenes::ISceneEventListener , public Tizen::Base::Runtime::ITimerEventListener , public Tizen::App::IAppControlResponseListener + , public Tizen::Social::IAddressbookChangeEventListener , public IAppStateChangeListener , public Tizen::Ui::IOrientationEventListener { @@ -86,6 +87,10 @@ public: void ShowViewContactButton(void); //Used to set the Viewcontact button state in the end call form void ShowAddContactButton(void); + // Called by AddressBook to notify when contacts are changed. + virtual void OnContactsChanged(const Tizen::Base::Collection::IList& contactChangeInfoList); + // Called by AddressBook to notify when categories are changed. + virtual void OnCategoriesChanged(const Tizen::Base::Collection::IList& categoryChangeInfoList) {}; //Called when App comes to foreground virtual void OnForeground(void); //Called when App goes to background @@ -95,6 +100,8 @@ public: //From IOrientationEventListener virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus); + void UpdatePersonDetail(void); + private: //initialise the end call panel void InitializeCallButtonsPanel(void); @@ -119,6 +126,7 @@ private: Tizen::Base::String* __pContactNumber; //Timer used to show End call scene for 3 sec Tizen::Base::Runtime::Timer* __pEndCallEventTimer; + Tizen::Social::Addressbook* __pAddressBook; Tizen::Ui::Controls::Label* __pSmallPhotoLabel; bool __isMsgAppControlLaunched; bool __isContactAppControlLaunched; diff --git a/inc/CallTypes.h b/inc/CallTypes.h index ce7f5b9..1ad4d8b 100644 --- a/inc/CallTypes.h +++ b/inc/CallTypes.h @@ -181,6 +181,7 @@ extern const wchar_t* IDS_VIEW_CONTACT; extern const wchar_t* IDS_INVALID_NUMBER; extern const wchar_t* IDS_NUMBER_UNKNOWN; extern const wchar_t* IDS_GPRS_NUMBER; +extern const wchar_t* IDS_CONFERENCE_CALL_STRING; //Panel extern const wchar_t* PANEL_DIALER; extern const wchar_t* PANEL_LOGS; diff --git a/manifest.xml b/manifest.xml index 856f6f0..8ce0d0f 100644 --- a/manifest.xml +++ b/manifest.xml @@ -4,6 +4,7 @@ 1.0.0 C++App + true true true @@ -15,8 +16,8 @@ http://tizen.org/privilege/power http://tizen.org/privilege/appusage http://tizen.org/privilege/lockmanager - http://tizen.org/privilege/messaging.write http://tizen.org/privilege/telephony + http://tizen.org/privilege/messaging.write http://tizen.org/privilege/vibrator http://tizen.org/privilege/contact.read diff --git a/res/eng-GB.xml b/res/eng-GB.xml index 821e4ad..2f1fb4d 100644 --- a/res/eng-GB.xml +++ b/res/eng-GB.xml @@ -119,7 +119,7 @@ Select number %d Message Selected Not assigned - Start with + Starts with Voice call Invalid Parameters Passed. Edit alerts that sound during calls diff --git a/res/screen-size-normal/IDL_CONFCALL_FORM.xml b/res/screen-size-normal/IDL_CONFCALL_FORM.xml index 84677f9..444af5a 100644 --- a/res/screen-size-normal/IDL_CONFCALL_FORM.xml +++ b/res/screen-size-normal/IDL_CONFCALL_FORM.xml @@ -4,7 +4,7 @@ --> - + 720
@@ -14,12 +14,12 @@ diff --git a/res/screen-size-normal/IDL_MULTIPLE_CALL_FORM.xml b/res/screen-size-normal/IDL_MULTIPLE_CALL_FORM.xml index 09bc765..1e2c2a9 100644 --- a/res/screen-size-normal/IDL_MULTIPLE_CALL_FORM.xml +++ b/res/screen-size-normal/IDL_MULTIPLE_CALL_FORM.xml @@ -3,7 +3,8 @@ This XML file was automatically generated by UiBuilder - do not modify by hand. --> - + + 720 @@ -43,7 +44,7 @@