pull/7/head
Ludovic Marcotte 2012-11-19 14:20:13 -05:00
parent 2606787dd7
commit a1d092cab0
2 changed files with 16 additions and 5 deletions

View File

@ -212,7 +212,7 @@
- (NSArray *) orderOfElements - (NSArray *) orderOfElements
{ {
return [NSArray arrayWithObjects: @"prodid", @"version", @"method", @"calscale", return [NSArray arrayWithObjects: @"prodid", @"version", @"method", @"calscale", @"x-wr-calname",
@"vtimezone", @"vevent", @"vtodo", @"vjournal", @"vfreebusy", nil]; @"vtimezone", @"vevent", @"vtodo", @"vjournal", @"vfreebusy", nil];
} }

View File

@ -1,8 +1,6 @@
/* SOGoAppointmentFolderICS.m - this file is part of SOGo /* SOGoAppointmentFolderICS.m - this file is part of SOGo
* *
* Copyright (C) 2010 Inverse inc. * Copyright (C) 2010-2012 Inverse inc.
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
* *
* This file is free software; you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -22,6 +20,7 @@
#import <Foundation/NSString.h> #import <Foundation/NSString.h>
#import <NGCards/CardElement.h>
#import <NGCards/iCalCalendar.h> #import <NGCards/iCalCalendar.h>
#import "SOGoAppointmentFolderICS.h" #import "SOGoAppointmentFolderICS.h"
@ -30,7 +29,19 @@
- (NSString *) contentAsString - (NSString *) contentAsString
{ {
return [[self contentCalendar] versitString]; iCalCalendar *cal;
CardElement *e;
NSString *s;
cal = [self contentCalendar];
e = [CardElement simpleElementWithTag: @"x-wr-calname"
value: [self displayName]];
[cal addChild: e];
s = [cal versitString];
[cal removeChild: e];
return s;
} }
- (NSString *) davContentType - (NSString *) davContentType