Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6040652ybf; Thu, 5 Mar 2020 11:54:02 -0800 (PST) X-Google-Smtp-Source: ADFU+vvKUIfRGFTnVLvxnZdSpy28H/r0dTmlJvOxAwKRHswKjojkKs+jloYyPMmJOsYTUqRb+78e X-Received: by 2002:a9d:69cd:: with SMTP id v13mr127310oto.134.1583438042142; Thu, 05 Mar 2020 11:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583438042; cv=none; d=google.com; s=arc-20160816; b=K3Y3NRAZMSFQ7KBIEyaqbZOWa7gf1Fs63silAzcY4GeZRu5ab+1XyBXDt9XkV6sKzp cMDe2dKOcnWlnaZy360pMMBXczXXU1mnVz6LAwFzxJ9BFOgWm605jUpW9C4s1vCxyIcK aKyxAPKGUE3QfO8tpB91juchMxISYcLDd3lkkv8jpb342rg5iX0qWTnZJDNc1a+TN15E 5tvyZOsaKe7TVpsoNnbnNreGXi1o2tYjwiC7HgfhV+8I2bwVB4iV6oo0PBEyP8zD/HnS 4dgWJj2dHVc9D4nKdyprfyEf9/ZR0c6/5swO9KMuPneKHh4P3U4xjs/ZKKTqBbl7ijle Su0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rO7gpdouzEadijwOIOJCnHkimDQ32X9H1EfGtMe2aQs=; b=sEoKgF/z9D5dV35H43XnYtwxx0Zwkk2qH7KRBIqJbd4ZPOSe8RPqrY1ZkuI7fIUjfq V7VXSHCiKxinWXfsK62S5eLpRREyxUUsvU48sI1lWYeA+34hff9GNwUjB+RaixD309N4 AIjAwxSWGm5vxuBtwhzmKWMmoqmTQvQWY25Fz05pPwh91JojpsukNj75FfT6bGUcSDlq gRZBOkFq+vFX08jYfZtLYsyHENrtAyc6+yhoE0Wd5D1pvSwlUuYEXvEe+TyOiecYMJBl iQjP95beoxbeHjIlGIUeS1uhegmZeuLjP6NGq68nSsLaRfkB/4IGMD1gFarddARStd1Q 37Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mzo+Z9kt; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a1si4079104oto.87.2020.03.05.11.53.35; Thu, 05 Mar 2020 11:54:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Mzo+Z9kt; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725948AbgCETx3 (ORCPT + 99 others); Thu, 5 Mar 2020 14:53:29 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:37572 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbgCETx3 (ORCPT ); Thu, 5 Mar 2020 14:53:29 -0500 Received: by mail-ot1-f65.google.com with SMTP id b3so93344otp.4 for ; Thu, 05 Mar 2020 11:53:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rO7gpdouzEadijwOIOJCnHkimDQ32X9H1EfGtMe2aQs=; b=Mzo+Z9ktnuI9fEQbTxkvx9oI+2vpVZ9wRkqSY57/lkX7ggW2YD7AwaclWfDJUPQmst oAnMfShkP7OUiOBpu03DDXnJmLVhYJJyl6abd+BIHhVahXtz6X9aDFG3arxLAWR8wnDv ROXVVs+4R0s2RL0WIQ+vW/ZrXt62PZyVssmT+sgbwRnpF5Z22neCpejxdgi23esfPWcB atVXZXq9zm5oRTCwnMmR0K7pXaD9hlGYvSKDkH3uMDwJlaXrpq6gZjpQgud8amEvLM9r tV+xDlyvfO1AKzzzP48S5piRQ7xsNEkc0OdAnDD3nocd9W/SJpnzMCPMqoNYNoXG/A11 Mmtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rO7gpdouzEadijwOIOJCnHkimDQ32X9H1EfGtMe2aQs=; b=I3ZIomcPVXctpTFpEMEKkNEZVsAGB+dYLNyilGS4YThMsWobbcXLJVQ17XJK2iSb0Q 66q+0FFM46xgTLwczAkmmBGdvwmhj4oTMcZLYGT7EpmUqgPMkFint9wBgG4GP4IaUu8v AIlpIJhreZ6bLw1VgBo4n3aTQrvLz93SMgw6FJqv0Ty1ptfmecDqUKDx2vmz62WmMQIj y3vYWHLZmlG2jTY08N3UwEfxOpLkl48UC/TdDCMc7eRMOO5Q/B/VA4mNCZUOOzv8fURj a1z5A8JI0NokI96Ago78E7zyibaYj3ECMOw7X+9PEnEkRgV694cmkHpL2ZIXLYfLto91 gETA== X-Gm-Message-State: ANhLgQ3VRB9TguswcU1nVEi4DJXPICgjTUAce7NgWTxzP8DR11WcHj0Q 71xW1yL3gAQMNsZJjspRpHNJ15s6+2WwQ+wuZ7BVInxeRcM= X-Received: by 2002:a05:6830:1503:: with SMTP id k3mr143333otp.28.1583438008510; Thu, 05 Mar 2020 11:53:28 -0800 (PST) MIME-Version: 1.0 References: <1583398524-18749-1-git-send-email-ajay.kishore@intel.com> <1583398524-18749-6-git-send-email-ajay.kishore@intel.com> In-Reply-To: <1583398524-18749-6-git-send-email-ajay.kishore@intel.com> From: Luiz Augusto von Dentz Date: Thu, 5 Mar 2020 11:53:17 -0800 Message-ID: Subject: Re: [PATCH v3 6/6] doc/obex-api: Update documentation To: Ajay Kishore Cc: "linux-bluetooth@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Ajay, On Thu, Mar 5, 2020 at 1:21 AM Ajay Kishore wrote: > > This adds documentation with the conversation listing feature > --- > doc/obex-api.txt | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 50 insertions(+) > > diff --git a/doc/obex-api.txt b/doc/obex-api.txt > index f39355a..ef81460 100644 > --- a/doc/obex-api.txt > +++ b/doc/obex-api.txt > @@ -712,6 +712,44 @@ 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) If we are going to return Message1 objects this should reuse ListMessages and then use the Type filter to specify the types of message to list, if that is not present then it should list everything. > + 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: MaxListCount, LastActivityBegin, LastActivityEnd, > + ReadStatus, Recipient > + > + Each message is represented by an object path followed > + by a dictionary of the properties. > + > + Properties: > + > + string id: Properties should use the same format as methods in D-Bus, ID might be better. > + > + Conversation unique identification > + > + string last_activity: LastActivity > + Conversation timestamp for the last activity > + > + string chat_state: > + > + Conversation current chat state of the participants ChatState > + string presence_availability: > + > + Conversation participants availability Presence > + string presence_text: We could reuse Subject here. > + User defined status of the conversation > + > + Possible errors: org.bluez.obex.Error.InvalidArguments > + org.bluez.obex.Error.Failed > + > + I though we discussed about this but it seems that the properties here have no relation to Message1 which appears to be the objects you are creating so you will have to introduce these properties also in Message1, besides we need to include a new possible value for Type e.g. "Conversation" > void UpdateInbox(void) > > Request remote to update its inbox. > @@ -799,6 +837,18 @@ Filter: uint16 Offset: > Possible values: True for high priority or False for > non-high priority > > + string LastActivityBegin: > + > + Filter conversations by starting period. > + > + Possible values: Date in "YYYYMMDDTHHMMSS" format. > + > + string LastActivityEnd: > + > + Filter conversations by ending period. > + > + Possible values: Date in "YYYYMMDDTHHMMSS" format. > + > Message hierarchy > ================= > > -- > 2.7.4 > -- Luiz Augusto von Dentz