2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE 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 SOPE 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 SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __NGCards_iCalPerson_H__
23 #define __NGCards_iCalPerson_H__
25 #import "CardElement.h"
28 iCalPersonPartStatNeedsAction = 0, /* NEEDS-ACTION (DEFAULT) */
29 iCalPersonPartStatAccepted = 1, /* ACCEPTED */
30 iCalPersonPartStatDeclined = 2, /* DECLINED */
31 /* up to here defined for VJOURNAL */
32 iCalPersonPartStatTentative = 3, /* TENTATIVE */
33 iCalPersonPartStatDelegated = 4, /* DELEGATED */
34 /* up to here defined for VEVENT */
35 iCalPersonPartStatCompleted = 5, /* COMPLETED */
36 iCalPersonPartStatInProcess = 6, /* IN-PROCESS */
37 /* up to there defined for VTODO */
39 /* these are also defined for VJOURNAL, VEVENT and VTODO */
40 iCalPersonPartStatExperimental = 7, /* x-name */
41 iCalPersonPartStatOther = 8 /* iana-token */
44 @interface iCalPerson : CardElement
48 - (void)setCn:(NSString *)_s;
50 - (NSString *)cnWithoutQuotes;
52 - (void)setEmail:(NSString *)_s;
54 - (NSString *)rfc822Email; /* email without 'mailto:' prefix */
56 - (void)setRsvp:(NSString *)_s;
59 // - (void)setXuid:(NSString *)_s;
60 // - (NSString *)xuid;
62 - (void)setRole:(NSString *)_s;
65 - (void)setPartStat:(NSString *)_s;
66 - (NSString *)partStat;
67 - (NSString *)partStatWithDefault;
69 - (void)setParticipationStatus:(iCalPersonPartStat)_status;
70 - (iCalPersonPartStat)participationStatus;
72 - (BOOL)isEqualToPerson:(iCalPerson *)_other;
73 - (BOOL)hasSameEmailAddress:(iCalPerson *)_other;
77 #endif /* __NGCards_iCalPerson_H__ */