From 2a1ced4a94b76ecc66795121602175e9c9a8185d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 3 Dec 2010 22:23:30 +0000 Subject: [PATCH] Monotone-Parent: 137388e5a62c0c3196b473a491b63e122e1187ab Monotone-Revision: 0e46ab67294e538548e44aa045080c9bd982e337 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-12-03T22:23:30 Monotone-Branch: ca.inverse.sogo --- OpenChange/GNUmakefile | 9 +++++- OpenChange/MAPIStoreSpoolerContext.m | 41 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 OpenChange/MAPIStoreSpoolerContext.m diff --git a/OpenChange/GNUmakefile b/OpenChange/GNUmakefile index 5056a83a7..71124484a 100644 --- a/OpenChange/GNUmakefile +++ b/OpenChange/GNUmakefile @@ -1,3 +1,4 @@ + # GNUstep makefile include ../config.make @@ -36,6 +37,7 @@ $(SOGOBACKEND)_OBJC_FILES += \ MAPIStoreFreebusyContext.m \ MAPIStoreMailContext.m \ MAPIStoreOutboxContext.m \ + MAPIStoreSpoolerContext.m \ MAPIStoreTasksContext.m \ \ SOGoAppointmentObject+MAPIStore.m \ @@ -63,7 +65,12 @@ else LIBMAPI_LIBS = $(shell pkg-config libmapistore --libs) -lmapiproxy -ADDITIONAL_INCLUDE_DIRS += $(LIBMAPI_CFLAGS) -I../SoObjects -I../SOPE -DBACKEND_BUNDLE_NAME="@\"$(BUNDLE_NAME)$(BUNDLE_EXTENSION)\"" -DSOGO_BUNDLES_DIR="@\"$(BUNDLE_INSTALL_DIR)\"" +ADDITIONAL_INCLUDE_DIRS += \ + -Werror -Wall \ + $(LIBMAPI_CFLAGS) \ + -I../SoObjects -I../SOPE \ + -DBACKEND_BUNDLE_NAME="@\"$(BUNDLE_NAME)$(BUNDLE_EXTENSION)\"" \ + -DSOGO_BUNDLES_DIR="@\"$(BUNDLE_INSTALL_DIR)\"" ADDITIONAL_LIB_DIRS += -Wl,--as-needed \ -L../SOGo/SOGo.framework/ -lSOGo \ -L../../OGoContentStore/$(GNUSTEP_OBJ_DIR)/ -lOGoContentStore \ diff --git a/OpenChange/MAPIStoreSpoolerContext.m b/OpenChange/MAPIStoreSpoolerContext.m new file mode 100644 index 000000000..99b9fb8fb --- /dev/null +++ b/OpenChange/MAPIStoreSpoolerContext.m @@ -0,0 +1,41 @@ +/* MAPIStoreSpoolerContext.m - this file is part of $PROJECT_NAME_HERE$ + * + * Copyright (C) 2010 Wolfgang Sourdeau + * + * 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 "MAPIStoreMapping.h" +#import "MAPIStoreSpoolerContext.h" + +@implementation MAPIStoreSpoolerContext + ++ (NSString *) MAPIModuleName +{ + return @"spooler"; +} + ++ (void) registerFixedMappings: (MAPIStoreMapping *) mapping +{ + [mapping registerURL: @"sogo://openchange:openchange@spooler/" + withID: 0x120001]; +} + +@end