697f473df637db4b6a0fe941092fd746aeed369c
[profile/ivi/ico-uxf-homescreen.git] / src / homescreen / CicoStatusBarTime.cpp
1 /*
2  * Copyright (c) 2013, TOYOTA MOTOR CORPORATION.
3  *
4  * This program is licensed under the terms and conditions of the
5  * Apache License, version 2.0.  The full text of the Apache License is at
6  * http://www.apache.org/licenses/LICENSE-2.0
7  *
8  */
9 /**
10  * @brief   control time image for statusbar application
11  *
12  * @date    Feb-15-2013
13  */
14 #include "CicoStatusBarTime.h"
15
16 /*============================================================================*/
17 /* Functions Declaration (CicoStatusBarTime)                          */
18 /*============================================================================*/
19
20 /*--------------------------------------------------------------------------*/
21 /**
22  * @brief   CicoStatusBarTime::CicoStatusBarTime
23  *          constractor 
24  *
25  * @param[in]   none
26  * @return      none
27  */
28 /*--------------------------------------------------------------------------*/
29 CicoStatusBarTime::CicoStatusBarTime(const char *name)
30 {
31     strcpy(fname,name);
32 }
33
34 /*--------------------------------------------------------------------------*/
35 /**
36  * @brief   CicoStatusBarTime::SetTimeImg
37  *          set time image
38  *
39  * @param[in]   time_img_tmp    setting value
40  * @return      none
41  */
42 /*--------------------------------------------------------------------------*/
43 void
44 CicoStatusBarTime::SetTimeImg(Evas_Object *time_img_tmp)
45 {
46     time_img = time_img_tmp;
47 }
48
49 /*--------------------------------------------------------------------------*/
50 /**
51  * @brief   CicoStatusBarTime::GetTimeImg
52  *          get time image 
53  *
54  * @param[in]   none
55  * @return      time image(Evas_Object)
56  */
57 /*--------------------------------------------------------------------------*/
58 Evas_Object *
59 CicoStatusBarTime::GetTimeImg(void)
60 {
61     return time_img;
62 }
63
64 /*--------------------------------------------------------------------------*/
65 /**
66  * @brief   CicoStatusBarTime::GetFileName
67  *          get file name
68  *
69  * @param[in]   none
70  * @return      filename
71  */
72 /*--------------------------------------------------------------------------*/
73 char *
74 CicoStatusBarTime::GetFileName(void)
75 {
76     return fname;
77 }
78