mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-23 10:54:17 +00:00
Monotone-Parent: a6ecefe4b27e937f5ee59f849e169707d59e26e1
Monotone-Revision: 1634bf986772c1db41f281543de74b6cf7b4fc1c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-06-08T15:48:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -19,22 +19,14 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <SoObjects/SOGo/NSDictionary+Utilities.h>
|
||||
#import <SoObjects/SOGo/NSString+Utilities.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import <SoObjects/SOGo/NSDictionary+Utilities.h>
|
||||
|
||||
#import <NGObjWeb/NSException+HTTP.h>
|
||||
#import <NGObjWeb/WOContext.h>
|
||||
#import <NGObjWeb/WOResponse.h>
|
||||
#import <NGObjWeb/WORequest.h>
|
||||
#import <NGExtensions/NSString+misc.h>
|
||||
#import <NGExtensions/NSNull+misc.h>
|
||||
|
||||
#import <Appointments/SOGoAppointmentFolder.h>
|
||||
#import <Appointments/SOGoAppointmentFolderICS.h>
|
||||
#import <Appointments/SOGoAppointmentObject.h>
|
||||
#import <GDLContentStore/GCSFolder.h>
|
||||
#import <NGCards/iCalCalendar.h>
|
||||
|
||||
#import "UIxCalFolderActions.h"
|
||||
|
||||
@@ -44,17 +36,16 @@
|
||||
{
|
||||
WOResponse *response;
|
||||
SOGoAppointmentFolderICS *folderICS;
|
||||
NSString *filename;
|
||||
NSString *disposition;
|
||||
|
||||
folderICS = [self clientObject];
|
||||
response = [self responseWithStatus: 200
|
||||
andString: [folderICS contentAsString]];
|
||||
[response setHeader: @"text/calendar; charset=utf-8"
|
||||
forKey: @"content-type"];
|
||||
filename = [NSString stringWithFormat: @"attachment; filename=\"%@.ics\"",
|
||||
[folderICS displayName]];
|
||||
[response setHeader: filename
|
||||
forKey: @"Content-Disposition"];
|
||||
disposition = [NSString stringWithFormat: @"attachment; filename=\"%@.ics\"",
|
||||
[folderICS displayName]];
|
||||
[response setHeader: disposition forKey: @"Content-Disposition"];
|
||||
|
||||
return response;
|
||||
}
|
||||
@@ -101,5 +92,4 @@
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
@end /* UIxCalFolderActions */
|
||||
|
||||
Reference in New Issue
Block a user