Convenient API to access FreeBusy. More...
Functions | |
_PUBLIC_ int | GetFreeBusyYear (const uint32_t *publish_start) |
_PUBLIC_ enum MAPISTATUS | GetUserFreeBusyData (mapi_object_t *obj_store, const char *recipient, struct SRow *pSRow) |
_PUBLIC_ enum MAPISTATUS | IsFreeBusyConflict (mapi_object_t *obj_store, struct FILETIME *date, bool *conflict) |
Convenient API to access FreeBusy.
_PUBLIC_ int GetFreeBusyYear | ( | const uint32_t * | publish_start | ) |
Return the year associated with the FreeBusy start range
publish_start | pointer to the publish start integer |
Referenced by IsFreeBusyConflict().
_PUBLIC_ enum MAPISTATUS GetUserFreeBusyData | ( | mapi_object_t * | obj_store, |
const char * | recipient, | ||
struct SRow * | pSRow | ||
) |
Retrieve FreeBusy data associated with the specified recipient
obj_store | pointer to the public folder MAPI object |
recipient | name of the recipient to fetch freebusy data |
pSRow | pointer to the returned properties |
References OPENCHANGE_RETVAL_IF, mapi_object_get_session(), GetABRecipientInfo(), get_SPropValue_SRowSet_data(), PR_EMAIL_ADDRESS_UNICODE, x500_get_dn_element(), ORG, ORG_UNIT, MAPIFreeBuffer(), FREEBUSY_USER, FREEBUSY_FOLDER, GetDefaultPublicFolder(), olFolderPublicFreeBusyRoot, mapi_object_init(), OpenFolder(), GetHierarchyTable(), set_SPropTagArray(), PR_FID, PR_DISPLAY_NAME, SetColumns(), RES_PROPERTY, FindRow(), GetContentsTable(), PR_MID, PR_ADDRBOOK_MID, PR_INSTANCE_NUM, PR_NORMALIZED_SUBJECT, SortTable(), OpenMessage(), PR_FREEBUSY_LAST_MODIFIED, PR_FREEBUSY_START_RANGE, PR_FREEBUSY_END_RANGE, PR_FREEBUSY_ALL_MONTHS, PR_FREEBUSY_ALL_EVENTS, PR_FREEBUSY_TENTATIVE_MONTHS, PR_FREEBUSY_TENTATIVE_EVENTS, PR_FREEBUSY_BUSY_MONTHS, PR_FREEBUSY_BUSY_EVENTS, PR_FREEBUSY_OOF_MONTHS, PR_FREEBUSY_OOF_EVENTS, GetProps(), and mapi_object_release().
Referenced by IsFreeBusyConflict().
_PUBLIC_ enum MAPISTATUS IsFreeBusyConflict | ( | mapi_object_t * | obj_store, |
struct FILETIME * | date, | ||
bool * | conflict | ||
) |
Check if a date conflicts with existing FreeBusy Busy/Out Of Office events
obj_store | pointer to the public folder MAPI object |
date | pointer to the date to check |
conflict | pointer to the returned boolean value |
References OPENCHANGE_RETVAL_IF, mapi_object_get_session(), GetUserFreeBusyData(), mapi_session::profile, mapi_profile::username, find_SPropValue_data(), PR_FREEBUSY_START_RANGE, PR_FREEBUSY_ALL_MONTHS, PR_FREEBUSY_ALL_EVENTS, and GetFreeBusyYear().
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |