summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/backend/api.py
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@gmail.com>2014-07-02 12:14:59 -0300
committerIvan Alejandro <ivanalejandro0@gmail.com>2014-07-14 12:14:20 -0300
commit13c0b7cac822a33f7395e3f099a2d37251e2c759 (patch)
treedce4f3fa80a3b6e9fade199fdff30a5c055a8cab /src/leap/bitmask/backend/api.py
parentcf75e3575c33249a6f756dceb423c6ec7f6cd50e (diff)
Ask the backend for the country code.
Remove global variable in favor of a helper method that returns the country code. Needed in order to split backend/frontend.
Diffstat (limited to 'src/leap/bitmask/backend/api.py')
-rw-r--r--src/leap/bitmask/backend/api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/leap/bitmask/backend/api.py b/src/leap/bitmask/backend/api.py
index 012b3cbc..f8b8c699 100644
--- a/src/leap/bitmask/backend/api.py
+++ b/src/leap/bitmask/backend/api.py
@@ -26,6 +26,7 @@ API = (
"eip_can_start",
"eip_cancel_setup",
"eip_check_dns",
+ "eip_get_gateway_country_code",
"eip_get_gateways_list",
"eip_get_initialized_providers",
"eip_setup",
@@ -75,10 +76,12 @@ SIGNALS = (
"eip_disconnected",
"eip_dns_error",
"eip_dns_ok",
+ "eip_get_gateway_country_code",
"eip_get_gateways_list",
"eip_get_gateways_list_error",
"eip_get_initialized_providers",
"eip_network_unreachable",
+ "eip_no_gateway",
"eip_no_pkexec_error",
"eip_no_polkit_agent_error",
"eip_no_tun_kext_error",