Merge lp:~jonas-drange/gsettings-ubuntu-touch-schemas/phone-settings into lp:gsettings-ubuntu-touch-schemas

Proposed by Jonas G. Drange
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 44
Merged at revision: 36
Proposed branch: lp:~jonas-drange/gsettings-ubuntu-touch-schemas/phone-settings
Merge into: lp:gsettings-ubuntu-touch-schemas
Diff against target: 64 lines (+22/-2)
4 files modified
po/POTFILES.in (+1/-0)
po/POTFILES.skip (+1/-0)
schemas/Makefile.am (+3/-2)
schemas/com.ubuntu.phone.gschema.xml.in.in (+17/-0)
To merge this branch: bzr merge lp:~jonas-drange/gsettings-ubuntu-touch-schemas/phone-settings
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Sebastien Bacher (community) Approve
Iain Lane Approve
Review via email: mp+228620@code.launchpad.net

Commit message

[touch/phone] add new schema for phone settings, populated with sim name and default settings

Description of the change

Hi,

this schema will let USS, Messaging app and Dialer app know what SIM to use for calls and messages. It will also let the user name each SIM.

Thanks

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

So what will the consumers do if the user empties the key or removes the ril_whatever entries?

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

On Thu, Jul 31, 2014 at 10:00 AM, Iain Lane <email address hidden>
wrote:

> So what will the consumers do if the user empties the key or removes the
> ril_whatever entries?
>
> I would ​show the subscriber number(s) or SIMS number.

And you mean what happens if the user fiddles with the schema itself? ​

Revision history for this message
Iain Lane (laney) wrote :

No, I was getting at the defaults thing. You called them immutable but any code will have to handle the empty or missing case anyway so I wonder why you don't make the default be empty - the current default seems kind of arbitrary.

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

On Thu, Jul 31, 2014 at 12:23 PM, Iain Lane <email address hidden>
wrote:

> No, I was getting at the defaults thing. You called them immutable but any
> code will have to handle the empty or missing case anyway so I wonder why
> you don't make the default be empty - the current default seems kind of
> arbitrary.

​True. I think my understanding of defaults is a bit too narrow. Let's
leave it out of the schema.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Iain Lane (laney) wrote :

Thanks. I should have noticed earlier (Seb reminded me today). We're trying to move away from 'touch' in the namespaces (see sound). Could you call this com.ubuntu.phone please?

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Yep, done.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, there is a small spacing issue, looks fine otherwise

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Fixed spacing issue.

Revision history for this message
Iain Lane (laney) wrote :

This looks good to me now, thanks

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

Looks fine, ideally the description format would be consistent on the use of a "." but I'm not going to block on that (still if you want to change it, please do)

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'po/POTFILES.in'
2--- po/POTFILES.in 2014-02-24 12:01:25 +0000
3+++ po/POTFILES.in 2014-07-31 14:19:31 +0000
4@@ -1,5 +1,6 @@
5 # List of source files containing translatable strings.
6 # Please keep this list in alphabetic order.
7+schemas/com.ubuntu.phone.gschema.xml.in.in
8 schemas/com.ubuntu.touch.network.gschema.xml.in.in
9 schemas/com.ubuntu.touch.sound.gschema.xml.in.in
10 schemas/com.ubuntu.touch.system.gschema.xml.in.in
11
12=== modified file 'po/POTFILES.skip'
13--- po/POTFILES.skip 2014-02-24 12:01:58 +0000
14+++ po/POTFILES.skip 2014-07-31 14:19:31 +0000
15@@ -1,6 +1,7 @@
16 # List of source files containing translatable strings that should not be
17 # translated.
18 # Please keep this file sorted alphabetically.
19+schemas/com.ubuntu.phone.gschema.xml.in
20 schemas/com.ubuntu.touch.network.gschema.xml.in
21 schemas/com.ubuntu.touch.sound.gschema.xml.in
22 schemas/com.ubuntu.touch.system.gschema.xml.in
23
24=== modified file 'schemas/Makefile.am'
25--- schemas/Makefile.am 2014-02-24 11:36:24 +0000
26+++ schemas/Makefile.am 2014-07-31 14:19:31 +0000
27@@ -1,4 +1,5 @@
28-desktop_gschemas_in_in = \
29+desktop_gschemas_in_in = \
30+ com.ubuntu.phone.gschema.xml.in.in \
31 com.ubuntu.touch.network.gschema.xml.in.in \
32 com.ubuntu.touch.sound.gschema.xml.in.in \
33 com.ubuntu.touch.system.gschema.xml.in.in \
34@@ -19,7 +20,7 @@
35 @GSETTINGS_RULES@
36
37 EXTRA_DIST = \
38- $(desktop_gschemas_in_in)
39+ $(desktop_gschemas_in_in)
40
41 CLEANFILES = \
42 $(gsettings_SCHEMAS) \
43
44=== added file 'schemas/com.ubuntu.phone.gschema.xml.in.in'
45--- schemas/com.ubuntu.phone.gschema.xml.in.in 1970-01-01 00:00:00 +0000
46+++ schemas/com.ubuntu.phone.gschema.xml.in.in 2014-07-31 14:19:31 +0000
47@@ -0,0 +1,17 @@
48+<schemalist gettext-domain="gsettings-ubuntu-touch-schemas">
49+ <schema id="com.ubuntu.phone" path="/com/ubuntu/phone/">
50+ <key name="sim-names" type="a{ss}">
51+ <_summary>Name per modem path</_summary>
52+ <default>{}</default>
53+ <_description>Mapping of modem paths to SIM names.</_description>
54+ </key>
55+ <key name="default-sim-for-calls" type="s">
56+ <default>"ask"</default>
57+ <_description>Default sim card to use for calls, defined by a modem path or "ask".</_description>
58+ </key>
59+ <key name="default-sim-for-messages" type="s">
60+ <default>"ask"</default>
61+ <_description>Default sim card to use for messages, defined by a modem path or "ask".</_description>
62+ </key>
63+ </schema>
64+</schemalist>

Subscribers

People subscribed via source and target branches