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;
34 @class iCalRecurrenceRule;
35 @class iCalRepeatableEntityObject;
37 @interface UIxComponentEditor : UIxComponent
39 iCalRepeatableEntityObject *component;
43 NSMutableArray *calendarList;
45 /* individual values */
46 NSCalendarDate *cycleUntilDate;
57 iCalPerson *organizer;
58 NSString *componentOwner;
60 NSString *attendeesNames;
61 NSString *attendeesEmails;
64 - (NSString *) toolbar;
65 - (void) setComponent: (iCalRepeatableEntityObject *) newComponent;
67 - (void) setSaveURL: (NSString *) newSaveURL;
68 - (NSString *) saveURL;
70 - (NSArray *) categoryList;
71 - (void) setCategories: (NSArray *) _categories;
72 - (NSArray *) categories;
73 - (NSString *) itemCategoryText;
75 - (NSArray *) priorities;
76 - (void) setPriority: (NSString *) _priority;
77 - (NSString *) priority;
78 - (NSString *) itemPriorityText;
80 - (NSArray *) privacyClasses;
81 - (void) setPrivacy: (NSString *) _privacy;
82 - (NSString *) privacy;
83 - (NSString *) itemPrivacyText;
85 - (NSArray *) statusTypes;
86 - (void) setStatus: (NSString *) _status;
87 - (NSString *) status;
88 - (NSString *) itemStatusText;
90 - (void) setItem: (id) _item;
92 - (NSString *) itemPriorityText;
94 - (void) setTitle: (NSString *) _value;
97 - (void) setLocation: (NSString *) _value;
98 - (NSString *) location;
100 - (void) setComment: (NSString *) _value;
101 - (NSString *) comment;
103 - (void) setUrl: (NSString *) _url;
106 - (void) setAttendeesNames: (NSString *) newAttendeesNames;
107 - (NSString *) attendeesNames;
109 - (void) setAttendeesEmails: (NSString *) newAttendeesEmails;
110 - (NSString *) attendeesEmails;
112 - (NSArray *) cycles;
113 - (void) setCycle: (NSDictionary *) _cycle;
114 - (NSDictionary *) cycle;
116 - (NSString *) cycleLabel;
117 - (void) setCycleUntilDate: (NSCalendarDate *) _cycleUntilDate;
118 - (NSCalendarDate *) cycleUntilDate;
119 - (iCalRecurrenceRule *) rrule;
120 - (void) adjustCycleControlsForRRule: (iCalRecurrenceRule *) _rrule;
121 - (NSDictionary *) cycleMatchingRRule: (iCalRecurrenceRule *) _rrule;
122 - (NSArray *) cycleEnds;
123 - (void) setCycleEnd: (NSString *) _cycleEnd;
124 - (NSString *) cycleEnd;
125 - (BOOL) isCycleEndUntil;
126 - (void) setIsCycleEndUntil;
127 - (void) setIsCycleEndNever;
130 - (BOOL) isMyComponent;
131 - (BOOL) canEditComponent;
134 - (NSString *) completeURIForMethod: (NSString *) _method;
135 - (BOOL) isWriteableClientObject;
136 - (NSException *) validateObjectForStatusChange;
140 #endif /* UIXCOMPONENTEDITOR_H */