All application can use same configuration by generic
configuration.
Loading cache file can fallback to noappid's directory when not
using appid or not find cache file.
one application writes configuration.
```c++
auto config = DConfig::createGeneric(FileName);
config->setValue("common-configuration", true);
```
other applications read configration can give appid or not to
get the configuration.
Set empty string for DBus caller when using acquireManager.
Log: 配置策略支持应用无关配置,缓存精准匹配到meta是否使用appid
Influence: none
Change-Id: I78b331f9c455617d5dfea6df087b1f4828390974
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
for application meta path loads order change from
/usr/share/dsg/apps/${appid}/confgis to
/usr/share/dsg/configs/${appid} or /usr/share/dsg/configs;
replace DStandardPaths::paths to DStandardPaths::path.
modify saved path。
Log:
Influence: all application's configuration would not be loaded
unless updating dtkcommon and it's application package.
Change-Id: Ia8212618fd2d4a5ecf67f05aad32a92d934ea01d
Check value's type of incoming is compatible,
it copies a value and converts to meta type, it promises
that setValue function is not changing meta type.
Log:
Influence: calling DConfig's setValue maybe fail because of type
incompatible.
Change-Id: I35bef57261a3130ebcb4aeeff83261737ad51197
it's occur in DBusBackend, and we directly to get meta value that not
exist cache.
normal value type is automatic casted from QDBusVariant to QVariant,
and QVariantList type need to cast explicitly, it's value type is
QDBusArgument.
because our data store backend is using QJsonValue to resolve, so
we only case QVariantList and QVariantMap, it maybe error in lastly.
Log:
Influence: DConfig is not access stringlist data type.
Change-Id: I81dbc2ea6b7933154d26ddba70def95ef79240d6
the member definition need to be separate in some build environment.
Log:
Influence: build error.
Signed-off-by: zorowk <pengwenhao@uniontech.com>
Change-Id: Idd982f0e0a17efa50e170c4590c83ea75abaa031