Code idiom
authorHyukSoon Choi <hs619.choi@samsung.com>
Fri, 5 Apr 2013 06:06:14 +0000 (15:06 +0900)
committerHyukSoon Choi <hs619.choi@samsung.com>
Fri, 5 Apr 2013 06:06:14 +0000 (15:06 +0900)
Change-Id: Ib7dbedf2873b8d5253adef37fae777fdc28cc6df
Signed-off-by: HyukSoon Choi <hs619.choi@samsung.com>
18 files changed:
inc/GlDropDownCustomItem.h
inc/GlFileDeleteTimer.h
inc/GlFileMoveTimer.h
inc/GlProgressBar.h
inc/GlRadioCustomItem.h
inc/GlSlideShowPopUp.h
inc/GlTimerBase.h
res/screen-size-normal/IDL_FORM_ALBUM_LIST_EDITOR.xml
src/GlAlbumListEditorForm.cpp
src/GlContentUpdateEventListener.cpp
src/GlDropDownCustomItem.cpp
src/GlFileDeleteTimer.cpp
src/GlFileMoveTimer.cpp
src/GlProgressAnimation.cpp
src/GlProgressBar.cpp
src/GlRadioCustomItem.cpp
src/GlSlideShowPopUp.cpp
src/GlTimerBase.cpp

index 5d4a4d4..9929a4d 100644 (file)
@@ -37,74 +37,31 @@ class DropDownCustomItem
        : public Tizen::Ui::Controls::CustomItem
 {
   public:
-       /**
-        * Initializes this instance of DropDownCustomItem.
-        */
-       result Construct(int width);
-
-
-       /**
-        * @brief The Default constructor
-        */
        DropDownCustomItem(void);
-
-
-       /**
-        * @brief The Default Destructor
-        */
        virtual ~DropDownCustomItem(void);
 
-       //getter and setter methods for Main Text
+       result Construct(int width);
 
-       /**
-        * @brief The method used to get the Title text of CustomItem
-        */
        DropDownItemState GetCurState(void);
-
-       /**
-        * @brief The method used to get the Title text of CustomItem
-        */
        Tizen::Base::String GetMainText(void);
-
-       /**
-        * @brief The method used to get the Sub text of CustomItem
-        */
        Tizen::Base::String GetSubText(void);
-
-       /**
-        * @brief Add all the required elements and create the Custom Item.
-        *
-        */
        result Make(void);
-
-       /**
-        * @brief The method used to set the Title text of CustomItem
-        */
        void SetCurState(DropDownItemState);
-
-       /**
-        * @brief The method used to set the Title text of CustomItem
-        */
        void SetMainText(const Tizen::Base::String& text);
-
-       /**
-        * @brief The method used to set the Sub text of CustomItem
-        */
        void SetSubText(const Tizen::Base::String& text);
 
 protected:
+ protected:
        static const int IDA_FORMAT_BITMAP;
        static const int IDA_FORMAT_MAIN_STRING;
        static const int IDA_FORMAT_SUB_STRING;
        static const int IDA_FORMAT_DROPPER;
 
 private:
+ private:
        DropDownItemState __currentState;
-       int __height;       ///Height of the SettingToggleCustomItem Instance
-       int __width;        ///Width of the SettingToggleCustomItem Instance
-
-       Tizen::Base::String __mainText;   ///The MainText for the Toggle Button
-       Tizen::Base::String __subText;    ///The SubText for the Toggle Button
+       int __height;
+       int __width;
+       Tizen::Base::String __mainText;
+       Tizen::Base::String __subText;
  };
 
 #endif /* _GL_DROPDOWN_CUSTOM_ITEM_H_ */
index b1f31da..54a712a 100644 (file)
 class FileListPresentationModel;
 
 class FileDeleteTimer
