3 #ifndef __SOGo_UIxCalView_H__
4 #define __SOGo_UIxCalView_H__
6 #include <SOGoUI/UIxComponent.h>
11 Superclass for most components which render a set of appointments coming from
12 a SOPE clientObject (which usually is an SOGoAppointmentFolder).
16 @class NSCalendarDate;
18 @class NSMutableDictionary;
21 @class SOGoAptFormatter;
22 @class SOGoAppointmentFolder;
24 @interface UIxCalView : UIxComponent
26 NSArray *appointments;
27 NSMutableDictionary *componentsData;
31 NSCalendarDate *currentDay;
32 SOGoAptFormatter *aptFormatter;
33 SOGoAptFormatter *aptTooltipFormatter;
34 SOGoAptFormatter *privateAptFormatter;
35 SOGoAptFormatter *privateAptTooltipFormatter;
39 unsigned canAccessApt : 1;
40 unsigned RESERVED : 30;
46 - (void) configureFormatters;
50 - (NSArray *) appointments;
51 - (void) setAppointments: (NSArray *) _apts;
53 - (void) setTasks: (NSArray *) _tasks;
56 - (NSArray *) allDayApts;
59 - (BOOL) canAccessApt; /* protection */
62 - (BOOL) hasHoldidayInfo;
63 - (BOOL) hasAllDayApts;
65 - (NSDictionary *) aptTypeDict;
66 - (NSString *) aptTypeLabel;
67 - (NSString *) aptTypeIcon;
68 - (SOGoAptFormatter *) aptFormatter;
70 - (NSString *) shortTextForApt;
71 - (NSString *) shortTitleForApt;
72 - (NSString *) tooltipForApt;
73 - (NSString *) appointmentViewURL;
77 /* related to current day */
78 - (void) setCurrentDay: (NSCalendarDate *) _day;
79 - (NSCalendarDate *) currentDay;
80 - (NSString *) currentDayName; /* localized */
83 - (BOOL) showFullNames;
84 - (BOOL) showAMPMDates;
85 - (unsigned) dayStartHour;
86 - (unsigned) dayEndHour;
87 - (BOOL) shouldDisplayWeekend;
88 - (BOOL) shouldDisplayRejectedAppointments;
90 - (NSCalendarDate *) referenceDateForFormatter;
92 - (NSCalendarDate *) thisMonth;
93 - (NSCalendarDate *) nextMonth;
97 - (NSCalendarDate *) startDate;
98 - (NSCalendarDate *) endDate;
99 - (NSArray *) fetchCoreAppointmentsInfos;
100 - (NSArray *) fetchCoreTasksInfos;
104 - (NSDictionary *) todayQueryParameters;
105 - (NSDictionary *) currentDayQueryParameters;
109 - (NSString *) aptStyle;
111 /* protected methods */
112 - (NSDictionary *) _dateQueryParametersWithOffset: (int) daysOffset;
116 #endif /* __SOGo_UIxCalView_H__ */