Browse Source

Make classes internal

pull/8217/head
affederaffe 4 years ago
parent
commit
4c0fda3495
  1. 6
      src/Avalonia.FreeDesktop/DBusFileChooser.cs
  2. 4
      src/Avalonia.FreeDesktop/DBusSystemDialog.cs

6
src/Avalonia.FreeDesktop/DBusFileChooser.cs

@ -8,7 +8,7 @@ using Tmds.DBus;
namespace Avalonia.FreeDesktop
{
[DBusInterface("org.freedesktop.portal.FileChooser")]
public interface IFileChooser : IDBusObject
internal interface IFileChooser : IDBusObject
{
Task<ObjectPath> OpenFileAsync(string ParentWindow, string Title, IDictionary<string, object> Options);
Task<ObjectPath> SaveFileAsync(string ParentWindow, string Title, IDictionary<string, object> Options);
@ -20,12 +20,12 @@ namespace Avalonia.FreeDesktop
}
[Dictionary]
public class FileChooserProperties
internal class FileChooserProperties
{
public uint Version { get; set; }
}
public static class FileChooserExtensions
internal static class FileChooserExtensions
{
public static Task<uint> GetVersionAsync(this IFileChooser o) => o.GetAsync<uint>("version");
}

4
src/Avalonia.FreeDesktop/DBusSystemDialog.cs

@ -9,11 +9,11 @@ using Tmds.DBus;
namespace Avalonia.FreeDesktop
{
public class DBusSystemDialog : ISystemDialogImpl
internal class DBusSystemDialog : ISystemDialogImpl
{
private readonly IFileChooser _fileChooser;
public DBusSystemDialog()
internal DBusSystemDialog()
{
_fileChooser = DBusHelper.Connection.CreateProxy<IFileChooser>("org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop");
}

Loading…
Cancel
Save