Change Warning log to Debug.
Rename GlobalUID to InvalidUID avoiding to misunderstand.
cache saved only it's setValue has been called.
Log: 移除错误的输出警告,当cache被修改后才保存
Influence: 如果没有设置值,再不会生成缓存文件
Change-Id: I1f71513e91bef3412f593281e68fea44801fe07b
PREFIX's value is error when qmake to cmake, and it causes
dde-dconfig-daemon can't load meta file.
Log: PREFIX未赋值,导致查找配置文件路径错误
Influence: 配置中心服务异常,不能正确加载配置信息
Change-Id: Ib0850d40ff62ebf6673bd410afa3f9587a2b3413
use better optionname and use test , make test link to -lgcov , then
coverage can be caculated. And use ctest , the cmake command to run
tests
fix test-recoverage bash scipts
Log: option name changed , use ctest command, fix test-recoverage script
Use DCapManager class to unify privilege management on
whether to open files or not.
By registering a special file engine, the scope of action
after registration is global unless called the unregister
function manually.
By default, the application can still access some directories
and files with permissions after it is started, but when it
access files beyond the scope of these directories, it will
not get any information.
The default directory includes: Home path; Cache path; DSG path
XDG path etc.
Log:
Influence: null
Change-Id: I0fed6051addc56001b382fc34f73b046c0e4aca2
In the not supported for DSG_APP_DATA environment, we can't get a valid
directory for the global config, then falied when saving data. In order
not to lose data, we can only fallback to storing it to the user
directory.
Also, allows to specify a fallback directory for DSG_APP_DATA on
compile, in order to never fallback to the user directory.
Log:
1. Add a comment to introduce a real example of the tool.
2. Fix possible fileName acquisition failures in export scenarios
Log:
Influence: None
Change-Id: I752d8d3548793af35b25f748d0f255a86dc32c8f
Use DConfigPrivate's appId as far as possible,
Remove invalid code, it maybe crash when applicationName is empty.
Log:
Influence: 部分使用场景可能出现applicationName为空,导致断言发生,例如全局变量
初始化DConfig时(在QCoreApplication初始化之前被调用)。
Change-Id: Ic732be96c6821aefc64622ba86e1817f238a028d
`include.files+=` is behind `load(dtk_build)`, so those files don't
execute dtk_build function, it casues dtkcore_config.h don't include
`include.files` in `dtk_build` back.
Log:
Influence: none
Change-Id: I06afe3df5c80145d7d9ff9da281571a9725366d5
dde-config-daemon loads resouce from `$$PREFIX/share/dsg` when default
action, and `PREFIX`'s value is empty.
set default value for PREFIX from QT_INSTALL_PREFIX(/usr).
Log:
Influence: 开发dtkcore,但没有指定PREFIX值,导致配置策略加载失败
Change-Id: I97573c283365aa581d5e93eb75d27259134f10af
Add invalid check for all DConfig's method(avoid null pointer dereference).
fallback to FileBackend when DBusBackend can't be created.
set correct environment value in unit test.
Log:
Influence: all application crash when dconfig is invalid but still
call other method expect isValid.
Change-Id: I7395f44518989cb14a09306fcfd4db380608a24e
DSettingsBackend::doSetOption is executing when `DSettings` has
been destroyed, because `doSetOption` is connected in `QueuedConnection`
way, this would be ensure `backendWriteThread`'seventloop is exited
when `DSetting` destoryed.
we ensure `DSettings` is released before `SettingBackend`, so that
`SettingBackend`'s slot would be executed when `DSetting` destoryed.
we also should ensure `SettinBackend` is thread safely, because os
`DSettings` has backendWriteThread to execute doSetOption, and getOption,
is execute in main thread.
remove link of libdtkcore in qmake, because we compile it's source code
in unit test.
Log:
Influence: none
Change-Id: I35fcb8dff2145aec74255889dbd84b5a0525bffb