X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=inc%2FCallEndCallForm.h;h=1bd8c627be7dfe29ad8de17ef396a653b3c2b71b;hb=b669e35b258dbe25bdf738fcc630eb662ea20643;hp=5cf6de6acd99f6a82458b3ef6d749ef3a17d927c;hpb=20aa96e5741cd1e69d466b2404a18b6d267dbfe1;p=apps%2Fosp%2FCall.git diff --git a/inc/CallEndCallForm.h b/inc/CallEndCallForm.h index 5cf6de6..1bd8c62 100644 --- a/inc/CallEndCallForm.h +++ b/inc/CallEndCallForm.h @@ -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 // @@ -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 { @@ -82,17 +83,25 @@ public: * @see Tizen::App::AppControl */ virtual void OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData); - //Used to set the contact button state in the end call form - void SetContactButtonState(bool showState); - //To check if contact is present in Address bool - bool IsContactPresent(void); + //Used to set the Viewcontact button state in the end call form + 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 virtual void OnBackground(void); + //Called when screen goes off + virtual void OnScreenOff(void){}; //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); @@ -117,10 +126,10 @@ 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; - bool __isContactPresent; }; #endif // _PHN_END_CALL_FORM_H_