[gmime] Renamed GMime.Object to GMime.PartBase
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Renamed GMime.Object to GMime.PartBase
- Date: Fri, 18 Mar 2011 23:29:04 +0000 (UTC)
commit 8d6c7b7f3f10d80cfd96cf96e99447bfd18080bd
Author: Jeffrey Stedfast <fejj gnome org>
Date: Fri Mar 18 19:28:40 2011 -0400
Renamed GMime.Object to GMime.PartBase
mono/GMime.metadata | 14 ++++++++------
mono/Multipart.custom | 26 +++++++++++++-------------
2 files changed, 21 insertions(+), 19 deletions(-)
---
diff --git a/mono/GMime.metadata b/mono/GMime.metadata
index 40e3226..d42a4fd 100644
--- a/mono/GMime.metadata
+++ b/mono/GMime.metadata
@@ -156,11 +156,12 @@
<attr path="/api/namespace/enum/member[ cname='GMIME_STREAM_SEEK_CUR']" name="value">1</attr>
<attr path="/api/namespace/enum/member[ cname='GMIME_STREAM_SEEK_END']" name="value">2</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_NONE']" name="name">None</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_EXPSIG']" name="name">ExpiredSignature</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_NO_PUBKEY']" name="name">NoPublicKey</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_EXPKEYSIG']" name="name">ExpiredSignatureKey</attr>
- <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNER_ERROR_REVKEYSIG']" name="name">RevokedSignatureKey</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNATURE_ERROR_NONE']" name="name">None</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNATURE_ERROR_EXPSIG']" name="name">ExpiredSignature</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNATURE_ERROR_NO_PUBKEY']" name="name">NoPublicKey</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNATURE_ERROR_EXPKEYSIG']" name="name">ExpiredSignatureKey</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNATURE_ERROR_REVKEYSIG']" name="name">RevokedSignatureKey</attr>
+ <attr path="/api/namespace/enum/member[ cname='GMIME_SIGNATURE_ERROR_UNSUPP_ALGO']" name="name">UnsupportedAlgorithm</attr>
<!-- Filter -->
<attr path="/api/namespace/object[ cname='GMimeFilter']" name="abstract">1</attr>
@@ -175,7 +176,7 @@
<attr path="/api/namespace/object[ cname='GMimeFilter']/method[ name='Backup']/*/parameter[ name='buf']" name="array">true</attr>
<attr path="/api/namespace/object[ cname='GMimeFilter']/method[ name='Backup']/*/parameter[ name='length']" name="name">n_buf</attr>
- <!-- GPGContext -->
+ <!-- GpgContext -->
<!-- Header -->
<remove-node path="/api/namespace/struct[ cname='GMimeHeader']"/>
@@ -278,6 +279,7 @@
<!-- MultipartSigned -->
<!-- Object -->
+ <attr path="/api/namespace/object[ cname='GMimeObject']" name="name">PartBase</attr>
<!-- Clean up some unnecessary helper methods from GMimeObject -->
<remove-node path="/api/namespace/object[ cname='GMimeObject']/method[ cname='g_mime_object_get_content_type_parameter']"/>
<remove-node path="/api/namespace/object[ cname='GMimeObject']/method[ cname='g_mime_object_set_content_type_parameter']"/>
diff --git a/mono/Multipart.custom b/mono/Multipart.custom
index 87e471e..7ef6f44 100644
--- a/mono/Multipart.custom
+++ b/mono/Multipart.custom
@@ -91,7 +91,7 @@
get { return this; }
}
- public int Add (GMime.Object part)
+ public int Add (GMime.PartBase part)
{
if (part == null)
throw CannotAdd (part);
@@ -101,7 +101,7 @@
int IList.Add (object value)
{
- GMime.Object part = value as GMime.Object;
+ GMime.PartBase part = value as GMime.PartBase;
if (part == null)
throw CannotAdd (value);
@@ -114,7 +114,7 @@
g_mime_multipart_clear (Handle);
}
- public bool Contains (GMime.Object part)
+ public bool Contains (GMime.PartBase part)
{
if (part == null)
return false;
@@ -124,7 +124,7 @@
bool IList.Contains (object value)
{
- return Contains (value as GMime.Object);
+ return Contains (value as GMime.PartBase);
}
public void CopyTo (Array array, int index)
@@ -146,7 +146,7 @@
return new GMimeMultipartIterator (this);
}
- public int IndexOf (GMime.Object part)
+ public int IndexOf (GMime.PartBase part)
{
if (part == null)
return -1;
@@ -156,10 +156,10 @@
int IList.IndexOf (object value)
{
- return IndexOf (value as GMime.Object);
+ return IndexOf (value as GMime.PartBase);
}
- public void Insert (int index, GMime.Object part)
+ public void Insert (int index, GMime.PartBase part)
{
if (part == null)
throw CannotInsert (part);
@@ -172,7 +172,7 @@
void IList.Insert (int index, object value)
{
- GMime.Object part = value as GMime.Object;
+ GMime.PartBase part = value as GMime.PartBase;
if (part == null)
throw CannotInsert (value);
@@ -180,7 +180,7 @@
Insert (index, part);
}
- public void Remove (GMime.Object part)
+ public void Remove (GMime.PartBase part)
{
if (part == null)
throw CannotRemove (part);
@@ -190,7 +190,7 @@
void IList.Remove (object value)
{
- GMime.Object part = value as GMime.Object;
+ GMime.PartBase part = value as GMime.PartBase;
if (part == null)
throw CannotRemove (value);
@@ -206,14 +206,14 @@
g_mime_multipart_remove_at (Handle, index);
}
- public GMime.Object this[int index] {
+ public GMime.PartBase this[int index] {
get {
IntPtr raw = g_mime_multipart_get_part (Handle, index);
if (raw == IntPtr.Zero)
return null;
- return GLib.Object.GetObject (raw) as GMime.Object;
+ return GLib.Object.GetObject (raw) as GMime.PartBase;
}
set {
@@ -238,7 +238,7 @@
}
set {
- this[index] = value as GMime.Object;
+ this[index] = value as GMime.PartBase;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]