Monotone-Parent: 3a6e0507a35f90e7be4467763bd26ef4fb15cf80

Monotone-Revision: 5b4e61e92b3d68b92ea25f1513eb120e502250a1

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-07-20T15:42:52
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2012-07-20 15:42:52 +00:00
parent 3b745879eb
commit 965cd9379e
10 changed files with 980 additions and 503 deletions
+45 -11
View File
@@ -20,9 +20,14 @@
* Boston, MA 02111-1307, USA.
*/
#import "MAPIStoreTypes.h"
#import <Foundation/NSDictionary.h>
#import "MAPIStoreEmbeddedMessage.h"
#import <NGObjWeb/WOContext+SoObjects.h>
#import <NGExtensions/NSObject+Logs.h>
#import "iCalEvent+MAPIStore.h"
#import "MAPIStoreTypes.h"
#import "MAPIStoreCalendarEmbeddedMessage.h"
#import "MAPIStoreCalendarAttachment.h"
@@ -34,6 +39,32 @@
@implementation MAPIStoreCalendarAttachment
- (id) init
{
if ((self = [super init]))
{
event = nil;
}
return self;
}
- (void) dealloc
{
[event release];
[super dealloc];
}
- (void) setEvent: (iCalEvent *) newEvent
{
ASSIGN (event, newEvent);
}
- (iCalEvent *) event
{
return event;
}
- (int) getPidTagAttachmentHidden: (void **) data
inMemCtx: (TALLOC_CTX *) localMemCtx
{
@@ -53,7 +84,7 @@
- (int) getPidTagAttachMethod: (void **) data
inMemCtx: (TALLOC_CTX *) localMemCtx
{
*data = MAPILongValue (localMemCtx, 0x00000005); /* afEmbeddedMessage */
*data = MAPILongValue (localMemCtx, afEmbeddedMessage);
return MAPISTORE_SUCCESS;
}
@@ -63,21 +94,24 @@
// case PidTagExceptionReplaceTime:
/* subclasses */
- (MAPIStoreEmbeddedMessage *) openEmbeddedMessage
- (MAPIStoreCalendarEmbeddedMessage *) openEmbeddedMessage
{
MAPIStoreEmbeddedMessage *msg;
MAPIStoreCalendarEmbeddedMessage *msg;
// if (isNew)
msg = nil;
// else
// msg = nil;
msg = [MAPIStoreCalendarEmbeddedMessage
mapiStoreObjectInContainer: self];
return msg;
}
- (MAPIStoreEmbeddedMessage *) createEmbeddedMessage
- (MAPIStoreCalendarEmbeddedMessage *) createEmbeddedMessage
{
return [MAPIStoreEmbeddedMessage embeddedMessageWithAttachment: self];
MAPIStoreCalendarEmbeddedMessage *msg;
msg = [self openEmbeddedMessage];
[msg setIsNew: YES];
return msg;
}
@end