logo

PluginsManager class, provides plugins functions More...

Static Public Member Functions

static void LoadPlugins ()
 Load all enabled plugins More...
 
static void EnablePlugin (string dllfilename)
 Load a plugin. More...
 
static bool DisablePlugin (string dllfilename)
 Disable a plugin More...
 
static string[] GetInstalledPlugins ()
 Get the names of all plugins installed. More...
 
static string GetPluginName (Assembly pluginassembly)
 Get the name of the plugin. More...
 
static string GetPluginAuthor (Assembly pluginassembly)
 Get author or author company of the plugin. More...
 
static string GetPluginDescription (Assembly pluginassembly)
 Get file (short)description of the plugin. More...
 
static string GetPluginVersion (Assembly pluginassembly)
 Get version of the plugin as string. More...
 
static bool IsPluginEnabled (string dllfilename)
 Get if a plugin dll file enabled. More...
 
static short[] GetPluginVersionByName (string pluginname)
 Get the version of a plugin by the plugin name. More...
 
static short[] GetIPluginVersion ()
 Get the version information from the IPlugin libery. More...
 
static void SaveEnabledPlugins ()
 Save the enabled plugin settings. More...
 
static bool UpdatePluginReplaceFiles ()
  More...
 

Properties

static string[] InstalledPlugins [get]
 Gets the installed plugins as array. More...
 
static List< IPlugin.IPluginEnabledPlugins [get]
 Gets the list with all enabled plugins More...
 

Static Private Member Functions

static string[] GetDllFilesFolder (string folder)
 Get all the dll filenames(without full path) in the plugin directory. More...
 
static bool IsPluginFileExcluded (string dllfilename)
 Is the dll files excluded as plugin in the plugin directory. More...
 

Static Private Attributes

static List< string > installedplugins = new List<string>()
 A list of installed plugins dll filenames More...
 
static List< IPlugin.IPluginenabledplugins = new List<IPlugin.IPlugin>()
 All the enabled plugins More...
 
static string[] excludedplugindlls
 An array of dll files that are not allow to be loaded as notefly plugin in the notefly plugin folder. More...
 

Detailed Description

Member Function Documentation

static bool NoteFly.PluginsManager.DisablePlugin ( string  dllfilename)
static
Parameters
dllfilenameThe plugin .dll file filename.
Returns
Return true if dll filename was found and plugin is disabled.
static void NoteFly.PluginsManager.EnablePlugin ( string  dllfilename)
static
Parameters
dllfilenameThe current list with loaded plugins
static string [] NoteFly.PluginsManager.GetDllFilesFolder ( string  folder)
staticprivate
Returns
All dll filenames as string array
static string [] NoteFly.PluginsManager.GetInstalledPlugins ( )
static
Returns
An array with installed plugin names.
static short [] NoteFly.PluginsManager.GetIPluginVersion ( )
static
Returns
Array with version numbers major, minor and release numbers.
static string NoteFly.PluginsManager.GetPluginAuthor ( Assembly  pluginassembly)
static
Parameters
pluginassemblyThe plugin assembly
Returns
The author or company of the plugin
static string NoteFly.PluginsManager.GetPluginDescription ( Assembly  pluginassembly)
static
Parameters
pluginassemblyThe plugin assembly
Returns
The description of the plugin
static string NoteFly.PluginsManager.GetPluginName ( Assembly  pluginassembly)
static
Parameters
pluginassemblyThe plugin assembly
Returns
The name of the plugin
static string NoteFly.PluginsManager.GetPluginVersion ( Assembly  pluginassembly)
static
Parameters
pluginassemblyThe plugin assembly
Returns
The version of the plugin as string
static short [] NoteFly.PluginsManager.GetPluginVersionByName ( string  pluginname)
static
Parameters
pluginnameThe name of the plugin
Returns
An array with the major, minor and release version numbers.
static bool NoteFly.PluginsManager.IsPluginEnabled ( string  dllfilename)
static
Parameters
dllfilenameThe plugin dll file
Returns
True if plugin is enabled.
static bool NoteFly.PluginsManager.IsPluginFileExcluded ( string  dllfilename)
staticprivate
Parameters
dllfilenameThe dll filename without path
Returns
True if it's excluded
static void NoteFly.PluginsManager.LoadPlugins ( )
static
static void NoteFly.PluginsManager.SaveEnabledPlugins ( )
static
static bool NoteFly.PluginsManager.UpdatePluginReplaceFiles ( )
static
Returns

Member Data Documentation

List<IPlugin.IPlugin> NoteFly.PluginsManager.enabledplugins = new List<IPlugin.IPlugin>()
staticprivate
string [] NoteFly.PluginsManager.excludedplugindlls
staticprivate
List<string> NoteFly.PluginsManager.installedplugins = new List<string>()
staticprivate

Property Documentation

List<IPlugin.IPlugin> NoteFly.PluginsManager.EnabledPlugins
staticget
string [] NoteFly.PluginsManager.InstalledPlugins
staticget