Commit Graph

22 Commits

Author SHA1 Message Date
Mat Sutcliffe
eb6b0ff289 Fix clang-tidy and clazy warnings 2021-08-29 17:02:27 +01:00
Mat Sutcliffe
0971c8ce68 Issue #77 All classes propertyindex methods use CPropertyIndexRef and QVariant 2020-12-19 18:50:35 +00:00
Klaus Basan
455dc23b84 Utility function "isDefault" in settings cache 2020-01-15 02:44:32 +01:00
Mat Sutcliffe
668a77d083 Ref T689 Settings validation can produce more descriptive error messages. 2019-09-16 22:40:05 +01:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Klaus Basan
978fc42fe5 Doxygen, style 2018-09-20 00:47:12 +02:00
Roland Winklmeier
2765de2b93 Add method to get default value from a Setting 2018-08-07 20:40:47 +02:00
Klaus Basan
4fcdd0e1f0 Doxygen: "core settings" -> "settings"
https://swift-project.slack.com/archives/C04J6J76N/p1506440644000057
2017-09-26 20:04:40 +02:00
Mathew Sutcliffe
70520d44c3 refs #884 Protect filesystem race in settings using QLockFile. 2017-04-18 00:00:24 +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
8a65a33384 refs #684, #766, #776 Support %OwnerName% in cache keys by allowing CCached::m_element to be a dummy
and by using a trick with explicit destructor call and placement new to reconstruct CCached when owner's name changes.
2016-10-17 14:37:47 +01:00
Mathew Sutcliffe
e01ae2be11 refs #759 Allow cache value notification slot to be changed after construction.
Also allow slot to be any type of callable, including member function or lambda.
2016-09-19 16:18:52 +02:00
Mathew Sutcliffe
8275b0d9bf refs #697 BlackMisc settings renamed and reorganized. 2016-08-03 02:19:08 +01:00
Mathew Sutcliffe
87b2396edb refs #694 Support human readable names for settings and data cache traits. 2016-07-31 23:15:35 +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
aefef81cd7 refs #659 Read-only versions of cache value access classes. 2016-06-05 21:18:52 +01:00
Mathew Sutcliffe
a2b0602c53 refs #659 Fixed minor mistakes. 2016-06-05 21:18:49 +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
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
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