aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-04-25 17:41:28 +0200
committerGuido Günther <agx@sigxcpu.org>2011-05-01 14:28:32 +0200
commit8981216d64d501530549836c49fc2844466f9de6 (patch)
treefd3f76c161b829ef72a522e16af6055a11b94030 /data
parent26c0560f6c4a5869859f7daf7e41f73d739e49cd (diff)
Store known providers and balance in gsettings
based on the IMSI of the SIM card
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am26
-rw-r--r--data/org.gnome.PrepaidManager.gschema.xml.in.in43
2 files changed, 69 insertions, 0 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
new file mode 100644
index 0000000..d97af90
--- /dev/null
+++ b/data/Makefile.am
@@ -0,0 +1,26 @@
+NULL =
+
+gsettings_SCHEMAS = org.gnome.PrepaidManager.gschema.xml
+
+@INTLTOOL_XML_NOMERGE_RULE@
+@GSETTINGS_RULES@
+
+%.gschema.xml.in: %.gschema.xml.in.in Makefile
+ $(AM_V_GEN) sed -e 's^\@GETTEXT_PACKAGE\@^$(GETTEXT_PACKAGE)^g' < $< > $@
+
+# We need to compile schemas at make time
+# to run from source tree
+gschemas.compiled: $(gsettings_SCHEMAS:.xml=.valid)
+ $(AM_V_GEN) $(GLIB_COMPILE_SCHEMAS) --targetdir=. .
+
+all-local: gschemas.compiled
+
+EXTRA_DIST = \
+ org.gnome.PrepaidManager.gschema.xml.in.in \
+ $(NULL)
+
+CLEANFILES = \
+ $(gsettings_SCHEMAS) \
+ gschemas.compiled \
+ $(NULL)
+
diff --git a/data/org.gnome.PrepaidManager.gschema.xml.in.in b/data/org.gnome.PrepaidManager.gschema.xml.in.in
new file mode 100644
index 0000000..2b75c8e
--- /dev/null
+++ b/data/org.gnome.PrepaidManager.gschema.xml.in.in
@@ -0,0 +1,43 @@
+<schemalist>
+ <schema id="org.gnome.PrepaidManager" path="/apps/prepaid-manager/" gettext-domain="@GETTEXT_PACKAGE@">
+ <key name="accounts" type="as">
+ <default>[]</default>
+ <_summary>Accounts</_summary>
+ <_description>
+ List of configured accounts. The account at your GSM/UMTS provider is
+ identified by the imsi on your SIM card.
+ </_description>
+ </key>
+ </schema>
+
+ <schema id="org.gnome.PrepaidManager.account" gettext-domain="@GETTEXT_PACKAGE@">
+ <key name="provider" type="s">
+ <default>""</default>
+ <_summary>The providers name</_summary>
+ <_description>
+ The name of the mobile broadband provider.
+ </_description>
+ </key>
+ <key name="country" type="s">
+ <default>""</default>
+ <_summary>The country the provider operates in</_summary>
+ <_description>
+ This is the country where you bought the SIM card.
+ </_description>
+ </key>
+ <key name="balance" type="s">
+ <default>"The current balance is unknown."</default>
+ <_summary>Balance</_summary>
+ <_description>
+ The current balance of this account.
+ </_description>
+ </key>
+ <key name="timestamp" type="s">
+ <default>""</default>
+ <_summary>Update timestamp</_summary>
+ <_description>
+ The last time the balance got updated.
+ </_description>
+ </key>
+ </schema>
+</schemalist>