Adriaan de Groot
7899ab83f9
[libcalamares] Remove convenience API
2019-05-03 11:35:13 -04:00
Adriaan de Groot
44cbb0d374
[libcalamares] Drop alternate-config handling for GeoIP
...
- Dealing with legacy formats and alternate configurations
is something that consumers should do (and then hand off
to the 3-string constructor) instead.
2019-05-03 11:21:01 -04:00
Adriaan de Groot
fc76313ea6
[libcalamares] Implement GeoIP Handler config from map
...
- read map entries with alternate keys
- delegate to other constructor
2019-05-03 11:06:36 -04:00
Adriaan de Groot
d5fe86c394
[libcalamares] Use NamedEnum for named-enum wrangling
2019-05-03 11:00:57 -04:00
Adriaan de Groot
2f2adb3623
[libcalamares] Implement async GeoIP::Handler::query()
...
- do this the cheap way by splitting the synchronous API into a
free function and then calling that through QtConcurrent.
2019-05-02 11:17:55 -04:00
Adriaan de Groot
84a759a591
[libcalamares] Emphasise that GeoIP::Handler::get() is synchronous
...
- prep-work for also having an async API
2019-05-02 11:06:08 -04:00
Adriaan de Groot
1da580f43d
[libcalamares] Implement Handler's synchronous query()
...
- Steal code from existing tests for a synchronous HTTP get,
then hand it off to the handler.
- Extend tests with Handler interpreting the same data.
2019-05-02 08:33:29 -04:00
Adriaan de Groot
9bc8d28800
[libcalamares] Shuffle GeoIP into a namespace
...
- Use CalamaresUtils::GeoIP for GeoIP code
- Name the public interface parts generically, while the
implementation details retain GeoIP<foo> names.
2019-05-02 07:25:48 -04:00