f18c764ffa
Monotone-Revision: 9054022ef1ca8aeba6e34842d27d9b94ce002b89 Monotone-Author: dev-unix.inverse.qc.ca Monotone-Date: 2006-06-15T19:34:10 Monotone-Branch: ca.inverse.sogo
36 lines
911 B
Objective-C
36 lines
911 B
Objective-C
// $Id: UIxCalWeekView.m 59 2004-06-22 13:40:19Z znek $
|
|
|
|
#include "UIxCalWeekView.h"
|
|
#include "common.h"
|
|
|
|
@implementation UIxCalWeekView
|
|
|
|
- (NSCalendarDate *)startDate {
|
|
return [[super startDate] mondayOfWeek];
|
|
}
|
|
|
|
- (NSCalendarDate *)endDate {
|
|
return [[self startDate] dateByAddingYears:0 months:0 days:7
|
|
hours:0 minutes:0 seconds:0];
|
|
}
|
|
|
|
/* URLs */
|
|
|
|
- (NSDictionary *)prevWeekQueryParameters {
|
|
NSCalendarDate *date;
|
|
|
|
date = [[self startDate] dateByAddingYears:0 months:0 days:-7
|
|
hours:0 minutes:0 seconds:0];
|
|
return [self queryParametersBySettingSelectedDate:date];
|
|
}
|
|
|
|
- (NSDictionary *)nextWeekQueryParameters {
|
|
NSCalendarDate *date;
|
|
|
|
date = [[self startDate] dateByAddingYears:0 months:0 days:7
|
|
hours:0 minutes:0 seconds:0];
|
|
return [self queryParametersBySettingSelectedDate:date];
|
|
}
|
|
|
|
@end /* UIxCalWeekView */
|