Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add providers tab to advanced iap settings #2

Merged
merged 3 commits into from Aug 26, 2021

Conversation

MerlijnWajer
Copy link
Member

This adds support for selecting providers in the advanced internet settings.

I think the service_type should be a list of what we can find in gconf under /system/osso/connectivity/srv_provider.
The service_id I am less sure of, I think we need to figure out where we write those (they could indicate different provider configs, like different openvpn networks, or something).

Currently the values are just hardcoded and in sync with https://github.com/maemo-leste/libicd-provider-dummy/

@MerlijnWajer
Copy link
Member Author

Note (to self): this also relies on certain strings I have added to osso-connectivity-ui-l10n

@MerlijnWajer MerlijnWajer changed the title WIP: add providers tab to advanced iap settings Add providers tab to advanced iap settings Aug 24, 2021
@MerlijnWajer
Copy link
Member Author

The code reads the dir entries in /system/osso/connectivity/srv_provider, which is where ICD2 wants the providers placed, and then for specific provider IDs, it relies on a new key we have introduced (available_ids), here: "/system/osso/connectivity/srv_provider/%s/available_ids"

src/settings/advanced.c Outdated Show resolved Hide resolved
src/settings/advanced.c Outdated Show resolved Hide resolved
src/settings/advanced.c Outdated Show resolved Hide resolved
src/settings/advanced.c Show resolved Hide resolved
src/settings/advanced.c Show resolved Hide resolved
src/settings/advanced.c Show resolved Hide resolved
src/settings/advanced.c Outdated Show resolved Hide resolved
src/settings/advanced.c Outdated Show resolved Hide resolved
src/settings/advanced.c Outdated Show resolved Hide resolved
@MerlijnWajer MerlijnWajer force-pushed the wip-provider-support branch 2 times, most recently from 82b82b6 to c8e2f04 Compare August 26, 2021 16:17
Also read service types and ids from gconf.
It is unnecessarily complex to validate them against a list, since the
list needs to be provided up front, and we read them from gconf later,
so hacking that in would be quite some work, make the code less clean,
and ultimately there's not really a point: we already decide what goes
in the combo box, we don't need to validate it again.
@MerlijnWajer MerlijnWajer merged commit c8e2f04 into master Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants