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
ee6e8de31a
[libcalamares] Disable broken GeoIP providers
...
- The tests were querying broken or disabled GeoIP providers,
so remove them (this leaves only very few reliable free providers).
2019-05-02 08:38:31 -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
Adriaan de Groot
16413e7bdb
[libcalamares] Stub GeoIPHandler
...
- The handler class should deal with configuration and query
2019-05-02 06:55:41 -04:00
Adriaan de Groot
26b61a4ddb
[libcalamares] Make RegionZonePair type stronger
...
- Derive from QPair instead of being QPair
- Add isValid() for checking
- Convenience constructors
2019-05-02 06:16:08 -04:00
Adriaan de Groot
73a5e7dd62
[libcalamares] Put GeoIP in namespace
...
- Use consistent include-guard style
- Put things in namespace CalamaresUtils
2019-05-02 05:58:52 -04:00
Adriaan de Groot
ce909f00cc
[libcalamares] Drop unnecessary HAVE_XML
...
- Linking to QtXml gives us a -DQT_XML_LIB already, so use that.
2019-05-01 06:39:20 -04:00
Adriaan de Groot
9ed46fc275
[libcalamares] [locale] Adjust CMakeLists to moved code
2019-04-30 17:01:10 -04:00
Adriaan de Groot
7ec7278fd3
[libcalamares] [locale] Move GeoIP code to the library
2019-04-30 16:52:31 -04:00
Adriaan de Groot
8d0f076591
[libcalamares] Rename CalamaresUtils -> String
...
- The only remaining functions in the file are string-related, so
rename to match their purpose.
- Drop this include file from most places, since they don't actually
use the string functionality at all.
2019-04-29 06:49:16 -04:00
Adriaan de Groot
eaba696173
[libcalamares] Move the crash() function to the one place it's used
2019-04-29 06:49:16 -04:00
Adriaan de Groot
66c4445077
[libcalamares] Move translation-related functions to Retranslator.h
2019-04-29 06:49:16 -04:00
Adriaan de Groot
ac095d9ed0
[libcalamares] [libcalamaresui] [calamares] Adjust to moved Dirs.h
2019-04-29 06:49:16 -04:00
Adriaan de Groot
50694ef610
[libcalamares] Split dirs-functionality into separate file
2019-04-29 06:49:16 -04:00
Adriaan de Groot
2907b48844
[libcalamaresui] Move RESPATH #define to the one place it's used
2019-04-29 06:14:21 -04:00
Adriaan de Groot
432b8848ab
[libcalamares] Make #include guards consistent
2019-04-29 06:14:21 -04:00
Adriaan de Groot
f076dd76ad
[libcalamares] Rename YamlUtils.h
...
- Since we have the utils/ filesystem namespace, and use CalamaresUtils::
as C++ namespace, simplify naming.
2019-04-29 06:14:21 -04:00
Adriaan de Groot
6e0e06078b
[libcalamares] Split out the variant-manipulation bits
...
- We already have utils/ as the filesystem namespace, may as well
make clearer what the various parts are.
- Adjust CommandList to the moved API.
2019-04-29 06:14:21 -04:00
Adriaan de Groot
3e011d1419
[libcalamares] Don't link with PythonQt
...
- PythonQt is only needed (and used) from the GUI library.
2019-04-29 04:36:32 -04:00
Adriaan de Groot
1f7dfafe9a
[libcalamares] Provide accessor to error code.
...
- Document meaning of error codes.
- The test-loader considers internal errors a real (test) failure,
while errors returned normally by the modules (e.g. because the
configuration is broken) to be ok for testing purposes.
2019-04-28 14:34:39 -04:00
Adriaan de Groot
7149b80146
[libcalamares] Distinguish kinds of errors
...
- errors can now carry an integer what-am-I code apart from
the message; all errors have a code != 0 (and ok has code 0).
2019-04-28 14:34:39 -04:00
Adriaan de Groot
d506296aa7
[libcalamares] Adjust code to changed name
...
- renamed setting in the configuration file, but not in the code
- add documentation to getters
2019-04-21 17:15:53 +02:00
Adriaan de Groot
10727c7bd9
Merge pull request #1126 from feren/patch-3
...
Patch to add 'dont-cancel' setting to disable Cancel only during the installation phase
2019-04-21 17:02:21 +02:00
Adriaan de Groot
c44e221fb6
Merge branch 'issue-1107'
...
FIXES #1107
2019-04-19 16:27:19 +02:00
Adriaan de Groot
cb5825a521
[libcalamares] English label with country
2019-04-19 13:52:19 +02:00
Adriaan de Groot
58aa9f4989
[libcalamares] Move LocaleLabel from libcalamaresui to libcalamares
...
- This isn't a UI-dependent class
- Doesn't make much sense in CalamaresUtilsGui either
2019-04-19 10:04:49 +02:00
Adriaan de Groot
c99742bc70
Merge pull request #1127 from a-wai/partition-layout-size-checks
...
Add various checks for partition layout configuration
2019-04-18 13:48:50 +02:00
Adriaan de Groot
3ccbcdc1bd
[libcalamares] Don't moc on JobQueue
...
- There is no reason for JobThread to have a Q_OBJECT macro,
so drop the moccing (this also stops some warnings from
the generated moc code).
- Define the (virtual) destructor out-of-line to avoid vtable
warnings.
2019-04-18 12:21:29 +02:00
Adriaan de Groot
bdb7bf71a8
Reduce warnings from moc-generated code
...
- The auto-generated code produces a lot of warnings from
Clang 8; this obscures the more meaningful warnings from
actual Calamares code, so tone the warnings down.
- For Clang, set CALAMARES_MOC_OPTIONS.
- Add convenience CMake function for automoccing. It applies
the options as needed to a given target.
2019-04-18 12:06:09 +02:00
Adriaan de Groot
cef2f50510
Reduce warnings about extra ;
...
- Trailing ; after Q_UNUSED
- Trailing ; after CALAMARES_RETRANSLATE
2019-04-18 12:06:09 +02:00
Adriaan de Groot
c83395ff6d
Reduce warnings for yaml-cpp
...
- Use only utils/YamlUtils.h to pull in yaml-cpp and supporting code.
- When compiling with clang, turn off warnings that the system header
for yaml-cpp would generate.
2019-04-18 12:06:09 +02:00
Adriaan de Groot
27140ff5bb
[libcalamares] Reduce warnings in KDAB code
...
- This is an older copy of kdsingleapplicationguard, now updated for
C++11 warnings; removed __ in header guards, fixed up last of 0-for-
nullptr, signedness mismatch.
2019-04-18 12:06:09 +02:00
Arnaud Ferraris
680b0bc472
Add missing header to NamedEnum
...
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2019-04-18 10:55:47 +02:00
Adriaan de Groot
92b60dac65
[libcalamares] Warnings-- over extra ;
2019-04-17 12:02:14 +02:00
The feren OS Dev
9cafd0a495
Update copyright headers
2019-04-16 18:27:30 +01:00
The feren OS Dev
455505ba78
Update copyright header
2019-04-16 18:27:03 +01:00
The feren OS Dev
700e6f0ec6
Update Settings.h
2019-04-16 17:17:39 +01:00
The feren OS Dev
6d6c152f70
Update Settings.cpp
2019-04-16 17:14:55 +01:00
The feren OS Dev
d31f2d2116
Update Settings.cpp
2019-04-16 17:12:14 +01:00
The feren OS Dev
02d6e1a946
Update Settings.cpp
2019-04-16 17:11:39 +01:00
Adriaan de Groot
329bd36929
[libcalamares] Sanitize logging
2019-04-15 10:59:57 -04:00
Adriaan de Groot
aaeea16871
[libcalamares] Make logging more consistent
2019-04-15 09:02:21 -04:00
Adriaan de Groot
63b317902d
[libcalamares] [partition] Adjust to logging changes
...
- Use the un-paren'ed Continuation and SubEntry
2019-04-15 08:27:43 -04:00
Adriaan de Groot
d72e3b3c22
[libcalamares] Simplify writing of logging continuations
...
- Instead of Continuation(), write just Continuation
- All that futzing with overloads and tag-classes isn't needed
since the whole point is to output some constant string. Leave
cleverness for later, if it's needed.
2019-04-15 08:27:29 -04:00
Adriaan de Groot
365f83b789
[libcalamares] Reduce warnings in KDAB code
...
- Use nullptr and suitable include guards
2019-04-11 15:14:31 +02:00
Adriaan de Groot
2777b5dd30
[libcalamares] Reduce copying and warnings
2019-04-11 15:14:31 +02:00
Adriaan de Groot
5279e78c9f
[libcalamares] Reduce warnings
...
- improve variable names, don't shadow
2019-04-11 15:14:31 +02:00
Adriaan de Groot
c13c7c4891
[libcalamares] Don't use (bare) endl
...
- Use '\n' instead of endl (which should have been std::endl).
2019-04-11 15:14:31 +02:00
Adriaan de Groot
d2941d335e
[libcalamares] Reduce unused-parameter warnings
...
- The tag-class "parameters" are empty anyway
2019-04-11 15:14:31 +02:00