2011-02-25 17:41:53 +01:00
|
|
|
/* MAPIStoreMailContext.m - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 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 3, 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/NSString.h>
|
|
|
|
|
|
|
|
#import "MAPIStoreMailFolder.h"
|
|
|
|
#import "MAPIStoreMapping.h"
|
|
|
|
|
|
|
|
#import "MAPIStoreMailContext.h"
|
|
|
|
|
|
|
|
@implementation MAPIStoreMailContext
|
|
|
|
|
|
|
|
+ (NSString *) MAPIModuleName
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MAPIStoreInboxContext
|
|
|
|
|
|
|
|
+ (NSString *) MAPIModuleName
|
|
|
|
{
|
|
|
|
return @"inbox";
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setupBaseFolder: (NSURL *) newURL
|
|
|
|
{
|
|
|
|
baseFolder = [MAPIStoreInboxFolder baseFolderWithURL: newURL
|
|
|
|
inContext: self];
|
|
|
|
[baseFolder retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MAPIStoreSentItemsContext
|
|
|
|
|
|
|
|
+ (NSString *) MAPIModuleName
|
|
|
|
{
|
|
|
|
return @"sent-items";
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setupBaseFolder: (NSURL *) newURL
|
|
|
|
{
|
|
|
|
baseFolder = [MAPIStoreSentItemsFolder baseFolderWithURL: newURL
|
|
|
|
inContext: self];
|
|
|
|
[baseFolder retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MAPIStoreDraftsContext
|
|
|
|
|
|
|
|
+ (NSString *) MAPIModuleName
|
|
|
|
{
|
|
|
|
return @"drafts";
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setupBaseFolder: (NSURL *) newURL
|
|
|
|
{
|
|
|
|
baseFolder = [MAPIStoreDraftsFolder baseFolderWithURL: newURL
|
|
|
|
inContext: self];
|
|
|
|
[baseFolder retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
2011-07-08 21:57:49 +02:00
|
|
|
#import "MAPIStoreFSFolder.h"
|
|
|
|
|
2011-02-25 17:41:53 +01:00
|
|
|
@implementation MAPIStoreDeletedItemsContext
|
|
|
|
|
|
|
|
+ (NSString *) MAPIModuleName
|
|
|
|
{
|
|
|
|
return @"deleted-items";
|
|
|
|
}
|
2011-08-15 17:53:16 +02:00
|
|
|
|
2011-02-25 17:41:53 +01:00
|
|
|
- (void) setupBaseFolder: (NSURL *) newURL
|
|
|
|
{
|
2011-07-08 21:57:49 +02:00
|
|
|
baseFolder = [MAPIStoreFSFolder baseFolderWithURL: newURL inContext: self];
|
2011-02-25 17:41:53 +01:00
|
|
|
[baseFolder retain];
|
|
|
|
}
|
|
|
|
|
2011-07-08 21:57:49 +02:00
|
|
|
// - (void) setupBaseFolder: (NSURL *) newURL
|
|
|
|
// {
|
|
|
|
// baseFolder = [MAPIStoreDeletedItemsFolder baseFolderWithURL: newURL
|
|
|
|
// inContext: self];
|
|
|
|
// [baseFolder retain];
|
|
|
|
// }
|
|
|
|
|
2011-02-25 17:41:53 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MAPIStoreOutboxContext
|
|
|
|
|
|
|
|
+ (NSString *) MAPIModuleName
|
|
|
|
{
|
|
|
|
return @"outbox";
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) setupBaseFolder: (NSURL *) newURL
|
|
|
|
{
|
|
|
|
baseFolder = [MAPIStoreOutboxFolder baseFolderWithURL: newURL
|
|
|
|
inContext: self];
|
|
|
|
[baseFolder retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|