mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-23 10:26:23 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user