2 Copyright (C) 2004-2005 SKYRIX Software AG
4 This file is part of OpenGroupware.org.
6 OGo is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 OGo is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with OGo; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #include "UIxCalDayView.h"
32 @interface UIxCalDayListview : UIxCalDayView
41 #include <SOGoUI/SOGoAptFormatter.h>
42 #include <SOGo/AgenorUserManager.h>
43 #include <SoObjects/Appointments/SOGoAppointmentFolder.h>
45 @implementation UIxCalDayListview
49 [self->currentUid release];
53 - (void)configureFormatters {
54 [super configureFormatters];
56 [self->aptFormatter setShortTitleOnly];
62 if (self->uids == nil) {
64 self->uids = [[[(SOGoAppointmentFolder *)[self clientObject] calendarUIDs]
65 sortedArrayUsingSelector:@selector(compareAscending:)]
71 - (void)setCurrentUid:(id)_currentUid { // TODO: NSString?
72 ASSIGN(self->currentUid, _currentUid);
75 return self->currentUid;
78 - (NSString *)cnForCurrentUid {
79 return [[AgenorUserManager sharedUserManager] getCNForUID:self->currentUid];
82 - (NSString *)shortTextForApt {
83 if (![self canAccessApt])
86 return [[self appointment] valueForKey:@"title"];
90 AgenorUserManager *um;
92 NSString *currentMail;
94 um = [AgenorUserManager sharedUserManager];
95 currentMail = [um getEmailForUID:self->currentUid];
96 mailChunk = [self->appointment valueForKey:@"partmails"];
98 return ([mailChunk rangeOfString:currentMail].length > 0) ? YES : NO;
101 @end /* UIxCalDayListview */