Return-Path: MIME-Version: 1.0 In-Reply-To: <20120828011708.GA11305@x220.sheraton.com> References: <1345816795-14092-1-git-send-email-luiz.dentz@gmail.com> <1345816795-14092-7-git-send-email-luiz.dentz@gmail.com> <20120828011708.GA11305@x220.sheraton.com> Date: Tue, 28 Aug 2012 10:00:45 +0300 Message-ID: Subject: Re: [PATCH obexd 7/7] client-doc: Update documentation of PhonebookAccess interface From: Luiz Augusto von Dentz To: Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Johan, On Tue, Aug 28, 2012 at 4:17 AM, Johan Hedberg wrote: > Hi Luiz, > > On Fri, Aug 24, 2012, Luiz Augusto von Dentz wrote: >> --- >> doc/client-api.txt | 180 ++++++++++++++++++++++++++++++++++++++++++----------- >> 1 file changed, 145 insertions(+), 35 deletions(-) > > I had a chat with Marcel about this API which resulted with the > following change proposals: > >> + string Order: >> + >> + Items order >> + >> + Possible values: "indexed" (default), >> + "alphanumeric" or "phonetic" >> + >> + uint16 Offset: >> + >> + Offset of the first item, default is 0 >> + >> + uint16 Items: >> + >> + Maximum number of items, default is >> + unlimited (65535) > > Call this MaxCount or Count to make it clearer. Will do it. >> + >> + array{string} Fields: >> + >> + Item vcard fields, default is all >> + values. >> + >> + Possible values: >> + >> + "VERSION", >> + "FN", >> + "N", >> + "PHOTO", >> + "BDAY", >> + "ADR", >> + "LABEL", >> + "TEL", >> + "EMAIL", >> + "MAILER", >> + "TZ", >> + "GEO", >> + "TITLE", >> + "ROLE", >> + "LOGO", >> + "AGENT", >> + "ORG", >> + "NOTE", >> + "REV", >> + "SOUND", >> + "URL", >> + "UID", >> + "KEY", >> + "NICKNAME", >> + "CATEGORIES", >> + "PROID", >> + "CLASS", >> + "SORT-STRING", >> + "X-IRMC-CALL-DATETIME" > > Make these lower case (I know it's upper case in the spec. but let's > keep the consistency with the rest of the D-Bus API). Sure >> @@ -244,8 +325,54 @@ Methods void Select(string location, string phonebook) >> The properties of this transfer are also returned along >> with the object path, to avoid a call to GetProperties. >> >> + filters: >> + >> + string Format: >> + >> + Items vcard format >> + >> + Possible values: "vcard21" (default) or >> + "vcard30" >> + >> + array{string} Fields: >> + >> + Item vcard fields, default is all >> + values. >> + >> + Possible values: >> + >> + "VERSION", >> + "FN", >> + "N", >> + "PHOTO", >> + "BDAY", >> + "ADR", >> + "LABEL", >> + "TEL", >> + "EMAIL", >> + "MAILER", >> + "TZ", >> + "GEO", >> + "TITLE", >> + "ROLE", >> + "LOGO", >> + "AGENT", >> + "ORG", >> + "NOTE", >> + "REV", >> + "SOUND", >> + "URL", >> + "UID", >> + "KEY", >> + "NICKNAME", >> + "CATEGORIES", >> + "PROID", >> + "CLASS", >> + "SORT-STRING", >> + "X-IRMC-CALL-DATETIME" > > Is this a duplicate of the previous section. Maybe just move this out to > a common section and the refer to it from the places that need it. Depending on the method some parameters may not be valid, but maybe we can have a section explaining the filters parameter then in each of method we just enumerate what are the possible parameters for its filter. -- Luiz Augusto von Dentz