2011-02-24 21:30:01 +01:00
|
|
|
/* MAPIStoreMessage.h - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Inverse inc
|
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MAPISTOREMESSAGE_H
|
|
|
|
#define MAPISTOREMESSAGE_H
|
|
|
|
|
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
|
2011-07-26 22:13:10 +02:00
|
|
|
@class NSArray;
|
2011-02-24 21:30:01 +01:00
|
|
|
@class NSMutableArray;
|
|
|
|
@class NSMutableDictionary;
|
|
|
|
|
2011-07-26 22:13:10 +02:00
|
|
|
@class EOQualifier;
|
|
|
|
|
2011-02-24 21:30:01 +01:00
|
|
|
@class MAPIStoreAttachment;
|
|
|
|
@class MAPIStoreAttachmentTable;
|
|
|
|
@class MAPIStoreFolder;
|
|
|
|
|
|
|
|
#import "MAPIStoreObject.h"
|
|
|
|
|
|
|
|
@interface MAPIStoreMessage : MAPIStoreObject
|
|
|
|
{
|
2011-07-26 22:13:10 +02:00
|
|
|
NSArray *attachmentKeys;
|
2011-02-24 21:30:01 +01:00
|
|
|
NSMutableDictionary *attachmentParts;
|
2011-03-07 20:15:16 +01:00
|
|
|
NSMutableArray *activeTables;
|
2011-12-01 22:13:09 +01:00
|
|
|
NSArray *activeUserRoles;
|
2011-02-24 21:30:01 +01:00
|
|
|
}
|
|
|
|
|
2011-07-13 23:41:58 +02:00
|
|
|
- (void) getMessageData: (struct mapistore_message **) dataPtr
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
|
|
|
|
2011-10-28 15:10:47 +02:00
|
|
|
- (int) modifyRecipientsWithRecipients: (struct mapistore_message_recipient *) recipients
|
|
|
|
andCount: (NSUInteger) max
|
|
|
|
andColumns: (struct SPropTagArray *) columns;
|
2011-07-26 22:13:10 +02:00
|
|
|
- (NSArray *) attachmentKeys;
|
|
|
|
- (NSArray *) attachmentKeysMatchingQualifier: (EOQualifier *) qualifier
|
|
|
|
andSortOrderings: (NSArray *) sortOrderings;
|
2011-07-26 21:02:45 +02:00
|
|
|
- (id) lookupAttachment: (NSString *) childKey;
|
2011-07-13 23:41:58 +02:00
|
|
|
|
2011-07-26 21:02:45 +02:00
|
|
|
/* backend methods */
|
2011-07-13 23:41:58 +02:00
|
|
|
- (int) createAttachment: (MAPIStoreAttachment **) attachmentPtr
|
|
|
|
inAID: (uint32_t *) aidPtr;
|
|
|
|
- (int) getAttachment: (MAPIStoreAttachment **) attachmentPtr
|
|
|
|
withAID: (uint32_t) aid;
|
|
|
|
- (int) getAttachmentTable: (MAPIStoreAttachmentTable **) tablePtr
|
|
|
|
andRowCount: (uint32_t *) countPtr;
|
2011-11-01 02:00:33 +01:00
|
|
|
- (int) setReadFlag: (uint8_t) flag;
|
2011-12-01 23:36:35 +01:00
|
|
|
- (enum mapistore_error) saveMessage;
|
2011-02-24 21:30:01 +01:00
|
|
|
|
2011-04-13 21:59:04 +02:00
|
|
|
/* helper getters */
|
2011-07-11 23:40:47 +02:00
|
|
|
- (int) getSMTPAddrType: (void **) data
|
|
|
|
inMemCtx: (TALLOC_CTX *) memCtx;
|
2011-07-13 23:41:58 +02:00
|
|
|
- (NSArray *) activeContainerMessageTables;
|
2011-04-13 21:59:04 +02:00
|
|
|
|
2011-12-01 22:13:09 +01:00
|
|
|
- (NSArray *) activeUserRoles;
|
|
|
|
|
2011-02-24 21:30:01 +01:00
|
|
|
/* subclasses */
|
|
|
|
- (void) save;
|
|
|
|
|
|
|
|
/* attachments (subclasses) */
|
|
|
|
- (MAPIStoreAttachment *) createAttachment;
|
|
|
|
- (MAPIStoreAttachmentTable *) attachmentTable;
|
|
|
|
|
2011-12-01 22:13:09 +01:00
|
|
|
- (BOOL) subscriberCanReadMessage;
|
|
|
|
- (BOOL) subscriberCanModifyMessage;
|
|
|
|
|
2011-02-24 21:30:01 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* MAPISTOREMESSAGE_H */
|