using System;
using System.IO;

namespace QC.QMine.QMineInterface;

[Serializable]
public class FileItem : FileSystemItem
{
	private bool isTemporaryFile;

	private bool isSuiteFile = true;

	public override string ItemName
	{
		get
		{
			if (IsTemporaryFile)
			{
				return Path.GetFileName(base.FullPath) + " (edited file)";
			}
			return Path.GetFileName(base.FullPath);
		}
	}

	public bool IsTemporaryFile
	{
		get
		{
			return isTemporaryFile;
		}
		set
		{
			if (isTemporaryFile != value)
			{
				isTemporaryFile = value;
				OnPropertyChanged("IsTemporaryFile");
			}
		}
	}

	public bool IsSuiteFile
	{
		get
		{
			return isSuiteFile;
		}
		set
		{
			if (isSuiteFile != value)
			{
				isSuiteFile = value;
				OnPropertyChanged("IsSuiteFile");
			}
		}
	}
}
