Top | ![]() |
![]() |
![]() |
![]() |
gchar * | country-codes | Read / Write / Construct Only |
gchar * | service-providers | Read / Write / Construct Only |
GBoxed ├── NMACountryInfo ├── NMAMobileAccessMethod ╰── NMAMobileProvider GObject ╰── NMAMobileProvidersDatabase
NMAMobileAccessMethod *
nma_mobile_access_method_ref (NMAMobileAccessMethod *method
);
void
nma_mobile_access_method_unref (NMAMobileAccessMethod *method
);
const gchar *
nma_mobile_access_method_get_name (NMAMobileAccessMethod *method
);
const gchar *
nma_mobile_access_method_get_username (NMAMobileAccessMethod *method
);
const gchar *
nma_mobile_access_method_get_password (NMAMobileAccessMethod *method
);
const gchar *
nma_mobile_access_method_get_gateway (NMAMobileAccessMethod *method
);
const gchar **
nma_mobile_access_method_get_dns (NMAMobileAccessMethod *method
);
const gchar *
nma_mobile_access_method_get_3gpp_apn (NMAMobileAccessMethod *method
);
NMAMobileFamily
nma_mobile_access_method_get_family (NMAMobileAccessMethod *method
);
NMAMobileProvider *
nma_mobile_provider_ref (NMAMobileProvider *provider
);
const gchar *
nma_mobile_provider_get_name (NMAMobileProvider *provider
);
GSList *
nma_mobile_provider_get_methods (NMAMobileProvider *provider
);
the list of NMAMobileAccessMethod this provider exposes.
[element-type NMAMobileAccessMethod][transfer none]
const gchar **
nma_mobile_provider_get_3gpp_mcc_mnc (NMAMobileProvider *provider
);
const guint32 *
nma_mobile_provider_get_cdma_sid (NMAMobileProvider *provider
);
const gchar *
nma_country_info_get_country_code (NMACountryInfo *country_info
);
const gchar *
nma_country_info_get_country_name (NMACountryInfo *country_info
);
GSList *
nma_country_info_get_providers (NMACountryInfo *country_info
);
the list of NMAMobileProvider this country exposes.
[element-type NMAMobileProvider][transfer none]
void nma_mobile_providers_database_new (const gchar *country_codes
,const gchar *service_providers
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
country_codes |
Path to the country codes file. |
[allow-none] |
service_providers |
Path to the service providers file. |
[allow-none] |
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied. |
|
user_data |
User data to pass to |
NMAMobileProvidersDatabase * nma_mobile_providers_database_new_finish (GAsyncResult *res
,GError **error
);
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
The constructed object or NULL
if error
is set.
[transfer full][type NMAMobileProvidersDatabase]
NMAMobileProvidersDatabase * nma_mobile_providers_database_new_sync (const gchar *country_codes
,const gchar *service_providers
,GCancellable *cancellable
,GError **error
);
country_codes |
Path to the country codes file. |
[allow-none] |
service_providers |
Path to the service providers file. |
[allow-none] |
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
The constructed object or NULL
if error
is set.
[transfer full][type NMAMobileProvidersDatabase]
GHashTable *
nma_mobile_providers_database_get_countries
(NMAMobileProvidersDatabase *self
);
a hash table where keys are country names gchar and values are NMACountryInfo.
[element-type utf8 NMACountryInfo][transfer none]
void
nma_mobile_providers_database_dump (NMAMobileProvidersDatabase *self
);
NMACountryInfo * nma_mobile_providers_database_lookup_country (NMAMobileProvidersDatabase *self
,const gchar *country_code
);
NMAMobileProvider * nma_mobile_providers_database_lookup_3gpp_mcc_mnc (NMAMobileProvidersDatabase *self
,const gchar *mccmnc
);
NMAMobileProvider * nma_mobile_providers_database_lookup_cdma_sid (NMAMobileProvidersDatabase *self
,guint32 sid
);
gboolean nma_mobile_providers_split_3gpp_mcc_mnc (const gchar *mccmnc
,gchar **mcc
,gchar **mnc
);
Splits the input MCCMNC string into separate MCC and MNC strings.
“country-codes”
property“country-codes” gchar *
Path to the country codes file.
Flags: Read / Write / Construct Only
Default value: NULL
“service-providers”
property“service-providers” gchar *
Path to the service providers file.
Flags: Read / Write / Construct Only
Default value: NULL