sogo/SoObjects/Contacts/NGVCardSimpleValue+Contact.m
Wolfgang Sourdeau 3ef76c0b8c Monotone-Parent: 9ddb8a8c0200ef2ba32370aff1ace4928f5fad1c
Monotone-Revision: 303ddd8a8e16f590ab977483cbbff96e6bc504b8

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-08-09T21:15:49
Monotone-Branch: ca.inverse.sogo
2006-08-09 21:15:49 +00:00

44 lines
1.3 KiB
Objective-C

/* NGVCardSimpleValue+Contact.m - this file is part of SOGo
*
* Copyright (C) 2006 Inverse groupe conseil
*
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This file is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#import <Foundation/NSArray.h>
#import "NGVCardSimpleValue+Contact.h"
@implementation NGVCardSimpleValue (SOGoContact)
- (NSString *) vCardEntryString
{
NSMutableString *string;
NSArray *data;
string = [NSMutableString stringWithFormat: @"%@", [self group]];
data = [self types];
if ([data count] > 0)
[string appendFormat: @";TYPE=%@", [data componentsJoinedByString: @","]];
[string appendFormat: @":%@", value];
return string;
}
@end