APPLY_RSA
[apps/home/calculator.git] / include / calc-view.h
index c8c5de7..28a52a7 100644 (file)
@@ -1,28 +1,33 @@
 /*
-  * Copyright 2012  Samsung Electronics Co., Ltd
-  * 
-  * Licensed under the Flora License, Version 1.0 (the "License");
-  * you may not use this file except in compliance with the License.
-  * You may obtain a copy of the License at
-  * 
-  *     http://www.tizenopensource.org/license
-  * 
-  * Unless required by applicable law or agreed to in writing, software
-  * distributed under the License is distributed on an "AS IS" BASIS,
-  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  * See the License for the specific language governing permissions and
-  * limitations under the License.
-  */
-
+*
+* Copyright 2012  Samsung Electronics Co., Ltd
+*
+* Licensed under the Flora License, Version 1.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+*    http://www.tizenopensource.org/license
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*
+*/
 
 #ifndef __DEF_CALC_VIEW_H_
 #define __DEF_CALC_VIEW_H_
 
 #include "calc-main.h"
+
+/**
+* @struct      history_item
+* @brief       store the calculation history
+*/
 struct history_item  {
-       char expression[MAX_EXPRESSION_LENGTH];
-        char result[MAX_RESULT_LENGTH];
+       char expression[MAX_EXPRESSION_LENGTH]; /**<Store the express in string format */
+       double result;  /**<Store the calculate result in double format */
 };
 
 /**
@@ -49,17 +54,6 @@ void calc_view_load_in_idle(struct appdata *ad);
 * @describe
 *
 *
-* @param    msg
-* @param    ad
-* @return    void
-* @exception
-*/
-void calc_view_show_popup(char *msg, struct appdata *ad);
-
-/**
-* @describe
-*
-*
 * @param    ad
 * @return    void
 * @exception
@@ -75,8 +69,10 @@ void calc_view_revise_input_scroller(struct appdata *ad);
 * @return    void
 * @exception
 */
+//void calc_view_show_result(const char *result, struct appdata *ad, int font_size);
 void calc_view_show_result(const char *result, struct appdata *ad);
 
+
 /**
 * @describe
 *