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
40 iCalRepeatableEntityObject *component;
44 NSMutableArray *calendarList;
46 /* individual values */
47 NSCalendarDate *cycleUntilDate;
58 iCalPerson *organizer;
59 NSString *componentOwner;
61 NSString *attendeesNames;
62 NSString *attendeesEmails;
65 - (NSString *) toolbar;
66 - (void) setComponent: (iCalRepeatableEntityObject *) newComponent;
68 - (void) setSaveURL: (NSString *) newSaveURL;
69 - (NSString *) saveURL;
71 - (NSArray *) categoryList;
72 - (void) setCategories: (NSArray *) _categories;
73 - (NSArray *) categories;
74 - (NSString *) itemCategoryText;
76 - (NSArray *) priorities;
77 - (void) setPriority: (NSString *) _priority;
78 - (NSString *) priority;
79 - (NSString *) itemPriorityText;
81 - (NSArray *) privacyClasses;
82 - (void) setPrivacy: (NSString *) _privacy;
83 - (NSString *) privacy;
84 - (NSString *) itemPrivacyText;
86 - (NSArray *) statusTypes;
87 - (void) setStatus: (NSString *) _status;
88 - (NSString *) status;
89 - (NSString *) itemStatusText;
91 - (void) setItem: (id) _item;
93 - (NSString *) itemPriorityText;
95 - (void) setTitle: (NSString *) _value;
98 - (void) setLocation: (NSString *) _value;
99 - (NSString *) location;
101 - (void) setComment: (NSString *) _value;
102 - (NSString *) comment;
104 - (void) setUrl: (NSString *) _url;
107 - (void) setAttendeesNames: (NSString *) newAttendeesNames;
108 - (NSString *) attendeesNames;
110 - (void) setAttendeesEmails: (NSString *) newAttendeesEmails;
111 - (NSString *) attendeesEmails;
113 - (NSArray *) cycles;
114 - (void) setCycle: (NSDictionary *) _cycle;
115 - (NSDictionary *) cycle;
117 - (NSString *) cycleLabel;
118 - (void) setCycleUntilDate: (NSCalendarDate *) _cycleUntilDate;
119 - (NSCalendarDate *) cycleUntilDate;
120 - (iCalRecurrenceRule *) rrule;
121 - (void) adjustCycleControlsForRRule: (iCalRecurrenceRule *) _rrule;
122 - (NSDictionary *) cycleMatchingRRule: (iCalRecurrenceRule *) _rrule;
123 - (NSArray *) cycleEnds;
124 - (void) setCycleEnd: (NSString *) _cycleEnd;
125 - (NSString *) cycleEnd;
126 - (BOOL) isCycleEndUntil;
127 - (void) setIsCycleEndUntil;
128 - (void) setIsCycleEndNever;
131 - (BOOL) isMyComponent;
132 - (BOOL) canEditComponent;
135 - (NSFormatter *) titleDateFormatter;
136 - (NSString *) completeURIForMethod: (NSString *) _method;
137 - (BOOL) isWriteableClientObject;
138 - (NSException *) validateObjectForStatusChange;
142 #endif /* UIXCOMPONENTEDITOR_H */