mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 19:12:44 +00:00
Monotone-Parent: 10b56ee326ca77f71fbe5cb41d30b0640a6fe57a
Monotone-Revision: 494c37e329faf06b93265c155db7226d205150b0 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-09-13T21:20:57 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -38,25 +38,11 @@
|
||||
[self->snapshot release];
|
||||
[self->anaisCN release];
|
||||
[self->errorText release];
|
||||
[self->contentString release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
/* accessors */
|
||||
|
||||
- (void)setContentString:(NSString *)_cstr
|
||||
{
|
||||
ASSIGNCOPY(self->contentString, _cstr);
|
||||
}
|
||||
|
||||
- (NSString *)contentString {
|
||||
return self->contentString;
|
||||
}
|
||||
|
||||
- (NSString *)contentStringTemplate {
|
||||
return @"{}"; /* empty property list */
|
||||
}
|
||||
|
||||
- (NSMutableDictionary *) snapshot
|
||||
{
|
||||
NSString *email;
|
||||
@@ -92,24 +78,6 @@
|
||||
|
||||
/* load/store content format */
|
||||
|
||||
- (void)loadValuesFromContentString:(NSString *)_s {
|
||||
NSDictionary *plist;
|
||||
|
||||
if ([_s hasPrefix:@"BEGIN:VCARD"]) {
|
||||
// TODO: load vCard values
|
||||
[self errorWithFormat:@"Editing of vCard's is not yet supported!"];
|
||||
return;
|
||||
}
|
||||
|
||||
if ((plist = [_s propertyList]) == nil) {
|
||||
[self errorWithFormat:@"could not parse content string!"];
|
||||
return;
|
||||
}
|
||||
|
||||
[self->snapshot removeAllObjects];
|
||||
[self->snapshot addEntriesFromDictionary:plist];
|
||||
}
|
||||
|
||||
- (void)_fixupSnapshot {
|
||||
// TODO: perform sanity checking, eg build CN on demand
|
||||
NSString *cn, *gn, *sn;
|
||||
|
||||
Reference in New Issue
Block a user