Commit Graph

28 Commits

Author SHA1 Message Date
JiDe Zhang 8db10c9145 fix: resolve compilation failure on Qt 6.9
Updated the dvtablehook.h file to adjust the typedef for Fun2ReturnType
based on changes in Qt 6.9 interfaces. Additionally, the main.cpp
file now casts the unicode value to short to prevent type issues.
These changes are necessary to ensure compatibility with the latest
Qt framework and to resolve the build issues that arise from interface
modifications.

修复: 解决在Qt 6.9上的编译失败

更新了dvtablehook.h文件,以根据Qt 6.9接口的变化调整Fun2ReturnType的
typedef。此外,main.cpp文件现在将unicode值转换为short,以防止类型问题。
这些更改对于确保与最新Qt框架兼容以及解决接口修改引起的构建问题是必要的。
2025-04-12 17:55:30 +08:00
groveer 280791db27 fix(util): error appid from `getAppIdFromAbsolutePath`
Log: tmp变量读出来的字符串多带了一个字符
2024-09-09 10:38:13 +08:00
zsien a1add007e3 chore: use '&&' and '||' instead of 'and' and 'or'
一些项目使用了 -fno-operator-names,会导致编译失败
2024-06-07 15:42:45 +08:00
bluesky 7eec6f3000 chore: remove decltype(auto) for dutil
Log: remove decltype(auto)
2023-12-13 09:59:02 +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
ck 588ada8684 feat: add systembus send support
DDBusSender::system()
2023-07-17 09:00:10 +08:00
ck 868218a1db refactor!: deprecate some interfaces in dtk6
- dconfig_meta_files/dconfig_override_files remove in dtk6
- not install deprecated class headers
- remove deprecated interfaces in dtk6
2023-07-05 10:19:56 +08:00
heyuming 2df5ca70dd feat: add DThreadUtils class
Log: 添加DThreadUtils类
2023-06-16 14:15:25 +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
wangyixue 0f879bdebb fix: calling delay in DDBusSender
When creating QAbstractInterface, Qt will try to invoke instrospection
into the DBus path, this is sometimes costing when instrospection
is not ready for that path. Change the implementation of DDBusSender.
Don't use QDBusInterface. Instead, create a QDBusMessage and invoke it
directly. This is sensible because DDBusSender is just a wrapper like
QDBusInterface, it shouldn't rely on QDBusInterface.

Issue: https://github.com/linuxdeepin/developer-center/issues/4415
Log: fix calling delay in DDBusSender
2023-05-23 10:27:27 +08:00
YeShanShan 60c61be94a chore: Revert deleted function for DVtableHook
The functions are used in template, and they aren't inline,
so we can't delete them in this version, but we can remove
their implementation.
  It caused in fb4845350a
2023-05-15 09:10:32 +08:00
heyuming d073f8c81e fix: incorrect DSecureString destructor
Log: 修复DSecureString的析构函数
2023-04-28 09:24:14 +08:00
heyuming fb4845350a fix: sync with qt5platform-plugins
623ce74a8c

Log: 同步qt5platform-plugins
2023-04-27 10:18:07 +08:00
guoyao 4c6390cd5b chore: remove build warning
as title

Log:
2023-04-27 08:54:19 +08:00
heyuming 6954ff2ba9 fix: Fix incomplete copy of Vtable
1. 修复了因不完整拷贝引起的rtti信息丢失的问题
2. 对于虚表结尾判断增加了新的限制条件
3. 增加了调整虚表指针的方法,
   后续可以考虑取消对于函数指针和对象指针类型一致的限制

Log: 修复不完整的虚表拷贝
2023-03-06 13:09:36 +08:00
ck 4cfda53c9c feat: add chinese2pinyin polyphonic support
1. update dpinyin.dict with polyphonic support
2. add pinyin and firstLetters function
3. add ch2py tools to convert Chinese to Pinyin

dict data reference https://github.com/mozillazg/pinyin-data (zdict.txt MIT)
Bug: https://pms.uniontech.com/bug-view-143063.html,https://pms.uniontech.com/bug-view-182013.html

Log: Chinese2Pinyin polyphonic support
Influence: Chinese to Pinyin
Change-Id: I5fd05c071f68908949e2b1abbbd11feed302abd4
2023-01-18 17:36:05 +08:00
heyuming b2308b377e docs: add some info about DExpected and DDBusInterface
Log: 添加信息
2022-12-29 11:14:50 +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
wangyixue 49e782de47 chore: label DAsync as deprecated
Label DAsync as deprecated, delete all unit tests for it.

Log: label DAsync as deprecated
2022-12-07 22:17:55 +08:00
Astrea 724696bdf6 chore: format code
Add .clang-format. Format code that has been modified by commit
e6423c5.

Log: format code
Influence: e6423c5
2022-11-30 02:24:08 -06:00
Astrea 7e35e14558 chore!: move namespace
Move DDBusExtendedAbstractInterface and DDBusExtendedPendingCallWatcher
to Dtk::Core.

Log: move namespace
Influence: DDBusAbstractInterface, DDBusExtendedPendingCallWatcher
2022-11-30 02:24:08 -06:00
Astrea 9b9c84690d fix: delete an undefined overloaded function
Delete an undefined overloader constructor of DDBusInterface.

Log: delete an constructor
Influence: DDBusInterface
2022-11-30 02:23:14 -06:00
范朋程 554d22da1a feat: add ddbusextendedabstractinterface
通过此类可以很方便得实现异步dbus通信
修改tools生成信息中的类名

Log: add ddbusextendedabstractinterface
Change-Id: Ida45d0d22d065af3d86c7ad062419183572291dc
feat: add ddbusextendedabstractinterface

通过此类可以很方便得实现异步dbus通信

Log: add ddbusextendedabstractinterface
Change-Id: Ida45d0d22d065af3d86c7ad062419183572291dc
2022-10-31 15:20:34 +08:00
guoyao 1b4b0c229a fix(DDBusInterface): can not emit property changed signal
can not emit property changed signal

Log:
2022-09-29 09:04:34 +08:00
ck f1c10cbbff chore: 微调 ddbusinterface 类
1. 去除编译警告,用 static 修饰变量
2. 空指针检测
3. 加上dtkcore 的 namespace

Log: none
Influence: none
Change-Id: Ibf8b72a01f4450f0fdac54a2f6f7040535dd75ee
2022-09-21 13:21:07 +08:00
heyuming 24313e806b feat: add ddbusinterface
增加ddbusinterface2并且修改相关cmake文件

Log:增加ddbusinterface类
2022-09-14 10:32:28 +08:00
Chen Bin e221e232fc fix: Build failed using clang
const 类成员函数下的成员变量默认会添加 const 属性,
而 QMutexLocker 的参数需要接收一个非 const 的变量,
出现编译错误。这种情况下,需要将成员变量修改为
mutable。

Log:
Change-Id: I573b3a258a837037717b9d646977886dba45c5d8
2022-09-01 11:07:49 +08:00
ShootingStarDragons db5ae947fe feat(tocmake): tocmake
Change the build system to cmake

Log: use cmake
2022-08-16 07:50:54 +00:00