-: public GlTimerBase
-  {
-public :
-       FileDeleteTimer(Tizen::Base::Collection::IList* , FileListPresentationModel*,
-                       IFileOpInvalidateListener*);
-       ~FileDeleteTimer(void);
+       : public GlTimerBase
+{
+public:
+       FileDeleteTimer(Tizen::Base::Collection::IList*, FileListPresentationModel*, IFileOpInvalidateListener*);
+       virtual ~FileDeleteTimer(void);
 
 private:
-       //From GlTimerBase
-       Tizen::Base::Collection::IList * TimerStart(void);
-       result TimerExpired(const ContentId& contentId);
-       void TimerCancel(int, enum FileActionCancelRes res);
-       void TimerComplete(int, enum FileActionCompleteRes res);
+       virtual Tizen::Base::Collection::IList * TimerStart(void);
+       virtual result TimerExpired(const ContentId& contentId);
+       virtual void TimerCancel(int, enum FileActionCancelRes res);
+       virtual void TimerComplete(int, enum FileActionCompleteRes res);
 
 private :
        Tizen::Base::Collection::IList* __pDeleteIndexList;
        FileListPresentationModel* __pPresentationModel;
-
-  };
+};
 
 #endif // _GL_FILE_DELETE_TIMER_H_
index 7cbc57b..2365bc1 100644 (file)
 
 class FileListPresentationModel;
 
-/* FileMoveTimer class is used for Move and Copy operations*/
 class FileMoveTimer
-: public GlTimerBase
-  {
+       : public GlTimerBase
+{
 public :
        FileMoveTimer(Tizen::Base::String& , Tizen::Base::Collection::IList* , FileListPresentationModel*,
                        IFileOpInvalidateListener*, bool __isCopyOperation = false);
-       ~FileMoveTimer(void);
+       virtual ~FileMoveTimer(void);
 
        void SetCopy();
        void ClearCopy();
 
 private:
-       //From GlTimerBase
-       Tizen::Base::Collection::IList * TimerStart(void);
-       result TimerExpired(const ContentId& contentId);
-       void TimerCancel(int, enum FileActionCancelRes res);
-       void TimerComplete(int, enum FileActionCompleteRes res);
+       virtual Tizen::Base::Collection::IList * TimerStart(void);
+       virtual result TimerExpired(const ContentId& contentId);
+       virtual void TimerCancel(int, enum FileActionCancelRes res);
+       virtual void TimerComplete(int, enum FileActionCompleteRes res);
 
 private :
        Tizen::Base::Collection::IList* __pMoveIndexList;
        Tizen::Base::String __moveToDir;
-       FileListPresentationModel* __pPresentationModel;
        bool __isCopyOperation;
-
-  };
+       FileListPresentationModel* __pPresentationModel;
+};
 
 #endif //_GL_FILE_MOVE_TIMER_H_
