Modify osp-shell example code
authorSunmiShin <sunmi557.shin@samsung.com>
Thu, 6 Dec 2012 08:01:28 +0000 (17:01 +0900)
committerSunmiShin <sunmi557.shin@samsung.com>
Thu, 6 Dec 2012 08:01:28 +0000 (17:01 +0900)
Change-Id: I63c39226c2deae17c67eeb97dde89522440f30d5

inc/FShellNotificationManager.h
inc/FShellQuickPanelFrame.h

index 7484813..082c7da 100644 (file)
@@ -91,7 +91,7 @@ enum OngoingActivityType
  * The following example demonstrates how to use the %NotificationManager class.
  *
  * @code
- *     result
+ *     void
  *     MyClass::NotificationSample(void)
  *     {
  *             int badgeNumber;
index d377704..0ad5605 100644 (file)
@@ -48,20 +48,20 @@ namespace Osp { namespace Shell
 #include <FUi.h>
 
 class QuickPanelFrameSample
-        : public Osp::Ui::Controls::Form
+       : public Osp::Ui::Controls::Form
 {
 public:
-        QuickPanelFrameSample(void)
-        : __pQuickPanelFrame(null){}
+       QuickPanelFrameSample(void)
+               : __pQuickPanelFrame(null){}
 
-        bool Initialize(void);
-        virtual result OnInitializing(void);
-        virtual result OnTerminating(void);
+       bool Initialize(void);
+       virtual result OnInitializing(void);
+       virtual result OnTerminating(void);
 
 private:
-        static const int QUICK_PANEL_FRAME_HEIGHT = 102;
+       static const int QUICK_PANEL_FRAME_HEIGHT = 102;
 
-        Osp::Ui::Controls::NotificationFrame *__pQuickPanelFrame;
+       Osp::Ui::Controls::NotificationFrame *__pQuickPanelFrame;
 };
 
 // Sample code for QuickPanelFrameSample.cpp
@@ -76,37 +76,37 @@ using namespace Osp::Ui::Controls;
 bool
 QuickPanelFrameSample::Initialize(void)
 {
-        Construct(FORM_STYLE_NORMAL|FORM_STYLE_INDICATOR);
-        return true;
+       Construct(FORM_STYLE_NORMAL|FORM_STYLE_INDICATOR);
+       return true;
 }
 
 result
 QuickPanelFrameSample::OnInitializing(void)
 {
-        result r = E_SUCCESS;
+       result r = E_SUCCESS;
 
-        // Creates an instance of NotificationFrame
-        __pQuickPanelFrame = new NotificationFrame;
-        __pQuickPanelFrame->Construct(QUICK_PANEL_FRAME_HEIGHT);
+       // Creates an instance of NotificationFrame
+       __pQuickPanelFrame = new NotificationFrame;
+       __pQuickPanelFrame->Construct(QUICK_PANEL_FRAME_HEIGHT);
 
-        // Creates an instance of Button
-        Button* pButton = new Button();
-        pButton->Construct(Rectangle(10,10,200,80), L"Button");
+       // Creates an instance of Button
+       Button* pButton = new Button();
+       pButton->Construct(Rectangle(10,10,200,80), L"Button");
 
-        // Adds the button to the notification frame
-        __pQuickPanelFrame->AddControl(*pButton);
-        __pQuickPanelFrame->Show();
+       // Adds the button to the notification frame
+       __pQuickPanelFrame->AddControl(*pButton);
+       __pQuickPanelFrame->Show();
 
-        return r;
+       return r;
 }
 
 result
 QuickPanelFrameSample::OnTerminating(void)
 {
-        result r = E_SUCCESS;
+       result r = E_SUCCESS;
 
-        delete __pQuickPanelFrame;
-        return r;
+       delete __pQuickPanelFrame;
+       return r;
 }
 * @endcode
 *