mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-18 03:38:49 +00:00
Monotone-Parent: 4e23e038f2b0b7eddf8b30700b8c9a8910768f98
Monotone-Revision: 9235e5dc4d151a3cba8ad842ac39e1b2d18c8201 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-01-29T19:55:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -30,10 +30,14 @@
|
||||
|
||||
#import "MAPIStoreFSFolder.h"
|
||||
#import "MAPIStoreMapping.h"
|
||||
#import "MAPIStoreUserContext.h"
|
||||
#import "SOGoMAPIFSFolder.h"
|
||||
|
||||
#import "MAPIStoreFSBaseContext.h"
|
||||
|
||||
#undef DEBUG
|
||||
#include <mapistore/mapistore.h>
|
||||
|
||||
static Class MAPIStoreFSFolderK;
|
||||
|
||||
@implementation MAPIStoreFSBaseContext
|
||||
@@ -48,12 +52,28 @@ static Class MAPIStoreFSFolderK;
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void) setupBaseFolder: (NSURL *) newURL
|
||||
- (Class) MAPIStoreFolderClass
|
||||
{
|
||||
[self logWithFormat: @"invoked %s", __PRETTY_FUNCTION__];
|
||||
baseFolder = [MAPIStoreFSFolderK baseFolderWithURL: newURL
|
||||
inContext: self];
|
||||
[baseFolder retain];
|
||||
return MAPIStoreFSFolderK;
|
||||
}
|
||||
|
||||
- (void) ensureContextFolder
|
||||
{
|
||||
SOGoMAPIFSFolder *contextFolder;
|
||||
|
||||
contextFolder = [SOGoMAPIFSFolder folderWithURL: contextUrl
|
||||
andTableType: MAPISTORE_MESSAGE_TABLE];
|
||||
[contextFolder ensureDirectory];
|
||||
}
|
||||
|
||||
- (id) rootSOGoFolder
|
||||
{
|
||||
NSString *urlString;
|
||||
|
||||
urlString = [NSString stringWithFormat: @"sogo://%@@%@/",
|
||||
[userContext username], [isa MAPIModuleName]];
|
||||
return [SOGoMAPIFSFolder folderWithURL: [NSURL URLWithString: urlString]
|
||||
andTableType: MAPISTORE_MESSAGE_TABLE];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user