index 08e87b3..0b819ae 100644 (file)
@@ -29,7 +29,7 @@ class GlProgressBar
 {
 public:
        GlProgressBar(Tizen::Ui::IActionEventListener* listener);
-       ~GlProgressBar(void);
+       virtual ~GlProgressBar(void);
 
        void HideFileProgressingPopup(void);
        void ShowFileProgressingPopup(int val, enum FileActionMode action);
index 228445f..5636c7d 100644 (file)
 #include "GlTypes.h"
 
 class RadioCustomItem
-: public Tizen::Ui::Controls::CustomItem
-  {
-  public:
-       /**
-        * @brief               The Default Constructor
-        */
+       : public Tizen::Ui::Controls::CustomItem
+{
+public:
        RadioCustomItem(void);
-
-       /**
-        * @brief               The Default Destructor
-        */
        virtual ~RadioCustomItem(void);
 
-       /**
-        * @brief               Initializes this instance of %DropDownCustomItem.
-        *
-        * @return              An error code
-        * @param[in]   width                           The width of the Custom Item
-        * @param[in]   height                          The height of the Custom Item
-        * @exception   E_SUCCESS                       The method is successful.
-        * @exception   E_INVALID_STATE         This instance has already been constructed.
-        * @exception   E_INVALID_ARG       A specified input parameter is invalid.
-        * @exception   E_OUT_OF_MEMORY     The memory is insufficient.
-        * @exception   E_SYSTEM                        A system error has occurred.
-        *
-        */
        result Construct(int width, int height);
 
-       //getter and setter methods for Text
-
-       /**
-        * @brief               The method used to get the text of CustomItem
-        * @return              An error code
-        */
        Tizen::Base::String GetText(void);
-
-       /**
-        * @brief               The method used to get selection state of the Radio Button
-        * @return              True if selected or false if unselected
-        */
        bool GetSelected(void);
-
-
-       /**
-        * @brief               Add all the required elements and create the Custom Item.
-        *
-        * @return              An error code
-        * @param[in]   void                            An instance of the Rectangle class @n
-        *                                                                      This instance represents the x and y coordinates of the top-left corner of the created window along with
-        *                                                                      the width and height of the window.
-        * @exception   E_SUCCESS                       The method is successful.
-        * @exception   E_INVALID_STATE         This instance has already been constructed.
-        * @exception   E_INVALID_ARG       A specified input parameter is invalid.
-        * @exception   E_OUT_OF_MEMORY     The memory is insufficient.
-        * @exception   E_SYSTEM                        A system error has occurred.
-        *
-        */
        result Make(void);
-
-       /**
-        * @brief               The method used to set the text of CustomItem
-        * @return              An error code
-        */
        void SetText(Tizen::Base::String& text);
-
-       /**
-        * @brief               The method used to set the selection state of the Radio Button
-        * @return              void
-        */
        void SetSelected(bool selectedValue);
 
-  protected:
+protected:
        static const int IDA_FORMAT_STRING;
        static const int IDA_FORMAT_RADIO_BUTTON;
 
-  private:
+private:
        bool __isSelected;
-       int __width;                ///Width of the SettingToggleCustomItem Instance
-       int __height;               ///Height of the SettingToggleCustomItem Instance
-       Tizen::Base::String __text;   ///The Text for the Toggle Button
-
-  };
+       int __width;
+       int __height;
+       Tizen::Base::String __text;
+};
 
 #endif /* _GL_RADIO_CUSTOM_ITEM_H_ */
index a05dc3c..fa94400 100644 (file)
 class ISlideSettingListener;
 
 class SlideShowPopUp
-  : public Tizen::Ui::Controls::IListViewItemEventListener
-  , public Tizen::Ui::Controls::IListViewItemProvider
-  , public Tizen::Ui::Controls::Popup
-  , public Tizen::Ui::IActionEventListener
-  {
-  public:
-       /**
-        * @brief The Default Constructor
-        */
-         SlideShowPopUp(void);
+       : public Tizen::Ui::Controls::IListViewItemEventListener
+       , public Tizen::Ui::Controls::IListViewItemProvider
+       , public Tizen::Ui::Controls::Popup
+       , public Tizen::Ui::IActionEventListener
+{
+public:
+       SlideShowPopUp(void);
+       virtual ~SlideShowPopUp(void);
 
-       /**
-        * @brief The Default Destructor
-        */
-       ~SlideShowPopUp(void);
-
-       /**
-        * @brief Initializes this SettingForm Form.
-        *
-        * @return              An error code
-        * @exception   true                            The method is succeIOrientationEventListenerssful.
-        * @exception   false                           An error Occured.
-        */
        bool Initialize(void);
-
-       /**
-        * This function terminates all the controls
-        *
-        * @return      result type
-        * @param               No parameter
-        */
        virtual result OnTerminating(void);
 
-  public:
+public:
+       void SetEventListner(ISlideSettingListener* listner);
 
-       //IListViewItemProvider
+       virtual int GetItemCount(void);
        virtual Tizen::Ui::Controls::ListItemBase* CreateItem(int index, int itemWidth);
        virtual bool DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth);
-       virtual int GetItemCount(void);
 
-       //IActionEventListener
-       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
-
-       // IListViewItemEventListener
-       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
-       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status);
-       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction){};
-       virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback){};
+       virtual void OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index,
+                       int elementId, Tizen::Ui::Controls::ListContextItemStatus state){};
+       virtual void OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId,
+                       Tizen::Ui::Controls::ListItemStatus status);
+       virtual void OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index,
+                       Tizen::Ui::Controls::SweepDirection direction){};
+       virtual void OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId,
+                       bool& invokeListViewItemCallback){};
 
-       void SetEventListner(ISlideSettingListener* listner);
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
 
-  private:
+private:
        Tizen::Ui::Controls::ListView* __pList;
        ISlideSettingListener* __pListener;
-  };
-
+};
 
 #endif /* _GL_SLIDE_SHOW_POPUP_H_ */
index 8acb206..3f96b5b 100644 (file)
@@ -18,6 +18,7 @@
  * @file               GlTimerBase.h
  * @brief              This is the header file for GlTimerBase class.
  */
+
 #ifndef __GL_TIMER_BASE_H_
 #define __GL_TIMER_BASE_H_
 
@@ -25,7 +26,6 @@
 #include <FContent.h>
 #include "GlFileOpInvalidateListener.h"
 
