]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Scheduler/UIxCalView.h
work on "edit" functionality in AppointmentProposal
[scalable-opengroupware.org] / SOGo / UI / Scheduler / UIxCalView.h
1 // $Id$
2
3 #ifndef __SOGo_UIxCalView_H__
4 #define __SOGo_UIxCalView_H__
5
6 #include <SOGoUI/UIxComponent.h>
7
8 /*
9   UIxCalView
10   
11   Superclass for most components which render a set of appointments coming from
12   a SOPE clientObject (which usually is an SOGoAppointmentFolder).
13 */
14
15 @class NSString, NSArray, NSDictionary, NSCalendarDate, SOGoAptFormatter;
16
17 @interface UIxCalView : UIxComponent
18 {
19   NSArray        *appointments;
20   NSArray        *allDayApts;
21   id             appointment;
22   NSCalendarDate *currentDay;
23   SOGoAptFormatter *aptFormatter;
24   SOGoAptFormatter *aptTooltipFormatter;
25 }
26
27 /* accessors */
28
29 - (NSArray *)appointments;
30 - (NSArray *)allDayApts;
31 - (id)appointment;
32
33 - (BOOL)hasDayInfo;
34 - (BOOL)hasHoldidayInfo;
35 - (BOOL)hasAllDayApts;
36
37 - (NSDictionary *)aptTypeDict;
38 - (NSString *)aptTypeLabel;
39 - (NSString *)aptTypeIcon;
40 - (SOGoAptFormatter *)aptFormatter;
41
42 - (NSString *)shortTextForApt;
43 - (NSString *)shortTitleForApt;
44 - (NSString *)tooltipForApt;
45 - (NSString *)appointmentViewURL;
46
47 - (id)holidayInfo;
48
49
50 /* related to current day */
51 - (void)setCurrentDay:(NSCalendarDate *)_day;
52 - (NSCalendarDate *)currentDay;
53 - (NSString *)currentDayName; /* localized */
54
55 /* defaults */
56 - (BOOL)showFullNames;
57 - (BOOL)showAMPMDates;
58 - (unsigned)dayStartHour;
59 - (unsigned)dayEndHour;
60 - (BOOL)shouldDisplayWeekend;
61     
62 - (NSCalendarDate *)referenceDateForFormatter;
63  
64 - (NSCalendarDate *)thisMonth;
65 - (NSCalendarDate *)nextMonth;
66
67 /* fetching */
68
69 - (NSCalendarDate *)startDate;
70 - (NSCalendarDate *)endDate;
71 - (NSArray *)fetchCoreInfos;
72
73 /* date selection */
74
75 - (NSDictionary *)todayQueryParameters;
76 - (NSDictionary *)currentDayQueryParameters;
77
78 @end
79
80 #endif /* __SOGo_UIxCalView_H__ */