From 877e2e09a6c4486b0804eb0b8b5f8ca56816d167 Mon Sep 17 00:00:00 2001 From: wolfgang Date: Fri, 13 Apr 2007 15:00:38 +0000 Subject: [PATCH] git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1047 d1b88da0-ebda-0310-925b-ed51d893ca5b --- UI/SOGoUI/UIxJSClose.h | 41 ++++++++++++++++++++++++ UI/SOGoUI/UIxJSClose.m | 71 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 UI/SOGoUI/UIxJSClose.h create mode 100644 UI/SOGoUI/UIxJSClose.m diff --git a/UI/SOGoUI/UIxJSClose.h b/UI/SOGoUI/UIxJSClose.h new file mode 100644 index 00000000..dd51b869 --- /dev/null +++ b/UI/SOGoUI/UIxJSClose.h @@ -0,0 +1,41 @@ +/* UIxJSClose.h - this file is part of SOGo + * + * Copyright (C) 2006 Inverse groupe conseil + * + * 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. + */ + +#ifndef UIXJSCLOSE_H +#define UIXJSCLOSE_H + +#import + +@class NSString; + +@interface UIxJSClose : UIxComponent +{ + NSString *refreshMethod; +} + +- (void) setRefreshMethod: (NSString *) method; +- (NSString *) refreshMethod; +- (BOOL) hasRefreshMethod; + +@end + +#endif /* UIXJSCLOSE_H */ diff --git a/UI/SOGoUI/UIxJSClose.m b/UI/SOGoUI/UIxJSClose.m new file mode 100644 index 00000000..96dc6704 --- /dev/null +++ b/UI/SOGoUI/UIxJSClose.m @@ -0,0 +1,71 @@ +/* UIxJSClose.m - this file is part of SOGo + * + * Copyright (C) 2006 Inverse groupe conseil + * + * 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 "UIxJSClose.h" + +@implementation UIxJSClose + +- (id) init +{ + if ((self = [super init])) + refreshMethod = nil; + + return self; +} + +- (void) dealloc +{ + if (refreshMethod) + [refreshMethod release]; + [super dealloc]; +} + +- (NSString *) doctype +{ + return (@"\n" + @""); +} + +- (void) setRefreshMethod: (NSString *) method +{ + if (refreshMethod) + [refreshMethod release]; + refreshMethod = method; + if (refreshMethod) + [refreshMethod retain]; +} + +- (NSString *) refreshMethod +{ + return refreshMethod; +} + +- (BOOL) hasRefreshMethod +{ + return (refreshMethod != nil); +} + +@end -- 2.39.5