-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add some interfaces about personalization
add some interfaces about personalization Log:
- Loading branch information
wangfei
committed
Oct 10, 2024
1 parent
8cf037d
commit 7e79d03
Showing
8 changed files
with
120 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include "personalizationwaylandclientextension.h" | ||
#include "qwayland-treeland-personalization-manager-v1.h" | ||
#include "wayland-treeland-personalization-manager-v1-client-protocol.h" | ||
#include <qwaylandclientextension.h> | ||
|
||
DGUI_BEGIN_NAMESPACE | ||
class PersonalizationManager_: public PersonalizationManager {}; | ||
Q_GLOBAL_STATIC(PersonalizationManager_, personalizationManager) | ||
PersonalizationManager::PersonalizationManager() | ||
: QWaylandClientExtensionTemplate<PersonalizationManager>(1) | ||
{ | ||
} | ||
|
||
PersonalizationManager *PersonalizationManager::instance() | ||
{ | ||
return personalizationManager; | ||
} | ||
|
||
PersonalizationWindowContext::PersonalizationWindowContext(struct ::treeland_personalization_window_context_v1 *context) | ||
: QWaylandClientExtensionTemplate<PersonalizationWindowContext>(1) | ||
, QtWayland::treeland_personalization_window_context_v1(context) | ||
{ | ||
} | ||
|
||
PersonalizationAppearanceContext::PersonalizationAppearanceContext(struct ::treeland_personalization_appearance_context_v1 *context) | ||
: QWaylandClientExtensionTemplate<PersonalizationAppearanceContext>(1) | ||
, QtWayland::treeland_personalization_appearance_context_v1(context) | ||
{ | ||
} | ||
|
||
PersonalizationWallpaperContext::PersonalizationWallpaperContext(struct ::treeland_personalization_wallpaper_context_v1 *context) | ||
: QWaylandClientExtensionTemplate<PersonalizationWallpaperContext>(1) | ||
, QtWayland::treeland_personalization_wallpaper_context_v1(context) | ||
{ | ||
} | ||
|
||
PersonalizationCursorContext::PersonalizationCursorContext(struct ::treeland_personalization_cursor_context_v1 *context) | ||
: QWaylandClientExtensionTemplate<PersonalizationCursorContext>(1) | ||
, QtWayland::treeland_personalization_cursor_context_v1(context) | ||
{ | ||
} | ||
DGUI_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
#include <QtWaylandClient/QWaylandClientExtension> | ||
|
||
#include "qwayland-treeland-personalization-manager-v1.h" | ||
#include "wayland-treeland-personalization-manager-v1-client-protocol.h" | ||
|
||
#include <dtkgui_global.h> | ||
#include <qtmetamacros.h> | ||
#include <qwaylandclientextension.h> | ||
|
||
DGUI_BEGIN_NAMESPACE | ||
class PersonalizationManager: public QWaylandClientExtensionTemplate<PersonalizationManager>, | ||
public QtWayland::treeland_personalization_manager_v1 | ||
{ | ||
Q_OBJECT | ||
public: | ||
static PersonalizationManager *instance(); | ||
|
||
protected: | ||
explicit PersonalizationManager(); | ||
}; | ||
|
||
class PersonalizationWindowContext : public QWaylandClientExtensionTemplate<PersonalizationWindowContext>, | ||
public QtWayland::treeland_personalization_window_context_v1 | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit PersonalizationWindowContext(struct ::treeland_personalization_window_context_v1 *context); | ||
}; | ||
|
||
|
||
class PersonalizationAppearanceContext : public QWaylandClientExtensionTemplate<PersonalizationAppearanceContext>, | ||
public QtWayland::treeland_personalization_appearance_context_v1 | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit PersonalizationAppearanceContext(struct ::treeland_personalization_appearance_context_v1 *context); | ||
|
||
}; | ||
|
||
class PersonalizationWallpaperContext : public QWaylandClientExtensionTemplate<PersonalizationWallpaperContext>, | ||
public QtWayland::treeland_personalization_wallpaper_context_v1 | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit PersonalizationWallpaperContext(struct ::treeland_personalization_wallpaper_context_v1 *context); | ||
|
||
|
||
}; | ||
|
||
class PersonalizationCursorContext : public QWaylandClientExtensionTemplate<PersonalizationCursorContext>, | ||
public QtWayland::treeland_personalization_cursor_context_v1 | ||
{ | ||
Q_OBJECT | ||
public: | ||
explicit PersonalizationCursorContext(struct ::treeland_personalization_cursor_context_v1 *context); | ||
|
||
}; | ||
|
||
DGUI_END_NAMESPACE |
218 changes: 0 additions & 218 deletions
218
src/wayland/protocol/treeland-personalization-manager-v1.xml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.