mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-06-22 10:24:18 +00:00
Monotone-Parent: b4fb8a5b2019af495e57ab7338a4ee3204d34e25
Monotone-Revision: 90d0bb9c9e2993df03892b4e1648345dbbc8d83f Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-08-02T19:54:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -19,9 +19,11 @@
|
||||
02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include "SOGoContactObject.h"
|
||||
#include <NGiCal/NGVCard.h>
|
||||
#include "common.h"
|
||||
#import <NGiCal/NGVCard.h>
|
||||
|
||||
#import "common.h"
|
||||
#import "SOGoContactObject.h"
|
||||
#import "NSDictionary+Contact.h"
|
||||
|
||||
@implementation SOGoContactObject
|
||||
|
||||
@@ -92,14 +94,17 @@
|
||||
|
||||
/* specialized actions */
|
||||
|
||||
- (NSException *)saveRecord:(id)_record {
|
||||
- (NSException *) saveRecord: (id) _record
|
||||
{
|
||||
if ([_record isKindOfClass:[NGVCard class]]) {
|
||||
// TODO: implement a vCard generator
|
||||
return [NSException exceptionWithHTTPStatus:501 /* Not Implemented */
|
||||
reason:@"Saving vCards is not supported yet."];
|
||||
}
|
||||
|
||||
return [self saveContentString:[_record description]];
|
||||
|
||||
// return [self saveContentString: [_record description]];
|
||||
return
|
||||
[self saveContentString: [_record vcardContentFromSOGoContactRecord]];
|
||||
}
|
||||
|
||||
- (NSException *)patchField:(NSString *)_fname value:(NSString *)_value
|
||||
|
||||
Reference in New Issue
Block a user