/* Define vconf key */
#define VCONFKEY_MSG_APP_FONT_SIZE "db/private/org.tizen.message/font_size"
+#define VCONFKEY_MSG_APP_ACCESS_FONT_SIZE "db/private/org.tizen.message/accessibility_font_size"
#define VCONFKEY_MSG_APP_USE_VOLUME_KEY "db/private/org.tizen.message/use_volume_key"
#define MSG_COMMON_EDJ EDJDIR"/msg_common.edj"
#define MSG_CUSTOM_WINSET_EDJ EDJDIR"/msg_custom_winset.edj"
+#define MSG_IMAGES_EDJ EDJDIR"/msg_images.edj"
+
/*==================================================================================================
ENUMERATIONS
MSG_APP_FONT_SIZE_LARGE = 64,
MSG_APP_FONT_SIZE_HUGE = 81,
MSG_APP_FONT_SIZE_GIANT = 106,
-
MSG_APP_FONT_SIZE_MAX
} MSG_APP_FONT_SIZE_E;
typedef enum {
- MSG_APP_FONT_SIZE_INDEX_SYSTEM_FONT,
- MSG_APP_FONT_SIZE_INDEX_GIANT,
- MSG_APP_FONT_SIZE_INDEX_HUGE,
- MSG_APP_FONT_SIZE_INDEX_LARGE,
- MSG_APP_FONT_SIZE_INDEX_NORMAL,
MSG_APP_FONT_SIZE_INDEX_SMALL,
-
+ MSG_APP_FONT_SIZE_INDEX_NORMAL,
+ MSG_APP_FONT_SIZE_INDEX_LARGE,
+ MSG_APP_FONT_SIZE_INDEX_HUGE,
+ MSG_APP_FONT_SIZE_INDEX_GIANT,
MSG_APP_FONT_SIZE_INDEX_MAX
} MSG_APP_FONT_SIZE_INDEX_E;
char *msg_common_get_display_date(const char *locale, char *bestPattern, char* yearPattern, time_t *msg_t);
/*
- *@fn msg_common_get_markup_text(const char *src, int fontsize, char *fontcolor, char *fontstyle);
+ *@fn msg_common_get_markup_text(const char *src, char *fontcolor, char *fontstyle);
*@brief This function is used to get marked up string from src text.
* Caller must free returned string by using eina_strbuf_free(), else memory will be leaked
*@return Eina_Strbuf* marked up string on success, else NULL pointer on failure
*@param[in] src original text to be displayed
- *@param[in] fontsize fontsize to be displayed. If 0 is passed, it is not set
*@param[in] fontcolor fontcolor to be displayed. It must be "#ffffff" style. If NULL is passed, it is not set
*@param[in] fontstyle fontstyle to be displayed. It must be passed font style like "hilight". If NULL is passed, it is not set
*/
-Eina_Strbuf *msg_common_get_markup_text(const char *src, int fontsize, char *fontcolor, char *fontstyle);
-
+Eina_Strbuf *msg_common_get_markup_text(const char *src, char *fontcolor, char *fontstyle);
/*
*@fn msg_common_is_valid_phone_number(const char *address);
*@brief This function is used to check address is valid number or not
MSG_BOOL msg_common_is_sim_inserted(void);
/*
- *@fn msg_common_get_font_size(int *index, int *font_size);
- *@brief This function is used to get the font size.
+ *@fn msg_common_get_font_size(int *index);
+ *@brief This function is used to get the index of font size.
*@param[in] index index of font size. It is used in message setting.
- *@param[in] font_size font size which is used in message app.
*@return return TRUE if vconf API is success, else FALSE
*/
-MSG_BOOL msg_common_get_font_size(int *index, int *font_size);
+MSG_BOOL msg_common_get_font_size(int *index);
/*
- *@fn msg_common_set_font_size(void);
- *@brief This function is used to set the font size.
+ *@fn msg_common_set_font_size(int index);
+ *@brief This function is used to set the index of font size.
*@return return TRUE if vconf API is success, else FALSE
*/
MSG_BOOL msg_common_set_font_size(int index);
/*
+ *@fn msg_common_increase_font_size(void);
+ *@brief This function is used to set the increased index of font size.
+ *@return return TRUE if vconf API is success, else FALSE
+ */
+MSG_BOOL msg_common_increase_font_size();
+
+/*
+ *@fn msg_common_decrease_font_size(void);
+ *@brief This function is used to set the decreased index of font size.
+ *@return return TRUE if vconf API is success, else FALSE
+ */
+MSG_BOOL msg_common_decrease_font_size();
+
+/*
+ *@fn msg_common_get_index_from_font_size(int font_size);
+ *@brief This function is used to get index from font size.
+ *@return return font size, else -1
+ */
+int msg_common_get_index_from_font_size(int font_size);
+
+/*
+ *@fn msg_common_get_font_size_from_index(int index);
+ *@brief This function is used to get font size from index.
+ *@return return index of font size, else -1
+ */
+int msg_common_get_font_size_from_index(int index);
+
+/*
+ *@fn msg_common_get_access_font_size(int *index);
+ *@brief This function is used to get the index of accessibility font size.
+ *@param[in] index index of font size. It is used in message setting.
+ *@return return TRUE if vconf API is success, else FALSE
+ */
+MSG_BOOL msg_common_get_access_font_size(int *index);
+
+/*
+ *@fn msg_common_set_access_font_size(int index);
+ *@brief This function is used to set the index of accessibility font size.
+ *@return return TRUE if vconf API is success, else FALSE
+ */
+MSG_BOOL msg_common_set_access_font_size(int index);
+
+
+/*
*@fn msg_common_apply_font_size(void);
*@brief This function is used to change the font size.
*@param[in] widget_name The widget name which font size is changed.
*/
int msg_common_check_block_number(msg_handle_t msgHandle, const char *address, bool *result);
+char *msg_common_make_message_detail_text(msg_handle_t msgHandle, int msgId);
+
+
#endif