mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-25 16:12:44 +00:00
Merge branch 'master' of https://github.com/inverse-inc/sogo
This commit is contained in:
@@ -80,6 +80,8 @@ typedef enum {
|
||||
|
||||
- (NSArray *) calendarUIDs;
|
||||
|
||||
- (NSNumber *) activeTasks;
|
||||
|
||||
/* vevent UID handling */
|
||||
|
||||
- (NSString *) resourceNameForEventUID: (NSString *) _uid;
|
||||
|
||||
@@ -590,7 +590,6 @@ static iCalEvent *iCalEventK = nil;
|
||||
{
|
||||
/* this is used for group calendars (this folder just returns itself) */
|
||||
NSString *s;
|
||||
|
||||
s = [[self container] nameInContainer];
|
||||
// [self logWithFormat:@"CAL UID: %@", s];
|
||||
return [s isNotNull] ? [NSArray arrayWithObjects:&s count:1] : nil;
|
||||
@@ -3338,4 +3337,25 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir
|
||||
return users;
|
||||
}
|
||||
|
||||
- (NSNumber *) activeTasks
|
||||
{
|
||||
NSArray *tasksList;
|
||||
NSMutableArray *fields;
|
||||
NSNumber *activeTasks;
|
||||
|
||||
fields = [NSMutableArray arrayWithObjects: @"c_component", @"c_status", nil];
|
||||
|
||||
tasksList = [self bareFetchFields: fields
|
||||
from: nil
|
||||
to: nil
|
||||
title: nil
|
||||
component: @"vtodo"
|
||||
additionalFilters: @"c_status != 1 AND c_status != 3"];
|
||||
|
||||
activeTasks = [NSNumber numberWithInt:[tasksList count]];
|
||||
|
||||
return activeTasks;
|
||||
}
|
||||
|
||||
|
||||
@end /* SOGoAppointmentFolder */
|
||||
|
||||
Reference in New Issue
Block a user