diff --git a/ChangeLog b/ChangeLog index 2162d6c24..d46b3e4b7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-10-31 Wolfgang Sourdeau + * OpenChange/MAPIStoreContactsAttachment.m + (-getPrAttachEncoding:inMemCtx:, -getPrAttachFlags:inMemCtx:) + (-getPrAttachmentFlags:inMemCtx:) + (-getPrAttachmentHidden:inMemCtx:) + (-getPrAttachmentLinkid:inMemCtx:, -getPrAttachSize:inMemCtx:): + new getters. + * OpenChange/MAPIStoreSOGo.m (sogo_message_set_read_flag): new backend op. diff --git a/OpenChange/MAPIStoreContactsAttachment.m b/OpenChange/MAPIStoreContactsAttachment.m index 983c25618..ff010ff7e 100644 --- a/OpenChange/MAPIStoreContactsAttachment.m +++ b/OpenChange/MAPIStoreContactsAttachment.m @@ -94,6 +94,36 @@ extern NSTimeZone *utcTZ; return [container lastModificationTime]; } +- (int) getPrAttachEncoding: (void **) data inMemCtx: (TALLOC_CTX *) memCtx; +{ + *data = [[NSData data] asBinaryInMemCtx: memCtx]; + + return MAPISTORE_SUCCESS; +} + +- (int) getPrAttachFlags: (void **) data + inMemCtx: (TALLOC_CTX *) memCtx +{ + return [self getLongZero: data inMemCtx: memCtx]; +} + +- (int) getPrAttachmentFlags: (void **) data + inMemCtx: (TALLOC_CTX *) memCtx +{ + return [self getLongZero: data inMemCtx: memCtx]; +} + +- (int) getPrAttachmentHidden: (void **) data inMemCtx: (TALLOC_CTX *) memCtx +{ + return [self getNo: data inMemCtx: memCtx]; +} + +- (int) getPrAttachmentLinkid: (void **) data + inMemCtx: (TALLOC_CTX *) memCtx +{ + return [self getLongZero: data inMemCtx: memCtx]; +} + - (int) getPrAttachMethod: (void **) data inMemCtx: (TALLOC_CTX *) memCtx { @@ -119,6 +149,17 @@ extern NSTimeZone *utcTZ; return MAPISTORE_SUCCESS; } +- (int) getPrAttachSize: (void **) data + inMemCtx: (TALLOC_CTX *) memCtx +{ + if (!photoData) + ASSIGN (photoData, [[photo value: 0] dataByDecodingBase64]); + + *data = MAPILongValue (memCtx, [photoData length]); + + return MAPISTORE_SUCCESS; +} + - (int) getPrAttachExtension: (void **) data inMemCtx: (TALLOC_CTX *) memCtx {