-
 using namespace Tizen::Base;
 using namespace Tizen::Base::Runtime;
 using namespace Tizen::Content;
@@ -33,46 +33,39 @@ using namespace Tizen::Content;
 class GlProgressBar;
 
 class GlTimerBase
-       :public Tizen::Ui::IActionEventListener
+       : public Tizen::Ui::IActionEventListener
        , public ITimerEventListener
- {
-       public:
+{
+public:
 
        GlTimerBase(IFileOpInvalidateListener*, enum FileActionMode actionId);
        virtual ~GlTimerBase(void);
 
        bool StartTimer(void);
        void CancelTimer(void);
+       void SetActionMode(enum FileActionMode actionId);
 
-       //From IActionEventListener
-       void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
-
-       //From ITimerEventListener
-       void OnTimerExpired(Timer& timer);
+       virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
 
-       void SetActionMode(enum FileActionMode actionId);
+       virtual void OnTimerExpired(Timer& timer);
 
-       protected:
+protected:
        virtual Tizen::Base::Collection::IList * TimerStart(void) = 0;
        virtual result TimerExpired(const ContentId&) = 0;
        virtual void TimerCancel(int, enum FileActionCancelRes res) = 0;
        virtual void TimerComplete(int, enum FileActionCompleteRes res) = 0;
 
-
-       private:
+private:
        void OnOpComplete(enum FileActionCompleteRes);
        void OnOpCancelled(enum FileActionCancelRes res);
 
-
-       private:
+private:
        Timer __moveTimer;
        Tizen::Base::Collection::IList * __pContentIdList;
        int __moveToCount;
        GlProgressBar* __pMoveProBar;
        IFileOpInvalidateListener* __pInvalidate;
        enum FileActionMode __actionId;
-
  };
 
-
 #endif //__GL_TIMER_BASE_H_
index 71c99b7..7bae0a5 100644 (file)
@@ -3,7 +3,8 @@
        This XML file was automatically generated by UiBuilder - do not modify by hand.
 -->
 <!DOCTYPE Scene SYSTEM "UIForm.dtd">
-<Scene Bversion="2.0.0.201303280947" Dversion="20120315">
+
+<Scene Bversion="2.0.0.201304041646" Dversion="20120315">
     <LogicalCoordinate>720</LogicalCoordinate>
     <Form id="IDL_FORM_ALBUM_LIST_EDITOR">
         <property backgroundColor="" backgroundColorOpacity="100" notificationTrayOpenEnabled="false" orientation="Portrait" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
@@ -18,7 +19,7 @@
         </itemSet>
     </Footer>
     <Header>
-        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" titleIconPath="" titleText="::IDS_COM_BODY_GALLERY" titleTextColor=""/>
+        <property accessibilityHint="" backgroundBitmapPath="" color="" colorOpacity="100" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="100" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="100" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="100" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="100" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="100" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" titleIconPath="" titleText="::IDS_COM_HEADER_EDIT" titleTextColor=""/>
         <itemSet>
             <buttonItem accessibilityHint="" actionId="201" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="00_icon_select_all_web.png" position="BUTTON_POSITION_RIGHT" pressedBGBitmapPath="" pressedIconPath="00_icon_select_all_press_web.png" style="BUTTON_ITEM_STYLE_ICON" text="" type="right"/>
         </itemSet>
index 7c31e91..2943b6c 100644 (file)
@@ -31,8 +31,8 @@ using namespace Tizen::Base;
 using namespace Tizen::Base::Collection;
 using namespace Tizen::Content;
 using namespace Tizen::Graphics;
-using namespace Tizen::Media;
 using namespace Tizen::Io;
+using namespace Tizen::Media;
 using namespace Tizen::System;
 using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
index 15772e9..2358d9c 100644 (file)
@@ -131,5 +131,4 @@ ContentUpdateEventListener::OnContentFileDeleted(Tizen::Content::ContentId conte
 void
 ContentUpdateEventListener::OnContentDirectoryScanCompleted(const Tizen::Base::String& directoryPath, result r)
 {
-
 }
index d43e014..a349c1a 100644 (file)
@@ -49,11 +49,10 @@ DropDownCustomItem::~DropDownCustomItem(void)
 result
 DropDownCustomItem::Construct(int width)
 {
-       result r = E_SUCCESS;
        __width = width;
        __height = 140;
        Dimension dim(__width, __height);
-       r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+       result r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
        return r;
 }
 
@@ -89,8 +88,10 @@ DropDownCustomItem::Make()
        Tizen::Graphics::Bitmap* pDropperBitmapNormal = null;
        Tizen::Graphics::Bitmap* pDropperBitmapPressed = null;
 
-       AddElement(Rectangle(26, 22, __width - 126, 54), IDA_FORMAT_MAIN_STRING,__mainText,44,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT,CUSTOM_COLOR_TRANSPARENT);
-       AddElement(Rectangle(26, 76, __width - 126, 42), IDA_FORMAT_SUB_STRING,__subText,34,CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY);
+       AddElement(Rectangle(26, 22, __width - 126, 54), IDA_FORMAT_MAIN_STRING,__mainText, 44,
+                       CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT, CUSTOM_COLOR_TRANSPARENT);
+       AddElement(Rectangle(26, 76, __width - 126, 42), IDA_FORMAT_SUB_STRING,__subText, 34, CUSTOM_COLOR_GREY,
+                       CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY);
 
        AppResource* pAppResource = UiApp::GetInstance()->GetAppResource();
        if (pAppResource)
index 1ba195c..c44ff29 100644 (file)
@@ -19,7 +19,6 @@
  * @brief              This is the source file for FileDeleteTimer class.
  */
 
-
 #include <FBase.h>
 #include <FContent.h>
 #include <FMedia.h>
@@ -38,9 +37,8 @@ using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
 using namespace Tizen::Ui::Scenes;
 
-FileDeleteTimer::FileDeleteTimer(Tizen::Base::Collection::IList* pDelList
-       , FileListPresentationModel* pPM
-       , IFileOpInvalidateListener* invalidate)
+FileDeleteTimer::FileDeleteTimer(Tizen::Base::Collection::IList* pDelList, FileListPresentationModel* pPM,
+               IFileOpInvalidateListener* invalidate)
        : GlTimerBase(invalidate, FILE_DELETE_ACTION)
        , __pDeleteIndexList(pDelList)
        , __pPresentationModel(pPM)
@@ -56,16 +54,16 @@ IList * FileDeleteTimer::TimerStart(void)
 {
        return __pPresentationModel->GetContentIdListN(*__pDeleteIndexList);
 }
+
 result FileDeleteTimer::TimerExpired(const ContentId& contentId)
 {
        return __pPresentationModel->DeleteContentFile(contentId);
 }
+
 void FileDeleteTimer::TimerCancel(int, enum FileActionCancelRes res)
 {
-
 }
+
 void FileDeleteTimer::TimerComplete(int, enum FileActionCompleteRes res)
 {
-
 }
-
index 2e6f197..d558943 100644 (file)
@@ -37,17 +37,15 @@ using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
 using namespace Tizen::Ui::Scenes;
 
-FileMoveTimer::FileMoveTimer(String& destDirectory, IList* list
-               , FileListPresentationModel* presentationModel
-               , IFileOpInvalidateListener* pInvalidate
-               , bool isCopyOperation)
-               : GlTimerBase(pInvalidate, FILE_MOVE_ACTION)
-               , __pMoveIndexList(list)
-               ,__moveToDir(destDirectory)
-               ,__pPresentationModel(presentationModel)
-
+FileMoveTimer::FileMoveTimer(String& destDirectory, IList* list, FileListPresentationModel* presentationModel,
+               IFileOpInvalidateListener* pInvalidate, bool isCopyOperation)
+       : GlTimerBase(pInvalidate, FILE_MOVE_ACTION)
+       , __pMoveIndexList(list)
+       , __moveToDir(destDirectory)
+       , __pPresentationModel(presentationModel)
 {
 }
+
 FileMoveTimer::~FileMoveTimer(void)
 {
        delete __pMoveIndexList;
@@ -67,7 +65,7 @@ IList * FileMoveTimer::TimerStart(void)
                AppLogDebug("EXIT 2(%s)", GetErrorMessage(GetLastResult()));
                return null;
        }
-       if(__isCopyOperation)
+       if(__isCopyOperation == true)
        {
                SetActionMode(FILE_COPY_ACTION);
        }
@@ -84,7 +82,6 @@ IList * FileMoveTimer::TimerStart(void)
        {
                return null;
        }
-
 }
 
 result FileMoveTimer::TimerExpired(const ContentId& contentId)
index 024472f..238b9bb 100644 (file)
@@ -40,19 +40,15 @@ ProgressAnimation::~ProgressAnimation(void)
 {
        if (__pAnimationFrameList != null)
        {
-               __pAnimationFrameList->RemoveAll(true);
                delete __pAnimationFrameList;
-               __pAnimationFrameList = null;
        }
 }
 
 result
 ProgressAnimation::Construct(Tizen::Graphics::Rectangle rect)
 {
-       result r = E_SUCCESS;
        Panel::Construct(rect);
 
-       // Create Bitmap
        AppResource *pAppResource = Application::GetInstance()->GetAppResource();
        if (pAppResource != null)
        {
@@ -121,7 +117,7 @@ ProgressAnimation::Construct(Tizen::Graphics::Rectangle rect)
                AnimationFrame *pAniFrame30 = new (std::nothrow) AnimationFrame(*pBitmap29, duration);
 
                // Create AnimationList
-               __pAnimationFrameList = new (std::nothrow) ArrayList();
+               __pAnimationFrameList = new (std::nothrow) ArrayList(SingleObjectDeleter);
                __pAnimationFrameList->Construct();
                __pAnimationFrameList->Add(*pAniFrame1);
                __pAnimationFrameList->Add(*pAniFrame2);
@@ -193,7 +189,7 @@ ProgressAnimation::Construct(Tizen::Graphics::Rectangle rect)
                AddControl(*__pAnimation);
        }
 
-       return r;
+       return E_SUCCESS;
 }
 
 void
index 1a372b6..0b77414 100644 (file)
@@ -112,7 +112,6 @@ GlProgressBar::CreateFileProgressingPopup(void)
                        __pFileProgressingLabel->SetName(L"IDC_FILE_COUNT_LABEL");
                        __pFileProgressingLabel->SetShowState(true);
                }
-
        }
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
        return r;
index 99569c6..c5b8e35 100644 (file)
@@ -49,12 +49,10 @@ RadioCustomItem::~RadioCustomItem(void)
 result
 RadioCustomItem::Construct(int width, int height)
 {
-       result r = E_FAILURE;
-
        __width = width;
        __height = height;
        const Dimension dim(width, height);
-       r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
+       result r = CustomItem::Construct(dim, LIST_ANNEX_STYLE_NORMAL);
 
        return r;
 }
@@ -94,7 +92,8 @@ RadioCustomItem::Make(void)
                                IDA_FORMAT_RADIO_BUTTON, *pBitmap, null);
                AppLogDebug("RadioCustomItem::the text is %ls",__text.GetPointer());
 
-               r = AddElement(Rectangle(26 + pBitmap->GetWidth() + 10, 5, __width - 26 - 10 - pBitmap->GetWidth(), __height), IDA_FORMAT_STRING, __text, 40, textColor, textColor, textColor, true);
+               r = AddElement(Rectangle(26 + pBitmap->GetWidth() + 10, 5, __width - 26 - 10 - pBitmap->GetWidth(),
+                               __height), IDA_FORMAT_STRING, __text, 40, textColor, textColor, textColor, true);
                delete pBitmap;
        }
        TryCatch(!IsFailed(r),,"RadioCustomItem::the value is %s",GetErrorMessage(r));
