mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 06:52:40 +00:00
Monotone-Parent: 5d6117b540c7cfaeb6237176d146febccadfbf42
Monotone-Revision: 5426285a5c4220db81e2574ef6be30f2249cdecb Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-13T21:27:28 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
eb07b2ef21
commit
912cc2fe9a
2 files changed
+24
-6
No files matched your search
@@ -22,9 +22,7 @@
|
||||
#import <Foundation/NSArray.h>
|
||||
#import <Foundation/NSString.h>
|
||||
|
||||
#import <NGiCal/NGVCard.h>
|
||||
|
||||
#import "NGVCard+Contact.h"
|
||||
#import <NGCards/NGVCard.h>
|
||||
|
||||
#import "SOGoContactGCSEntry.h"
|
||||
|
||||
@@ -40,6 +38,13 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
if (card)
|
||||
[card release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
/* content */
|
||||
|
||||
- (NGVCard *) vCard
|
||||
@@ -54,8 +59,15 @@
|
||||
{
|
||||
cards = [NGVCard parseVCardsFromSource: contentStr];
|
||||
if ([cards count] > 0)
|
||||
card = [cards objectAtIndex: 0];
|
||||
{
|
||||
card = [cards objectAtIndex: 0];
|
||||
[card retain];
|
||||
}
|
||||
else
|
||||
card = [NGVCard new];
|
||||
}
|
||||
else
|
||||
card = [NGVCard new];
|
||||
}
|
||||
|
||||
return card;
|
||||
@@ -76,7 +88,7 @@
|
||||
|
||||
vcard = [self vCard];
|
||||
|
||||
return [self saveContentString: [vcard asString]];
|
||||
return [self saveContentString: [vcard versitString]];
|
||||
}
|
||||
|
||||
/* message type */
|
||||
|
||||
Reference in new issue
Block a user