mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-22 15:14:21 +00:00
Monotone-Parent: e0a0e733ec72e96531ad1b2538744ad47d1f3f4e
Monotone-Revision: cdf891c19e0a872a6266d03991967a4aefb3ac82 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-05-15T21:49:50 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
06230336b7
commit
32f00e4839
2 files changed
+32
No files matched your search
@@ -1,5 +1,10 @@
|
||||
2007-05-15 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/Appointments/SOGoAppointmentFolder.m
|
||||
([SOGoAppointmentFolder -fetchContentObjectNames]): override
|
||||
method to return the events in the range of 2 weeks ago up to 4
|
||||
weeks from "now".
|
||||
|
||||
* UI/MailPartViewers/UIxMailPartTextViewer.m
|
||||
([UIxMailPartTextViewer -flatContentAsString]): use the new
|
||||
"stringByDetectingURLs" method to offer clickable urls.
|
||||
|
||||
@@ -1257,6 +1257,33 @@ static NSNumber *sharedYes = nil;
|
||||
return calendarFolders;
|
||||
}
|
||||
|
||||
- (NSArray *) fetchContentObjectNames
|
||||
{
|
||||
NSMutableArray *objectNames;
|
||||
NSArray *records;
|
||||
NSCalendarDate *today, *startDate, *endDate;
|
||||
|
||||
#warning this should be user-configurable
|
||||
objectNames = [NSMutableArray array];
|
||||
today = [[NSCalendarDate calendarDate] beginOfDay];
|
||||
[today setTimeZone: timeZone];
|
||||
|
||||
startDate = [today dateByAddingYears: 0 months: 0 days: -14
|
||||
hours: 0 minutes: 0 seconds: 0];
|
||||
endDate = [startDate dateByAddingYears: 0 months: 1 days: 0
|
||||
hours: 0 minutes: 0 seconds: 0];
|
||||
records = [self fetchFields: [NSArray arrayWithObject: @"c_name"]
|
||||
from: startDate to: endDate
|
||||
component: @"vevent"];
|
||||
[objectNames addObjectsFromArray: [records valueForKey: @"c_name"]];
|
||||
records = [self fetchFields: [NSArray arrayWithObject: @"c_name"]
|
||||
from: startDate to: endDate
|
||||
component: @"vtodo"];
|
||||
[objectNames addObjectsFromArray: [records valueForKey: @"c_name"]];
|
||||
|
||||
return objectNames;
|
||||
}
|
||||
|
||||
/* folder type */
|
||||
|
||||
- (NSString *) folderType
|
||||
|
||||
Reference in new issue
Block a user