2006-10-18 16:42:44 +02:00
|
|
|
/* UIxComponentEditor.h - this file is part of SOGo
|
|
|
|
*
|
2009-04-21 16:34:22 +02:00
|
|
|
* Copyright (C) 2006-2009 Inverse inc.
|
2006-10-18 16:42:44 +02:00
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* 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 UIXCOMPONENTEDITOR_H
|
|
|
|
#define UIXCOMPONENTEDITOR_H
|
|
|
|
|
|
|
|
#import <SOGoUI/UIxComponent.h>
|
|
|
|
|
|
|
|
@class NSArray;
|
|
|
|
@class NSCalendarDate;
|
|
|
|
@class NSDictionary;
|
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@class iCalPerson;
|
|
|
|
@class iCalRecurrenceRule;
|
|
|
|
@class iCalRepeatableEntityObject;
|
|
|
|
|
|
|
|
@interface UIxComponentEditor : UIxComponent
|
|
|
|
{
|
2007-03-18 16:20:38 +01:00
|
|
|
iCalRepeatableEntityObject *component;
|
2006-10-18 16:42:44 +02:00
|
|
|
id item;
|
2009-09-10 20:31:20 +02:00
|
|
|
id attendee;
|
2007-03-18 16:20:38 +01:00
|
|
|
|
|
|
|
NSString *saveURL;
|
2007-04-02 21:27:46 +02:00
|
|
|
NSMutableArray *calendarList;
|
2008-11-05 22:04:16 +01:00
|
|
|
//NSMutableArray *organizerList;
|
|
|
|
//NSDictionary *organizerIdentity;
|
2006-10-18 16:42:44 +02:00
|
|
|
|
|
|
|
/* individual values */
|
|
|
|
NSCalendarDate *cycleUntilDate;
|
|
|
|
NSString *title;
|
|
|
|
NSString *location;
|
2008-08-22 08:44:27 +02:00
|
|
|
SOGoAppointmentFolder *componentCalendar;
|
2006-10-18 16:42:44 +02:00
|
|
|
NSString *comment;
|
2009-07-07 23:17:43 +02:00
|
|
|
NSString *attachUrl;
|
2006-10-18 16:42:44 +02:00
|
|
|
NSString *priority;
|
2006-11-03 20:39:54 +01:00
|
|
|
NSString *privacy;
|
|
|
|
NSString *status;
|
2007-08-21 18:01:28 +02:00
|
|
|
NSString *category;
|
2006-10-18 16:42:44 +02:00
|
|
|
NSArray *categories;
|
|
|
|
NSDictionary *cycle;
|
|
|
|
NSString *cycleEnd;
|
2007-03-19 00:52:08 +01:00
|
|
|
iCalPerson *organizer;
|
2009-09-10 20:31:20 +02:00
|
|
|
iCalPerson *ownerAsAttendee;
|
2006-10-19 16:35:50 +02:00
|
|
|
NSString *componentOwner;
|
2009-01-07 22:01:16 +01:00
|
|
|
NSString *dateFormat;
|
2006-11-07 20:24:36 +01:00
|
|
|
|
2009-09-10 20:31:20 +02:00
|
|
|
NSMutableDictionary *jsonAttendees;
|
2008-01-14 14:57:28 +01:00
|
|
|
|
|
|
|
NSString *reminder;
|
2009-04-21 16:34:22 +02:00
|
|
|
NSString *reminderQuantity;
|
|
|
|
NSString *reminderUnit;
|
|
|
|
NSString *reminderRelation;
|
|
|
|
NSString *reminderReference;
|
2008-01-14 14:57:28 +01:00
|
|
|
|
|
|
|
/* ugly */
|
2009-04-21 16:34:22 +02:00
|
|
|
NSString *repeat;
|
|
|
|
|
2008-01-14 14:57:28 +01:00
|
|
|
NSString *repeatType;
|
|
|
|
NSString *repeat1;
|
|
|
|
NSString *repeat2;
|
|
|
|
NSString *repeat3;
|
|
|
|
NSString *repeat4;
|
|
|
|
NSString *repeat5;
|
|
|
|
NSString *repeat6;
|
|
|
|
NSString *repeat7;
|
|
|
|
|
|
|
|
NSString *range1;
|
|
|
|
NSString *range2;
|
2006-10-18 16:42:44 +02:00
|
|
|
}
|
|
|
|
|
2007-05-03 18:13:51 +02:00
|
|
|
- (NSString *) toolbar;
|
2007-03-18 16:20:38 +01:00
|
|
|
- (void) setComponent: (iCalRepeatableEntityObject *) newComponent;
|
|
|
|
|
|
|
|
- (void) setSaveURL: (NSString *) newSaveURL;
|
|
|
|
- (NSString *) saveURL;
|
|
|
|
|
2007-11-19 22:07:54 +01:00
|
|
|
- (void) setItem: (id) _item;
|
|
|
|
- (id) item;
|
|
|
|
|
2007-11-21 17:05:07 +01:00
|
|
|
- (SOGoAppointmentFolder *) componentCalendar;
|
|
|
|
|
2008-08-22 08:44:27 +02:00
|
|
|
- (NSArray *) calendarList;
|
|
|
|
- (NSString *) calendarsFoldersList;
|
|
|
|
- (NSString *) calendarDisplayName;
|
|
|
|
|
|
|
|
- (SOGoAppointmentFolder *) componentCalendar;
|
|
|
|
- (void) setComponentCalendar: (SOGoAppointmentFolder *) _componentCalendar;
|
|
|
|
|
2007-03-18 16:20:38 +01:00
|
|
|
- (NSArray *) categoryList;
|
2006-10-18 16:42:44 +02:00
|
|
|
- (void) setCategories: (NSArray *) _categories;
|
|
|
|
- (NSArray *) categories;
|
|
|
|
|
|
|
|
- (NSArray *) priorities;
|
|
|
|
- (void) setPriority: (NSString *) _priority;
|
|
|
|
- (NSString *) priority;
|
2006-11-03 20:39:54 +01:00
|
|
|
- (NSString *) itemPriorityText;
|
|
|
|
|
|
|
|
- (NSArray *) privacyClasses;
|
|
|
|
- (void) setPrivacy: (NSString *) _privacy;
|
|
|
|
- (NSString *) privacy;
|
|
|
|
- (NSString *) itemPrivacyText;
|
|
|
|
|
|
|
|
- (void) setStatus: (NSString *) _status;
|
|
|
|
- (NSString *) status;
|
|
|
|
- (NSString *) itemStatusText;
|
2006-10-18 16:42:44 +02:00
|
|
|
|
|
|
|
- (void) setTitle: (NSString *) _value;
|
|
|
|
- (NSString *) title;
|
|
|
|
|
|
|
|
- (void) setLocation: (NSString *) _value;
|
|
|
|
- (NSString *) location;
|
|
|
|
|
2007-11-19 22:07:54 +01:00
|
|
|
- (NSString *) location;
|
|
|
|
|
2006-10-18 16:42:44 +02:00
|
|
|
- (void) setComment: (NSString *) _value;
|
|
|
|
- (NSString *) comment;
|
|
|
|
|
2009-07-07 23:17:43 +02:00
|
|
|
- (void) setAttach: (NSString *) _attachUrl;
|
|
|
|
- (NSString *) attach;
|
2006-10-23 23:34:56 +02:00
|
|
|
|
2009-07-30 03:07:17 +02:00
|
|
|
- (BOOL) hasAttendees;
|
|
|
|
|
2009-09-10 20:31:20 +02:00
|
|
|
- (NSString *) jsonAttendees;
|
2006-10-18 16:42:44 +02:00
|
|
|
|
2008-01-14 14:57:28 +01:00
|
|
|
- (NSString *) repeat;
|
|
|
|
- (void) setRepeat: (NSString *) newRepeat;
|
|
|
|
|
|
|
|
- (NSString *) reminder;
|
|
|
|
- (void) setReminder: (NSString *) newReminder;
|
|
|
|
|
|
|
|
////////////////////////////////// JUNK ////////////////////////////////////////
|
|
|
|
////////////////////////////////// JUNK ////////////////////////////////////////
|
|
|
|
////////////////////////////////// JUNK ////////////////////////////////////////
|
2006-10-18 16:42:44 +02:00
|
|
|
- (NSArray *) cycles;
|
|
|
|
- (void) setCycle: (NSDictionary *) _cycle;
|
|
|
|
- (NSDictionary *) cycle;
|
|
|
|
- (BOOL) hasCycle;
|
|
|
|
- (NSString *) cycleLabel;
|
|
|
|
- (void) setCycleUntilDate: (NSCalendarDate *) _cycleUntilDate;
|
|
|
|
- (NSCalendarDate *) cycleUntilDate;
|
|
|
|
- (iCalRecurrenceRule *) rrule;
|
|
|
|
- (void) adjustCycleControlsForRRule: (iCalRecurrenceRule *) _rrule;
|
|
|
|
- (NSDictionary *) cycleMatchingRRule: (iCalRecurrenceRule *) _rrule;
|
|
|
|
- (NSArray *) cycleEnds;
|
|
|
|
- (void) setCycleEnd: (NSString *) _cycleEnd;
|
|
|
|
- (NSString *) cycleEnd;
|
|
|
|
- (BOOL) isCycleEndUntil;
|
|
|
|
- (void) setIsCycleEndUntil;
|
|
|
|
- (void) setIsCycleEndNever;
|
2008-01-14 14:57:28 +01:00
|
|
|
////////////////////////////////// JUNK ////////////////////////////////////////
|
|
|
|
////////////////////////////////// JUNK ////////////////////////////////////////
|
|
|
|
////////////////////////////////// JUNK ////////////////////////////////////////
|
2006-10-18 16:42:44 +02:00
|
|
|
|
|
|
|
/* access */
|
|
|
|
- (BOOL) isMyComponent;
|
|
|
|
- (BOOL) canEditComponent;
|
|
|
|
|
|
|
|
/* helpers */
|
|
|
|
- (NSString *) completeURIForMethod: (NSString *) _method;
|
|
|
|
- (BOOL) isWriteableClientObject;
|
|
|
|
- (NSException *) validateObjectForStatusChange;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* UIXCOMPONENTEDITOR_H */
|