Monotone-Parent: ea72255819157346b8579f8e17c6e9fb6c5c0d34

Monotone-Revision: a1294497e9f6ed0ee90d2f695f0735f2eb1ced11

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-08-10T21:44:25
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-08-10 21:44:25 +00:00
parent bfccdd5738
commit ac468edb0a
14 changed files with 322 additions and 271 deletions
+21
View File
@@ -60,6 +60,27 @@
return card;
}
/* actions */
- (NSException *) copyToFolder: (SOGoGCSFolder *) newFolder
{
NGVCard *newCard;
NSString *newUID;
SOGoContactGCSEntry *newContact;
// Change the contact UID
newUID = [self globallyUniqueObjectId];
newCard = [self vCard];
[newCard setUid: newUID];
newContact = [[self class] objectWithName:
[NSString stringWithFormat: @"%@.vcf", newUID]
inContainer: newFolder];
return [newContact saveContentString: [newCard versitString]];
}
/* DAV */
- (NSString *) davContentType
+21
View File
@@ -27,6 +27,7 @@
#import <NGCards/NGVCard.h>
#import <NGCards/CardVersitRenderer.h>
#import "SOGoContactGCSEntry.h"
#import "SOGoContactLDIFEntry.h"
@implementation SOGoContactLDIFEntry
@@ -200,6 +201,26 @@
{
}
/* DAV */
- (NSException *) copyToFolder: (SOGoGCSFolder *) newFolder
{
NGVCard *newCard;
NSString *newUID;
SOGoContactGCSEntry *newContact;
// Change the contact UID
newUID = [self globallyUniqueObjectId];
newCard = [self vCard];
[newCard setUid: newUID];
newContact = [SOGoContactGCSEntry objectWithName:
[NSString stringWithFormat: @"%@.vcf", newUID]
inContainer: newFolder];
return [newContact saveContentString: [newCard versitString]];
}
/* message type */
- (NSString *) outlookMessageClass