flutter: file-transfer/port forward/rdp support

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-07-07 12:22:39 +08:00
parent 6c8c3b4a7a
commit 1f137b3542
9 changed files with 200 additions and 115 deletions

View File

@@ -84,10 +84,12 @@ class RustDeskMultiWindowManager {
}
}
Future<dynamic> newFileTransfer(String remoteId, {bool? forceRelay}) async {
Future<dynamic> newFileTransfer(String remoteId,
{String? password, bool? forceRelay}) async {
var msg = jsonEncode({
"type": WindowType.FileTransfer.index,
"id": remoteId,
"password": password,
"forceRelay": forceRelay,
});
@@ -117,11 +119,12 @@ class RustDeskMultiWindowManager {
}
Future<dynamic> newPortForward(String remoteId, bool isRDP,
{bool? forceRelay}) async {
{String? password, bool? forceRelay}) async {
final msg = jsonEncode({
"type": WindowType.PortForward.index,
"id": remoteId,
"isRDP": isRDP,
"password": password,
"forceRelay": forceRelay,
});