file scoped namespaces (#565)

This commit is contained in:
Aleh Khantsevich
2025-02-16 11:54:23 +01:00
committed by GitHub
parent cf9869b71e
commit 3ddc1a6229
617 changed files with 32107 additions and 32721 deletions

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum AccountAttentionReason
{
public enum AccountAttentionReason
{
None,
InvalidCredentials,
MissingSystemFolderConfiguration
}
None,
InvalidCredentials,
MissingSystemFolderConfiguration
}

View File

@@ -1,17 +1,16 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum AccountCreationDialogState
{
public enum AccountCreationDialogState
{
Idle,
SigningIn,
PreparingFolders,
Completed,
ManuelSetupWaiting,
TestingConnection,
AutoDiscoverySetup,
AutoDiscoveryInProgress,
FetchingProfileInformation,
Canceled,
FetchingEvents
}
Idle,
SigningIn,
PreparingFolders,
Completed,
ManuelSetupWaiting,
TestingConnection,
AutoDiscoverySetup,
AutoDiscoveryInProgress,
FetchingProfileInformation,
Canceled,
FetchingEvents
}

View File

@@ -1,12 +1,11 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// Indicates the state of synchronizer.
/// </summary>
public enum AccountSynchronizerState
{
/// <summary>
/// Indicates the state of synchronizer.
/// </summary>
public enum AccountSynchronizerState
{
Idle,
ExecutingRequests,
Synchronizing
}
Idle,
ExecutingRequests,
Synchronizing
}

View File

@@ -1,21 +1,20 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum AppLanguage
{
public enum AppLanguage
{
None,
English,
Deutsch,
Russian,
Turkish,
Polish,
Czech,
Chinese,
Spanish,
French,
Indonesian,
Greek,
PortugeseBrazil,
Italian,
Romanian
}
None,
English,
Deutsch,
Russian,
Turkish,
Polish,
Czech,
Chinese,
Spanish,
French,
Indonesian,
Greek,
PortugeseBrazil,
Italian,
Romanian
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum AppThemeType
{
public enum AppThemeType
{
System,
PreDefined,
Custom,
}
System,
PreDefined,
Custom,
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum ApplicationElementTheme
{
public enum ApplicationElementTheme
{
Default,
Light,
Dark
}
Default,
Light,
Dark
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum AttendeeStatus
{
public enum AttendeeStatus
{
NeedsAction,
Accepted,
Tentative,
Declined
}
NeedsAction,
Accepted,
Tentative,
Declined
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum BackgroundSynchronizationReason
{
public enum BackgroundSynchronizationReason
{
SessionConnected,
Timer
}
SessionConnected,
Timer
}

View File

@@ -1,11 +1,10 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarDisplayType
{
public enum CalendarDisplayType
{
Day,
Week,
WorkWeek,
Month,
Year
}
Day,
Week,
WorkWeek,
Month,
Year
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarEventTargetType
{
public enum CalendarEventTargetType
{
Single, // Show details for a single event.
Series // Show the series event. Parent of all recurring events.
}
Single, // Show details for a single event.
Series // Show the series event. Parent of all recurring events.
}

View File

@@ -1,11 +1,10 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// Trigger to load more data.
/// </summary>
public enum CalendarInitInitiative
{
/// <summary>
/// Trigger to load more data.
/// </summary>
public enum CalendarInitInitiative
{
User,
App
}
User,
App
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarItemRecurrenceFrequency
{
public enum CalendarItemRecurrenceFrequency
{
Daily,
Weekly,
Monthly,
Yearly
}
Daily,
Weekly,
Monthly,
Yearly
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarItemReminderType
{
public enum CalendarItemReminderType
{
Popup,
Email
}
Popup,
Email
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarItemStatus
{
public enum CalendarItemStatus
{
NotResponded,
Confirmed,
Tentative,
Cancelled,
}
NotResponded,
Confirmed,
Tentative,
Cancelled,
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarItemVisibility
{
public enum CalendarItemVisibility
{
Default,
Public,
Private,
Confidential
}
Default,
Public,
Private,
Confidential
}

View File

@@ -1,12 +1,11 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// Which way in time to load more data for calendar.
/// </summary>
public enum CalendarLoadDirection
{
/// <summary>
/// Which way in time to load more data for calendar.
/// </summary>
public enum CalendarLoadDirection
{
Replace,
Previous,
Next
}
Replace,
Previous,
Next
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarOrientation
{
public enum CalendarOrientation
{
Horizontal,
Vertical
}
Horizontal,
Vertical
}

View File

@@ -1,11 +1,10 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CalendarSynchronizationType
{
public enum CalendarSynchronizationType
{
ExecuteRequests, // Execute all requests in the queue.
CalendarMetadata, // Sync calendar metadata.
CalendarEvents, // Sync all events for all calendars.
SingleCalendar, // Sync events for only specified calendars.
UpdateProfile // Update profile information only.
}
ExecuteRequests, // Execute all requests in the queue.
CalendarMetadata, // Sync calendar metadata.
CalendarEvents, // Sync all events for all calendars.
SingleCalendar, // Sync events for only specified calendars.
UpdateProfile // Update profile information only.
}

View File

@@ -1,24 +1,23 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum ChangeRequestType
{
public enum ChangeRequestType
{
MailMarkAs,
MailChangeFlag,
MailHardDelete,
MailMove,
MailAlwaysMoveTo,
MailChangeFocused,
MailArchive,
MailUnarchive,
FolderMarkAsRead,
FolderDelete,
FolderEmpty,
FolderRename,
CreateNewDraft,
CreateReplyDraft,
CreateForwardDraft,
DiscardDraft,
SendDraft,
FetchSingleItem
}
MailMarkAs,
MailChangeFlag,
MailHardDelete,
MailMove,
MailAlwaysMoveTo,
MailChangeFocused,
MailArchive,
MailUnarchive,
FolderMarkAsRead,
FolderDelete,
FolderEmpty,
FolderRename,
CreateNewDraft,
CreateReplyDraft,
CreateForwardDraft,
DiscardDraft,
SendDraft,
FetchSingleItem
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum CustomIncomingServerType
{
public enum CustomIncomingServerType
{
POP3,
IMAP4
}
POP3,
IMAP4
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum DayHeaderDisplayType
{
public enum DayHeaderDisplayType
{
TwelveHour,
TwentyFourHour,
}
TwelveHour,
TwentyFourHour,
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum DraftCreationReason
{
public enum DraftCreationReason
{
Empty,
Reply,
ReplyAll,
Forward
}
Empty,
Reply,
ReplyAll,
Forward
}

View File

@@ -1,11 +1,10 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum FilterOptionType
{
public enum FilterOptionType
{
All,
Unread,
Flagged,
Mentions,
Files
}
All,
Unread,
Flagged,
Mentions,
Files
}

View File

@@ -1,23 +1,22 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// Defines all possible folder operations that can be done.
/// Available values for each folder is returned by IContextMenuProvider
/// that integrators hold.
/// </summary>
public enum FolderOperation
{
/// <summary>
/// Defines all possible folder operations that can be done.
/// Available values for each folder is returned by IContextMenuProvider
/// that integrators hold.
/// </summary>
public enum FolderOperation
{
None,
Pin,
Unpin,
MarkAllAsRead,
DontSync,
Empty,
Rename,
Delete,
Move,
TurnOffNotifications,
CreateSubFolder,
Seperator
}
None,
Pin,
Unpin,
MarkAllAsRead,
DontSync,
Empty,
Rename,
Delete,
Move,
TurnOffNotifications,
CreateSubFolder,
Seperator
}

View File

@@ -1,13 +1,12 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum ImapAuthenticationMethod
{
public enum ImapAuthenticationMethod
{
Auto,
None,
NormalPassword,
EncryptedPassword,
Ntlm,
CramMd5,
DigestMd5
}
Auto,
None,
NormalPassword,
EncryptedPassword,
Ntlm,
CramMd5,
DigestMd5
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum ImapConnectionSecurity
{
public enum ImapConnectionSecurity
{
Auto,
None,
StartTls,
SslTls
}
Auto,
None,
StartTls,
SslTls
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum InfoBarAnimationType
{
public enum InfoBarAnimationType
{
SlideFromRightToLeft,
SlideFromBottomToTop
}
SlideFromRightToLeft,
SlideFromBottomToTop
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum InfoBarMessageType
{
public enum InfoBarMessageType
{
Information,
Success,
Warning,
Error
}
Information,
Success,
Warning,
Error
}

View File

@@ -1,16 +1,15 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum MailAttachmentType
{
public enum MailAttachmentType
{
None,
Executable,
Image,
Audio,
Video,
PDF,
HTML,
RarArchive,
Archive,
Other
}
None,
Executable,
Image,
Audio,
Video,
PDF,
HTML,
RarArchive,
Archive,
Other
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum MailImportance
{
public enum MailImportance
{
Low,
Normal,
High
}
Low,
Normal,
High
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum MailListDisplayMode
{
public enum MailListDisplayMode
{
Spacious,
Medium,
Compact,
}
Spacious,
Medium,
Compact,
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum MailMarkAsOption
{
public enum MailMarkAsOption
{
WhenSelected,
DontMark,
AfterDelay
}
WhenSelected,
DontMark,
AfterDelay
}

View File

@@ -1,58 +1,57 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
// Synchronizer requests.
public enum MailSynchronizerOperation
{
// Synchronizer requests.
public enum MailSynchronizerOperation
{
MarkRead,
Move,
Delete, // Hard delete.
CreateDraft,
Send,
ChangeFlag,
AlwaysMoveTo,
MoveToFocused,
Archive,
}
public enum FolderSynchronizerOperation
{
RenameFolder,
EmptyFolder,
MarkFolderRead,
}
// UI requests
public enum MailOperation
{
None,
Archive,
UnArchive,
SoftDelete,
HardDelete,
Move,
MoveToJunk,
MoveToFocused,
MoveToOther,
AlwaysMoveToOther,
AlwaysMoveToFocused,
SetFlag,
ClearFlag,
MarkAsRead,
MarkAsUnread,
MarkAsNotJunk,
Seperator,
Ignore,
Reply,
ReplyAll,
Zoom,
SaveAs,
Find,
Forward,
DarkEditor,
LightEditor,
Print,
ViewMessageSource,
DiscardLocalDraft,
Navigate // For toast activation
}
MarkRead,
Move,
Delete, // Hard delete.
CreateDraft,
Send,
ChangeFlag,
AlwaysMoveTo,
MoveToFocused,
Archive,
}
public enum FolderSynchronizerOperation
{
RenameFolder,
EmptyFolder,
MarkFolderRead,
}
// UI requests
public enum MailOperation
{
None,
Archive,
UnArchive,
SoftDelete,
HardDelete,
Move,
MoveToJunk,
MoveToFocused,
MoveToOther,
AlwaysMoveToOther,
AlwaysMoveToFocused,
SetFlag,
ClearFlag,
MarkAsRead,
MarkAsUnread,
MarkAsNotJunk,
Seperator,
Ignore,
Reply,
ReplyAll,
Zoom,
SaveAs,
Find,
Forward,
DarkEditor,
LightEditor,
Print,
ViewMessageSource,
DiscardLocalDraft,
Navigate // For toast activation
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum MailProviderType
{
public enum MailProviderType
{
Outlook,
Gmail,
IMAP4 = 4 // 2-3 were removed after release. Don't change for backward compatibility.
}
Outlook,
Gmail,
IMAP4 = 4 // 2-3 were removed after release. Don't change for backward compatibility.
}

View File

@@ -1,14 +1,13 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum MailSynchronizationType
{
public enum MailSynchronizationType
{
UpdateProfile, // Only update profile information
ExecuteRequests, // Run the queued requests, and then synchronize if needed.
FoldersOnly, // Only synchronize folder metadata.
InboxOnly, // Only Inbox, Sent, Draft and Deleted folders.
CustomFolders, // Only sync folders that are specified in the options.
FullFolders, // Synchronize all folders. This won't update profile or alias information.
Alias, // Only update alias information
IMAPIdle // Idle client triggered synchronization.
}
UpdateProfile, // Only update profile information
ExecuteRequests, // Run the queued requests, and then synchronize if needed.
FoldersOnly, // Only synchronize folder metadata.
InboxOnly, // Only Inbox, Sent, Draft and Deleted folders.
CustomFolders, // Only sync folders that are specified in the options.
FullFolders, // Synchronize all folders. This won't update profile or alias information.
Alias, // Only update alias information
IMAPIdle // Idle client triggered synchronization.
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum NavigationReferenceFrame
{
public enum NavigationReferenceFrame
{
ShellFrame,
RenderingFrame
}
ShellFrame,
RenderingFrame
}

View File

@@ -1,12 +1,11 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// Defines the potential reasons for picking folder in the folder picking dialog.
/// </summary>
public enum PickFolderReason
{
/// <summary>
/// Defines the potential reasons for picking folder in the folder picking dialog.
/// </summary>
public enum PickFolderReason
{
Move,
SpecialFolder,
Any
}
Move,
SpecialFolder,
Any
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum PrintingResult
{
public enum PrintingResult
{
Abandoned,
Canceled,
Failed,
Submitted
}
Abandoned,
Canceled,
Failed,
Submitted
}

View File

@@ -1,12 +1,11 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// What should happen to server app when the client is terminated.
/// </summary>
public enum ServerBackgroundMode
{
/// <summary>
/// What should happen to server app when the client is terminated.
/// </summary>
public enum ServerBackgroundMode
{
MinimizedTray, // Still runs, tray icon is visible.
Invisible, // Still runs, tray icon is invisible.
Terminate // Server is terminated as Wino terminates.
}
MinimizedTray, // Still runs, tray icon is visible.
Invisible, // Still runs, tray icon is invisible.
Terminate // Server is terminated as Wino terminates.
}

View File

@@ -1,8 +1,7 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum SortingOptionType
{
public enum SortingOptionType
{
ReceiveDate,
Sender
}
ReceiveDate,
Sender
}

View File

@@ -1,24 +1,23 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum SpecialFolderType
{
public enum SpecialFolderType
{
Inbox,
Starred,
Important,
Sent,
Draft,
Archive,
Deleted,
Junk,
Chat,
Category,
Unread,
Forums,
Updates,
Personal,
Promotions,
Social,
Other,
More
}
Inbox,
Starred,
Important,
Sent,
Draft,
Archive,
Deleted,
Junk,
Chat,
Category,
Unread,
Forums,
Updates,
Personal,
Promotions,
Social,
Other,
More
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum SpecialImapProvider
{
public enum SpecialImapProvider
{
None,
iCloud,
Yahoo
}
None,
iCloud,
Yahoo
}

View File

@@ -1,11 +1,10 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum StartupBehaviorResult
{
public enum StartupBehaviorResult
{
Enabled,
Disabled,
DisabledByUser,
DisabledByPolicy,
Fatal
}
Enabled,
Disabled,
DisabledByUser,
DisabledByPolicy,
Fatal
}

View File

@@ -1,19 +1,18 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
// From the SDK.
public enum StorePurchaseResult
{
// From the SDK.
public enum StorePurchaseResult
{
//
// Summary:
// The purchase request succeeded.
Succeeded,
//
// Summary:
// The current user has already purchased the specified app or add-on.
AlreadyPurchased,
//
// Summary:
// The purchase request did not succeed.
NotPurchased,
}
//
// Summary:
// The purchase request succeeded.
Succeeded,
//
// Summary:
// The current user has already purchased the specified app or add-on.
AlreadyPurchased,
//
// Summary:
// The purchase request did not succeed.
NotPurchased,
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum SynchronizationCompletedState
{
public enum SynchronizationCompletedState
{
Success, // All succeeded.
Canceled, // Canceled by user or HTTP call.
Failed // Exception.
}
Success, // All succeeded.
Canceled, // Canceled by user or HTTP call.
Failed // Exception.
}

View File

@@ -1,12 +1,11 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
/// <summary>
/// Enumeration for the source of synchronization.
/// Right now it can either be from the client or the server.
/// </summary>
public enum SynchronizationSource
{
/// <summary>
/// Enumeration for the source of synchronization.
/// Right now it can either be from the client or the server.
/// </summary>
public enum SynchronizationSource
{
Client,
Server
}
Client,
Server
}

View File

@@ -1,9 +1,8 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum WinoAppType
{
public enum WinoAppType
{
Unknown,
Mail,
Calendar
}
Unknown,
Mail,
Calendar
}

View File

@@ -1,10 +1,9 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum WinoCustomMessageDialogIcon
{
public enum WinoCustomMessageDialogIcon
{
Information,
Warning,
Error,
Question
}
Information,
Warning,
Error,
Question
}

View File

@@ -1,34 +1,33 @@
namespace Wino.Core.Domain.Enums
{
/// <summary>
/// All registered views.
/// </summary>
public enum WinoPage
{
None,
IdlePage,
ComposePage,
SettingsPage,
MailRenderingPage,
WelcomePage,
AccountDetailsPage,
MergedAccountDetailsPage,
ManageAccountsPage,
AccountManagementPage,
SignatureManagementPage,
AboutPage,
PersonalizationPage,
MessageListPage,
MailListPage,
ReadComposePanePage,
LanguageTimePage,
AppPreferencesPage,
SettingOptionsPage,
AliasManagementPage,
namespace Wino.Core.Domain.Enums;
// Calendar
CalendarPage,
CalendarSettingsPage,
EventDetailsPage
}
/// <summary>
/// All registered views.
/// </summary>
public enum WinoPage
{
None,
IdlePage,
ComposePage,
SettingsPage,
MailRenderingPage,
WelcomePage,
AccountDetailsPage,
MergedAccountDetailsPage,
ManageAccountsPage,
AccountManagementPage,
SignatureManagementPage,
AboutPage,
PersonalizationPage,
MessageListPage,
MailListPage,
ReadComposePanePage,
LanguageTimePage,
AppPreferencesPage,
SettingOptionsPage,
AliasManagementPage,
// Calendar
CalendarPage,
CalendarSettingsPage,
EventDetailsPage
}

View File

@@ -1,11 +1,10 @@
namespace Wino.Core.Domain.Enums
namespace Wino.Core.Domain.Enums;
public enum WinoServerConnectionStatus
{
public enum WinoServerConnectionStatus
{
None,
Connecting,
Connected,
Disconnected,
Failed
}
None,
Connecting,
Connected,
Disconnected,
Failed
}