All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Kishore, Ajay" <ajay.kishore@intel.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: "linux-bluetooth@vger.kernel.org" <linux-bluetooth@vger.kernel.org>
Subject: RE: [PATCH 6/6] doc/obex-api: Update documentation
Date: Tue, 24 Dec 2019 05:47:20 +0000	[thread overview]
Message-ID: <A4827819204CC641A5E2541E6709F15337DB052A@BGSMSX110.gar.corp.intel.com> (raw)
In-Reply-To: <CABBYNZLVARFpsMJsaA6aXnYZO8BD76C4WWi9zrLu5N3u=euPSg@mail.gmail.com>

Hi Luiz,

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org <linux-bluetooth-
> owner@vger.kernel.org> On Behalf Of Luiz Augusto von Dentz
> Sent: Wednesday, December 18, 2019 5:44 AM
> To: Kishore, Ajay <ajay.kishore@intel.com>
> Cc: linux-bluetooth@vger.kernel.org
> Subject: Re: [PATCH 6/6] doc/obex-api: Update documentation
> 
> Hi Ajay,
> 
> On Mon, Dec 16, 2019 at 1:54 AM Ajay Kishore <ajay.kishore@intel.com>
> wrote:
> >
> > This adds documentation with the conversation listing feature
> >
> > Signed-off-by: Ajay Kishore <ajay.kishore@intel.com>
> > ---
> >  doc/obex-api.txt | 65
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 65 insertions(+)
> >
> > diff --git a/doc/obex-api.txt b/doc/obex-api.txt index
> > f39355a..9a76159 100644
> > --- a/doc/obex-api.txt
> > +++ b/doc/obex-api.txt
> > @@ -712,6 +712,71 @@ Methods            void SetFolder(string name)
> >                         Possible errors: org.bluez.obex.Error.InvalidArguments
> >                                          org.bluez.obex.Error.Failed
> >
> > +
> > +
> > +               array{object, dict} listconversations(string folder,
> > + dict filter)
> 
> It should have been ListConversations to adhere with our D-Bus APIs, but
> read bellow.
Fixed and pushed in the new patch ([PATCH v2 6/6] doc/obex-api: Update documentation).
> 
> > +                       Returns an array containing the conversations found in the
> > +                       given subfolder of the current folder, or in the current
> > +                       folder if folder is empty.
> > +
> > +                       Possible Filters: LastActivityBegin, LastActivityEnd,
> > +                       ReadStatus, Recipient
> 
> So here is the big design question, why hasn't this been done as a filter to
> ListMessages? We could just have a couple of different properties to indicate
> it is a conversation rather than a single message, in any case we would need
> something like
> org.bluez.obex.Conversation1 to enumerate these objects, something that is
> not documented here.
I Agree that the few properties are similar in ListMessages  and ListConversations functions and can be implemented to just add few new properties.
But we thought to implement both these functions separately as in MAP specification also it is separated.
Also with this implementation it will easier to develop separate application for both the feature.
In the current implementation we are using org.bluez.obex.Conversation1 interface to enumerate and it is updated in the new patch ([PATCH v2 6/6] doc/obex-api: Update documentation).

> 
> 
> > +
> > +                       Properties:
> > +
> > +                               string id:
> > +
> > +                                       Conversation unique
> > + identification
> > +
> > +                               string name:
> > +
> > +                                       Conversation name
> > +
> > +                               string last_activity:
> > +
> > +                                       Conversation timestamp for the
> > + last activity
> > +
> > +                               boolean read_status:
> > +
> > +                                       Conversation read flag
> > +
> > +                               string version_counter:
> > +
> > +                                       128 bits version counter.
> > +                                       The ‘Conversation-Listing Version Counter’,
> > +                                       ‘Conversation Version Counter’, and ‘Folder
> > +                                       Version Counter’ are used to detect if something
> > +                                       has changed
> > +
> > +                               string summary:
> > +
> > +                                       Conversation summary
> > +
> > +                               string display:
> > +
> > +                                       Conversation participants name
> > +
> > +                               string chat_state:
> > +
> > +                                       Conversation current chat
> > + state of the participants
> > +
> > +                               string presence_availability:
> > +
> > +                                       Conversation  participants
> > + availability
> > +
> > +                               string presence_text:
> > +
> > +                                       User defined status of the
> > + conversation
> > +
> > +                               uint16 priority:
> > +
> > +                                       Conversation participant
> > + priority
> > +
> > +                       Possible errors: org.bluez.obex.Error.InvalidArguments
> > +                                        org.bluez.obex.Error.Failed
> > +
> > +
> >                 void UpdateInbox(void)
> >
> >                         Request remote to update its inbox.
> > --
> > 2.7.4
> >
> 
> 
> --
> Luiz Augusto von Dentz

Thanks.
Ajay Kishore

      reply	other threads:[~2019-12-24  5:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-16  9:28 [PATCH 6/6] doc/obex-api: Update documentation Ajay Kishore
2019-12-16  9:28 ` [PATCH v2 5/5] obexd: Handle MAP Event Report v1.1 and v1.2 Ajay Kishore
2019-12-18  0:13 ` [PATCH 6/6] doc/obex-api: Update documentation Luiz Augusto von Dentz
2019-12-24  5:47   ` Kishore, Ajay [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A4827819204CC641A5E2541E6709F15337DB052A@BGSMSX110.gar.corp.intel.com \
    --to=ajay.kishore@intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.