// $Id: SxOptionsForm.m 1 2004-08-20 11:17:52Z znek $ #include "SxOptionsForm.h" #include "common.h" @implementation SxOptionsForm - (id)initWithName:(NSString *)_name inContainer:(id)_folder { if ((self = [super init])) { self->name = [_name copy]; self->container = [_folder retain]; } return self; } - (id)init { return [self initWithName:nil inContainer:nil]; } - (void)dealloc { [self->name release]; [self->container release]; [super dealloc]; } /* response */ - (WOResponse *)appendToResponse:(WOResponse *)r inContext:(id)_ctx { WOCookie *cookie; [self logWithFormat:@"TODO: tried to access Exchange options ..."]; //[r setStatus:204 /* No Content */]; cookie = [WOCookie cookieWithName:@"sessionid" value:@"deadbeef-7f79-457d-b1ee-f3c589dfe247,0x0" path:[self baseURLInContext:_ctx] domain:nil expires:nil isSecure:NO]; [r setStatus:200 /* OK */]; [r setHeader:@"text/html" forKey:@"content-type"]; [r addCookie:cookie]; #if 0 # warning Evo 1.4 testmode { NSData *data; data = [NSData dataWithContentsOfMappedFile:@"data/evo/ex2003options.html"]; NSAssert(data, @"missing data ..."); [r setContent:data]; } #else [r appendContentString: @"" @"" @"" ]; [r appendContentString: @"" @"
" @"" @"" @"" @"