From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] network: Add NetworkRegistration.OperatorsChanged signal
Date: Mon, 12 Jan 2015 23:29:10 -0600 [thread overview]
Message-ID: <54B4AD26.2090209@gmail.com> (raw)
In-Reply-To: <1420032256-2616-1-git-send-email-slava.monich@jolla.com>
[-- Attachment #1: Type: text/plain, Size: 1656 bytes --]
Hi Slava,
On 12/31/2014 07:24 AM, Slava Monich wrote:
> This signal gets emitted when operator list has changed.
> It contains the current list of operators.
> ---
> doc/network-api.txt | 5 +++++
> src/network.c | 44 +++++++++++++++++++++++++++++++++++++++++++-
> 2 files changed, 48 insertions(+), 1 deletion(-)
>
Please refer to HACKING, 'Submitting patches' section, item 3.
3) Split your patch according to the top-level directories. E.g.: if you
added
a feature that touches files under 'include/', 'src/' and 'drivers/'
directories, split in three separated patches, taking care not to
break compilation.
> diff --git a/doc/network-api.txt b/doc/network-api.txt
> index 83a2bc0..d635ba7 100644
> --- a/doc/network-api.txt
> +++ b/doc/network-api.txt
> @@ -57,6 +57,11 @@ Signals PropertyChanged(string property, variant value)
> This signal indicates a changed value of the given
> property.
>
> + OperatorsChanged(array{object,dict})
> +
> + Signal that gets emitted when operator list has
> + changed. It contains the current list of operators.
> +
I support the spirit of this change. However, it is really not
consistent with the other APIs of this sort. For example:
Manager.ModemAdded, Manager.ModemRemoved
MessageManager.MessageAdded, MessageManager.MessageRemoved
ConnectionManager.ContextAdded, ConnectionManager.ContextRemoved
The name is also a bit misleading, since certain attribute changes are
not tracked by update_operator_list...
I think it would be better if we introduced OperatorAdded and
OperatorRemoved signals instead.
Regards,
-Denis
prev parent reply other threads:[~2015-01-13 5:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-31 13:24 [PATCH] network: Add NetworkRegistration.OperatorsChanged signal Slava Monich
2015-01-13 5:29 ` Denis Kenzior [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=54B4AD26.2090209@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox