mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
source code checkin
This commit is contained in:
parent
5f8fb2c825
commit
7e57b72e35
675 changed files with 168433 additions and 0 deletions
13
src/Plugin.Common/Interfaces/IAlertPlugin.cs
Normal file
13
src/Plugin.Common/Interfaces/IAlertPlugin.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
namespace ServerManagerTool.Plugin.Common
|
||||
{
|
||||
public interface IAlertPlugin : IPlugin
|
||||
{
|
||||
/// <summary>
|
||||
/// Handles the alert message passed for the profile.
|
||||
/// </summary>
|
||||
/// <param name="alertType">The type of alert message.</param>
|
||||
/// <param name="profileName">The name of the profile the alert message is associated with.</param>
|
||||
/// <param name="alertMessage">The message of the alert.</param>
|
||||
void HandleAlert(AlertType alertType, string profileName, string alertMessage);
|
||||
}
|
||||
}
|
||||
11
src/Plugin.Common/Interfaces/IBeta.cs
Normal file
11
src/Plugin.Common/Interfaces/IBeta.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
namespace ServerManagerTool.Plugin.Common
|
||||
{
|
||||
public interface IBeta
|
||||
{
|
||||
bool BetaEnabled
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
||||
56
src/Plugin.Common/Interfaces/IPlugin.cs
Normal file
56
src/Plugin.Common/Interfaces/IPlugin.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
using System;
|
||||
using System.Windows;
|
||||
|
||||
namespace ServerManagerTool.Plugin.Common
|
||||
{
|
||||
public interface IPlugin
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets a values indicating if the plugin can be used
|
||||
/// </summary>
|
||||
bool Enabled
|
||||
{
|
||||
get;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets a value indicating the code of the plugin
|
||||
/// </summary>
|
||||
string PluginCode
|
||||
{
|
||||
get;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets a value indicating the name of the plugin
|
||||
/// </summary>
|
||||
string PluginName
|
||||
{
|
||||
get;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets a value indicating the version of the plugin
|
||||
/// </summary>
|
||||
Version PluginVersion
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value that indicates if the plugin has a configuration form.
|
||||
/// </summary>
|
||||
bool HasConfigForm
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs any initialization for the plugin.
|
||||
/// </summary>
|
||||
void Initialize();
|
||||
|
||||
/// <summary>
|
||||
/// Opens the configuration form.
|
||||
/// </summary>
|
||||
/// <param name="owner">The owner window.</param>
|
||||
void OpenConfigForm(Window owner);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue