Applied latest source code
[apps/native/preloaded/Clock.git] / inc / ClkNotification.h
1 //
2 // Tizen Native SDK
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/
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 /**
19  * @file    ClkNotification.h
20  * @brief       This header file contains the declarations of the Notification
21  *
22  */
23
24 #ifndef _CLK_NOTIFICATION_H_
25 #define _CLK_NOTIFICATION_H_
26
27 #include <FApp.h>
28 #include <FBase.h>
29 #include <FUi.h>
30
31 class Notification
32   : public Tizen::Base::Runtime::ITimerEventListener
33   , public Tizen::Ui::Controls::Panel
34  {
35  public:
36         /**
37          * @brief               The Default Constructor
38          */
39         Notification(Tizen::Ui::Controls::Form& aForm);
40
41         /**
42          * @brief               The Default Destructor
43          */
44         ~Notification(void);
45
46         // ITimerEventListener
47         void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
48
49         /**
50          * This function displays the Notification
51          *
52          * @return      No return type.
53          * @param               none.
54          */
55         void ShowNotification(void);
56
57         /**
58          * This function gets the Sets the text of the Notification
59          *
60          * @return      No return type.
61          * @param               message      The Notification Message.
62          */
63         void SetText(Tizen::Base::String& message);
64
65  private:
66         Tizen::Ui::Controls::Form& __form;
67         Tizen::Ui::Controls::Label* __pLabel;
68         Tizen::Base::Runtime::Timer* __pTimer;
69
70  };
71
72 #endif /* _CLK_NOTIFICATION_H_ */