mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-20 22:05:57 +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:
@@ -20,33 +20,13 @@
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/NSDictionary.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGObjWeb/WOContext+SoObjects.h>
|
||||
|
||||
#import <EOControl/EOQualifier.h>
|
||||
|
||||
#import <NGCards/iCalToDo.h>
|
||||
#import <Appointments/SOGoAppointmentFolder.h>
|
||||
#import <Appointments/SOGoAppointmentFolders.h>
|
||||
#import <Appointments/SOGoTaskObject.h>
|
||||
|
||||
#import "MAPIApplication.h"
|
||||
#import "MAPIStoreAuthenticator.h"
|
||||
#import "MAPIStoreTasksFolder.h"
|
||||
#import "MAPIStoreMapping.h"
|
||||
#import "MAPIStoreTasksMessageTable.h"
|
||||
#import "MAPIStoreTypes.h"
|
||||
#import "NSCalendarDate+MAPIStore.h"
|
||||
#import "NSString+MAPIStore.h"
|
||||
#import "SOGoGCSFolder+MAPIStore.h"
|
||||
|
||||
#import "MAPIStoreTasksContext.h"
|
||||
|
||||
#undef DEBUG
|
||||
#include <gen_ndr/exchange.h>
|
||||
#include <mapistore/mapistore.h>
|
||||
#include <mapistore/mapistore_nameid.h>
|
||||
|
||||
@implementation MAPIStoreTasksContext
|
||||
|
||||
+ (NSString *) MAPIModuleName
|
||||
@@ -60,48 +40,11 @@
|
||||
withID: 0x1d0001];
|
||||
}
|
||||
|
||||
- (void) setupModuleFolder
|
||||
- (void) setupBaseFolder: (NSURL *) newURL
|
||||
{
|
||||
SOGoUserFolder *userFolder;
|
||||
SOGoAppointmentFolders *parentFolder;
|
||||
|
||||
userFolder = [SOGoUserFolder objectWithName: [authenticator username]
|
||||
inContainer: MAPIApp];
|
||||
[parentFoldersBag addObject: userFolder];
|
||||
[woContext setClientObject: userFolder];
|
||||
|
||||
parentFolder = [userFolder lookupName: @"Calendar"
|
||||
inContext: woContext
|
||||
acquire: NO];
|
||||
[parentFoldersBag addObject: parentFolder];
|
||||
[woContext setClientObject: parentFolder];
|
||||
|
||||
moduleFolder = [parentFolder lookupName: @"personal"
|
||||
inContext: woContext
|
||||
acquire: NO];
|
||||
[moduleFolder retain];
|
||||
}
|
||||
|
||||
- (Class) messageTableClass
|
||||
{
|
||||
return [MAPIStoreTasksMessageTable class];
|
||||
}
|
||||
|
||||
- (id) createMessageOfClass: (NSString *) messageClass
|
||||
inFolderAtURL: (NSString *) folderURL;
|
||||
{
|
||||
SOGoAppointmentFolder *parentFolder;
|
||||
SOGoTaskObject *newEntry;
|
||||
NSString *name;
|
||||
|
||||
parentFolder = [self lookupObject: folderURL];
|
||||
name = [NSString stringWithFormat: @"%@.ics",
|
||||
[SOGoObject globallyUniqueObjectId]];
|
||||
newEntry = [SOGoTaskObject objectWithName: name
|
||||
inContainer: parentFolder];
|
||||
[newEntry setIsNew: YES];
|
||||
|
||||
return newEntry;
|
||||
baseFolder = [MAPIStoreTasksFolder baseFolderWithURL: newURL
|
||||
inContext: self];
|
||||
[baseFolder retain];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user