summaryrefslogtreecommitdiff
path: root/include/calendar_attendee.h
diff options
context:
space:
mode:
authorYeongil Jang <yg0577.jang@samsung.com>2012-09-21 00:19:43 +0900
committerYeongil Jang <yg0577.jang@samsung.com>2012-09-21 00:19:43 +0900
commit6d5a5230487644957ac52c689af2395c3267338a (patch)
tree2b233f37b8629da2893cf09ce5dd0262e337c1e9 /include/calendar_attendee.h
parenta51a532adbad8e61d9917d43a98a73a5dea67a83 (diff)
downloadcalendar-master.tar.gz
calendar-master.tar.bz2
calendar-master.zip
Diffstat (limited to 'include/calendar_attendee.h')
-rwxr-xr-xinclude/calendar_attendee.h61
1 files changed, 59 insertions, 2 deletions
diff --git a/include/calendar_attendee.h b/include/calendar_attendee.h
index 8e4cf90..49821f4 100755
--- a/include/calendar_attendee.h
+++ b/include/calendar_attendee.h
@@ -14,13 +14,14 @@
* limitations under the License.
*/
-
+
#ifndef __TIZEN_SOCIAL_CALENDAR_CALENDAR_ATTENDEE_H__
#define __TIZEN_SOCIAL_CALENDAR_CALENDAR_ATTENDEE_H__
#include <tizen.h>
#include <time.h>
-#include <calendar_types.h>
+
+#include "calendar_types.h"
@@ -161,6 +162,62 @@ int calendar_attendee_get_contact_db_id(calendar_attendee_h attendee, int *conta
int calendar_attendee_set_contact_db_id(calendar_attendee_h attendee, int contact_db_id);
/**
+ * @brief Gets the status for the given calendar attendee handle.
+ *
+ * @param[in] attendee The calendar attendee handle
+ * @param[out] status The status of the attendee \n (default : #CALENDAR_ATTENDEE_STATUS_PENDING)
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #CALENDAR_ERROR_NONE Successful
+ * @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see calendar_attendee_set_status()
+ */
+int calendar_attendee_get_status(calendar_attendee_h attendee, calendar_attendee_status_e *status);
+
+/**
+ * @brief Sets a status for the given calendar attendee handle.
+ *
+ * @param[in] attendee The calendar attendee handle
+ * @param[in] status The status of the attendee
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #CALENDAR_ERROR_NONE Successful
+ * @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see calendar_attendee_get_status()
+ */
+int calendar_attendee_set_status(calendar_attendee_h attendee, calendar_attendee_status_e status);
+
+/**
+ * @brief Gets the role for the given calendar attendee handle.
+ *
+ * @param[in] attendee The calendar attendee handle
+ * @param[out] role The role of the attendee \n (default : #CALENDAR_ATTENDEE_ROLE_REQ_PARTICIPANT)
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #CALENDAR_ERROR_NONE Successful
+ * @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see calendar_attendee_set_role()
+ */
+int calendar_attendee_get_role(calendar_attendee_h attendee, calendar_attendee_role_e *role);
+
+/**
+ * @brief Sets a role for the given calendar attendee handle.
+ *
+ * @param[in] attendee The calendar attendee handle
+ * @param[in] role The role of the attendee
+ *
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #CALENDAR_ERROR_NONE Successful
+ * @retval #CALENDAR_ERROR_INVALID_PARAMETER Invalid parameter
+ *
+ * @see calendar_attendee_get_role()
+ */
+int calendar_attendee_set_role(calendar_attendee_h attendee, calendar_attendee_role_e role);
+
+/**
* @brief Checks whether there is a next attendee handle on the list.
*
* @param [in] iterator The attendee iterator handle