Fixed Nabi Issues and Language related changes
[apps/osp/Internet.git] / inc / IntNotificationPanel.h
1 //
2
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Flora License, Version 1.1 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://floralicense.org/license/basic features necessary to define an UiApp.
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 // !Internet
19 /*@file:    IntNotification.h
20  *@brief:       This header file contains the declarations of the Notification
21  *
22  */
23
24 #ifndef _INT_NOTIFICATION_H_
25 #define _INT_NOTIFICATION_H_
26
27 #include <FApp.h>
28 #include <FBase.h>
29 #include <FUi.h>
30 #include "IntTypes.h"
31
32 class NotificationPanel
33   : public Tizen::Ui::Controls::Panel
34   , public Tizen::Base::Runtime::ITimerEventListener
35   {
36   public:
37         /**
38          * @brief               The Default Constructor
39          */
40         NotificationPanel(Tizen::Ui::Controls::Form& aForm);
41
42         /**
43          * @brief               The Default Destructor
44          */
45         ~NotificationPanel(void);
46
47         // ITimerEventListener
48         void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
49
50         /**
51          * This function gets the Sets the __position (FooterPanelheight)
52          *
53          * @return      No return type.
54          * @param               int    position.
55          */
56         void SetPositionDiff(int pos);
57
58         /**
59          * This function displays the Notification
60          *
61          * @return      No return type.
62          * @param               none.
63          */
64         void ShowNotification(void);
65
66         /**
67          * This function gets the Sets the text of the Notification
68          *
69          * @return      No return type.
70          * @param               message      The Notification Message.
71          */
72         void SetText(Tizen::Base::String& message);
73
74   private:
75         Tizen::Ui::Controls::Form& __form;
76         Tizen::Ui::Controls::Label* __pLabel;
77         int __position;
78         Tizen::Base::Runtime::Timer* __pTimer;
79   };
80
81 #endif /* _INT_NOTIFICATION_H_ */