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).
15 @class NSString, NSArray, NSDictionary, NSMutableDictionary, NSCalendarDate, SOGoAptFormatter;
16 @class SOGoAppointmentFolder;
18 @interface UIxCalView : UIxComponent
20 NSArray *appointments;
21 NSMutableDictionary *componentsData;
25 NSCalendarDate *currentDay;
26 SOGoAptFormatter *aptFormatter;
27 SOGoAptFormatter *aptTooltipFormatter;
28 SOGoAptFormatter *privateAptFormatter;
29 SOGoAptFormatter *privateAptTooltipFormatter;
33 unsigned canAccessApt : 1;
34 unsigned RESERVED : 30;
41 - (void)configureFormatters;
45 - (NSArray *) appointments;
46 - (void) setAppointments: (NSArray *) _apts;
48 - (void) setTasks: (NSArray *) _tasks;
51 - (NSArray *)allDayApts;
54 - (BOOL)canAccessApt; /* protection */
57 - (BOOL)hasHoldidayInfo;
58 - (BOOL)hasAllDayApts;
60 - (NSDictionary *)aptTypeDict;
61 - (NSString *)aptTypeLabel;
62 - (NSString *)aptTypeIcon;
63 - (SOGoAptFormatter *)aptFormatter;
65 - (NSString *)shortTextForApt;
66 - (NSString *)shortTitleForApt;
67 - (NSString *)tooltipForApt;
68 - (NSString *)appointmentViewURL;
72 /* related to current day */
73 - (void)setCurrentDay:(NSCalendarDate *)_day;
74 - (NSCalendarDate *)currentDay;
75 - (NSString *)currentDayName; /* localized */
78 - (BOOL)showFullNames;
79 - (BOOL)showAMPMDates;
80 - (unsigned)dayStartHour;
81 - (unsigned)dayEndHour;
82 - (BOOL)shouldDisplayWeekend;
83 - (BOOL)shouldDisplayRejectedAppointments;
85 - (NSCalendarDate *)referenceDateForFormatter;
87 - (NSCalendarDate *)thisMonth;
88 - (NSCalendarDate *)nextMonth;
92 - (NSCalendarDate *)startDate;
93 - (NSCalendarDate *)endDate;
94 - (NSArray *) fetchCoreAppointmentsInfos;
95 - (NSArray *) fetchCoreTasksInfos;
99 - (NSDictionary *)todayQueryParameters;
100 - (NSDictionary *)currentDayQueryParameters;
104 - (NSString *)formattedCalendarUIDs;
108 - (NSString *)aptStyle;
110 /* protected methods */
111 - (NSDictionary *) _dateQueryParametersWithOffset: (int) daysOffset;
115 #endif /* __SOGo_UIxCalView_H__ */