Mercurial > pidgin
diff libgaim/plugins/mono/api/GaimPlugin.cs @ 14993:58849b67f00d
[gaim-migrate @ 17772]
A bit of long overdue work on this. There is no functional changes here, just getting started on this again :)
committer: Tailor Script <tailor@pidgin.im>
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Sat, 18 Nov 2006 04:03:48 +0000 |
parents | 60b1bc8dbf37 |
children |
line wrap: on
line diff
--- a/libgaim/plugins/mono/api/GaimPlugin.cs Fri Nov 17 21:54:46 2006 +0000 +++ b/libgaim/plugins/mono/api/GaimPlugin.cs Sat Nov 18 04:03:48 2006 +0000 @@ -1,7 +1,5 @@ -namespace Gaim -{ - public class GaimPluginInfo - { +namespace Gaim { + public class PluginInfo { private string name; private string version; private string summary; @@ -9,7 +7,8 @@ private string author; private string homepage; - public GaimPluginInfo(string name, string version, string summary, string description, string author, string homepage) + public PluginInfo(string name, string version, string summary, + string description, string author, string homepage) { this.name = name; this.version = version; @@ -18,21 +17,45 @@ this.author = author; this.homepage = homepage; } - - public string Name { get { return name; } } - public string Version { get { return version; } } - public string Summary { get { return summary; } } - public string Description { get { return description; } } - public string Author { get { return author; } } - public string Homepage { get { return homepage; } } + + public string Name { + get { return name; } + } + + public string Version { + get { return version; } + } + + public string Summary { + get { return summary; } + } + + public string Description { + get { return description; } + } + + public string Author { + get { return author; } + } + + public string Homepage { + get { return homepage; } + } } - abstract public class GaimPlugin - { + abstract public class Plugin { + private PluginInfo info; + + public Plugin(PluginInfo info) { + this.info = info; + } + public abstract void Load(); public abstract void Unload(); public abstract void Destroy(); - - public abstract GaimPluginInfo Info(); + + public PluginInfo Info { + get { return info; } + } } }