changeset 14994: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 f92232fcde41
children 5d71039b20eb
files libgaim/plugins/mono/api/BlistNode.cs libgaim/plugins/mono/api/Buddy.cs libgaim/plugins/mono/api/BuddyList.cs libgaim/plugins/mono/api/Contact.cs libgaim/plugins/mono/api/GaimPlugin.cs libgaim/plugins/mono/api/Group.cs libgaim/plugins/mono/api/Makefile.am
diffstat 7 files changed, 66 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgaim/plugins/mono/api/BlistNode.cs	Sat Nov 18 04:03:48 2006 +0000
@@ -0,0 +1,4 @@
+namespace Gaim {
+	public abstract class BlistNode {
+	}
+}
--- a/libgaim/plugins/mono/api/Buddy.cs	Fri Nov 17 21:54:46 2006 +0000
+++ b/libgaim/plugins/mono/api/Buddy.cs	Sat Nov 18 04:03:48 2006 +0000
@@ -1,10 +1,8 @@
-namespace Gaim
-{
-	public class Buddy
-	{
+namespace Gaim {
+	public class Buddy : BlistNode {
 		private string name;
 		private string alias;
-				
+
 		public string Name { get { return name; } set { name = value; } }
 		public string Alias { get { return alias; } set { alias = value; } }
 	}
--- a/libgaim/plugins/mono/api/BuddyList.cs	Fri Nov 17 21:54:46 2006 +0000
+++ b/libgaim/plugins/mono/api/BuddyList.cs	Sat Nov 18 04:03:48 2006 +0000
@@ -1,16 +1,15 @@
-using System;
-using System.Runtime.CompilerServices;
+namespace Gaim {
+	using System;
+	using System.Runtime.CompilerServices;
 
-namespace Gaim
-{
-	public class BuddyList
-	{
+	public class BuddyList {
 		[MethodImplAttribute(MethodImplOptions.InternalCall)]
 		extern private static IntPtr _get_handle();
 
 		private static IntPtr handle = _get_handle();
 		
-		public static Event OnBuddyStatusChanged = new Event(handle, "buddy-status-changed");
+		public static Event OnBuddyStatusChanged =
+			new Event(handle, "buddy-status-changed");
 		
 		public static IntPtr GetHandle()
 		{
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgaim/plugins/mono/api/Contact.cs	Sat Nov 18 04:03:48 2006 +0000
@@ -0,0 +1,4 @@
+namespace Gaim {
+	public class Contact : BlistNode {
+	}
+}
--- 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; }
+		}
 	}
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libgaim/plugins/mono/api/Group.cs	Sat Nov 18 04:03:48 2006 +0000
@@ -0,0 +1,4 @@
+namespace Gaim {
+	public class Group : BlistNode {
+	}
+}
--- a/libgaim/plugins/mono/api/Makefile.am	Fri Nov 17 21:54:46 2006 +0000
+++ b/libgaim/plugins/mono/api/Makefile.am	Sat Nov 18 04:03:48 2006 +0000
@@ -1,11 +1,14 @@
 monodir=$(libdir)/gaim
 mono_sources = \
-	GaimPlugin.cs \
-	Debug.cs \
+	BlistNode.cs \
 	BuddyList.cs \
 	Buddy.cs \
+	Contact.cs \
+	Debug.cs \
+	Event.cs \
+	GaimPlugin.cs \
+	Group.cs \
 	Signal.cs \
-	Event.cs \
 	Status.cs
 
 EXTRA_DIST = $(mono_sources)