TizenRefApp-9421 [Call UI] Add doxygen documentation for Presenters classes 96/152296/1
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Fri, 22 Sep 2017 13:28:33 +0000 (16:28 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Mon, 25 Sep 2017 13:13:11 +0000 (16:13 +0300)
Change-Id: Ib3743510bc2be391be1c921c4a59db71d4ea9a66

24 files changed:
call-ui/model/impl/BluetoothManager.h
call-ui/presenters/base/Page.h
call-ui/presenters/dialogs/AcceptDialog.h
call-ui/presenters/misc/AcceptRejectPresenter.h
call-ui/presenters/misc/AccessoryPresenter.h
call-ui/presenters/misc/AtspiHighlightHelper.h
call-ui/presenters/misc/CallInfoPresenter.cpp
call-ui/presenters/misc/CallInfoPresenter.h
call-ui/presenters/misc/CallStatusPresenter.cpp
call-ui/presenters/misc/CallStatusPresenter.h
call-ui/presenters/misc/DeviceStatePresenter.h
call-ui/presenters/misc/IndicatorPresenter.cpp
call-ui/presenters/misc/IndicatorPresenter.h
call-ui/presenters/misc/MoreOptionsPresenter.cpp
call-ui/presenters/misc/MoreOptionsPresenter.h
call-ui/presenters/misc/MotionSensorPresenter.cpp
call-ui/presenters/misc/MotionSensorPresenter.h
call-ui/presenters/misc/RejectMsgPresenter.h
call-ui/presenters/misc/helpers.cpp
call-ui/presenters/misc/helpers.h
call-ui/presenters/misc/types.h
call-ui/presenters/pages/KeypadPage.h
call-ui/presenters/pages/MainPage.cpp
call-ui/presenters/pages/MainPage.h

index b1b69dcd5f5bdc8afd7d8a04c151134a732a77b0..36800f996ce6dc6c20daaec29016b217d4f44545 100644 (file)
@@ -59,8 +59,8 @@ namespace callui {
                ucl::Result setVolume(int volume);
 
                /**
-                * @brief Sets handler for monitoring volume state change
-                * @param[in] handler Handler to set
+                * @brief Sets volume state change handler
+                * @param[in] handler Volume state change handler
                 */
                void setVolumeStateHandler(const NotiHandler &handler);
 
index a87ab9221520284adbd45c7874bb1855e7055843..7e346d3d7b4ae0cbcda69a3891aad03c93ba39d6 100644 (file)
@@ -25,46 +25,129 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(Page);
 
+       /**
+        * @brief Base class for pages
+        */
        class Page : public ucl::GuiPresenter,
                        public ucl::IDisposable {
        public:
+
+               /**
+                * @brief Page exit request handler definition
+                */
                using ExitRequestHandler = ucl::WeakDelegate<void(Page &page)>;
 
        public:
+
+               /**
+                * @brief Gets naviframe
+                * @return Reference to Naviframe
+                */
                ucl::Naviframe &getNaviframe();
 
+               /**
+                * @brief Checks whether page is top in page stack
+                * @return true if page is top, false otherwise
+                */
                bool isAtTop() const;
+
+               /**
+                * @brief Checks whether page is bottom in page stack
+                * @return true if page is bottom, false otherwise
+                */
                bool isAtBottom() const;
 
+               /**
+                * @brief Requests to remove page from stack
+                * @remark If page is top in page stack it will be removed
+                *  with transition animation. Otherwise it will be removed
+                *  without animation
+                */
                void exit();
 
+               /**
+                * @brief Pops other pages from stack above current page
+                * @remark Upper pages will be removed with single transition animation
+                */
                void popTo();
+
+               /**
+                * @brief Deletes other pages that are in stack above current page
+                * @remark No transition animation will be provided
+                */
                void deleteTo();
+
+               /**
+                * @brief Promotes page to the top of the page stack
+                */
                void promote();
 
+               /**
+                * @brief Inserts page after some page that is already in stack
+                * @param[in] args List of params @see ucl::Naviframe
+                */
                template <class ...ARGS>
                ucl::NaviItem insertAfter(ARGS &&...args);
 
+               /**
+                * @brief Inserts page before some page that is already in stack
+                * @param[in] args List of params @see ucl::Naviframe
+                */
                template <class ...ARGS>
                ucl::NaviItem insertBefore(ARGS &&...args);
 
                // ucl::IDisposable //
 
+               /**
+                * @see ucl::IDisposable::dispose()
+                */
                virtual void dispose() override;
+
+               /**
+                * @see ucl::IDisposable::isDisposed()
+                */
                virtual bool isDisposed() const final override;
 
        protected:
+
+               /**
+                * @brief Constructor
+                * @param[in] rc Reference count object
+                * @param[in] navi Application naviframe
+                * @param[in] onExitRequest Exit request handler
+                */
                Page(ucl::IRefCountObj &rc, const ucl::NaviframeSRef &navi,
                                const ExitRequestHandler &onExitRequest);
+               /**
+                * @brief Destructor
+                */
                ~Page();
 
+               /**
+                * @brief Prepare method to initialize main Page components
+                * @param[in] onPrepare Function callback that will be called
+                *  on user side for creation NaviItem and its content
+                * @return RES_OK on success or another result otherwise
+                */
                template <class ON_PREPARE>
                ucl::Result prepare(ON_PREPARE &&onPrepare);
 
+               /**
+                * @brief Gets naviframe item
+                * @return Naviframe item
+                */
                ucl::NaviItem getItem();
 
+               /**
+                * @brief Makes request on Page exit
+                * @remark Set ExitRequestHandler will be called.
+                */
                void requestExit();
 
+               /**
+                * @brief Called when Page gets Back key event
+                * @remark By default it make Page exit request
+                */
                virtual void onBackKey();
 
        private:
index 4fa9a6ae86dd5949713aca709ab04c7a58d42aaf..dacf47146b45724e468773de35c2ac19da84fbd9 100644 (file)
@@ -27,33 +27,73 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(AcceptDialog);
 
+       /**
+        * @brief Presenter of Accept call dialog
+        */
        class AcceptDialog final : public ucl::GuiPresenter,
                        public ucl::IDisposable {
        public:
+
+               /**
+                * @brief Enumeration of dialog events
+                */
                enum class Event {
-                       HOLD_AND_ACCEPT,
-                       END_AND_ACCEPT,
-                       BACK
+                       HOLD_AND_ACCEPT,       /**< Set active call on hold and accept incoming */
+                       END_AND_ACCEPT,        /**< End active call and accept incoming */
+                       BACK                   /**< Back button event */
                };
-               using EventHandler = ucl::WeakDelegate<bool(
-                               AcceptDialog &, Event)>;
+
+               /**
+                * @brief Dialog event handler definition
+                */
+               using EventHandler = ucl::WeakDelegate<bool(AcceptDialog &, Event)>;
 
        public:
+
+               /**
+                * AcceptDialog builer
+                */
                class Builder {
                public:
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets event handler
+                        * @param[in] handler Event handler
+                        * @return Reference to builder
+                        */
                        Builder &setHandler(EventHandler handler);
+
+                       /**
+                        * @brief Builds AcceptDialog
+                        * @param[in] parent Parent widget for dialog
+                        * @return Weak reference to AcceptDialog
+                        */
                        AcceptDialogWRef build(ucl::ElmWidget &parent) const;
                private:
                        EventHandler m_handler;
                };
 
        public:
+
+               /**
+                * @brief Dismisses dialog
+                */
                void dismiss();
 
                // ucl::IDisposable //
 
+               /**
+                * @see ucl::IDisposable::dispose()
+                */
                virtual void dispose() final override;
+
+               /**
+                * @see ucl::IDisposable::isDisposed()
+                */
                virtual bool isDisposed() const final override;
 
        private:
index 7708281c1948a648b6dbd9ee61240d7114d57468..1bb0b8c3f177f80daf82a6f21047163fa082f97f 100644 (file)
@@ -34,15 +34,55 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(AcceptRejectPresenter);
 
+       /**
+        * @brief Presenter of Accept / Reject call widget
+        */
        class AcceptRejectPresenter final : public ucl::GuiPresenter {
        public:
+               /**
+                * @brief AcceptRejectPresenter builder
+                */
                class Builder {
                public:
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Incoming Call instance
+                        * @param[in] call Incoming Call instance
+                        * @return Reference to builder
+                        */
                        Builder &setIncomingCall(const IIncomingCallSRef &call);
+
+                       /**
+                        * @brief Sets Sound Manager instance
+                        * @param[in] sm Sound Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setSoundManager(const ISoundManagerSRef &sm);
+
+                       /**
+                        * @brief Sets available calls flag
+                        * @param[in] calls Available calls flag
+                        * @return Reference to builder
+                        */
                        Builder &setAvailableCallsFlag(CallMask calls);
+
+                       /**
+                        * @brief Sets parent widget for UI components creation
+                        * @param[in] parentWidget Parent widget
+                        * @return Reference to builder
+                        */
                        Builder &setParentWidget(const ucl::ElmWidgetSRef &parentWidget);
+
+                       /**
+                        * @brief Creates new instance of AcceptRejectPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to AcceptRejectPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        AcceptRejectPresenterSRef build(ucl::GuiPresenter &parent) const;
 
                private:
@@ -53,10 +93,29 @@ namespace callui {
                };
 
        public:
+
+               /**
+                * @brief Returns widget
+                * @return Reference to widget
+                */
                ucl::Widget &getWidget();
+
+               /**
+                * @brief Updates presenter
+                * @param[in] calls Available calls flag
+                */
                void update(CallMask calls);
 
+               /**
+                * @brief Gets accept button Access object
+                * @return Pointer to access object on success, NULL otherwise
+                */
                ucl::ElmWidget *getAcceptAo();
+
+               /**
+                * @brief Gets reject button Access object
+                * @return Pointer to access object on success, NULL otherwise
+                */
                ucl::ElmWidget *getRejectAo();
 
        private:
index a85efe6e4740ea055a03131275c25f95219d1674..8ebfad6b02af80cdfbada4e4b4abeb3658cc919c 100644 (file)
@@ -35,15 +35,58 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(AccessoryPresenter);
 
+       /**
+        * @brief Presenter of additional call controls.
+        * Provides UI controls to manipulate volume, voice mute,
+        *  BT Headset turn on/off.
+        */
        class AccessoryPresenter final : public ucl::GuiPresenter {
        public:
+               /**
+                * @brief AccessoryPresenter builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Sound Manager instance
+                        * @param[in] sm Sound Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setSoundManager(const ISoundManagerSRef &sm);
+
+                       /**
+                        * @brief Sets Call Manager instance
+                        * @param[in] cm Call Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setCallManager(const ICallManagerSRef &cm);
+
+                       /**
+                        * @brief Sets request exit application handler
+                        * @param[in] handler Event Request exit handler
+                        * @return Reference to builder
+                        */
                        Builder &setRequestExitHandler(const NotiHandler &handler);
+
+                       /**
+                        * @brief Sets parent widget for UI components creation
+                        * @param[in] parentWidget Parent widget
+                        * @return Reference to builder
+                        */
                        Builder &setParentWidget(const ucl::ElmWidgetSRef &parentWidget);
+
+                       /**
+                        * @brief Creates new instance of AccessoryPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to AccessoryPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        AccessoryPresenterSRef build(ucl::GuiPresenter &parent) const;
 
                private:
@@ -54,17 +97,79 @@ namespace callui {
                };
 
        public:
+
+               /**
+                * @brief Returns widget
+                * @return Reference to widget
+                */
                ucl::Widget &getWidget();
+
+               /**
+                * @brief Force hides volume control components
+                */
                void hideVolumeControls();
+
+               /**
+                * @brief Updates presenter
+                * @param[in] cm Call Manager instance
+                * @return RES_OK on success or another result otherwise
+                */
                ucl::Result update(const ICallManagerSRef &cm);
 
+               /**
+                * @brief Gets volume button widget
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getVolumBtn();
+
+               /**
+                * @brief Gets bluetooth button widget
+                * @remark Use only for Screen Reader feature
+                * @return Widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getBluetoothBtn();
+
+               /**
+                * @brief Gets mute button widget
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getMuteBtn();
+
+               /**
+                * @brief Gets add Contact button widget
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getAddContactBtn();
+
+               /**
+                * @brief Gets Volume Control widget
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getVolumeControlLy();
+
+               /**
+                * @brief Gets Volume Controls decrease volume button widget
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getVolumeControlDecreaseBtn();
+
+               /**
+                * @brief Gets Volume Controls increase volume button widget
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getVolumeControlIncreaseBtn();
+
+               /**
+                * @brief Gets Volume Controls value text access object
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getVolumeControlValueTxtAo();
 
        private:
index e47e583aba92c327bd1b0c1746e4087a494e831c..64ec18e84554ccad5acda2dc6f99153d4ab1efc7 100644 (file)
@@ -25,22 +25,64 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(AtspiHighlightHelper);
 
+       /**
+        * @brief Represents helper presenter for Screen Reader feature
+        */
        class AtspiHighlightHelper final : public ucl::GuiPresenter {
        public:
+
+               /**
+                * @brief Relation event handler definition
+                */
                using RelationEventHandler = ucl::WeakDelegate<Elm_Interface_Atspi_Accessible *(
                                Elm_Interface_Atspi_Accessible *ao,
                                Elm_Atspi_Relation_Type flowRelation)>;
 
+               /**
+                * @brief Gesture event handler definition
+                */
                using GestureEventHandler = ucl::WeakDelegate<bool (
                                Elm_Interface_Atspi_Accessible *ao,
                                Elm_Atspi_Gesture_Type gestureType)>;
        public:
+
+               /**
+                * @brief Creates new instance of AtspiHighlightHelper
+                * @param[in] parent Parent presenter
+                * @param[in] rootWidget Root widget for Screen Reader
+                * @return Shared reference to AtspiHighlightHelper instance
+                *  on success or NULL otherwise
+                */
                static AtspiHighlightHelperSRef newInstance(GuiPresenter &parent,
                                ucl::ElmWidget &rootWidget);
 
+               /**
+                * @brief Sets relation event handler
+                * @param[in] handler Relation event handler
+                */
                void setRelationEventHandler(RelationEventHandler handler);
+
+               /**
+                * @brief Sets gesture event handler
+                * @param[in] handler Gesture event handler
+                */
                void setGestureEventHandler(GestureEventHandler handler);
+
+               /**
+                * @brief Registers widget for Screen Reader events
+                *  relation and gesture events
+                * @param[in] widget Widget to register
+                */
                void registerWidget(ucl::ElmWidget &widget);
+
+               /**
+                * @brief Handles gesture events on Access object that
+                *  are not register by AtspiHighlightHelper
+                * @param[in] widget Access object
+                * @param[in] info Gesture info
+                * @return true if no need to process gesture event by EFL,
+                *  false otherwise
+                */
                bool handleGesture(Elm_Interface_Atspi_Accessible *widget,
                                const Elm_Atspi_Gesture_Info &info);
 
index 803310d62cc02ce0a18407f78e22bd9cd12a3eec..3b48c76f04c20cfbb665a7b5e95a20b4fb33a11c 100644 (file)
@@ -200,11 +200,6 @@ namespace callui {
                return *m_widget;
        }
 
-       CallMode CallInfoPresenter::getMode() const
-       {
-               return m_mode;
-       }
-
        void CallInfoPresenter::initCallInfos(const ICallManagerSRef &cm)
        {
                auto incom = cm->getIncomingCall();
@@ -261,7 +256,7 @@ namespace callui {
                if (contactInfo) {
                        return encloseBidirectionalText(std::move(
                                        callInfo->getPhoneNumber()),
-                                       BidiTextEncoseType::LRM);
+                                       BidiTextEncloseType::LRM);
                }
                return "";
        }
@@ -276,7 +271,7 @@ namespace callui {
                        auto displStr = m_activeCallInfo->getPhoneNumber();
                        if (displStr.empty()) {
                                displStr = encloseBidirectionalText(std::move(displStr),
-                                               BidiTextEncoseType::LRM);
+                                               BidiTextEncloseType::LRM);
                        }
                        auto contactInfo = m_activeCallInfo->getContactInfo();
                        if (contactInfo) {
@@ -286,7 +281,7 @@ namespace callui {
                                        if (contactInfo->getNameSourceType() ==
                                                        ContactNameSourceType::NUMBER) {
                                                displStr = encloseBidirectionalText(std::move(displStr),
-                                                               BidiTextEncoseType::LRM);
+                                                               BidiTextEncloseType::LRM);
                                        }
                                }
                        }
@@ -504,7 +499,7 @@ namespace callui {
                        if (contactInfo->getNameSourceType() ==
                                        ContactNameSourceType::NUMBER) {
                                mainTxt = encloseBidirectionalText(std::move(mainTxt),
-                                               BidiTextEncoseType::LRM);
+                                               BidiTextEncloseType::LRM);
                        }
                }
 
index 753dbd431aab452484dba989e8a01c9f4b6f2753..67e411672e7f689479724dd15c8e59fba227c1a0 100644 (file)
@@ -31,14 +31,50 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(CallInfoPresenter);
 
+       /**
+        * @brief Presenter for displaying Call Info information
+        */
        class CallInfoPresenter final : public ucl::GuiPresenter {
        public:
+
+               /**
+                * @brief CallInfoPresenter builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Call Manager instance
+                        * @param[in] cm Call Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setCallManager(const ICallManagerSRef &cm);
+
+                       /**
+                        * @brief Sets Call mode
+                        * @param[in] mode Call mode
+                        * @return Reference to builder
+                        */
                        Builder &setMode(CallMode mode);
+
+                       /**
+                        * @brief Sets parent widget for UI components creation
+                        * @param[in] parentWidget Parent widget
+                        * @return Reference to builder
+                        */
                        Builder &setParentWidget(const ucl::ElmWidgetSRef &parentWidget);
+
+                       /**
+                        * @brief Creates new instance of CallInfoPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to CallInfoPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        CallInfoPresenterSRef build(ucl::GuiPresenter &parent) const;
                private:
                        ICallManagerSRef m_cm;
@@ -47,12 +83,40 @@ namespace callui {
                };
 
        public:
+
+               /**
+                * @brief Returns widget
+                * @return Reference to widget
+                */
                ucl::Widget &getWidget();
-               CallMode getMode() const;
+
+               /**
+                * @brief Update presenter
+                * @param[in] mode Call mode
+                * @param[in] cm Call Manager instance
+                * @return RES_OK on success or another result otherwise
+                */
                ucl::Result update(CallMode mode, const ICallManagerSRef &cm);
 
+               /**
+                * @brief Gets Access object for status text area
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getStatusTxtAo();
+
+               /**
+                * @brief Gets Access object for main text area
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getMainTxtAo();
+
+               /**
+                * @brief Gets Access object for sub text area
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getSubTxtAo();
 
        private:
index 642e620f1269269e41dbb83d4772a660f917b690..9689074a18633029f27f1279de3081be4615dedf 100644 (file)
@@ -204,11 +204,11 @@ namespace callui {
                }
 
                struct tm tmp = info->getDuration();
-               tryUpdateCallDurationTime(
-                               m_duration,
-                               tmp,
-                               *m_ly,
-                               impl::PART_TXT_TEXT_INFO);
+               if ((m_duration.tm_sec - tmp.tm_sec) != 0) {
+                       m_duration = tmp;
+                       m_ly->setText(getCallDurationTxt(m_duration),
+                                       impl::PART_TXT_TEXT_INFO);
+               }
 
                return ECORE_CALLBACK_RENEW;
        }
@@ -222,7 +222,7 @@ namespace callui {
                        if (const auto info = m_info.lock()) {
                                m_duration = info->getDuration();
                        }
-                       m_ly->setText(getCallDuration(m_duration),
+                       m_ly->setText(getCallDurationTxt(m_duration),
                                        impl::PART_TXT_TEXT_INFO);
 
                        if (m_timer) {
@@ -244,7 +244,7 @@ namespace callui {
        Eina_Bool CallStatusPresenter::onBlinkingTimerCb()
        {
                if ((m_blinkCount % 2) == 0) {
-                       m_ly->setText(getCallDuration(m_duration),
+                       m_ly->setText(getCallDurationTxt(m_duration),
                                        impl::PART_TXT_TEXT_INFO);
                } else if ((m_blinkCount % 2) == 1) {
                        m_ly->setText("", impl::PART_TXT_TEXT_INFO);
index b02b39dfe6621218eab01a99a3caa229780451f5..62fa5fcb505a974b271c9c068deca64869c33cb5 100644 (file)
@@ -31,15 +31,57 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(CallStatusPresenter);
 
+       /**
+        * @brief Presenter for displaying Call Status information
+        */
        class CallStatusPresenter final : public ucl::GuiPresenter {
        public:
+
+               /**
+                * @brief CallStatusPresenter builder
+                */
                class Builder {
                public:
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Call mode
+                        * @param[in] mode Call mode
+                        * @return Reference to builder
+                        */
                        Builder &setMode(CallMode mode);
+
+                       /**
+                        * @brief Sets Call Info
+                        * @param[in] info Call Info instance
+                        * @return Reference to builder
+                        */
                        Builder &setCallInfo(const ICallInfoWCRef &info);
+
+                       /**
+                        * @brief Sets call Hold state
+                        * @param[in] isOnHold Call Hold state: true if current
+                        *  call is on hold, false otherwise
+                        * @return Reference to builder
+                        */
                        Builder &setCallHoldState(bool isOnHold);
+
+                       /**
+                        * @brief Sets Call Info layout
+                        * @param[in] info Call Info layout
+                        * @return Reference to builder
+                        */
                        Builder &setLayout(const ucl::LayoutSRef &layout);
+
+                       /**
+                        * @brief Creates new instance of CallStatusPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to CallStatusPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        CallStatusPresenterSRef build(ucl::GuiPresenter &parent) const;
                private:
                        ucl::LayoutSRef m_ly;
@@ -48,6 +90,12 @@ namespace callui {
                        bool m_isOnHold;
                };
        public:
+
+               /**
+                * @brief Gets Access object for status text area
+                * @remark Use only for Screen Reader feature
+                * @return Pointer to widget on success or NULL otherwise
+                */
                ucl::ElmWidget *getStatusTextAo();
 
        private:
index e605c8bb59de4031d9448dabd3dbb428817e3c5d..a7dcee7a6a229a39ee9f6023af698cb739bdd944 100644 (file)
@@ -25,28 +25,71 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(DeviceStatePresenter);
 
+       /**
+        * @brief Presenter for manipulating device parameters
+        */
        class DeviceStatePresenter final {
        public:
+
+               /**
+                * @brief Enumeration of device Display states
+                */
                enum class DisplayState {
-                       UNDEFINED,
-                       ON,
-                       OFF,
-                       DIM
+                       UNDEFINED,             /**< Undefined */
+                       ON,                    /**< Display turned on */
+                       OFF,                   /**< Display turned off */
+                       DIM                    /**< Display dimmed */
                };
 
+               /**
+                * @brief Enumeration of device Display modes
+                */
                enum class DisplayMode {
-                       UNDEFINED,
-                       REGULAR,
-                       TOP_PRIORITY
+                       UNDEFINED,             /**< Undefined */
+                       REGULAR,               /**< Turns the screen off after a timeout */
+                       TOP_PRIORITY           /**< Keeps the screen turned on  */
                };
 
        public:
+
+               /**
+                * @brief DeviceStatePresenter builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets display state
+                        * @param[in] state Display state
+                        * @return Reference to builder
+                        */
                        Builder &setDisplayState(DisplayState state);
+
+                       /**
+                        * @brief Sets display mode
+                        * @param[in] mode Display mode
+                        * @return Reference to builder
+                        */
                        Builder &setDisplayMode(DisplayMode mode);
+
+                       /**
+                        * @brief Sets CPU lock state
+                        * @param[in] lockState CPU lock state
+                        * @return Reference to builder
+                        */
                        Builder &setCpuLockState(bool lockState);
+
+                       /**
+                        * @brief Creates new instance of DeviceStatePresenter
+                        * @param[in] window Window instance
+                        * @return Shared reference to DeviceStatePresenter instance
+                        *  on success or NULL otherwise
+                        */
                        DeviceStatePresenterSRef build(
                                        const ucl::WindowSRef &window) const;
                private:
@@ -56,9 +99,29 @@ namespace callui {
                };
 
        public:
-               ucl::Result setDisplayState(DisplayState state,
-                               bool forse = false);
+
+               /**
+                * @brief Sets display state
+                * @param[in] state Display state
+                * @param[in] forse Force flag:
+                *  true - sets display state no matter on current state,
+                *  false(default) - do not set state if @state is the same as current
+                * @return RES_OK on success or another result otherwise
+                */
+               ucl::Result setDisplayState(DisplayState state, bool forse = false);
+
+               /**
+                * @brief Sets display mode
+                * @param[in] mode Display mode
+                * @return RES_OK on success or another result otherwise
+                */
                ucl::Result setDisplayMode(DisplayMode mode);
+
+               /**
+                * @brief Sets CPU lock state
+                * @param[in] lockState CPU lock state
+                * @return RES_OK on success or another result otherwise
+                */
                ucl::Result setCpuLockState(bool lockState);
 
        private:
index e68e2dc1df2faa113d7b3d70cd243bad815da9b0..4097b52cc52be69d4163241614e705edd7992def 100644 (file)
@@ -395,7 +395,7 @@ namespace callui {
                return *m_widget;
        }
 
-       void IndicatorPresenter::udapteIncomingCallMode(bool isIncomingCallMode)
+       void IndicatorPresenter::setIncomingCallMode(bool isIncomingCallMode)
        {
                if (m_isIncomingCallMode == isIncomingCallMode) {
                        return;
index c7be903d85fca0772db6886c0939fbf5f42158a0..f18640e58d67fbb06f5ab0cea005622bd5009219 100644 (file)
@@ -30,16 +30,45 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(IndicatorPresenter);
 
+       /**
+        * @brief Presenter of application indicator
+        */
        class IndicatorPresenter final : public ucl::GuiPresenter,
                        public IIndicatorStateListener {
        public:
+
+               /**
+                * @brief IndicatorPresenter builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Indicator State provider
+                        * @param[in] provider Indicator State provider
+                        * @return Reference to builder
+                        */
                        Builder &setIndicatorStateProvider(
                                        const IIndicatorStateProviderSRef &provider);
-                       Builder &setParentWidget(const ucl::ElmWidgetSRef
-                                       &parentWidget);
+
+                       /**
+                        * @brief Sets parent widget for UI components creation
+                        * @param[in] parentWidget Parent widget
+                        * @return Reference to builder
+                        */
+                       Builder &setParentWidget(const ucl::ElmWidgetSRef &parentWidget);
+
+                       /**
+                        * @brief Creates new instance of IndicatorPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to IndicatorPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        IndicatorPresenterSRef build(ucl::GuiPresenter &parent) const;
                private:
                        IIndicatorStateProviderSRef m_provider;
@@ -47,16 +76,28 @@ namespace callui {
                };
 
        public:
+
+               /**
+                * @brief Returns widget
+                * @return Reference to widget
+                */
                ucl::Widget &getWidget();
 
-               void udapteIncomingCallMode(bool isIncomingCallMode);
+               /**
+                * @brief Sets incoming call mode
+                * @remark Used for display Voice Answer icon on incoming
+                *  call if feature is turned on
+                * @param[in] isIncomingCallMode incoming call mode
+                */
+               void setIncomingCallMode(bool isIncomingCallMode);
 
        private:
                IndicatorPresenter(ucl::IRefCountObj &rc,
                                const IIndicatorStateProviderSRef &provider);
                ~IndicatorPresenter();
 
-               ucl::Result prepare(ucl::GuiPresenter &parent, ucl::ElmWidget &parentWidget);
+               ucl::Result prepare(ucl::GuiPresenter &parent,
+                               ucl::ElmWidget &parentWidget);
 
                ucl::Result createWidget(ucl::ElmWidget &parent);
                ucl::Result createConnectionLayout();
index 0dbd53f80e6e72e6a5a140b6b173d4cc8579f057..ed6be61424601426227b665ae6791d450586bdeb 100644 (file)
@@ -464,7 +464,7 @@ namespace callui {
                        }
                        m_info = info;
                        m_duration = info->getDuration();
-                       auto temp = getCallDuration(m_duration);
+                       auto temp = getCallDurationTxt(m_duration);
                        m_panelLy->setText(temp, impl::PART_TXT_STATUS);
 
                        FAIL_RETURN_VOID(startCallDurationTimer(), "startTimer() failed!");
@@ -483,11 +483,11 @@ namespace callui {
                }
 
                struct tm tmp = info->getDuration();
-               tryUpdateCallDurationTime(
-                               m_duration,
-                               tmp,
-                               *m_panelLy,
-                               impl::PART_TXT_STATUS);
+               if ((m_duration.tm_sec - tmp.tm_sec) != 0) {
+                       m_duration = tmp;
+                       m_panelLy->setText(getCallDurationTxt(m_duration),
+                                       impl::PART_TXT_STATUS);
+               }
 
                return ECORE_CALLBACK_RENEW;
        }
index db82a39293bbec5c7ccdc2c4184933b69ad1ff0a..9e4b2c91f406f7bce282354b5d0076a9e06a99d4 100644 (file)
@@ -33,15 +33,55 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(MoreOptionsPresenter);
 
+       /**
+        * Presenter of More options
+        */
        class MoreOptionsPresenter final : public ucl::GuiPresenter {
        public:
+               /**
+                * @brief MoreOptionsPresenter builder
+                */
                class Builder {
                public:
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Call Manager instance
+                        * @param[in] cm Call Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setCallManager(const ICallManagerSRef &cm);
+
+                       /**
+                        * @brief Sets Sound Manager instance
+                        * @param[in] sm Sound Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setSoundManager(const ISoundManagerSRef &sm);
+
+                       /**
+                        * @brief Sets Naviframe instance
+                        * @param[in] sm Naviframe instance
+                        * @return Reference to builder
+                        */
                        Builder &setNaviframe(const ucl::NaviframeSRef &navi);
+
+                       /**
+                        * @brief Sets parent widget for UI components creation
+                        * @param[in] parentWidget Parent widget
+                        * @return Reference to builder
+                        */
                        Builder &setParentWidget(const ucl::ElmWidgetSRef &parentWidget);
+
+                       /**
+                        * @brief Creates new instance of MoreOptionsPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to MoreOptionsPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        MoreOptionsPresenterSRef build(ucl::GuiPresenter &parent) const;
 
                private:
@@ -52,9 +92,22 @@ namespace callui {
                };
 
        public:
+
+               /**
+                * @brief Returns widget
+                * @return Reference to widget
+                */
                ucl::Widget &getWidget();
+
+               /**
+                * @brief Updates presenter
+                */
                void update();
 
+               /**
+                * @brief Gets Access object of More options cue
+                * @remark Use only for Screen Reader feature
+                */
                ucl::ElmWidget *getCueAo();
 
        private:
index 7a76433736ce1380614c7d567919c245137d40b5..81cf4e41bd539c025db54ec5b96f68c1289ba203 100644 (file)
@@ -26,10 +26,6 @@ namespace callui {
        {
        }
 
-       MotionSensorPresenter::Builder::~Builder()
-       {
-       }
-
        MotionSensorPresenterSRef
        MotionSensorPresenter::Builder::build(
                        const NotiHandler handler) const
index 648ec64e6826ca5a6619d8b8ce631d26ff4d3e10..5ca4a050b546c982e43505b3d1ecbe86587b0653 100644 (file)
@@ -25,12 +25,29 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(MotionSensorPresenter);
 
+       /**
+        * @brief Presenter of device Motion Sensor
+        */
        class MotionSensorPresenter final {
        public:
+
+               /**
+                * @brief MotionSensorPresenter builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
-                       ~Builder();
+
+                       /**
+                        * @brief Creates new instance of MotionSensorPresenter
+                        * @param[in] handler Motion event handler
+                        * @return Shared reference to MotionSensorPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        MotionSensorPresenterSRef build(const NotiHandler handler) const;
                };
        private:
index 1a965169638fcd279b137d9536b53a7e7b4677ce..a16025fc628ce1e59f57e53feeeda894a34c4503 100644 (file)
@@ -31,25 +31,79 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(RejectMsgPresenter);
 
+       /**
+        * @brief Presenter of Reject messages view
+        */
        class RejectMsgPresenter final : public ucl::GuiPresenter {
        public:
+
+               /**
+                * @brief Enumeration of Reject message states
+                */
                enum class State {
-                       HIDDEN,
-                       IN_TRANSITION,
-                       SHOWN
+                       HIDDEN,                /**< Reject message panel is hidden */
+                       IN_TRANSITION,         /**< Reject message panel is in animation transition to appear/disappear */
+                       SHOWN                  /**< Reject message panel is shown */
                };
+
+               /**
+                * State change event handler definition
+                */
                using StateHandler = ucl::WeakDelegate<void(State)>;
+
+               /**
+                * Select reject message event handler definition
+                */
                using SelectHandler = ucl::WeakDelegate<void(
                                const IRejectMsgSRef &rm)>;
 
        public:
+
+               /**
+                * @brief RejectMsgPresenter builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Reject message provider
+                        * @param[in] provider Reject message provider instance
+                        * @return Reference to builder
+                        */
                        Builder &setProvider(const IRejectMsgProviderSRef &provider);
+
+                       /**
+                        * @brief Sets state change event handler
+                        * @param[in] handler State change event handler
+                        * @return Reference to builder
+                        */
                        Builder &setStateHandler(const StateHandler &handler);
+
+                       /**
+                        * @brief Sets select reject message event handler
+                        * @param[in] handler Select reject message event handler
+                        * @return Reference to builder
+                        */
                        Builder &setSelectHandler(const SelectHandler &handler);
+
+                       /**
+                        * @brief Sets parent widget for UI components creation
+                        * @param[in] parentWidget Parent widget
+                        * @return Reference to builder
+                        */
                        Builder &setParentWidget(const ucl::ElmWidgetSRef &parentWidget);
+
+                       /**
+                        * @brief Creates new instance of RejectMsgPresenter
+                        * @param[in] parent Parent presenter
+                        * @return Shared reference to RejectMsgPresenter instance
+                        *  on success or NULL otherwise
+                        */
                        RejectMsgPresenterSRef build(ucl::GuiPresenter &parent) const;
 
                private:
@@ -60,14 +114,39 @@ namespace callui {
                };
 
        public:
+
+               /**
+                * @brief Returns widget
+                * @return Reference to widget
+                */
                ucl::Widget &getWidget();
 
+               /**
+                * @brief Returns current state
+                * @return Current state
+                */
                State getState();
 
+               /**
+                * @brief Requests to show Reject message panel
+                */
                void showPanel();
+
+               /**
+                * @brief Requests to hide Reject message panel
+                */
                void hidePanel();
 
+               /**
+                * @brief Sets state change event handler
+                * @param[in] handler State change event handler
+                */
                void setStateHandler(const StateHandler &handler);
+
+               /**
+                * @brief Sets select reject message event handler
+                * @param[in] handler Select reject message event handler
+                */
                void setSelectHandler(const SelectHandler &handler);
 
        private:
index ccf81f83989da91bd98dc89fd852ce5354c31d27..b953345865f30b93325c79a5c6a2a1e660d1a3c3 100644 (file)
@@ -64,40 +64,30 @@ namespace callui {
                }
        }
 
-       TString getCallDuration(const struct tm &time)
+       TString getCallDurationTxt(const struct tm &time)
        {
                TString tmp;
                if (time.tm_hour > 0) {
-                       tmp = himpl::STR_HH_MM_SS_TIME.format(time.tm_hour, time.tm_min, time.tm_sec);
+                       tmp = himpl::STR_HH_MM_SS_TIME.format(
+                                       time.tm_hour, time.tm_min, time.tm_sec);
                } else {
-                       tmp = himpl::STR_MM_SS_TIME.format(time.tm_min, time.tm_sec);
+                       tmp = himpl::STR_MM_SS_TIME.format(
+                                       time.tm_min, time.tm_sec);
                }
                return tmp;
        }
 
-       void tryUpdateCallDurationTime(
-                       struct tm &curTime,
-                       struct tm &compTime,
-                       EdjeWidget &widget,
-                       const EdjePart &part)
-       {
-               if ((compTime.tm_sec - curTime.tm_sec) != 0) {
-                       curTime = compTime;
-                       auto tmp = getCallDuration(curTime);
-                       widget.setText(tmp, part);
-               }
-       }
-
-       std::string encloseBidirectionalText(const std::string &txt, BidiTextEncoseType type)
+       std::string encloseBidirectionalText(const std::string &txt,
+                       BidiTextEncloseType type)
        {
                switch (type) {
-               case BidiTextEncoseType::LRM:
+               case BidiTextEncloseType::LRM:
                        return himpl::BIDI_TXT_LRM + txt + himpl::BIDI_TXT_LRM;
-               case BidiTextEncoseType::RLM:
+               case BidiTextEncloseType::RLM:
                        return himpl::BIDI_TXT_RLM + txt + himpl::BIDI_TXT_RLM;
-               case BidiTextEncoseType::LRM_RLM:
+               case BidiTextEncloseType::LRM_RLM:
                        return himpl::BIDI_TXT_LRM_RLM + txt + himpl::BIDI_TXT_RLM_LRM;
-               case BidiTextEncoseType::RLM_LRM:
+               case BidiTextEncloseType::RLM_LRM:
                        return himpl::BIDI_TXT_RLM_LRM + txt + himpl::BIDI_TXT_LRM_RLM;
                default:
                        ELOG("Invalid type");
@@ -106,22 +96,23 @@ namespace callui {
                return txt;
        }
 
-       std::string encloseBidirectionalText(std::string &&txt, BidiTextEncoseType type)
+       std::string encloseBidirectionalText(std::string &&txt,
+                       BidiTextEncloseType type)
        {
                switch (type) {
-               case BidiTextEncoseType::LRM:
+               case BidiTextEncloseType::LRM:
                        txt.insert(0, himpl::BIDI_TXT_LRM);
                        txt.append(himpl::BIDI_TXT_LRM);
                        break;
-               case BidiTextEncoseType::RLM:
+               case BidiTextEncloseType::RLM:
                        txt.insert(0, himpl::BIDI_TXT_RLM);
                        txt.append(himpl::BIDI_TXT_RLM);
                        break;
-               case BidiTextEncoseType::LRM_RLM:
+               case BidiTextEncloseType::LRM_RLM:
                        txt.insert(0, himpl::BIDI_TXT_LRM_RLM);
                        txt.append(himpl::BIDI_TXT_RLM_LRM);
                        break;
-               case BidiTextEncoseType::RLM_LRM:
+               case BidiTextEncloseType::RLM_LRM:
                        txt.insert(0, himpl::BIDI_TXT_RLM_LRM);
                        txt.append(himpl::BIDI_TXT_LRM_RLM);
                        break;
@@ -132,14 +123,14 @@ namespace callui {
                return std::move(txt);
        }
 
-       Result isLTRCharacterOrientation(const std::string &lang)
+       Result isLTRCharacterOrientation(const std::string &local)
        {
-               if (lang.empty()) {
-                       LOG_RETURN(RES_INVALID_ARGUMENTS, "lang is empty");
+               if (local.empty()) {
+                       LOG_RETURN(RES_INVALID_ARGUMENTS, "local is empty");
                }
 
                i18n_ulocale_layout_type_e layout = I18N_ULOCALE_LAYOUT_UNKNOWN;
-               int ret = i18n_ulocale_get_character_orientation(lang.c_str(),
+               int ret = i18n_ulocale_get_character_orientation(local.c_str(),
                                &layout);
                if (ret != I18N_ERROR_NONE) {
                        LOG_RETURN(RES_FAIL,
index 6ff05bfbf9f744fc29dd280cda6d9c798888913f..cf483802c3d1719aa98e0b5d66b09a1135af4ca7 100644 (file)
 
 namespace callui {
 
-       enum class BidiTextEncoseType {
-               LRM,
-               RLM,
-               LRM_RLM,
-               RLM_LRM
+       /**
+        * @brief Enumeration for text enclose types of bidirectional text
+        */
+       enum class BidiTextEncloseType {
+               LRM,                       /**< Encloses text with LRM symbols */
+               RLM,                       /**< Encloses text with RLM symbols */
+               LRM_RLM,                   /**< Encloses text with LRM and RLM symbols */
+               RLM_LRM                    /**< Encloses text with RLM and LRM symbols */
        };
 
+       /**
+        * @brief Application Instance pause smart event definition
+        */
        constexpr ucl::SmartEvent INSTANCE_PAUSED {"callui,instance,paused"};
+
+       /**
+        * @brief Application Instance resume smart event definition
+        */
        constexpr ucl::SmartEvent INSTANCE_RESUMED {"callui,instance,resumed"};
 
+       /**
+        * @brief Sets whether application Instance is in pause or not
+        * @param[in] win Window instance
+        * @param[in] value Application instance pause state
+        */
        void setInstancePaused(ucl::Window &win, bool value);
-       bool isInstancePaused(const ucl::Window &win);
 
-       ucl::TString getCallDuration(const struct tm &time);
+       /**
+        * @brief Checks whether application Instance is in pause or not
+        * @param[in] win Window instance
+        * @return Application instance pause state:
+        *   true - application Instance is paused, false - otherwise
+        */
+       bool isInstancePaused(const ucl::Window &win);
 
-       void tryUpdateCallDurationTime(
-                       struct tm &curTime, struct tm &compTime,
-                       ucl::EdjeWidget &widget, const ucl::EdjePart &part);
+       /**
+        * @brief Gets call duration as a text
+        * @param[in] time Time structure
+        * @return Call duration string
+        */
+       ucl::TString getCallDurationTxt(const struct tm &time);
 
+       /**
+        * @brief Replaces selected substring in string text
+        * @param[in] str String text to modify
+        * @param[in] from Text to replaces
+        * @param[in] to Text to replace on
+        */
        void replaceSubstringInString(std::string &str,
                        const std::string &from, const std::string &to);
 
-       ucl::Result isLTRCharacterOrientation(const std::string &lang);
+       /**
+        * @brief Checks whether locale is LRT character orientation
+        * @param[in] locale Locale to check
+        * @return RES_OK - if local is LRT oriented,
+        *  RES_FALSE - if not,
+        *  other result on error
+        */
+       ucl::Result isLTRCharacterOrientation(const std::string &locale);
 
-       std::string encloseBidirectionalText(const std::string &txt, BidiTextEncoseType type);
+       /**
+        * @brief Encloses text with selected bidirectional symbols
+        * @param[in] txt Text to modify
+        * @param[in] type Type of bidirectional symbols to enclose with
+        * @return Enclosed string
+        */
+       std::string encloseBidirectionalText(const std::string &txt, BidiTextEncloseType type);
 
-       std::string encloseBidirectionalText(std::string &&txt, BidiTextEncoseType type);
+       /**
+        * @brief Encloses text with selected bidirectional symbols
+        * @param[in] txt Text to modify
+        * @param[in] type Type of bidirectional symbols to enclose with
+        * @return Enclosed string
+        */
+       std::string encloseBidirectionalText(std::string &&txt, BidiTextEncloseType type);
 }
 
 #endif // __CALL_UI_PRESENTERS_MISC_HELPERS_H__
index 385fe3e1b9931811544401ea0a57b9afe912e1b1..4abfbc21bc906df22bbbe974bc0bcfc908d5fa53 100644 (file)
 
 namespace callui {
 
+       /**
+        * @brief Enumeration of Call modes
+        */
        enum class CallMode {
-               UNDEFINED,
-               INCOMING,
-               OUTGOING,
-               DURING,
-               END
+               UNDEFINED,                 /**< Undefined */
+               INCOMING,                  /**< Incoming */
+               OUTGOING,                  /**< Outgoing */
+               DURING,                    /**< During */
+               END                        /**< End */
        };
 }
 
index 8db99969a49a0ad2cb983cbc015e684b1f5e3fa9..6e9c02214b04c721e670a6978a8c41d219a250d5 100644 (file)
@@ -31,13 +31,43 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(KeypadPage);
 
+       /**
+        * @brief Presenter of Keypad page
+        */
        class KeypadPage final : public Page {
        public:
+
+               /**
+                * @brief KeypadPage builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
+
+                       /**
+                        * @brief Sets Naviframe instance
+                        * @param[in] navi Naviframe instance
+                        * @return Reference to builder
+                        */
                        Builder &setNaviframe(const ucl::NaviframeSRef &navi);
+
+                       /**
+                        * @brief Sets Sound Manager instance
+                        * @param[in] navi Sound Manager instance
+                        * @return Reference to builder
+                        */
                        Builder &setSoundManager(const ISoundManagerSRef &sm);
+
+                       /**
+                        * @brief Creates new instance of KeypadPage
+                        * @param[in] onExitRequest Page exit request event handler
+                        * @return Shared reference to KeypadPage instance
+                        *  on success or NULL otherwise
+                        */
                        KeypadPageSRef build(const ExitRequestHandler onExitRequest) const;
                private:
                        ISoundManagerSRef m_sm;
index 23f6974dcccc6859a8a1f4333d7f87282a1a873f..9ae5b495dc2136042761d0f0f44c2345b369f95e 100644 (file)
@@ -62,10 +62,6 @@ namespace callui {
        {
        }
 
-       MainPage::Builder::~Builder()
-       {
-       }
-
        MainPage::Builder &MainPage::Builder::setNaviframe(
                        const NaviframeSRef &navi)
        {
@@ -81,9 +77,9 @@ namespace callui {
        }
 
        MainPageSRef MainPage::Builder::build(
-                       const ExitRequestHandler handler) const
+                       const ExitRequestHandler onExitRequest) const
        {
-               if (!handler) {
+               if (!onExitRequest) {
                        LOG_RETURN_VALUE(RES_INVALID_ARGUMENTS, {},
                                        "onExitRequest is NULL");
                }
@@ -97,7 +93,7 @@ namespace callui {
                }
 
                auto result = makeShared<MainPage>(
-                               m_navi, handler, m_call);
+                               m_navi, onExitRequest, m_call);
 
                FAIL_RETURN_VALUE(result->prepare([&result](NaviItem &item)
                        {
@@ -112,9 +108,9 @@ namespace callui {
 
        MainPage::MainPage(IRefCountObj &rc,
                        const NaviframeSRef &navi,
-                       const ExitRequestHandler handler,
+                       const ExitRequestHandler onExitRequest,
                        const ICallUISRef &call) :
-               Page(rc, navi, handler),
+               Page(rc, navi, onExitRequest),
                m_call(call),
                m_mode(CallMode::UNDEFINED),
                m_ecTimer(nullptr),
@@ -235,7 +231,7 @@ namespace callui {
                }
 
                if (m_indicator) {
-                       m_indicator->udapteIncomingCallMode(true);
+                       m_indicator->setIncomingCallMode(true);
                }
 
                return RES_OK;
@@ -259,7 +255,7 @@ namespace callui {
        Result MainPage::processEndCallMode()
        {
                if (m_indicator) {
-                       m_indicator->udapteIncomingCallMode(false);
+                       m_indicator->setIncomingCallMode(false);
                }
 
                FAIL_RETURN(createAccessoryPresenter(),
@@ -293,7 +289,7 @@ namespace callui {
                m_rmCueAo.reset();
 
                if (m_indicator) {
-                       m_indicator->udapteIncomingCallMode(false);
+                       m_indicator->setIncomingCallMode(false);
                }
 
                FAIL_RETURN(createAccessoryPresenter(),
index 8bfd261bf45d64ececf3d4b00064f203f6f16dd0..0248943a2fa5a7ff73dffc29f4b52b4a793a7140 100644 (file)
@@ -36,16 +36,45 @@ namespace callui {
 
        UCL_DECLARE_REF_ALIASES(MainPage);
 
+       /**
+        * @brief Presenter of Main page
+        */
        class MainPage final : public Page,
                        public ICallListener {
        public:
+
+               /**
+                * @brief MainPage builder
+                */
                class Builder {
                public:
+
+                       /**
+                        * @brief Constructor
+                        */
                        Builder();
-                       ~Builder();
+
+                       /**
+                        * @brief Sets Naviframe instance
+                        * @param[in] navi Naviframe instance
+                        * @return Reference to builder
+                        */
                        Builder &setNaviframe(const ucl::NaviframeSRef &navi);
+
+                       /**
+                        * @brief Sets CallUI instance
+                        * @param[in] call CallUI instance
+                        * @return Reference to builder
+                        */
                        Builder &setCallUI(const ICallUISRef &call);
-                       MainPageSRef build(const ExitRequestHandler handler) const;
+
+                       /**
+                        * @brief Creates new instance of MainPage
+                        * @param[in] onExitRequest Page exit request event handler
+                        * @return Shared reference to MainPage instance
+                        *  on success or NULL otherwise
+                        */
+                       MainPageSRef build(const ExitRequestHandler onExitRequest) const;
                private:
                        ucl::NaviframeSRef m_navi;
                        ICallUISRef m_call;
@@ -54,7 +83,7 @@ namespace callui {
        private:
                MainPage(ucl::IRefCountObj &rc,
                                const ucl::NaviframeSRef &navi,
-                               const ExitRequestHandler handler,
+                               const ExitRequestHandler onExitRequest,
                                const ICallUISRef &call);
                ~MainPage() = default;