Skip to content

Commit 0e6586b

Browse files
committed
feat: refactor xdgactivationclient to follow dde-shell pattern
- Use DObject private pattern (D_DECLARE_PRIVATE) - Use signal-based API (tokenReady signal) instead of callback - Create shared library for multiple plugins to use - Follow dde-shell xdgactivation implementation pattern Refs: https://github.com/linuxdeepin/dde-shell/blob/master/frame/wayland/xdgactivation.h
1 parent 6f25ae2 commit 0e6586b

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// SPDX-FileCopyrightText: 2026 UnionTech Software Technology Co., Ltd.
2+
//
3+
// SPDX-License-Identifier: GPL-3.0-or-later
4+
5+
#pragma once
6+
7+
#include "xdgactivationclient.h"
8+
9+
#include <dobject_p.h>
10+
11+
#include <QPointer>
12+
13+
namespace tray {
14+
15+
class XdgActivationTokenV1;
16+
17+
class XdgActivationClientPrivate : public DTK_CORE_NAMESPACE::DObjectPrivate
18+
{
19+
public:
20+
explicit XdgActivationClientPrivate(XdgActivationClient *qq);
21+
~XdgActivationClientPrivate() override;
22+
23+
QPointer<XdgActivationTokenV1> provider;
24+
25+
D_DECLARE_PUBLIC(XdgActivationClient)
26+
};
27+
28+
} // namespace tray

0 commit comments

Comments
 (0)