Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6044733ybf; Thu, 5 Mar 2020 11:59:50 -0800 (PST) X-Google-Smtp-Source: ADFU+vuBzck/btxosideOWxvW02TOmUA88CEvyECYXA6IqmNkiwi0CWdnJAOsvuHCp6pmW0Az3bp X-Received: by 2002:aca:4987:: with SMTP id w129mr66199oia.103.1583438390752; Thu, 05 Mar 2020 11:59:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583438390; cv=none; d=google.com; s=arc-20160816; b=W9qAlaVaTFzThPEQMTLS5HPhgjHlm3LvPG1phoz9lX5I14UDAIe33eI6i/13+ajps2 G0yZwVAVMWpJ2YVbivyx5wbeGqJWRpqmk0K30L+/f23lVojelozpBvV8Vl0kVKkS2juF wCs0axHZ0QItnVJ7RVyuJdcK7H1qpXhxxbCYbIaVzAV/8w1urhEsiHPP/O/15/J0UxM6 yLK99NFTe4kxdJFTnnkSoLQESJia7j+ldTPe4UoKIG/82r0CYWFGqDd9+m2SdqUYtMy4 nXiYOnagnQi4mr47v8oJgNxZqqO4vjF1WxtGosx2ABD7eHgthnl3SlwVodO7HnG+7JHr bn7w== 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=KxwC4tLQfeP5d875XL/wkWB0a3DJ6GVzGhHeZk7jQnE=; b=nLRHt8yiAJpAmQaX/fF5ZnmmBdyZCGo8LqGb6Xzl22Ui19KfHqFerUOKKpcMNtXGom +b6qNeaAF3gaxM/2ec2yNPHXl1EqOx1hkNLnvenepms4uKBwrrl2LyIhbXfDUptWkdVX XV7tHlLTE7UTn6JSNyYuJATsao+p8l3bj0LvzLrsuDi55FOEV5RktBDCLCIUb2GKmhf8 HVsCy1m3byVYLOhY3AVTFeXIlLxoLhLhlt2H0lGutdZv+3AyrFVZp8/3IUMeDUp+44e3 MXwnQKF2Rs1CYVFJgLOgTT457InLlQIOs7FBMvTDK0YnDjbhIPhpYEtJCbGCjfOR7u3e 7z6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nfkfu9gp; 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 n17si4904oic.145.2020.03.05.11.59.38; Thu, 05 Mar 2020 11:59:50 -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=Nfkfu9gp; 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 S1726094AbgCET7A (ORCPT + 99 others); Thu, 5 Mar 2020 14:59:00 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:34176 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbgCET7A (ORCPT ); Thu, 5 Mar 2020 14:59:00 -0500 Received: by mail-ot1-f68.google.com with SMTP id j16so131253otl.1 for ; Thu, 05 Mar 2020 11:58:59 -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=KxwC4tLQfeP5d875XL/wkWB0a3DJ6GVzGhHeZk7jQnE=; b=Nfkfu9gpVB5vm3dSdK/zSTqebb7c0id6hYAUYnGUFnO7l+0fVDhcy61Ef74wVKAF/y 9KHaRllY3YwPkjsi8HClYAO0YeEZ+W40ezqxhP7PD1Zz2JxR25MYfnzRzB/dDc7nFlBJ C/7WY5mEXPxQpXYCMOfWABUBRVqNSFW7GXzhSLpcT6nxlNwPH9ivZtfcPbancpF1IdU8 iAENZRt5ZSTCD0+67I+5yA3WdxyMtd43fy1yWXkdN3moHnvhKy2FMbtAUb/Tsz/U8mbf wHMUzplT7LDWmw3QjQ0FC5lX5tt2vnhCPpH+2zEEVxPf8vYcwaX0T5Zn2+6bPsNY2EV7 V5qQ== 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=KxwC4tLQfeP5d875XL/wkWB0a3DJ6GVzGhHeZk7jQnE=; b=mIk5loFuT5vBvhNroitMrhRc8/Mz+8Mgb7kQ3Vc/I3U7aNLdIAKZv2+U1pSn74zA7P BWJV7KxDx+F9tsZvLIlH3vouFZwKiSPR7T2Hh1MQcD528Ban/i3aygaqihWnDZu/vBlC CQFTncDya/UnccN8krdO4M9exxvGrmQOkhSuClZYz3AhjSrwmTFXnny+/EC6C5oZbx+f m7yTHDcew3/fXgSL3q/qsY3Sf9GUHjQcWv2AVnepSlrKgnbQ/O2CYtrf93VjHKdc2SBN hz/UN3CH9WPt/rt+u+TKeQ50+nGoJKFDcnV7UM704NFlUtBPrN0IIeR9mjiaAS2SLOtM l1tA== X-Gm-Message-State: ANhLgQ0eqkbnYtKs9AURkcBHysJ/xiLjmmdovWmDNJgnpTzCASNqjak6 /g3egX+FNrfmQXL6WrPXwNp8JBP2TEujaf0v6mm9pWYi X-Received: by 2002:a9d:46e:: with SMTP id 101mr116570otc.11.1583438339366; Thu, 05 Mar 2020 11:58:59 -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: From: Luiz Augusto von Dentz Date: Thu, 5 Mar 2020 11:58:47 -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 11:53 AM Luiz Augusto von Dentz wrote: > > 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. Actually let me take this back, the properties appear to be very different so combining those objects might not be reusing much, so lets do this using ListConversation and Conversation1 objects with their own properties, that said the names I suggested bellow still hold. > > + 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 -- Luiz Augusto von Dentz