Monotone-Parent: 3bc92406543042dce09f1c096eb8a19107b42eb2

Monotone-Revision: 0a2c134a89861c564e6bc97bf789ca4a39adcf4a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-20T15:21:11
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-07-20 15:21:11 +00:00
parent 63c2d62b0b
commit 649b6fb90f
6 changed files with 103 additions and 44 deletions

View File

@@ -26,6 +26,8 @@
#import "MAPIStoreEmbeddedMessage.h"
#include <mapistore/mapistore_errors.h>
static Class MAPIStoreAttachmentK;
@implementation MAPIStoreEmbeddedMessage
@@ -35,25 +37,28 @@ static Class MAPIStoreAttachmentK;
MAPIStoreAttachmentK = [MAPIStoreAttachment class];
}
+ (id) embeddedMessageWithAttachment: (id) newAttachment
- (int) getPidTagFolderId: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
MAPIStoreEmbeddedMessage *newMessage;
newMessage = [[self alloc] initWithAttachment: newAttachment];
[newMessage autorelease];
return newMessage;
return MAPISTORE_ERR_NOT_FOUND;
}
- (id) initWithAttachment: (id) newAttachment
- (int) getPidTagChangeKey: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
if ((self = [self init]))
{
if ([newAttachment isKindOfClass: MAPIStoreAttachmentK])
ASSIGN (container, newAttachment);
}
return MAPISTORE_ERR_NOT_FOUND;
}
return self;
- (int) getPidTagParentSourceKey: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
return MAPISTORE_ERR_NOT_FOUND;
}
- (int) getPidTagChangeNumber: (void **) data
inMemCtx: (TALLOC_CTX *) memCtx
{
return MAPISTORE_ERR_NOT_FOUND;
}
- (NSString *) nameInContainer
@@ -61,4 +66,14 @@ static Class MAPIStoreAttachmentK;
return @"as-message";
}
- (uint64_t) objectVersion
{
return ULLONG_MAX;
}
- (void) save
{
[self subclassResponsibility: _cmd];
}
@end