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, NSCalendarDate, SOGoAptFormatter;
17 @interface UIxCalView : UIxComponent
19 NSArray *appointments;
22 NSCalendarDate *currentDay;
23 SOGoAptFormatter *aptFormatter;
24 SOGoAptFormatter *aptTooltipFormatter;
25 SOGoAptFormatter *privateAptFormatter;
26 SOGoAptFormatter *privateAptTooltipFormatter;
30 unsigned canAccessApt : 1;
31 unsigned RESERVED : 30;
38 - (void)configureFormatters;
42 - (NSArray *)appointments;
43 - (void)setAppointments:(NSArray *)_apts;
45 - (NSArray *)allDayApts;
48 - (BOOL)canAccessApt; /* protection */
51 - (BOOL)hasHoldidayInfo;
52 - (BOOL)hasAllDayApts;
54 - (NSDictionary *)aptTypeDict;
55 - (NSString *)aptTypeLabel;
56 - (NSString *)aptTypeIcon;
57 - (SOGoAptFormatter *)aptFormatter;
59 - (NSString *)shortTextForApt;
60 - (NSString *)shortTitleForApt;
61 - (NSString *)tooltipForApt;
62 - (NSString *)appointmentViewURL;
67 /* related to current day */
68 - (void)setCurrentDay:(NSCalendarDate *)_day;
69 - (NSCalendarDate *)currentDay;
70 - (NSString *)currentDayName; /* localized */
73 - (BOOL)showFullNames;
74 - (BOOL)showAMPMDates;
75 - (unsigned)dayStartHour;
76 - (unsigned)dayEndHour;
77 - (BOOL)shouldDisplayWeekend;
78 - (BOOL)shouldDisplayRejectedAppointments;
80 - (NSCalendarDate *)referenceDateForFormatter;
82 - (NSCalendarDate *)thisMonth;
83 - (NSCalendarDate *)nextMonth;
87 - (NSCalendarDate *)startDate;
88 - (NSCalendarDate *)endDate;
89 - (NSArray *)fetchCoreInfos;
93 - (NSDictionary *)todayQueryParameters;
94 - (NSDictionary *)currentDayQueryParameters;
98 - (NSString *)formattedCalendarUIDs;
102 - (NSString *)aptStyle;
106 #endif /* __SOGo_UIxCalView_H__ */