2007-07-12 17:59:31 +02:00
|
|
|
#import <Foundation/NSCalendarDate.h>
|
|
|
|
#import <NGExtensions/NSCalendarDate+misc.h>
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2007-07-12 17:59:31 +02:00
|
|
|
#import <SOGo/NSCalendarDate+SOGo.h>
|
|
|
|
|
|
|
|
#import "UIxCalMonthViewOld.h"
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2006-11-02 22:49:21 +01:00
|
|
|
@implementation UIxCalMonthViewOld
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2008-03-10 15:17:11 +01:00
|
|
|
- (NSCalendarDate *) startOfMonth
|
|
|
|
{
|
2006-10-31 19:52:52 +01:00
|
|
|
return [[[super startDate] firstDayOfMonth] beginOfDay];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2008-03-10 15:17:11 +01:00
|
|
|
- (NSCalendarDate *) startDate
|
|
|
|
{
|
2006-06-15 21:34:10 +02:00
|
|
|
return [[self startOfMonth] mondayOfWeek];
|
|
|
|
}
|
|
|
|
|
|
|
|
/* URLs */
|
|
|
|
|
2008-03-10 15:17:11 +01:00
|
|
|
- (NSDictionary *) prevMonthQueryParameters
|
|
|
|
{
|
2006-06-15 21:34:10 +02:00
|
|
|
NSCalendarDate *date;
|
|
|
|
|
2006-10-31 19:52:52 +01:00
|
|
|
date = [[self startOfMonth] dateByAddingYears:0 months:-1 days:0
|
|
|
|
hours:0 minutes:0 seconds:0];
|
|
|
|
return [self queryParametersBySettingSelectedDate:date];
|
2006-10-31 19:38:53 +01:00
|
|
|
}
|
|
|
|
|
2008-03-10 15:17:11 +01:00
|
|
|
- (NSDictionary *)nextMonthQueryParameters
|
|
|
|
{
|
2006-06-15 21:34:10 +02:00
|
|
|
NSCalendarDate *date;
|
|
|
|
|
2006-10-31 19:52:52 +01:00
|
|
|
date = [[self startOfMonth] dateByAddingYears:0 months:1 days:0
|
|
|
|
hours:0 minutes:0 seconds:0];
|
|
|
|
return [self queryParametersBySettingSelectedDate:date];
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@end /* UIxCalMonthView */
|