Monotone-Parent: 119b17733c942a5a103bfac69d069f4162241916

Monotone-Revision: 171272a94b2a2daabc128a7bb2a2787ca40ba489

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-11-01T01:37:02
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-11-01 01:37:02 +00:00
parent 2110fba1a3
commit 6c105dcf90
2 changed files with 48 additions and 0 deletions

View File

@ -1,5 +1,12 @@
2011-10-31 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* 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.

View File

@ -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
{