Skip to content

Commit 50cd70f

Browse files
committed
Update NativeFolderView
1 parent 1ad9903 commit 50cd70f

File tree

4 files changed

+45
-8
lines changed

4 files changed

+45
-8
lines changed

src/Files.App.Storage/Storables/Native/INativeStorable.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,8 @@ namespace Files.App.Storage.Storables
66
/// <summary>
77
/// Represents a file object that is natively supported by Windows Shell API.
88
/// </summary>
9-
public class INativeStorable : NativeStorable
9+
public class INativeStorable
1010
{
11-
/// <summary>
12-
/// Get a property value from this <see cref="INativeStorable"/>.
13-
/// </summary>
14-
/// <param name="id">The property ID (e.g. "System.Image.Dimensions").</param>
15-
/// <returns>Returns a valid value formatted with string; otherwise, returns <see cref="string.Empty"/>.</returns>
16-
public string GetPropertyAsync(string id);
11+
public string GetPropertyAsync(string id);
1712
}
1813
}

src/Files.App.Storage/Storables/Native/NativeFolderView.cs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ namespace Files.App.Storage.Storables
66
/// <summary>
77
/// Represents a folder object that is natively supported by Windows Shell API.
88
/// </summary>
9-
public class NativeFolderView /*:IFolderView*/
9+
public class NativeFolderView : IFolderView
1010
{
11+
public int GetSpacing()
12+
{}
13+
14+
public int GetThumbnailSize()
15+
{}
16+
17+
public FolderViewMode GetViewMode()
18+
{}
19+
20+
public uint GetItemsCount()
21+
{}
1122
}
1223
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
namespace Files.Core.Storage
5+
{
6+
public enum FolderViewMode
7+
{
8+
Auto = 0,
9+
Details,
10+
List,
11+
Tiles,
12+
Grid,
13+
Columns,
14+
}
15+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) 2023 Files Community
2+
// Licensed under the MIT License. See the LICENSE.
3+
4+
namespace Files.Core.Storage
5+
{
6+
public interface IFolderView
7+
{
8+
int GetSpacing();
9+
10+
int GetThumbnailSize();
11+
12+
FolderViewMode GetViewMode();
13+
14+
uint GetItemsCount();
15+
}
16+
}

0 commit comments

Comments
 (0)