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:
Wolfgang Sourdeau
2006-09-13 21:27:28 +00:00
parent eb07b2ef21
commit 912cc2fe9a
2 changed files with 24 additions and 6 deletions
+7 -1
View File
@@ -1,9 +1,15 @@
2006-09-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Contacts/SOGoContactGCSEntry.m ([SOGoContactGCSEntry
-vCard]): create a new NGVCard instance when no data is available
and retain it.
([SOGoContactGCSEntry -save]): save the vCard using the new
"versitString" API method/message.
* UI/Contacts/UIxContactView.h: separated interface from
UIxContactView.m.
* UI/WebServerResources/ContactsUI.js: added code to download card
* UI/WebServerResources/ContactsUI.js: add-ed code to download card
views and display them beneath the list.
2006-09-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+17 -5
View File
@@ -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 */