/* Copyright (C) 2002-2005 SKYRIX Software AG This file is part of OpenGroupware.org. OGo is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. OGo 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with OGo; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #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: @"" @"" @"" @"" @"" @"" ]; /* option variables */ [r appendContentString:@""]; /* close head, start page */ [r appendContentString:@""]; [r appendContentString:@""]; /* the options form (do we need to deliver the full form ?) */ [r appendContentString:@"
"]; [r appendContentString: @""]; [r appendContentString: @"" @""]; [r appendContentString:@"
"]; /* closed page */ [r appendContentString:@""]; [r appendContentString:@""]; #endif return r; } @end /* SxOptionsForm */