Provide is_metered field via profile data 42/146842/2 accepted/tizen/unified/20170906.144609 submit/tizen/20170906.052809
authorWootak Jung <wootak.jung@samsung.com>
Thu, 31 Aug 2017 00:41:59 +0000 (09:41 +0900)
committersinikang <sinikang@samsung.com>
Wed, 6 Sep 2017 05:15:19 +0000 (14:15 +0900)
Change-Id: I7a5ef9356ecf4e2f9df57557f1483eafc7fce2a6

interface/src/ps_context_interface.c
packaging/tel-plugin-packetservice.spec

index 7d07d6de9d978feb34b8d3aa4ea68e3056dd4fd4..222d1db782c37efe2e36a62923bd221ccb421fba 100644 (file)
@@ -112,6 +112,13 @@ static GVariant *__ps_context_get_profile_properties(ps_context_t *context, GVar
        g_variant_builder_add(properties, "{ss}", "editable", BOOL2STRING(context->editable));
        g_variant_builder_add(properties, "{ss}", "default_internet_conn", BOOL2STRING(context->is_default));
        g_variant_builder_add(properties, "{ss}", "profile_enable", BOOL2STRING(context->profile_enable));
+       /*
+        * As a requirement for new feature, telephony needs to provide 'is_metered' field via profile data.
+        * This field would be used in DataSaver, and so on.
+        * But, telephony is not ready to support this feature completely. So, provides this field temporarily.
+        * (Firstly, if role of profile is 'internet', it returns TRUE, otherwise FALSE.)
+        */
+       g_variant_builder_add(properties, "{ss}", "is_metered", !g_strcmp0(s_role, "1") ? "TRUE" : "FALSE");
 
        /* Freeing locally allocated memory */
        g_free(s_authtype);
index da25fe97b2653417311e0a3d49b65fb391fcc29d..82af7a6258ad5b2b1337f76df53f1b164fb58484 100644 (file)
@@ -4,7 +4,7 @@
 
 %define major 0
 %define minor 4
-%define patchlevel 13
+%define patchlevel 14
 
 Name:           tel-plugin-packetservice
 Version:        %{major}.%{minor}.%{patchlevel}