Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ qt_add_qml_module(libtreeland
effects/tsgradiusimagenode.h
$<$<OR:$<NOT:$<BOOL:${DISABLE_DDM}>>,$<BOOL:${EXT_SESSION_LOCK_V1}>>:core/lockscreen.h>
$<$<OR:$<NOT:$<BOOL:${DISABLE_DDM}>>,$<BOOL:${EXT_SESSION_LOCK_V1}>>:core/lockscreen.cpp>
$<$<NOT:$<BOOL:${DISABLE_DDM}>>:greeter/ddmremote.rep>
$<$<NOT:$<BOOL:${DISABLE_DDM}>>:greeter/greeterproxy.cpp>
$<$<NOT:$<BOOL:${DISABLE_DDM}>>:greeter/greeterproxy.h>
$<$<NOT:$<BOOL:${DISABLE_DDM}>>:greeter/sessionmodel.cpp>
Expand Down Expand Up @@ -266,6 +267,12 @@ qt_add_qml_module(libtreeland
${PROJECT_BINARY_DIR}/qt/qml/Treeland
)

if (NOT DISABLE_DDM)
qt_add_repc_replicas(libtreeland
${CMAKE_CURRENT_SOURCE_DIR}/greeter/ddmremote.rep
)
endif()

qt_add_repc_sources(libtreeland
modules/resource/treelandwindowtree.rep
)
Expand Down
23 changes: 23 additions & 0 deletions src/greeter/ddmremote.rep
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (C) 2026 UnionTech Software Technology Co., Ltd.
// SPDX-License-Identifier: Apache-2.0 OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

class DDMRemote {
PROP(QString hostName SOURCEONLYSETTER)
PROP(bool canPowerOff=false SOURCEONLYSETTER)
PROP(bool canReboot=false SOURCEONLYSETTER)
PROP(bool canSuspend=false SOURCEONLYSETTER)
PROP(bool canHibernate=false SOURCEONLYSETTER)
PROP(bool canHybridSleep=false SOURCEONLYSETTER)
SIGNAL(loginFailed(QString user))
SIGNAL(informationMessage(QString message))
SIGNAL(userSessionAdded(QString user, int sessionId))
SIGNAL(userSessionRemoved(QString user, int sessionId))
SLOT(bool connectGreeter())
SLOT(bool login(QString user, QString password, int sessionType, QString sessionFile))
SLOT(bool logout(int id))
SLOT(bool powerOff())
SLOT(bool reboot())
SLOT(bool suspend())
SLOT(bool hibernate())
SLOT(bool hybridSleep())
};
Loading
Loading