Added file attributes enumeration

This commit is contained in:
Michael Becker 2015-06-13 19:52:51 -04:00
parent dc544603e5
commit 7554fa5714
3 changed files with 25 additions and 0 deletions

View File

@ -77,6 +77,9 @@ namespace UniversalEditor.ObjectModels.FileSystem
public event DataRequestEventHandler DataRequest;
private FileAttributes mvarAttributes = FileAttributes.None;
public FileAttributes Attributes { get { return mvarAttributes; } set { mvarAttributes = value; } }
private string mvarName = String.Empty;
/// <summary>
/// The name of this file.

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace UniversalEditor.ObjectModels.FileSystem
{
[Flags()]
public enum FileAttributes
{
None = 0,
ReadOnly = 1,
Hidden = 2,
System = 4,
Archive = 8,
Compressed = 16,
Encrypted = 32,
Deleted = 64,
Indexed = 128
}
}

View File

@ -92,6 +92,7 @@
<Compile Include="ObjectModels\FileSystem\CompressedFile.cs" />
<Compile Include="ObjectModels\FileSystem\DataRequestEvent.cs" />
<Compile Include="ObjectModels\FileSystem\File.cs" />
<Compile Include="ObjectModels\FileSystem\FileAttributes.cs" />
<Compile Include="ObjectModels\FileSystem\FileSystemObjectModel.cs" />
<Compile Include="ObjectModels\FileSystem\Folder.cs" />
<Compile Include="ObjectModels\FileSystem\IFileSystemContainer.cs" />