Commit Graph

21 Commits

Author SHA1 Message Date
Lars Toenning
c0efc9ea81 Clean up includes 2022-05-25 19:47:34 +01:00
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
2dc86652c2 Issue #77 Include style 2020-08-28 00:45:26 +01:00
Mat Sutcliffe
e5528288b5 Lifetime management of value cache singletons
Hook in to the `destroyed` signal of the `qApp` to destroy the caches.
This ensures any associated workers are quit before application
terminates and kills all the threads.
2020-06-12 18:42:41 +01:00
Klaus Basan
455dc23b84 Utility function "isDefault" in settings cache 2020-01-15 02:44:32 +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
225ff81252 Ref T485 Adjust CLogMessage and CStatusMessage call sites to use the new API. 2019-02-22 20:34:55 +00:00
Mathew Sutcliffe
70520d44c3 refs #884 Protect filesystem race in settings using QLockFile. 2017-04-18 00:00:24 +01:00
Mathew Sutcliffe
70224bea72 refs #904 Settings JSON files split into arbitrary levels of subfolders, one file per key. 2017-04-17 23:59:00 +01:00
Klaus Basan
888375d294 refs #887, directories available via CDirectoryUtils/relative paths
* relative cache/settings paths are available relativeFilePath
* directories build in CDirectoryUtils
* directory comparison in CDirectoryUtils
* using CFileUtils to concatenate dir paths
* using URL encoded string for normalized directory (as it can be decoded)
2017-03-01 20:51:34 +01:00
Mathew Sutcliffe
61f3655b2c refs #695 Allow to set a mock root directory for caches, for unit tests. 2016-07-29 17:09:08 +01:00
Mathew Sutcliffe
843620ca3c Caches: method to save values given a list of keys. 2016-06-30 22:20:32 +01:00
Mathew Sutcliffe
242e041ceb refs #679 CValueCache local signal relay moved to the point of emission, to tolerate different orders of initialization of application. 2016-06-30 02:06:16 +01:00
Roland Winklmeier
4180a890e4 Write settings, logs, cache, etc. into a installation dependent subfolder
refs #668
2016-06-08 21:30:56 +02: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
d9d30a339a refs #644 Move the enable of settings save to the same place as the initial settings load. 2016-04-27 18:35:08 +01:00
Klaus Basan
30b5e5dade refs #485, changed to static preformatted as discussed (MS/KB) on slack 2016-03-18 01:09:42 +00:00
Klaus Basan
83082d3f63 refs #601, #600 Fixed inverted conditions in CValueCache and CSettingsCache. 2016-03-03 22:32:19 +00:00
Mathew Sutcliffe
956d393bb1 refs #545 CSetting<T>::setAndSave to set and save a setting in one step. 2016-01-27 23:37:46 +00:00
Mathew Sutcliffe
2c0b4f9555 refs #545 CValueCache keeps track of which values have been saved. 2016-01-27 23:37:44 +00:00
Klaus Basan
070ba8f158 refs #559, moved cache/settings to blackmisc 2015-12-20 17:00:10 +01:00