-/*
-* email-service
-*
-* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
-*
-* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>
-*
-* Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
-*
-* 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 __EMF_MAPI_RULE_H__
-#define __EMF_MAPI_RULE_H__
-
-#include "emf-types.h"
-
-/**
-* @defgroup EMAIL_FRAMEWORK Email Service
-* @{
-*/
-
-/**
-* @ingroup EMAIL_FRAMEWORK
-* @defgroup EMAIL_MAPI_RULE Email Rule API
-* @{
-*/
-
- /**
- *
- * This file contains the data structures and interfaces needed for application,
- * to interact with Email Engine.
- * @file Emf_Mapi_Rule.h
- * @author Kyuho Jo <kyuho.jo@samsung.com>
- * @author Sunghyun Kwon <sh0701.kwon@samsung.com>
- * @version 0.1
- * @brief This file contains the data structures and interfaces of Rule related Functionality provided by
- * Email Engine .
- * @{
-
- * @code
- * #include "Emf_Mapi_Rule.h"
- * bool
- * other_app_invoke_uniform_api_sample(int* error_code)
- * {
- * int err = EMF_ERROR_NONE;
- * emf_rule_t* rule = NULL;
- * int filter_id = 1;
- * int count = 0;
- *
- * // Get a information of filtering
- * printf("Enter filter Id:\n");
- * scanf("%d",&filter_id);
- *
- * if(EMF_ERROR_NONE == email_get_rule (filter_id,&rule))
- * //success
- * else
- * //failure
- *
- * // Get all filterings
- * if(EMF_ERROR_NONE == email_get_rule_list(&rule,&count))
- * //success
- * else
- * //failure
- *
- *
- * // Add a filter information
- * if(EMF_ERROR_NONE == email_add_rule (rule))
- * //success
- * else
- * //failure
- * err = email_free_rule (&rule,1);
- *
- * // Change a filter information
- * if(EMF_ERROR_NONE == email_update_rule (filter_id,rule))
- * //success
- * else
- * //failure
- * err = email_free_rule (&rule,1);
- *
- * // Delete a filter information
- * printf("Enter filter Id:\n");
- * scanf("%d",&filter_id);
- *
- * if(EMF_ERROR_NONE == email_delete_rule (filter_id))
- * //success
- * else
- * //failure
- *
- * // Free allocated memory
- * if(EMF_ERROR_NONE == email_free_rule (&rule,1))
- * //success
- * else
- * //failure
- *
- * }
- *
- * @endcode
- * @}
- */
-
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
-/**
-
- * @open
- * @fn email_get_rule(int filter_id, emf_rule_t** filtering_set)
- * @brief Get a information of filtering.
- *
- * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure
- * @param[in] filter_id Specifies the filter ID.
- * @param[out] filtering_set The returned information of filter are saved here.
- * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument
- * @see emf_rule_t
- * @remarks N/A
- */
-EXPORT_API int email_get_rule(int filter_id, emf_rule_t** filtering_set);
-
-/**
-
- * @open
- * @fn email_get_rule_list(emf_rule_t** filtering_set, int* count)
- * @brief Get all filterings.This function gives all the filter rules already set before by user.
- * This will provide total number of filter rules available and information of all rules.
- *
- * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure
- * @param[out] filtering_set The returned filterings are saved here.(possibly NULL)
- * @param[out] count The count of returned filters is saved here.(possibly 0)
- * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument
- * @see emf_rule_t
- * @remarks N/A
- */
-EXPORT_API int email_get_rule_list(emf_rule_t** filtering_set, int* count);
-
-/**
-
- * @open
- * @fn email_add_rule(emf_rule_t* filtering_set)
- * @brief Add a filter information.This function is invoked if user wants to add a new filter rule.
- *
- * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure.
- * @param[in] filtering_set Specifies the pointer of adding filter structure.
- * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument
- * @see emf_rule_t
- * @remarks N/A
- */
-EXPORT_API int email_add_rule(emf_rule_t* filtering_set);
-
-/**
-
- * @open
- * @fn email_update_rule(int filter_id, emf_rule_t* new_set)
- * @brief Change a filter information.This function will update the existing filter rule with new information.
- *
- * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure.
- * @param[in] filter_id Specifies the original filter ID.
- * @param[in] new_set Specifies the information of new filter.
- * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument
- * @see emf_rule_t
- * @remarks N/A
- */
-EXPORT_API int email_update_rule(int filter_id, emf_rule_t* new_set);
-
-/**
-
- * @open
- * @fn email_delete_rule(int filter_id)
- * @brief Delete a filter information.This function will delete the exsting filter information by specified filter Id.
- *
- * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure
- * @param[in] filter_id Specifies the filter ID.
- * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument
- * @see none
- * @remarks N/A
- */
-EXPORT_API int email_delete_rule(int filter_id);
-
-
-
-/**
-
- * @open
- * @fn email_free_rule (emf_rule_t** filtering_set, int count)
- * @brief Free allocated memory.
- *
- * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure
- * @param[in] filtering_set Specifies the pointer of pointer of filter structure for memory free.
- * @param[in] count Specifies the count of filter.
- * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument
- * @see emf_rule_t
- * @remarks N/A
- */
-EXPORT_API int email_free_rule (emf_rule_t** filtering_set, int count);
-
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
-
-/**
-* @} @}
-*/
-
-
-#endif /* __EMF_MAPI_RULE_H__ */
+/*\r
+* email-service\r
+*\r
+* Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.\r
+*\r
+* Contact: Kyuho Jo <kyuho.jo@samsung.com>, Sunghyun Kwon <sh0701.kwon@samsung.com>\r
+*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+*\r
+*/\r
+\r
+\r
+#ifndef __EMAIL_API_RULE_H__\r
+#define __EMAIL_API_RULE_H__\r
+\r
+#include "email-types.h"\r
+\r
+/**\r
+* @defgroup EMAIL_SERVICE Email Service\r
+* @{\r
+*/\r
+\r
+/**\r
+* @ingroup EMAIL_SERVICE\r
+* @defgroup EMAIL_API_RULE Email Rule API\r
+* @{\r
+*/\r
+\r
+ /**\r
+ *\r
+ * This file contains the data structures and interfaces needed for application,\r
+ * to interact with email-service.\r
+ * @file email-api-rule.h\r
+ * @author Kyuho Jo <kyuho.jo@samsung.com>\r
+ * @author Sunghyun Kwon <sh0701.kwon@samsung.com>\r
+ * @version 0.1\r
+ * @brief This file contains the data structures and interfaces of Rule related Functionality provided by\r
+ * email-service .\r
+ * @{\r
+\r
+ * @code\r
+ * #include "email-api-rule.h"\r
+ * bool\r
+ * other_app_invoke_uniform_api_sample(int* error_code)\r
+ * {\r
+ * int err = EMF_ERROR_NONE;\r
+ * emf_rule_t* rule = NULL;\r
+ * int filter_id = 1;\r
+ * int count = 0;\r
+ *\r
+ * // Get a information of filtering\r
+ * printf("Enter filter Id:\n");\r
+ * scanf("%d",&filter_id);\r
+ *\r
+ * if(EMF_ERROR_NONE == email_get_rule (filter_id,&rule))\r
+ * //success\r
+ * else\r
+ * //failure\r
+ *\r
+ * // Get all filterings\r
+ * if(EMF_ERROR_NONE == email_get_rule_list(&rule,&count))\r
+ * //success\r
+ * else\r
+ * //failure\r
+ *\r
+ *\r
+ * // Add a filter information\r
+ * if(EMF_ERROR_NONE == email_add_rule (rule))\r
+ * //success\r
+ * else\r
+ * //failure\r
+ * err = email_free_rule (&rule,1);\r
+ *\r
+ * // Change a filter information\r
+ * if(EMF_ERROR_NONE == email_update_rule (filter_id,rule))\r
+ * //success\r
+ * else\r
+ * //failure\r
+ * err = email_free_rule (&rule,1);\r
+ *\r
+ * // Delete a filter information\r
+ * printf("Enter filter Id:\n");\r
+ * scanf("%d",&filter_id);\r
+ *\r
+ * if(EMF_ERROR_NONE == email_delete_rule (filter_id))\r
+ * //success\r
+ * else\r
+ * //failure\r
+ *\r
+ * // Free allocated memory\r
+ * if(EMF_ERROR_NONE == email_free_rule (&rule,1))\r
+ * //success\r
+ * else\r
+ * //failure\r
+ *\r
+ * }\r
+ *\r
+ * @endcode\r
+ * @}\r
+ */\r
+\r
+\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif /* __cplusplus */\r
+\r
+/**\r
+\r
+ * @open\r
+ * @fn email_get_rule(int filter_id, emf_rule_t** filtering_set)\r
+ * @brief Get a information of filtering.\r
+ *\r
+ * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure\r
+ * @param[in] filter_id Specifies the filter ID.\r
+ * @param[out] filtering_set The returned information of filter are saved here.\r
+ * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument\r
+ * @see emf_rule_t\r
+ * @remarks N/A\r
+ */\r
+EXPORT_API int email_get_rule(int filter_id, emf_rule_t** filtering_set);\r
+\r
+/**\r
+\r
+ * @open\r
+ * @fn email_get_rule_list(emf_rule_t** filtering_set, int* count)\r
+ * @brief Get all filterings.This function gives all the filter rules already set before by user.\r
+ * This will provide total number of filter rules available and information of all rules.\r
+ *\r
+ * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure\r
+ * @param[out] filtering_set The returned filterings are saved here.(possibly NULL)\r
+ * @param[out] count The count of returned filters is saved here.(possibly 0)\r
+ * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument\r
+ * @see emf_rule_t\r
+ * @remarks N/A\r
+ */\r
+EXPORT_API int email_get_rule_list(emf_rule_t** filtering_set, int* count);\r
+\r
+/**\r
+\r
+ * @open\r
+ * @fn email_add_rule(emf_rule_t* filtering_set)\r
+ * @brief Add a filter information.This function is invoked if user wants to add a new filter rule.\r
+ *\r
+ * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure.\r
+ * @param[in] filtering_set Specifies the pointer of adding filter structure.\r
+ * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument\r
+ * @see emf_rule_t\r
+ * @remarks N/A\r
+ */\r
+EXPORT_API int email_add_rule(emf_rule_t* filtering_set);\r
+\r
+/**\r
+\r
+ * @open\r
+ * @fn email_update_rule(int filter_id, emf_rule_t* new_set)\r
+ * @brief Change a filter information.This function will update the existing filter rule with new information.\r
+ *\r
+ * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure.\r
+ * @param[in] filter_id Specifies the original filter ID.\r
+ * @param[in] new_set Specifies the information of new filter.\r
+ * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument\r
+ * @see emf_rule_t\r
+ * @remarks N/A\r
+ */\r
+EXPORT_API int email_update_rule(int filter_id, emf_rule_t* new_set);\r
+\r
+/**\r
+\r
+ * @open\r
+ * @fn email_delete_rule(int filter_id)\r
+ * @brief Delete a filter information.This function will delete the exsting filter information by specified filter Id.\r
+ *\r
+ * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure\r
+ * @param[in] filter_id Specifies the filter ID.\r
+ * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument\r
+ * @see none\r
+ * @remarks N/A\r
+ */\r
+EXPORT_API int email_delete_rule(int filter_id);\r
+\r
+\r
+\r
+/**\r
+\r
+ * @open\r
+ * @fn email_free_rule (emf_rule_t** filtering_set, int count)\r
+ * @brief Free allocated memory.\r
+ *\r
+ * @return This function returns EMF_ERROR_NONE on success or error code (refer to EMF_ERROR_XXX) on failure\r
+ * @param[in] filtering_set Specifies the pointer of pointer of filter structure for memory free.\r
+ * @param[in] count Specifies the count of filter.\r
+ * @exception #EMF_ERROR-INVALID_PARAM -Invalid argument\r
+ * @see emf_rule_t\r
+ * @remarks N/A\r
+ */\r
+EXPORT_API int email_free_rule (emf_rule_t** filtering_set, int count);\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif /* __cplusplus */\r
+\r
+/**\r
+* @} @}\r
+*/\r
+\r
+\r
+#endif /* __EMAIL_API_RULE_H__ */\r