From dba1d8a9a909df778a5cd4e73a5da7069e8ac8d8 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 25 Feb 2011 16:41:53 +0000 Subject: [PATCH] Monotone-Parent: c314eda2fb898c8a79a2a1ec32aa3dabfa1d7086 Monotone-Revision: ff995ad9fc0f2d8dac7a71ba3e29531b2f45dfa2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-25T16:41:53 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 6 + OpenChange/GNUmakefile | 9 +- OpenChange/MAPIStoreDeletedItemsContext.h | 32 ---- OpenChange/MAPIStoreDeletedItemsContext.m | 50 ------ OpenChange/MAPIStoreDraftsContext.h | 32 ---- OpenChange/MAPIStoreDraftsContext.m | 50 ------ OpenChange/MAPIStoreInboxContext.h | 32 ---- OpenChange/MAPIStoreInboxContext.m | 50 ------ OpenChange/MAPIStoreMailBaseContext.m | 32 ---- ...ilBaseContext.h => MAPIStoreMailContext.h} | 21 ++- OpenChange/MAPIStoreMailContext.m | 162 ++++++++++++++++++ OpenChange/MAPIStoreOutboxContext.h | 32 ---- OpenChange/MAPIStoreOutboxContext.m | 92 ---------- OpenChange/MAPIStoreSentItemsContext.h | 32 ---- OpenChange/MAPIStoreSentItemsContext.m | 50 ------ OpenChange/MAPIStoreSpoolerContext.h | 32 ---- OpenChange/MAPIStoreSpoolerContext.m | 41 ----- 17 files changed, 188 insertions(+), 567 deletions(-) delete mode 100644 OpenChange/MAPIStoreDeletedItemsContext.h delete mode 100644 OpenChange/MAPIStoreDeletedItemsContext.m delete mode 100644 OpenChange/MAPIStoreDraftsContext.h delete mode 100644 OpenChange/MAPIStoreDraftsContext.m delete mode 100644 OpenChange/MAPIStoreInboxContext.h delete mode 100644 OpenChange/MAPIStoreInboxContext.m delete mode 100644 OpenChange/MAPIStoreMailBaseContext.m rename OpenChange/{MAPIStoreMailBaseContext.h => MAPIStoreMailContext.h} (65%) create mode 100644 OpenChange/MAPIStoreMailContext.m delete mode 100644 OpenChange/MAPIStoreOutboxContext.h delete mode 100644 OpenChange/MAPIStoreOutboxContext.m delete mode 100644 OpenChange/MAPIStoreSentItemsContext.h delete mode 100644 OpenChange/MAPIStoreSentItemsContext.m delete mode 100644 OpenChange/MAPIStoreSpoolerContext.h delete mode 100644 OpenChange/MAPIStoreSpoolerContext.m diff --git a/ChangeLog b/ChangeLog index 6825eeec6..4e9af407d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-02-25 Wolfgang Sourdeau + + * OpenChange/MAPIStoreMailContext.[hm]: renamed from + MAPIStoreMailBaseContext and merged in all subclass modules due to + their small size. + 2011-02-24 Wolfgang Sourdeau * OpenChange/MAPIStoreTypes.m (NSObjectFromStreamData): convert diff --git a/OpenChange/GNUmakefile b/OpenChange/GNUmakefile index 972d0d956..3aa7767a5 100644 --- a/OpenChange/GNUmakefile +++ b/OpenChange/GNUmakefile @@ -67,19 +67,13 @@ $(SOGOBACKEND)_OBJC_FILES += \ MAPIStoreTasksMessage.m \ MAPIStoreTasksMessageTable.m \ \ - MAPIStoreMailBaseContext.m \ + MAPIStoreMailContext.m \ MAPIStoreMailFolder.m \ MAPIStoreMailFolderTable.m \ MAPIStoreDraftsMessage.m \ MAPIStoreMailMessage.m \ MAPIStoreMailMessageTable.m \ \ - MAPIStoreInboxContext.m \ - MAPIStoreDeletedItemsContext.m \ - MAPIStoreDraftsContext.m \ - MAPIStoreSentItemsContext.m \ - MAPIStoreOutboxContext.m \ - \ MAPIStoreNotesContext.m \ MAPIStoreNotesFolder.m \ MAPIStoreNotesMessage.m \ @@ -92,7 +86,6 @@ $(SOGOBACKEND)_OBJC_FILES += \ MAPIStoreScheduleContext.m \ MAPIStoreSearchContext.m \ MAPIStoreShortcutsContext.m \ - MAPIStoreSpoolerContext.m \ MAPIStoreViewsContext.m \ \ NSArray+MAPIStore.m \ diff --git a/OpenChange/MAPIStoreDeletedItemsContext.h b/OpenChange/MAPIStoreDeletedItemsContext.h deleted file mode 100644 index deec0e24b..000000000 --- a/OpenChange/MAPIStoreDeletedItemsContext.h +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreDeletedItemsContext.h - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef MAPISTOREDELETEDITEMSCONTEXT_H -#define MAPISTOREDELETEDITEMSCONTEXT_H - -#import "MAPIStoreMailBaseContext.h" - -@interface MAPIStoreDeletedItemsContext : MAPIStoreMailBaseContext - -@end - -#endif /* MAPISTOREDELETEDITEMSCONTEXT_H */ diff --git a/OpenChange/MAPIStoreDeletedItemsContext.m b/OpenChange/MAPIStoreDeletedItemsContext.m deleted file mode 100644 index fc9751fb4..000000000 --- a/OpenChange/MAPIStoreDeletedItemsContext.m +++ /dev/null @@ -1,50 +0,0 @@ -/* MAPIStoreDeletedItemsContext.m - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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 - -#import "MAPIStoreMailFolder.h" -#import "MAPIStoreMapping.h" - -#import "MAPIStoreDeletedItemsContext.h" - -@implementation MAPIStoreDeletedItemsContext - -+ (NSString *) MAPIModuleName -{ - return @"deleted-items"; -} - -+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping -{ - [mapping registerURL: @"sogo://openchange:openchange@deleted-items/" - withID: 0x170001]; -} - -- (void) setupBaseFolder: (NSURL *) newURL -{ - baseFolder = [MAPIStoreDeletedItemsFolder baseFolderWithURL: newURL - inContext: self]; - [baseFolder retain]; -} - -@end diff --git a/OpenChange/MAPIStoreDraftsContext.h b/OpenChange/MAPIStoreDraftsContext.h deleted file mode 100644 index 4afcbbebd..000000000 --- a/OpenChange/MAPIStoreDraftsContext.h +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreDraftsContext.h - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef MAPISTOREDRAFTSCONTEXT_H -#define MAPISTOREDRAFTSCONTEXT_H - -#import "MAPIStoreMailBaseContext.h" - -@interface MAPIStoreDraftsContext : MAPIStoreMailBaseContext - -@end - -#endif /* MAPISTOREDRAFTSCONTEXT_H */ diff --git a/OpenChange/MAPIStoreDraftsContext.m b/OpenChange/MAPIStoreDraftsContext.m deleted file mode 100644 index 3115173c6..000000000 --- a/OpenChange/MAPIStoreDraftsContext.m +++ /dev/null @@ -1,50 +0,0 @@ -/* MAPIStoreDraftsContext.m - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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 - -#import "MAPIStoreMailFolder.h" -#import "MAPIStoreMapping.h" - -#import "MAPIStoreDraftsContext.h" - -@implementation MAPIStoreDraftsContext - -+ (NSString *) MAPIModuleName -{ - return @"drafts"; -} - -+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping -{ - [mapping registerURL: @"sogo://openchange:openchange@inbox/" - withID: 0x1e0001]; -} - -- (void) setupBaseFolder: (NSURL *) newURL -{ - baseFolder = [MAPIStoreDraftsFolder baseFolderWithURL: newURL - inContext: self]; - [baseFolder retain]; -} - -@end diff --git a/OpenChange/MAPIStoreInboxContext.h b/OpenChange/MAPIStoreInboxContext.h deleted file mode 100644 index 2f2f50aae..000000000 --- a/OpenChange/MAPIStoreInboxContext.h +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreInboxContext.h - this file is part of SOGo - * - * Copyright (C) 2011 Inverse inc - * - * Author: Wolfgang Sourdeau - * - * 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 MAPISTOREINBOXCONTEXT_H -#define MAPISTOREINBOXCONTEXT_H - -#import "MAPIStoreMailBaseContext.h" - -@interface MAPIStoreInboxContext : MAPIStoreMailBaseContext - -@end - -#endif /* MAPISTOREINBOXCONTEXT_H */ diff --git a/OpenChange/MAPIStoreInboxContext.m b/OpenChange/MAPIStoreInboxContext.m deleted file mode 100644 index 13536eb71..000000000 --- a/OpenChange/MAPIStoreInboxContext.m +++ /dev/null @@ -1,50 +0,0 @@ -/* MAPIStoreInboxContext.m - this file is part of $PROJECT_NAME_HERE$ - * - * Copyright (C) 2011 Inverse inc - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#import - -#import "MAPIStoreMailFolder.h" -#import "MAPIStoreMapping.h" - -#import "MAPIStoreInboxContext.h" - -@implementation MAPIStoreInboxContext - -+ (NSString *) MAPIModuleName -{ - return @"inbox"; -} - -+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping -{ - [mapping registerURL: @"sogo://openchange:openchange@inbox/" - withID: 0x160001]; -} - -- (void) setupBaseFolder: (NSURL *) newURL -{ - baseFolder = [MAPIStoreInboxFolder baseFolderWithURL: newURL - inContext: self]; - [baseFolder retain]; -} - -@end diff --git a/OpenChange/MAPIStoreMailBaseContext.m b/OpenChange/MAPIStoreMailBaseContext.m deleted file mode 100644 index e728ba751..000000000 --- a/OpenChange/MAPIStoreMailBaseContext.m +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreMailBaseContext.m - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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 "MAPIStoreMailBaseContext.h" - -@implementation MAPIStoreMailBaseContext - -+ (NSString *) MAPIModuleName -{ - return nil; -} - -@end diff --git a/OpenChange/MAPIStoreMailBaseContext.h b/OpenChange/MAPIStoreMailContext.h similarity index 65% rename from OpenChange/MAPIStoreMailBaseContext.h rename to OpenChange/MAPIStoreMailContext.h index 8615a274b..644fb7daf 100644 --- a/OpenChange/MAPIStoreMailBaseContext.h +++ b/OpenChange/MAPIStoreMailContext.h @@ -1,4 +1,4 @@ -/* MAPIStoreMailBaseContext.h - this file is part of SOGo +/* MAPIStoreMailContext.h - this file is part of SOGo * * Copyright (C) 2010 Inverse inc. * @@ -25,8 +25,25 @@ #import "MAPIStoreContext.h" -@interface MAPIStoreMailBaseContext : MAPIStoreContext +@interface MAPIStoreMailContext : MAPIStoreContext +@end +@interface MAPIStoreInboxContext : MAPIStoreMailContext +@end + +@interface MAPIStoreSentItemsContext : MAPIStoreMailContext +@end + +@interface MAPIStoreDraftsContext : MAPIStoreMailContext +@end + +@interface MAPIStoreDeletedItemsContext : MAPIStoreMailContext +@end + +@interface MAPIStoreOutboxContext : MAPIStoreMailContext +@end + +@interface MAPIStoreSpoolerContext : MAPIStoreOutboxContext @end #endif /* MAPISTOREMAILCONTEXT_H */ diff --git a/OpenChange/MAPIStoreMailContext.m b/OpenChange/MAPIStoreMailContext.m new file mode 100644 index 000000000..22d84cb01 --- /dev/null +++ b/OpenChange/MAPIStoreMailContext.m @@ -0,0 +1,162 @@ +/* MAPIStoreMailContext.m - this file is part of SOGo + * + * Copyright (C) 2010 Inverse inc. + * + * Author: Wolfgang Sourdeau + * + * 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 + +#import "MAPIStoreMailFolder.h" +#import "MAPIStoreMapping.h" + +#import "MAPIStoreMailContext.h" + +@implementation MAPIStoreMailContext + ++ (NSString *) MAPIModuleName +{ + return nil; +} + +@end + +@implementation MAPIStoreInboxContext + ++ (NSString *) MAPIModuleName +{ + return @"inbox"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@inbox/" + withID: 0x160001]; +} + +- (void) setupBaseFolder: (NSURL *) newURL +{ + baseFolder = [MAPIStoreInboxFolder baseFolderWithURL: newURL + inContext: self]; + [baseFolder retain]; +} + +@end + +@implementation MAPIStoreSentItemsContext + ++ (NSString *) MAPIModuleName +{ + return @"sent-items"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@sent-items/" + withID: 0x140001]; +} + +- (void) setupBaseFolder: (NSURL *) newURL +{ + baseFolder = [MAPIStoreSentItemsFolder baseFolderWithURL: newURL + inContext: self]; + [baseFolder retain]; +} + +@end + +@implementation MAPIStoreDraftsContext + ++ (NSString *) MAPIModuleName +{ + return @"drafts"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@inbox/" + withID: 0x1e0001]; +} + +- (void) setupBaseFolder: (NSURL *) newURL +{ + baseFolder = [MAPIStoreDraftsFolder baseFolderWithURL: newURL + inContext: self]; + [baseFolder retain]; +} + +@end + +@implementation MAPIStoreDeletedItemsContext + ++ (NSString *) MAPIModuleName +{ + return @"deleted-items"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@deleted-items/" + withID: 0x170001]; +} + +- (void) setupBaseFolder: (NSURL *) newURL +{ + baseFolder = [MAPIStoreDeletedItemsFolder baseFolderWithURL: newURL + inContext: self]; + [baseFolder retain]; +} + +@end + +@implementation MAPIStoreOutboxContext + ++ (NSString *) MAPIModuleName +{ + return @"outbox"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@outbox/" + withID: 0x150001]; +} + +- (void) setupBaseFolder: (NSURL *) newURL +{ + baseFolder = [MAPIStoreOutboxFolder baseFolderWithURL: newURL + inContext: self]; + [baseFolder retain]; +} + +@end + +@implementation MAPIStoreSpoolerContext + ++ (NSString *) MAPIModuleName +{ + return @"spooler"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@spooler/" + withID: 0x120001]; +} + +@end diff --git a/OpenChange/MAPIStoreOutboxContext.h b/OpenChange/MAPIStoreOutboxContext.h deleted file mode 100644 index a2d8f9d97..000000000 --- a/OpenChange/MAPIStoreOutboxContext.h +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreOutboxContext.h - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef MAPISTOREOUTBOXCONTEXT_H -#define MAPISTOREOUTBOXCONTEXT_H - -#import "MAPIStoreMailBaseContext.h" - -@interface MAPIStoreOutboxContext : MAPIStoreMailBaseContext - -@end - -#endif /* MAPISTOREOUTBOXCONTEXT_H */ diff --git a/OpenChange/MAPIStoreOutboxContext.m b/OpenChange/MAPIStoreOutboxContext.m deleted file mode 100644 index 45da5c4bb..000000000 --- a/OpenChange/MAPIStoreOutboxContext.m +++ /dev/null @@ -1,92 +0,0 @@ -/* MAPIStoreOutboxContext.m - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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 - -#import "MAPIStoreMailFolder.h" -#import "MAPIStoreMapping.h" - -#import "MAPIStoreOutboxContext.h" - -@implementation MAPIStoreOutboxContext - -+ (NSString *) MAPIModuleName -{ - return @"outbox"; -} - -+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping -{ - [mapping registerURL: @"sogo://openchange:openchange@outbox/" - withID: 0x150001]; -} - -- (void) setupBaseFolder: (NSURL *) newURL -{ - baseFolder = [MAPIStoreOutboxFolder baseFolderWithURL: newURL - inContext: self]; - [baseFolder retain]; -} - -@end - -// - (void) setupModuleFolder -// { -// SOGoUserFolder *userFolder; -// SOGoMailAccounts *accountsFolder; -// SOGoMailAccount *accountFolder; -// id currentContainer; - -// userFolder = [SOGoUserFolder objectWithName: [authenticator username] -// inContainer: MAPIApp]; -// [parentFoldersBag addObject: userFolder]; -// [woContext setClientObject: userFolder]; - -// accountsFolder = [userFolder lookupName: @"Mail" -// inContext: woContext -// acquire: NO]; -// [parentFoldersBag addObject: accountsFolder]; -// [woContext setClientObject: accountsFolder]; - -// accountFolder = [accountsFolder lookupName: @"0" -// inContext: woContext -// acquire: NO]; -// [parentFoldersBag addObject: accountFolder]; -// [woContext setClientObject: accountFolder]; - -// moduleFolder = [accountFolder draftsFolderInContext: nil]; -// [moduleFolder retain]; -// currentContainer = [moduleFolder container]; -// while (currentContainer != accountFolder) -// { -// [parentFoldersBag addObject: currentContainer]; -// currentContainer = [currentContainer container]; -// } -// } - -// - (id) createMessageOfClass: (NSString *) messageClass -// inFolderAtURL: (NSString *) folderURL; -// { -// return [moduleFolder newDraft]; -// } - -// @end diff --git a/OpenChange/MAPIStoreSentItemsContext.h b/OpenChange/MAPIStoreSentItemsContext.h deleted file mode 100644 index ec61e6492..000000000 --- a/OpenChange/MAPIStoreSentItemsContext.h +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreSentItemsContext.h - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef MAPISTORESEARCHCONTEXT_H -#define MAPISTORESEARCHCONTEXT_H - -#import "MAPIStoreMailBaseContext.h" - -@interface MAPIStoreSentItemsContext : MAPIStoreMailBaseContext - -@end - -#endif /* MAPISTORESEARCHCONTEXT_H */ diff --git a/OpenChange/MAPIStoreSentItemsContext.m b/OpenChange/MAPIStoreSentItemsContext.m deleted file mode 100644 index e1c433780..000000000 --- a/OpenChange/MAPIStoreSentItemsContext.m +++ /dev/null @@ -1,50 +0,0 @@ -/* MAPIStoreSentItemsContext.m - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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 - -#import "MAPIStoreMailFolder.h" -#import "MAPIStoreMapping.h" - -#import "MAPIStoreSentItemsContext.h" - -@implementation MAPIStoreSentItemsContext - -+ (NSString *) MAPIModuleName -{ - return @"sent-items"; -} - -+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping -{ - [mapping registerURL: @"sogo://openchange:openchange@sent-items/" - withID: 0x140001]; -} - -- (void) setupBaseFolder: (NSURL *) newURL -{ - baseFolder = [MAPIStoreSentItemsFolder baseFolderWithURL: newURL - inContext: self]; - [baseFolder retain]; -} - -@end diff --git a/OpenChange/MAPIStoreSpoolerContext.h b/OpenChange/MAPIStoreSpoolerContext.h deleted file mode 100644 index b01009ddf..000000000 --- a/OpenChange/MAPIStoreSpoolerContext.h +++ /dev/null @@ -1,32 +0,0 @@ -/* MAPIStoreSpoolerContext.h - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef MAPISTORESPOOLERCONTEXT_H -#define MAPISTORESPOOLERCONTEXT_H - -#import "MAPIStoreOutboxContext.h" - -@interface MAPIStoreSpoolerContext : MAPIStoreOutboxContext - -@end - -#endif /* MAPISTORESPOOLERCONTEXT_H */ diff --git a/OpenChange/MAPIStoreSpoolerContext.m b/OpenChange/MAPIStoreSpoolerContext.m deleted file mode 100644 index 75a44e2e6..000000000 --- a/OpenChange/MAPIStoreSpoolerContext.m +++ /dev/null @@ -1,41 +0,0 @@ -/* MAPIStoreSpoolerContext.m - this file is part of SOGo - * - * Copyright (C) 2010 Inverse inc. - * - * Author: Wolfgang Sourdeau - * - * 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 - -#import "MAPIStoreMapping.h" -#import "MAPIStoreSpoolerContext.h" - -@implementation MAPIStoreSpoolerContext - -+ (NSString *) MAPIModuleName -{ - return @"spooler"; -} - -+ (void) registerFixedMappings: (MAPIStoreMapping *) mapping -{ - [mapping registerURL: @"sogo://openchange:openchange@spooler/" - withID: 0x120001]; -} - -@end