index e196778..f178ff4 100644 (file)
@@ -24,8 +24,8 @@
 #include <FUiScenes.h>
 
 #include "GlResourceManager.h"
-#include "GlSlideShowPopUp.h"
 #include "GlSlideSettingListener.h"
+#include "GlSlideShowPopUp.h"
 
 using namespace Tizen::App;
 using namespace Tizen::Base;
@@ -35,21 +35,18 @@ using namespace Tizen::Ui;
 using namespace Tizen::Ui::Controls;
 using namespace Tizen::Ui::Scenes;
 
-
 static const int ID_FORMAT_START = 501;
 static const int ID_FORMAT_SETTING = 502;
 static const int ID_CANCEL_BUTTON = 503;
 
-
 SlideShowPopUp::SlideShowPopUp(void)
-:__pList(null)
+       : __pList(null)
+       , __pListener(null)
 {
-
 }
 
 SlideShowPopUp::~SlideShowPopUp(void)
 {
-
 }
 
 bool
@@ -77,14 +74,12 @@ SlideShowPopUp::Initialize(void)
        }
 
        return true;
-
 }
 
 result
 SlideShowPopUp::OnTerminating(void)
 {
-       result r = E_SUCCESS;
-       return r;
+       return E_SUCCESS;
 }
 
 void
