initial commit
Pulsar .NET 9.0 Windows Release / build (push) Waiting to run
Mirror to Codeberg and Gitea / mirror (push) Waiting to run

This commit is contained in:
i2p
2026-08-27 10:57:58 -06:00
commit 773d05f8f1
1038 changed files with 109261 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using Pulsar.Server.Networking;
namespace Pulsar.Server.Plugins
{
public interface IServerContext
{
Form MainForm { get; }
PulsarServer Server { get; }
void Log(string message);
void AddClientContextMenuItem(string text, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItem(string text, Icon icon, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItem(string section, string text, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItem(string section, string text, Icon icon, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItem(string[] sections, string text, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItem(string[] sections, string text, Icon icon, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItemPath(string path, string text, Action<IReadOnlyList<Client>> onClick);
void AddClientContextMenuItemPath(string path, string text, Icon icon, Action<IReadOnlyList<Client>> onClick);
void ApplyTheme(Action<Form> apply);
void ClearPluginMenuItems();
}
}