]> err.no Git - scalable-opengroupware.org/blob - UI/Scheduler/UIxComponentEditor.h
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1040 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Scheduler / UIxComponentEditor.h
1 /* UIxComponentEditor.h - this file is part of SOGo
2  *
3  * Copyright (C) 2006 Inverse groupe conseil
4  *
5  * Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
6  *
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)
10  * any later version.
11  *
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.
16  *
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.
21  */
22
23 #ifndef UIXCOMPONENTEDITOR_H
24 #define UIXCOMPONENTEDITOR_H
25
26 #import <SOGoUI/UIxComponent.h>
27
28 @class NSArray;
29 @class NSCalendarDate;
30 @class NSDictionary;
31 @class NSFormatter;
32 @class NSString;
33
34 @class iCalPerson;
35 @class iCalRecurrenceRule;
36 @class iCalRepeatableEntityObject;
37
38 @interface UIxComponentEditor : UIxComponent
39 {
40   iCalRepeatableEntityObject *component;
41   id item;
42
43   NSString *saveURL;
44   NSMutableArray *calendarList;
45   
46   /* individual values */
47   NSCalendarDate *cycleUntilDate;
48   NSString *title;
49   NSString *location;
50   NSString *comment;
51   NSString *url;
52   NSString *priority;
53   NSString *privacy;
54   NSString *status;
55   NSArray *categories;
56   NSDictionary *cycle;
57   NSString *cycleEnd;
58   iCalPerson *organizer;
59   NSString *componentOwner;
60
61   NSString *attendeesNames;
62   NSString *attendeesEmails;
63 }
64
65 - (void) setComponent: (iCalRepeatableEntityObject *) newComponent;
66
67 - (void) setSaveURL: (NSString *) newSaveURL;
68 - (NSString *) saveURL;
69
70 - (NSArray *) categoryList;
71 - (void) setCategories: (NSArray *) _categories;
72 - (NSArray *) categories;
73 - (NSString *) itemCategoryText;
74
75 - (NSArray *) priorities;
76 - (void) setPriority: (NSString *) _priority;
77 - (NSString *) priority;
78 - (NSString *) itemPriorityText;
79
80 - (NSArray *) privacyClasses;
81 - (void) setPrivacy: (NSString *) _privacy;
82 - (NSString *) privacy;
83 - (NSString *) itemPrivacyText;
84
85 - (NSArray *) statusTypes;
86 - (void) setStatus: (NSString *) _status;
87 - (NSString *) status;
88 - (NSString *) itemStatusText;
89
90 - (void) setItem: (id) _item;
91 - (id) item;
92 - (NSString *) itemPriorityText;
93
94 - (void) setTitle: (NSString *) _value;
95 - (NSString *) title;
96
97 - (void) setLocation: (NSString *) _value;
98 - (NSString *) location;
99
100 - (void) setComment: (NSString *) _value;
101 - (NSString *) comment;
102
103 - (void) setUrl: (NSString *) _url;
104 - (NSString *) url;
105
106 - (void) setAttendeesNames: (NSString *) newAttendeesNames;
107 - (NSString *) attendeesNames;
108
109 - (void) setAttendeesEmails: (NSString *) newAttendeesEmails;
110 - (NSString *) attendeesEmails;
111
112 - (NSArray *) cycles;
113 - (void) setCycle: (NSDictionary *) _cycle;
114 - (NSDictionary *) cycle;
115 - (BOOL) hasCycle;
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;
128
129 /* access */
130 - (BOOL) isMyComponent;
131 - (BOOL) canEditComponent;
132
133 /* helpers */
134 - (NSFormatter *) titleDateFormatter;
135 - (NSString *) completeURIForMethod: (NSString *) _method;
136 - (BOOL) isWriteableClientObject;
137 - (NSException *) validateObjectForStatusChange;
138
139 - (NSString *) iCalParticipantsAndResourcesStringFromQueryParameters;
140 - (NSString *) iCalParticipantsStringFromQueryParameters;
141 - (NSString *) iCalResourcesStringFromQueryParameters;
142 - (NSString *) iCalStringFromQueryParameter: (NSString *) _qp
143                                      format: (NSString *) _format;
144 - (NSString *) iCalOrganizerString;
145
146 @end
147
148 #endif /* UIXCOMPONENTEDITOR_H */