mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-02 21:56:23 +00:00
Monotone-Parent: 17790db0c2368364683e4074a491e7107c6cf071
Monotone-Revision: 96b5a2580e3b0b6ba57af91d0fed6f513f8e13f0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-24T20:32:27 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
|
||||
#import <NGExtensions/NSObject+Logs.h>
|
||||
|
||||
#import "MAPIStoreFSMessageTable.h"
|
||||
#import "MAPIStoreFSFolder.h"
|
||||
#import "MAPIStoreMapping.h"
|
||||
#import "SOGoMAPIFSFolder.h"
|
||||
|
||||
@@ -37,34 +37,26 @@
|
||||
#undef DEBUG
|
||||
#include <mapistore/mapistore.h>
|
||||
|
||||
static Class MAPIStoreFSFolderK;
|
||||
|
||||
@implementation MAPIStoreFSBaseContext
|
||||
|
||||
+ (void) initialize
|
||||
{
|
||||
MAPIStoreFSFolderK = [MAPIStoreFSFolder class];
|
||||
}
|
||||
|
||||
+ (NSString *) MAPIModuleName
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setupModuleFolder
|
||||
- (void) setupBaseFolder: (NSURL *) newURL
|
||||
{
|
||||
[self logWithFormat: @"invoked %s", __PRETTY_FUNCTION__];
|
||||
moduleFolder = [SOGoMAPIFSFolder folderWithURL: [NSURL URLWithString: uri]
|
||||
andTableType: MAPISTORE_MESSAGE_TABLE];
|
||||
[moduleFolder retain];
|
||||
}
|
||||
|
||||
- (Class) messageTableClass
|
||||
{
|
||||
return [MAPIStoreFSMessageTable class];
|
||||
}
|
||||
|
||||
- (id) createMessageOfClass: (NSString *) messageClass
|
||||
inFolderAtURL: (NSString *) folderURL;
|
||||
{
|
||||
SOGoMAPIFSFolder *parentFolder;
|
||||
|
||||
parentFolder = [self lookupObject: folderURL];
|
||||
|
||||
return [parentFolder newMessage];
|
||||
baseFolder = [MAPIStoreFSFolderK baseFolderWithURL: newURL
|
||||
inContext: self];
|
||||
[baseFolder retain];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user