@@ -107,23 +102,20 @@ SlideShowPopUp::OnActionPerformed(const Control& source, int actionId)
 void
 SlideShowPopUp::OnListViewItemStateChanged(ListView& listView, int index, int elementId, ListItemStatus status)
 {
-
        if (__pListener != null)
        {
                __pListener->OnSlideSettingPopUpItemSelected(index);
        }
-
 }
 
 ListItemBase*
 SlideShowPopUp::CreateItem(int index, int itemWidth)
 {
-       result r = E_FAILURE;
        ListAnnexStyle style = LIST_ANNEX_STYLE_NORMAL;
        int listItemHeight = 112;
 
        CustomItem* pItem = new (std::nothrow) CustomItem();
-       r = pItem->Construct(Dimension(GetClientAreaBounds().width, listItemHeight), style);
+       result r = pItem->Construct(Dimension(GetClientAreaBounds().width, listItemHeight), style);
        pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
 
        if (IsFailed(r))
@@ -134,7 +126,6 @@ SlideShowPopUp::CreateItem(int index, int itemWidth)
 
        switch (index)
        {
-
        case 0:
        {
                pItem->AddElement(Rectangle(0, 0, GetClientAreaBounds().width, listItemHeight), ID_FORMAT_START,
@@ -174,4 +165,3 @@ SlideShowPopUp::SetEventListner(ISlideSettingListener* listner)
 {
        __pListener = listner;
 }
-
index b365545..05bea32 100644 (file)
 
 using namespace Tizen::Ui;
 
-GlTimerBase::GlTimerBase(IFileOpInvalidateListener* invalidateListener,
-               enum FileActionMode actionId)
-       : __pInvalidate(invalidateListener)
+GlTimerBase::GlTimerBase(IFileOpInvalidateListener* invalidateListener, enum FileActionMode actionId)
+       : __pContentIdList(null)
+       , __moveToCount(0)
+       , __pMoveProBar(null)
+       , __pInvalidate(invalidateListener)
        , __actionId(actionId)
 {
-
+       AppLogDebug("ENTER");
+       AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }
 
 GlTimerBase::~GlTimerBase(void)
@@ -47,7 +50,8 @@ GlTimerBase::~GlTimerBase(void)
        AppLogDebug("ENTER");
 }
 
-bool GlTimerBase::StartTimer(void)
+bool
+GlTimerBase::StartTimer(void)
 {
        AppLogDebug("ENTER");
        __pContentIdList = TimerStart();
@@ -59,23 +63,25 @@ bool GlTimerBase::StartTimer(void)
                __moveToCount = 0;
                __moveTimer.Construct(*this);
                __moveTimer.Start(1);
-               AppLogDebug("Returned true");
+               AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
                return E_SUCCESS;
        }
-       AppLogDebug("Returned false");
+       AppLogDebug("EXIT1(%s)", GetErrorMessage(GetLastResult()));
        return E_FAILURE;
 }
 
-void GlTimerBase::CancelTimer(void)
+void
+GlTimerBase::CancelTimer(void)
 {
        AppLogDebug("ENTER");
        __moveTimer.Cancel();
        OnOpCancelled(CANCEL_USER);
        __moveToCount = 0;
-       AppLogDebug("EXIT");
+       AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }
 
-void GlTimerBase::OnTimerExpired(Timer& timer)
+void
+GlTimerBase::OnTimerExpired(Timer& timer)
 {
        AppLogDebug("ENTER");
        if (&timer == &__moveTimer)
@@ -110,12 +116,13 @@ void GlTimerBase::OnTimerExpired(Timer& timer)
                        __moveToCount = 0;
                }
        }
-       AppLogDebug("EXIT");
+       AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }
 
 void
 GlTimerBase::OnActionPerformed(const Control& source, int actionId)
 {
+       AppLogDebug("ENTER");
        switch (actionId)
        {
        case ACTION_ID_PROGRESSBAR_CANCEL:
@@ -126,6 +133,7 @@ GlTimerBase::OnActionPerformed(const Control& source, int actionId)
        default:
                break;
        }
+       AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }