style(addressbook(obj-c)): add comments
parent
fef5003d92
commit
00846c463c
|
@ -480,6 +480,7 @@ convention:
|
||||||
max = [elements count];
|
max = [elements count];
|
||||||
if (max > 0)
|
if (max > 0)
|
||||||
{
|
{
|
||||||
|
// We convert two email addresses at most
|
||||||
workMail = [self _simpleValueForType: @"work"
|
workMail = [self _simpleValueForType: @"work"
|
||||||
inArray: elements excluding: nil];
|
inArray: elements excluding: nil];
|
||||||
homeMail = [self _simpleValueForType: @"home"
|
homeMail = [self _simpleValueForType: @"home"
|
||||||
|
@ -539,6 +540,11 @@ convention:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert vCard to LDIF using the Mozilla LDAP Address Book Schema
|
||||||
|
*
|
||||||
|
* https://wiki.mozilla.org/MailNews:Mozilla_LDAP_Address_Book_Schema
|
||||||
|
*/
|
||||||
- (NSMutableDictionary *) asLDIFRecord
|
- (NSMutableDictionary *) asLDIFRecord
|
||||||
{
|
{
|
||||||
NSArray *elements, *categories;
|
NSArray *elements, *categories;
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 2006-2011 Inverse inc.
|
Copyright (C) 2006-2017 Inverse inc.
|
||||||
Copyright (C) 2004-2005 SKYRIX Software AG
|
|
||||||
|
|
||||||
This file is part of SOGo.
|
This file is part of SOGo.
|
||||||
|
|
||||||
|
|
|
@ -136,8 +136,14 @@
|
||||||
NSArray *type;
|
NSArray *type;
|
||||||
|
|
||||||
resourceType = [NSMutableArray arrayWithArray: [super davResourceType]];
|
resourceType = [NSMutableArray arrayWithArray: [super davResourceType]];
|
||||||
|
|
||||||
|
// CARDDAV:addressbook
|
||||||
|
// https://datatracker.ietf.org/doc/html/rfc6352#section-5.2
|
||||||
type = [NSArray arrayWithObjects: @"addressbook", XMLNS_CARDDAV, nil];
|
type = [NSArray arrayWithObjects: @"addressbook", XMLNS_CARDDAV, nil];
|
||||||
[resourceType addObject: type];
|
[resourceType addObject: type];
|
||||||
|
|
||||||
|
// CARDDAV:directory
|
||||||
|
// https://datatracker.ietf.org/doc/html/draft-daboo-carddav-directory-gateway-02#section-4.1
|
||||||
type = [NSArray arrayWithObjects: @"directory", XMLNS_CARDDAV, nil];
|
type = [NSArray arrayWithObjects: @"directory", XMLNS_CARDDAV, nil];
|
||||||
[resourceType addObject: type];
|
[resourceType addObject: type];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue