Commit Graph

75 Commits

Author SHA1 Message Date
JiDe Zhang a9a569b42a feat: support auto generate the Qt code from a dconfig's json
To help developer get/set dconfig in the non GUI thread.
2025-02-20 19:45:06 +08:00
YeShanShan 101e1f2dd3 feat: support to set appId for DConfig
It's useful for generic config to explicitly specify application id.
2024-03-05 11:46:31 +08:00
ck 558d64be4e chore: fix docs typo
dic ==> dci
2024-03-04 19:22:19 +08:00
chenhongtao 75c9a19f66 feat(dstandardpaths): add XDG_STATE_HOME
this folder is used to storage history and logs

Log:
2023-11-03 13:19:18 +08:00
ComixHe 683df841ad feat: add utils function
1. get desktop(application)Id from absolute path.
2. get absolute path from desktop(application)Id.
3. escape string to special format which is dbus required.
4. unescape dbus object path

Signed-off-by: ComixHe <heyuming@deepin.org>
2023-10-30 09:53:43 +08:00
wangfei 9c3e18ebf3 chore: add flag UserPublic
add flag UserPublic to Meta file for managing permission among users.

Issue: https://github.com/linuxdeepin/developer-center/issues/5928
2023-10-23 10:26:11 +08:00
YeShanShan 271edf81b1 feat: Add isDefaultValue for DConfig
Add isDefaultValue function.

Issue: https://github.com/linuxdeepin/dtk/issues/3
2023-09-15 16:55:13 +08:00
ck ddbb4e5f94 chore: qch docs tweak
find qhelpgenerator from CMake Target property
2023-08-18 13:33:55 +08:00
ck 588ada8684 feat: add systembus send support
DDBusSender::system()
2023-07-17 09:00:10 +08:00
SPUER 8922e02148 chore: reduce compilation warnings
解决docs部分警报

Issue: https://github.com/linuxdeepin/dtk/issues/96
2023-07-07 14:11:16 +08:00
heyuming 2df5ca70dd feat: add DThreadUtils class
Log: 添加DThreadUtils类
2023-06-16 14:15:25 +08:00
ck f5fd6cf9a8 feat: support dtk6core build
cmake -DDVERSION=6.0.0 to build libdtk6core
install qdbusxml2cpp-fix to DCore/bin to avoid conficts
do not build doc when build dtk6
remove Core5Compat depends
DVERSION ==> DTK_VERSION
tools install to CMAKE_INSTALL_LIBEXECDIR
2023-06-16 08:32:50 +08:00
renbin 475671232e fix: DTextEncoding ut failed in Qt6.
1. Fix DTextEncoding muti-byte encoding calculation error.
2. Replace QTextCodec with QStringConverter in Qt6 env.
3. Add convertTextEncodinigEx() interface.

Log: Fix DTextEncoding ut failed in Qt6.
2023-06-08 17:26:52 +08:00
YeShanShan 50ff1e70fb feat: DConfig exports metadir's implementation
Export metadir's search path for users.

Issue: https://github.com/linuxdeepin/dtk/issues/10
2023-05-24 10:38:33 +08:00
wangfei 5b650fb843 feat: add license infomation feature
1. add dlicenseinfo interface
2. add dlicenseinfo unit test
3. add dlicenseinfo document

Log: add license information feature
2023-05-09 16:30:56 +08:00
YeShanShan da225ad0d3 chore: Update dconfig's example
Log:
2023-04-17 17:46:30 +08:00
Ye ShanShan 3ace2e4fa7 feat: Support cache to be relocated for DConfigFile
Add setCachePrefix function to support that cache can be relocated
by caller, It's default value doesn't changed, and we can refer to
`配置文件规范` in https://github.com/linuxdeepin/deepin-specifications.
  Permissions is left to the caller.
  For DConfig's FileBackend, we use it's default value.

Issue: https://github.com/linuxdeepin/dtkcore/issues/271
2023-03-20 14:19:20 +08:00
yyc12345 14dad1ace5 docs: fix MainPage typo
- fix typo "camke"
- fix case issue "cmake"

Log: 修复MainPage打字错误:camke。以及cmake大小写错误。
2023-03-02 18:23:55 +08:00
yeshanshan 072dd9562d
feat: Add generic configuration support for DConfig (#236)
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
2023-02-16 09:41:28 +00:00
wangyixue f33f6e2742 fix: qch generate error
qhelpgenerator run failure due to wrong markdown title tree. Change index
title level to fix.

Log: fix qch generate error
2023-02-15 16:54:36 +08:00
xiangzelong 28b9de15b8 docs: update docs
更新枚举的文档,使用新的枚举文档宏
修正文档格式

Log:
2023-02-14 13:40:45 +08:00
heyuming d1605f7da2 feat: support Qt6
Log: 支持Qt6
2023-02-14 13:22:03 +08:00
xzl d87f609504 docs: remove DConfig.doc
删除部分无用文件

Log:
2023-02-06 15:53:12 +08:00
xzl 965280ab9f docs: update log index doc
更新log index文档 更新示例

Log:
2023-02-02 16:06:20 +08:00
xzl 94e0e3fd86 feat: add journal appenders
support log to journal

Log:
2023-01-31 17:44:55 +08:00
wangyixue b294e425d0 docs: correct unsuitable description
Correct typo and unsuitable description.

Log: correct unsuitable description
2023-01-19 13:56:57 +08:00
xzl 486279cd7c docs: add dtrashmanager.zh_CN.dox
添加文档

Log:
2023-01-17 09:29:14 +08:00
xzl dc5beeba54 docs: update dfilewatchermanager.zh_CN.dox
更新文档,添加示例

Log:
2023-01-16 16:57:37 +08:00
xzl 245dbab5b7 feat: update file watcher manager
添加列出当前监控的文件列表的接口
添加删除全部监控的接口

Log:
2023-01-16 16:03:37 +08:00
bluesky bb2b4428df docs: update dfilesystemwatcher docs
更新dfilesystemwatcher的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-01-16 13:19:09 +08:00
xzl 24cc0da201 docs: update docs
更新文件监控方面文档

Log:
2023-01-15 01:33:52 -06:00
xzl 6845aa32db docs: add doxygen theme
在打开build theme编译选项时会自动下载主题

Log:
2023-01-15 00:14:57 -06:00
bluesky 33713df662 docs: add example for dsettings
给dsettings添加例子

Log: add example

Task: deepin-community/coding-quarter#26
2023-01-08 23:17:29 -06:00
wangyixue 191a8fb64f chore: delete useless doxygen theme
Delete useless doxygen theme, remove redundant backslash.

Log: delete useless doxygen theme
2023-01-06 13:14:36 +08:00
rewine deb1c8e37d feat: optimization logic for other distribution
优化对其他发行版的支持

Log: 优化非deepin/uos发行版支持
2022-12-23 05:38:23 +00:00
bluesky cae07609ec docs: add example for dconfigfile
给dconfigfile添加例子

Log: add example

Task: deepin-community/coding-quarter#26
2022-12-22 10:05:34 +00:00
bluesky b518458a27 docs: add example for dsysinfo
给dsysinfo添加例子

Log: add example

Task: deepin-community/coding-quarter#26
2022-12-20 05:24:06 +00:00
bluesky 72b285d060 docs: add example for dconfig
给dconfig添加例子

Log: add example

Task: deepin-community/coding-quarter#26
2022-12-20 11:44:57 +08:00
renbin 64bbdc979b feat: Add DTextEncoding class.
1. Add DTextEncoding class, provides encoding detection and encoding conversion.
2. Add interface unit test cases, example and comment document.
3. DTextEncoding dynamically loads libuchardet.so and libicuuc.so to support
   extended text encodings.

Log: Add DTextEncoding class.
Influence: Add build dependencies libuchardet-dev and libicu-dev.
2022-12-20 01:25:33 +00:00
bluesky 88fc2ffafc docs: add example for ddesktopentry
给ddesktopentry添加例子

Log: add example

Task: deepin-community/coding-quarter#26
2022-12-14 10:39:42 +08:00
bluesky 2cd5464f08 docs: add docs for ddesktopentry
给ddesktopentry添加文档注释

Log: add docs

Task: deepin-community/coding-quarter#26
2022-12-10 23:39:38 +00:00
bluesky fb423dae3f docs: add docs for dconfigfile
给dconfigfile添加文档注释

Log: add docs

Task: deepin-community/coding-quarter#26
2022-12-08 22:50:20 +08:00
QinBenxue 3f394aee0e fix: qch does not generate the problem
修复qch不生成的问题

Log:
2022-12-06 20:37:45 +08:00
xzl 1a1afdb54c docs: update docs
添加示例,修复部分问题

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-12-06 11:18:43 +08:00
xzl ced97dfc5f docs: update MainPage
更新文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-12-06 09:52:21 +08:00
xzl 3d00aecbf3 docs: update docs
更新目录结构, 添加部分文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-12-05 02:14:48 -06:00
bluesky f53f9f3c43 docs: add docs for settings
给qsettingbackend添加文档注释

Log: add docs

Task: deepin-community/coding-quarter#26
2022-12-04 03:01:44 -06:00
bluesky 2f267c0eda docs: add docs for settings
给gsettingsbackend添加文档注释

Log: add docs

Task: deepin-community/coding-quarter#26
2022-12-03 22:16:52 -06:00
bluesky 1785a16d98 docs: add docs for settings
给dsettingsdconfigbackend添加文档注释

Log: add docs

Task: deepin-community/coding-quarter#26
2022-12-02 23:23:34 -06:00
bluesky 3234c94829 docs: add docs for settings
给dsettingsoption添加文档注释

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/26
2022-12-02 09:03:59 +00:00