Monotone-Parent: 2193e23375baaebca1fbc25ff41ad6e10465c010

Monotone-Revision: 2506be68868e083a9761fa080be7b4b2897d0e1f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-02T17:16:52
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2011-12-02 17:16:52 +00:00
parent 4b1c26743f
commit 4f5f22fc51
2 changed files with 27 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2011-12-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreNotesMessage.m
(-getPrMessageClass:inMemCtx:): explicit method.
(-getPrSubject:inMemCtx:): explicit method.
* OpenChange/MAPIStoreMessage.m (-getPrAccess:inMemCtx:)
(-getPrAccessLevel:inMemCtx:): reimplemented methods in a generic
way just like the MAPIStoreFolder versions.

View File

@ -20,7 +20,11 @@
* Boston, MA 02111-1307, USA.
*/
#import <Foundation/NSDictionary.h>
#import "MAPIStoreTypes.h"
#import "NSObject+MAPIStore.h"
#import "NSString+MAPIStore.h"
#import "MAPIStoreNotesMessage.h"
@ -42,12 +46,28 @@
return MAPISTORE_SUCCESS;
}
- (int) getPrMessageClass: (void **) data inMemCtx: (TALLOC_CTX *) memCtx
{
*data = [@"IPM.StickyNote" asUnicodeInMemCtx: memCtx];
return MAPISTORE_SUCCESS;
}
- (int) getPrSubject: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
return [self getProperty: data
withTag: PR_NORMALIZED_SUBJECT_UNICODE
inMemCtx: memCtx];
id value;
int rc;
value = [[sogoObject properties]
objectForKey: MAPIPropertyKey (PR_NORMALIZED_SUBJECT_UNICODE)];
if (value)
rc = [value getValue: data forTag: PR_NORMALIZED_SUBJECT_UNICODE
inMemCtx: memCtx];
else
rc = MAPISTORE_ERR_NOT_FOUND;
return rc;
}
@end