]> err.no Git - scalable-opengroupware.org/blob - UI/Scheduler/UIxComponentEditor.h
8eec9b4d41cd571314e114f35a28e27197210520
[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 NSString;
32
33 @class iCalPerson;
34 @class iCalRecurrenceRule;
35 @class iCalRepeatableEntityObject;
36
37 @interface UIxComponentEditor : UIxComponent
38 {
39   iCalRepeatableEntityObject *component;
40   id item;
41
42   NSString *saveURL;
43   NSMutableArray *calendarList;
44   
45   /* individual values */
46   NSCalendarDate *cycleUntilDate;
47   NSString *title;
48   NSString *location;
49   NSString *comment;
50   NSString *url;
51   NSString *priority;
52   NSString *privacy;
53   NSString *status;
54   NSString *category;
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 - (NSString *) toolbar;
66 - (void) setComponent: (iCalRepeatableEntityObject *) newComponent;
67
68 - (void) setSaveURL: (NSString *) newSaveURL;
69 - (NSString *) saveURL;
70
71 - (NSArray *) categoryList;
72 - (void) setCategories: (NSArray *) _categories;
73 - (NSArray *) categories;
74 - (NSString *) itemCategoryText;
75
76 - (NSArray *) priorities;
77 - (void) setPriority: (NSString *) _priority;
78 - (NSString *) priority;
79 - (NSString *) itemPriorityText;
80
81 - (NSArray *) privacyClasses;
82 - (void) setPrivacy: (NSString *) _privacy;
83 - (NSString *) privacy;
84 - (NSString *) itemPrivacyText;
85
86 - (NSArray *) statusTypes;
87 - (void) setStatus: (NSString *) _status;
88 - (NSString *) status;
89 - (NSString *) itemStatusText;
90
91 - (void) setItem: (id) _item;
92 - (id) item;
93 - (NSString *) itemPriorityText;
94
95 - (void) setTitle: (NSString *) _value;
96 - (NSString *) title;
97
98 - (void) setLocation: (NSString *) _value;
99 - (NSString *) location;
100
101 - (void) setComment: (NSString *) _value;
102 - (NSString *) comment;
103
104 - (void) setUrl: (NSString *) _url;
105 - (NSString *) url;
106
107 - (void) setAttendeesNames: (NSString *) newAttendeesNames;
108 - (NSString *) attendeesNames;
109
110 - (void) setAttendeesEmails: (NSString *) newAttendeesEmails;
111 - (NSString *) attendeesEmails;
112
113 - (NSArray *) cycles;
114 - (void) setCycle: (NSDictionary *) _cycle;
115 - (NSDictionary *) cycle;
116 - (BOOL) hasCycle;
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;
129
130 /* access */
131 - (BOOL) isMyComponent;
132 - (BOOL) canEditComponent;
133
134 /* helpers */
135 - (NSString *) completeURIForMethod: (NSString *) _method;
136 - (BOOL) isWriteableClientObject;
137 - (NSException *) validateObjectForStatusChange;
138
139 @end
140
141 #endif /* UIXCOMPONENTEDITOR_H */