diff --git a/SoObjects/Contacts/NGVCard+Contact.h b/SoObjects/Contacts/NGVCard+Contact.h deleted file mode 100644 index e2d2605f9..000000000 --- a/SoObjects/Contacts/NGVCard+Contact.h +++ /dev/null @@ -1,34 +0,0 @@ -/* NGVCard+Contact.h - this file is part of SOGo - * - * Copyright (C) 2006 Inverse groupe conseil - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef NGVCARD_CONTACT_H -#define NGVCARD_CONTACT_H - -#import - -@interface NGVCard (SOGOContactExtension) - -- (NSString *) asString; - -@end - -#endif /* NGVCARD+CONTACT_H */ diff --git a/SoObjects/Contacts/NGVCard+Contact.m b/SoObjects/Contacts/NGVCard+Contact.m deleted file mode 100644 index 257a5d140..000000000 --- a/SoObjects/Contacts/NGVCard+Contact.m +++ /dev/null @@ -1,102 +0,0 @@ -/* NGVCard+Contact.m - this file is part of SOGo - * - * Copyright (C) 2006 Inverse groupe conseil - * - * Author: Wolfgang Sourdeau - * - * 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 -#import - -#import - -#import "NGVCardSimpleValue+Contact.h" -#import "NGVCard+Contact.h" - -@implementation NGVCard (SOGOContactExtension) - -- (NSString *) asString -{ - NSMutableString *vCardString; - NSArray *infos; - unsigned int count, max; - - vCardString = [NSMutableString new]; - [vCardString autorelease]; - - [vCardString appendFormat: @"BEGIN:VCARD\r\n" - @"VERSION:%@\r\n" - @"PRODID:%@\r\n" - @"PROFILE:%@\r\n", - [self version], [self prodID], [self profile]]; - [vCardString appendFormat: @"FN:%@\r\n", [self fn]]; - [vCardString appendFormat: @"N:%@\r\n", [[self n] stringValue]]; - - infos = [self email]; - if ([infos count] > 0) - [vCardString appendFormat: @"EMAIL;TYPE=internet,pref:%@\r\n", - [infos objectAtIndex: 0]]; - - infos = [self tel]; - max = [infos count]; - for (count = 0; count < max; count++) - [vCardString appendFormat: @"%@\r\n", - [[infos objectAtIndex: count] vCardEntryString]]; - -// } -// count = -// if ([infos count] > 0) -// [vCardString appendFormat: @"EMAIL;TYPE=internet,pref:%@\r\n", -// [infos objectAtIndex: 0]]; - -// [self _appendArrayedVCardValues: -// [NSArray arrayWithObjects: @"sn", @"givenName", nil] -// withFormat: @"N:%@;;;\r\n" -// toVCard: vCardString]; -// [self _appendSingleVCardValue: @"telephoneNumber" -// withFormat: @"TEL;TYPE=work,voice,pref:%@\r\n" -// toVCard: vCardString]; -// [self _appendSingleVCardValue: @"facsimileTelephoneNumber" -// withFormat: @"TEL;TYPE=work,fax:%@\r\n" -// toVCard: vCardString]; -// [self _appendSingleVCardValue: @"homeTelephoneNumber" -// withFormat: @"TEL;TYPE=home,voice:%@\r\n" -// toVCard: vCardString]; -// [self _appendSingleVCardValue: @"mobile" -// withFormat: @"TEL;TYPE=cell,voice:%@\r\n" -// toVCard: vCardString]; -// [self _appendArrayedVCardValues: -// [NSArray arrayWithObjects: @"l", @"departmentNumber", nil] -// withFormat: @"ORG:%@\r\n" -// toVCard: vCardString]; -// [self _appendMultilineVCardValue: @"postalAddress" -// withFormat: @"ADR:TYPE=work,postal:%@\r\n" -// toVCard: vCardString]; -// [self _appendMultilineVCardValue: @"homePostalAddress" -// withFormat: @"ADR:TYPE=home,postal:%@\r\n" -// toVCard: vCardString]; -// [self _appendSingleVCardValue: @"labelledURI" -// withFormat: @"URL:%@\r\n" -// toVCard: vCardString]; - - [vCardString appendString: @"END:VCARD\r\n"]; - - return vCardString; -} - -@end diff --git a/SoObjects/Contacts/NGVCardSimpleValue+Contact.h b/SoObjects/Contacts/NGVCardSimpleValue+Contact.h deleted file mode 100644 index dc627a413..000000000 --- a/SoObjects/Contacts/NGVCardSimpleValue+Contact.h +++ /dev/null @@ -1,34 +0,0 @@ -/* NGVCardSimpleValue+Contact.h - this file is part of SOGo - * - * Copyright (C) 2006 Inverse groupe conseil - * - * Author: Wolfgang Sourdeau - * - * 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. - */ - -#ifndef NGVCARDSIMPLEVALUE_CONTACT_H -#define NGVCARDSIMPLEVALUE_CONTACT_H - -#import - -@interface NGVCardSimpleValue (SOGoContact) - -- (NSString *) vCardEntryString; - -@end - -#endif /* NGVCARDSIMPLEVALUE_CONTACT_H */ diff --git a/SoObjects/Contacts/NGVCardSimpleValue+Contact.m b/SoObjects/Contacts/NGVCardSimpleValue+Contact.m deleted file mode 100644 index 79e07049f..000000000 --- a/SoObjects/Contacts/NGVCardSimpleValue+Contact.m +++ /dev/null @@ -1,43 +0,0 @@ -/* NGVCardSimpleValue+Contact.m - this file is part of SOGo - * - * Copyright (C) 2006 Inverse groupe conseil - * - * Author: Wolfgang Sourdeau - * - * 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 - -#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