2024-11-10 23:28:25 +01:00
|
|
|
|
using System;
|
2024-11-11 01:09:05 +01:00
|
|
|
|
using System.Collections.Generic;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
using System.Threading.Tasks;
|
2025-01-06 21:56:33 +01:00
|
|
|
|
using Wino.Core.Domain.Entities.Shared;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
using Wino.Core.Domain.Enums;
|
2024-11-11 01:09:05 +01:00
|
|
|
|
using Wino.Core.Domain.Models.Accounts;
|
2024-11-27 19:49:10 +01:00
|
|
|
|
using Wino.Core.Domain.Models.Common;
|
2024-11-10 23:28:25 +01:00
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.Domain.Interfaces
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IDialogServiceBase
|
|
|
|
|
|
{
|
|
|
|
|
|
Task<string> PickWindowsFolderAsync();
|
|
|
|
|
|
Task<byte[]> PickWindowsFileContentAsync(params object[] typeFilters);
|
|
|
|
|
|
Task<bool> ShowConfirmationDialogAsync(string question, string title, string confirmationButtonTitle);
|
|
|
|
|
|
Task ShowMessageAsync(string message, string title, WinoCustomMessageDialogIcon icon);
|
|
|
|
|
|
void InfoBarMessage(string title, string message, InfoBarMessageType messageType);
|
|
|
|
|
|
void InfoBarMessage(string title, string message, InfoBarMessageType messageType, string actionButtonText, Action action);
|
|
|
|
|
|
void ShowNotSupportedMessage();
|
2025-01-06 21:56:33 +01:00
|
|
|
|
Task<MailAccount> ShowEditAccountDialogAsync(MailAccount account);
|
2024-11-10 23:28:25 +01:00
|
|
|
|
Task<string> ShowTextInputDialogAsync(string currentInput, string dialogTitle, string dialogDescription, string primaryButtonText);
|
|
|
|
|
|
Task<bool> ShowWinoCustomMessageDialogAsync(string title,
|
|
|
|
|
|
string description,
|
|
|
|
|
|
string approveButtonText,
|
|
|
|
|
|
WinoCustomMessageDialogIcon? icon,
|
|
|
|
|
|
string cancelButtonText = "",
|
|
|
|
|
|
string dontAskAgainConfigurationKey = "");
|
|
|
|
|
|
Task<bool> ShowCustomThemeBuilderDialogAsync();
|
2024-11-11 01:09:05 +01:00
|
|
|
|
Task<AccountCreationDialogResult> ShowAccountProviderSelectionDialogAsync(List<IProviderDetail> availableProviders);
|
2025-02-15 12:53:32 +01:00
|
|
|
|
IAccountCreationDialog GetAccountCreationDialog(AccountCreationDialogResult accountCreationDialogResult);
|
2024-11-27 19:49:10 +01:00
|
|
|
|
Task<List<SharedFile>> PickFilesAsync(params object[] typeFilters);
|
|
|
|
|
|
Task<string> PickFilePathAsync(string saveFileName);
|
2024-11-10 23:28:25 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|