2 Copyright (C) 2005 Helge Hess
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 __NGiCal_NGVCard_H__
23 #define __NGiCal_NGVCard_H__
25 #import <Foundation/NSObject.h>
30 Represents a vCard object.
32 XML DTD in Dawson-03 Draft:
33 <!ELEMENT vCard (%prop.man;, (%prop.opt;)*)>
38 'http://www.ietf.org/internet-drafts/draft-dawson-vcard-xml-dtd-02.txt'
39 xmlns:vcf CDATA #FIXED
40 'http://www.ietf.org/internet-drafts/draft-dawson-vcard-xml-dtd-02.txt'
41 version CDATA #REQUIRED
45 class (PUBLIC | PRIVATE | CONFIDENTIAL) "PUBLIC"
46 value NOTATION (VCARD) #IMPLIED>
47 <!-- version - Must be "3.0" if document conforms to this spec -->
48 <!-- rev - ISO 8601 formatted date or date/time string -->
49 <!-- uid - UID associated with the object described by the vCard -->
50 <!-- prodid - ISO 9070 FPI for product that generated vCard -->
51 <!-- class - Security classification for vCard information -->
58 @class NSString, NSArray, NSDictionary;
60 @interface NGVCard : NSObject
66 // TODO: 'rev' (datetime)
75 + (NSArray *)parseVCardsFromSource:(id)_src;
77 - (id)initWithUid:(NSString *)_uid version:(NSString *)_version;
81 - (NSString *)version;
83 - (void)setUid:(NSString *)_uid;
86 - (void)setVClass:(NSString *)_s;
88 - (void)setProdID:(NSString *)_s;
91 - (void)setTel:(NSArray *)_tel;
93 - (void)setAdr:(NSArray *)_adr;
95 - (void)setEmail:(NSArray *)_array;
97 - (void)setLabel:(NSArray *)_array;
100 - (void)setX:(NSDictionary *)_dict;
105 #endif /* __NGiCal_NGVCard_H__ */