mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-31 19:27:18 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user