tizen2.1 code merge
[apps/osp/Call.git] / inc / CallEndCallForm.h
index 5cf6de6..1bd8c62 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
 //
@@ -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_