Files
Wino-Mail/Wino.Core.Domain/Interfaces/IStatePersistenceService.cs
T

69 lines
1.8 KiB
C#
Raw Normal View History

2024-04-18 01:44:37 +02:00
using System;
using System.ComponentModel;
2024-11-10 23:28:25 +01:00
using Wino.Core.Domain.Enums;
2024-04-18 01:44:37 +02:00
2025-02-16 11:54:23 +01:00
namespace Wino.Core.Domain.Interfaces;
public interface IStatePersistanceService : INotifyPropertyChanged
2024-04-18 01:44:37 +02:00
{
2025-02-16 11:54:23 +01:00
event EventHandler<string> StatePropertyChanged;
/// <summary>
/// True when there is an active renderer for selected mail.
/// </summary>
bool IsReadingMail { get; set; }
/// <summary>
/// Shell's app bar title string.
/// </summary>
string CoreWindowTitle { get; set; }
2026-03-09 00:28:10 +01:00
/// <summary>
/// App mode title shown in the title bar.
/// </summary>
string AppModeTitle { get; set; }
2025-02-16 11:54:23 +01:00
/// <summary>
/// When only reader page is visible in small sized window.
/// </summary>
bool IsReaderNarrowed { get; set; }
/// <summary>
/// Current application mode (Mail or Calendar).
/// Not persisted to configuration, only kept in memory.
/// </summary>
WinoApplicationMode ApplicationMode { get; set; }
/// <summary>
/// Whether event details page is visible in Calendar mode.
/// </summary>
bool IsEventDetailsVisible { get; set; }
2025-02-16 11:54:23 +01:00
/// <summary>
/// Setting: Opened pane length for the navigation view.
/// </summary>
double OpenPaneLength { get; set; }
/// <summary>
/// Whether the mail rendering page should be shifted from top to adjust the design
/// for standalone EML viewer or not.
/// </summary>
bool ShouldShiftMailRenderingDesign { get; set; }
/// <summary>
/// Setting: Mail list pane length for listing mails.
/// </summary>
double MailListPaneLength { get; set; }
/// <summary>
/// Setting: Calendar display type.
/// </summary>
CalendarDisplayType CalendarDisplayType { get; set; }
/// <summary>
/// Setting: Calendar display count for the day view.
/// </summary>
int DayDisplayCount { get; set; }
2026-03-14 21:03:52 +01:00
2024-04-18 01:44:37 +02:00
}