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:
Wolfgang Sourdeau
2006-08-02 19:54:02 +00:00
parent bc733caf4b
commit 01edf54a1a
5 changed files with 167 additions and 6 deletions
+11 -6
View File
@@ -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