1 /* UIxComponentEditor.h - this file is part of SOGo
3 * Copyright (C) 2006 Inverse groupe conseil
5 * Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
7 * This file is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
12 * This file is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 #ifndef UIXCOMPONENTEDITOR_H
24 #define UIXCOMPONENTEDITOR_H
26 #import <SOGoUI/UIxComponent.h>
29 @class NSCalendarDate;
35 @class iCalRecurrenceRule;
36 @class iCalRepeatableEntityObject;
38 @interface UIxComponentEditor : UIxComponent
44 /* individual values */
45 NSCalendarDate *startDate;
46 NSCalendarDate *cycleUntilDate;
51 iCalPerson *organizer;
52 NSArray *participants; /* array of iCalPerson's */
53 NSArray *resources; /* array of iCalPerson's */
58 BOOL checkForConflicts; /* default: NO */
61 NSString *componentOwner;
66 - (NSArray *) categoryItems;
67 - (void) setCategories: (NSArray *) _categories;
68 - (NSArray *) categories;
69 - (NSString *) itemCategoryText;
71 - (NSArray *) priorities;
72 - (void) setPriority: (NSString *) _priority;
73 - (NSString *) priority;
74 - (NSString *) itemPriorityText;
76 - (NSArray *) privacyClasses;
77 - (void) setPrivacy: (NSString *) _privacy;
78 - (NSString *) privacy;
79 - (NSString *) itemPrivacyText;
81 - (NSArray *) statusTypes;
82 - (void) setStatus: (NSString *) _status;
83 - (NSString *) status;
84 - (NSString *) itemStatusText;
86 - (void) setItem: (id) _item;
88 - (NSString *) itemPriorityText;
90 - (void) setErrorText: (NSString *) _txt;
91 - (NSString *) errorText;
92 - (BOOL) hasErrorText;
94 - (void) setICalString: (NSString *) _s;
95 - (NSString *) iCalString;
97 - (NSCalendarDate *) newStartDate;
99 - (void) setStartDate: (NSCalendarDate *) _date;
100 - (NSCalendarDate *) startDate;
102 - (void) setTitle: (NSString *) _value;
103 - (NSString *) title;
105 - (void) setLocation: (NSString *) _value;
106 - (NSString *) location;
108 - (void) setComment: (NSString *) _value;
109 - (NSString *) comment;
111 - (void) setUrl: (NSString *) _url;
114 - (void) setParticipants: (NSArray *) _parts;
115 - (NSArray *) participants;
117 - (void) setResources: (NSArray *) _res;
118 - (NSArray *) resources;
120 - (void) setCheckForConflicts: (BOOL) _checkForConflicts;
121 - (BOOL) checkForConflicts;
123 - (NSArray *) cycles;
124 - (void) setCycle: (NSDictionary *) _cycle;
125 - (NSDictionary *) cycle;
127 - (NSString *) cycleLabel;
128 - (void) setCycleUntilDate: (NSCalendarDate *) _cycleUntilDate;
129 - (NSCalendarDate *) cycleUntilDate;
130 - (iCalRecurrenceRule *) rrule;
131 - (void) adjustCycleControlsForRRule: (iCalRecurrenceRule *) _rrule;
132 - (NSDictionary *) cycleMatchingRRule: (iCalRecurrenceRule *) _rrule;
133 - (NSArray *) cycleEnds;
134 - (void) setCycleEnd: (NSString *) _cycleEnd;
135 - (NSString *) cycleEnd;
136 - (BOOL) isCycleEndUntil;
137 - (void) setIsCycleEndUntil;
138 - (void) setIsCycleEndNever;
140 - (NSString *) componentOwner;
141 - (NSArray *) availableCalendars;
144 - (BOOL) isMyComponent;
145 - (BOOL) canEditComponent;
148 - (NSFormatter *) titleDateFormatter;
149 - (NSString *) completeURIForMethod: (NSString *) _method;
150 - (BOOL) isWriteableClientObject;
151 - (NSException *) validateObjectForStatusChange;
154 - (void) loadValuesFromComponent: (iCalRepeatableEntityObject *) component;
156 - (NSString *) iCalStringTemplate;
157 - (NSString *) iCalParticipantsAndResourcesStringFromQueryParameters;
158 - (NSString *) iCalParticipantsStringFromQueryParameters;
159 - (NSString *) iCalResourcesStringFromQueryParameters;
160 - (NSString *) iCalStringFromQueryParameter: (NSString *) _qp
161 format: (NSString *) _format;
162 - (NSString *) iCalOrganizerString;
163 - (NSString *) toolbar;
167 #endif /* UIXCOMPONENTEDITOR_H */