/*
- * 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 */
};
/**
* @describe
*
*
-* @param msg
-* @param ad
-* @return void
-* @exception
-*/
-void calc_view_show_popup(char *msg, struct appdata *ad);
-
-/**
-* @describe
-*
-*
* @param ad
* @return void
* @exception
* @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
*