shared address book (#7229)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-03-20 15:05:54 +08:00
committed by GitHub
parent ecb70b43df
commit 41da6d552f
73 changed files with 4714 additions and 866 deletions

View File

@@ -194,6 +194,7 @@ class RustDeskMultiWindowManager {
bool? forceRelay,
String? switchUuid,
bool? isRDP,
bool? isSharedPassword,
}) async {
var params = {
"type": type.index,
@@ -207,6 +208,9 @@ class RustDeskMultiWindowManager {
if (isRDP != null) {
params['isRDP'] = isRDP;
}
if (isSharedPassword != null) {
params['isSharedPassword'] = isSharedPassword;
}
final msg = jsonEncode(params);
// separate window for file transfer is not supported
@@ -228,6 +232,7 @@ class RustDeskMultiWindowManager {
Future<MultiWindowCallResult> newRemoteDesktop(
String remoteId, {
String? password,
bool? isSharedPassword,
String? switchUuid,
bool? forceRelay,
}) async {
@@ -239,11 +244,12 @@ class RustDeskMultiWindowManager {
password: password,
forceRelay: forceRelay,
switchUuid: switchUuid,
isSharedPassword: isSharedPassword,
);
}
Future<MultiWindowCallResult> newFileTransfer(String remoteId,
{String? password, bool? forceRelay}) async {
{String? password, bool? isSharedPassword, bool? forceRelay}) async {
return await newSession(
WindowType.FileTransfer,
kWindowEventNewFileTransfer,
@@ -251,11 +257,12 @@ class RustDeskMultiWindowManager {
_fileTransferWindows,
password: password,
forceRelay: forceRelay,
isSharedPassword: isSharedPassword,
);
}
Future<MultiWindowCallResult> newPortForward(String remoteId, bool isRDP,
{String? password, bool? forceRelay}) async {
{String? password, bool? isSharedPassword, bool? forceRelay}) async {
return await newSession(
WindowType.PortForward,
kWindowEventNewPortForward,
@@ -264,6 +271,7 @@ class RustDeskMultiWindowManager {
password: password,
forceRelay: forceRelay,
isRDP: isRDP,
isSharedPassword: isSharedPassword,
);
}