Lars Toenning
d29705a01b
Throw error when parsed JSON is invalid
...
Without this error detection, the malformed bootstrap.json
stayed undetected. Hence, the old VATSIM FSD HTTP URL was used.
2023-10-05 18:27:18 +02:00
Lars Toenning
bcc4bdd31e
Add SPDX identifiers for REUSE compliance
...
Co-authored-by: Mat Sutcliffe <oktal3700@gmail.com >
2023-10-03 09:29:49 +02:00
Lars Toenning
970b7c3650
clang-format src
2023-04-18 16:07:19 +02:00
Lars Toenning
c0efc9ea81
Clean up includes
2022-05-25 19:47:34 +01:00
Mat Sutcliffe
57d32da826
Use nested namespaces (C++17 feature)
2021-09-18 15:07:48 +01:00
Mat Sutcliffe
b80114213d
Issue #77 Move mixin classes to separate files
...
By separating them from unrelated code, their dependents
can use them without depending on unrelated code, which
in turn helps to reduce cyclic dependencies.
2020-08-29 14:16:17 +01:00
Mat Sutcliffe
ac454ebf3a
Issue #77 Use Qt facilites instead of own implementations
2020-08-29 14:16:09 +01:00
Mat Sutcliffe
2dc86652c2
Issue #77 Include style
2020-08-28 00:45:26 +01:00
Mat Sutcliffe
670b1a1986
Fix cppcheck and compiler warnings
2020-06-29 18:34:16 +01:00
Klaus Basan
246ed0d955
Ref T709, in order to use BLACK_METAMEMBER(dBusServer) with std::string added all opertors
2019-09-16 22:40:53 +01:00
Mat Sutcliffe
e9a4c49d68
Ref T547 Update license masthead in all source code files.
2019-02-22 20:36:43 +00:00
Mat Sutcliffe
b4724996c6
Fixed clazy warnings: unused QString.
2019-02-22 20:23:42 +00:00
Mat Sutcliffe
c71d358648
Fixed clazy warnings: unnecessary containers and containers being detached.
2019-02-22 20:23:37 +00:00
Klaus Basan
183280fa75
Ref T308, using an optimized (faster) function for YYYYmmdd string parsing
...
Ref T309, found that QDateTime::fromString returns a QDateTime object with local timestamp. Using a optimized version returns UTC objects now.
- The bug was found writing a unit test for Ref T308
- Slack: https://swift-project.slack.com/archives/G7GD2UP9C/p1534848725000100
2018-08-22 12:31:53 +02:00
Klaus Basan
30ba404043
Ref T304, "no throw" JSON functions
2018-08-13 02:59:50 +02:00
Klaus Basan
fa09a6e53b
Ref T286, JSON utility functions
2018-07-09 22:30:30 +02:00
Klaus Basan
1d8bbaf3be
Ref T264, improved detection of multiple container formats
2018-05-22 13:35:00 +02:00
Klaus Basan
ba8b9a52da
Ref T264, Ref T263 simple approach to remember last directory (load/save) in view
...
* utility function "unwrapCache" to unwrap cache data
* fixed loading from file, also supporting memoized formats as well
* remember last directory
2018-05-18 00:25:09 +02:00
Klaus Basan
a06f59723a
Ref T251, unit test for gnd flag sending
2018-02-16 12:13:40 +01:00
Klaus Basan
28b5ec9ec6
Ref T237, JSON functions
...
* container file JSON function automatically detecting JSON format (swift, cache, DB)
* utility functions
2018-01-30 20:35:30 +01:00
Klaus Basan
312d01d35b
Ref T199, also cache files can be loaded
...
* unwrap cache JSON object
* parameter to control if cache format is allowed
2018-01-14 18:47:37 +01:00
Mathew Sutcliffe
3ea9e33e6b
refs #937 Resolved clazy warnings: pass-by-value/reference.
2017-04-19 19:31:42 +01:00
Mathew Sutcliffe
b7f69c6887
refs #937 Resolved clazy warnings: unnecessary memory allocation.
2017-04-19 19:31:39 +01:00
Klaus Basan
b785e32256
refs #911 , utility functions for cut and paste JSON
2017-04-18 00:05:33 +01:00
Mathew Sutcliffe
8b1bdbdcf8
refs #721 Use QLatin1String for JSON object keys (disabled until Qt 5.7.1).
2016-08-26 21:05:53 +01:00
Roland Winklmeier
3d7a39ed00
Fix BlackMisc header includes
...
* Include only what is used
* Use forward declaration when possible
* Sorted includes
refs #630
2016-05-13 17:05:49 +02:00
Mathew Sutcliffe
caa01f846b
refs #624 , #492 Refactor parts of CLogMessage into base class and use inheriting constructors to unify the construction idiom of CLogMessage and CStatusMessage.
2016-03-22 00:31:09 +00:00
Klaus Basan
c3722f9198
refs #485 , refs #584 removed include blackmiscfreefunctions.h
2016-03-18 01:07:49 +00:00
Klaus Basan
1fc7300982
refs #507 , split up blackmiscfreefunctions
...
* single register metadata functions
* string utils
* metadata utils
* some formatting / license header where applicable
2015-11-22 02:42:29 +01:00
Klaus Basan
a725ce2181
refs #478 refs #488 , utils / free functions
...
* seed for random numbers per thread
* added function to get all user metatypes as string
* added new read file function per path/name
* removed DBus operators for pixmap
* JSON operators for byte array
* util function for JSON string
2015-11-19 21:03:23 +00:00
Klaus Basan
6a677c06d6
refs #452 , JSON updates
...
* streaming fot pixmap
* convenience methods
2015-11-19 20:58:44 +00:00
Mathew Sutcliffe
fc4745fc66
refs #459 Fixed JSON deserialization of qint64 values.
2015-11-19 20:58:16 +00:00
Mathew Sutcliffe
73f135fa5b
refs #356 Streaming ops for QJsonObject: value in pair should be a reference, to avoid unnecessary copying and object slicing.
2015-03-27 19:08:54 +00:00
Mathew Sutcliffe
f601334ffa
refs #192 tweaking include order and moving some JSON things into global namespace
...
so that we invoke ADL instead of relying on a particular include order
2014-03-31 23:48:39 +01:00
Mathew Sutcliffe
bfce2d186f
removing/simplifying uses of enable_if for JSON streaming operators
2014-03-28 15:03:56 +00:00
Mathew Sutcliffe
3ac59f0872
fixing typos, doxygen, and style from #192
2014-03-28 15:02:47 +00:00
Klaus Basan
0d4abb4c91
refs #192 , JSON operators except for CValueObject
2014-03-26 20:11:32 +01:00