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;
22 @class SOGoAptFormatter;
23 @class SOGoAppointmentFolder;
25 @interface UIxCalView : UIxComponent
27 NSArray *appointments;
28 NSMutableDictionary *componentsData;
32 NSCalendarDate *currentDay;
34 SOGoAptFormatter *aptFormatter;
35 SOGoAptFormatter *aptTooltipFormatter;
36 SOGoAptFormatter *privateAptFormatter;
37 SOGoAptFormatter *privateAptTooltipFormatter;
41 unsigned canAccessApt : 1;
42 unsigned RESERVED : 30;
48 - (void) configureFormatters;
52 - (NSArray *) appointments;
53 - (void) setAppointments: (NSArray *) _apts;
55 - (void) setTasks: (NSArray *) _tasks;
58 - (NSArray *) allDayApts;
61 - (BOOL) canAccessApt; /* protection */
64 - (BOOL) hasHoldidayInfo;
65 - (BOOL) hasAllDayApts;
67 - (NSDictionary *) aptTypeDict;
68 - (NSString *) aptTypeLabel;
69 - (NSString *) aptTypeIcon;
70 - (SOGoAptFormatter *) aptFormatter;
72 - (NSString *) shortTextForApt;
73 - (NSString *) shortTitleForApt;
74 - (NSString *) tooltipForApt;
75 - (NSString *) appointmentViewURL;
79 /* related to current day */
80 - (void) setCurrentDay: (NSCalendarDate *) _day;
81 - (NSCalendarDate *) currentDay;
82 - (NSString *) currentDayName; /* localized */
85 - (BOOL) showFullNames;
86 - (BOOL) showAMPMDates;
87 - (unsigned) dayStartHour;
88 - (unsigned) dayEndHour;
89 - (BOOL) shouldDisplayWeekend;
90 - (BOOL) shouldDisplayRejectedAppointments;
92 - (NSCalendarDate *) referenceDateForFormatter;
94 - (NSCalendarDate *) thisMonth;
95 - (NSCalendarDate *) nextMonth;
99 - (NSCalendarDate *) startDate;
100 - (NSCalendarDate *) endDate;
101 - (NSArray *) fetchCoreAppointmentsInfos;
102 - (NSArray *) fetchCoreTasksInfos;
106 - (NSDictionary *) todayQueryParameters;
107 - (NSDictionary *) currentDayQueryParameters;
111 - (NSString *) aptStyle;
113 /* protected methods */
114 - (NSDictionary *) _dateQueryParametersWithOffset: (int) daysOffset;
118 #endif /* __SOGo_UIxCalView_H__ */