apply FSL(Flora Software License)
[apps/home/calculator.git] / include / calc-view.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17
18
19 #ifndef __DEF_CALC_VIEW_H_
20 #define __DEF_CALC_VIEW_H_
21
22 #include "calc-main.h"
23 struct history_item  {
24         char expression[MAX_EXPRESSION_LENGTH];
25          char result[MAX_RESULT_LENGTH];
26 };
27
28 /**
29 * @describe
30 *
31 *
32 * @param    ad
33 * @return    void
34 * @exception
35 */
36 void calc_view_load(struct appdata *ad);
37
38 /**
39 * @describe
40 *
41 *
42 * @param    ad
43 * @return    void
44 * @exception
45 */
46 void calc_view_load_in_idle(struct appdata *ad);
47
48 /**
49 * @describe
50 *
51 *
52 * @param    msg
53 * @param    ad
54 * @return    void
55 * @exception
56 */
57 void calc_view_show_popup(char *msg, struct appdata *ad);
58
59 /**
60 * @describe
61 *
62 *
63 * @param    ad
64 * @return    void
65 * @exception
66 */
67 void calc_view_revise_input_scroller(struct appdata *ad);
68
69 /**
70 * @describe
71 *
72 *
73 * @param    result
74 * @param    ad
75 * @return    void
76 * @exception
77 */
78 void calc_view_show_result(const char *result, struct appdata *ad);
79
80 /**
81 * @describe
82 *
83 *
84 * @param    entry
85 * @return    int
86 * @exception
87 */
88 int calc_view_cursor_get_position(Evas_Object * entry);
89
90 /**
91 * @describe
92 *
93 *
94 * @param    entry
95 * @param    pos
96 * @return    void
97 * @exception
98 */
99 void calc_view_cursor_set_position(Evas_Object * entry, int pos);
100
101 /**
102 * @describe
103 *
104 *
105 * @param    entry
106 * @param    pos
107 * @return    void
108 * @exception
109 */
110 void calc_view_save_history(struct history_item item);
111
112 #endif  /* __DEF_CALC_VIEW_H_ */
113