aboutsummaryrefslogtreecommitdiffstats
path: root/modules/plugin-mono
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-04-01 08:02:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-04-01 08:12:48 +0800
commit55d6580d8627a9a85df1e6b19529196d4d9ac95a (patch)
tree44ca6fbf16d4be1bace23baa9892f61560eb3fb4 /modules/plugin-mono
parentf91c4d78082e75b66bd394840670a88be09ec63c (diff)
downloadgsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.tar
gsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.tar.gz
gsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.tar.bz2
gsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.tar.lz
gsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.tar.xz
gsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.tar.zst
gsoc2013-evolution-55d6580d8627a9a85df1e6b19529196d4d9ac95a.zip
Stop relying on CamelObject meta-data.
Diffstat (limited to 'modules/plugin-mono')
-rw-r--r--modules/plugin-mono/Camel.cs62
1 files changed, 0 insertions, 62 deletions
diff --git a/modules/plugin-mono/Camel.cs b/modules/plugin-mono/Camel.cs
index 4ad80e7012..c415498c02 100644
--- a/modules/plugin-mono/Camel.cs
+++ b/modules/plugin-mono/Camel.cs
@@ -261,69 +261,7 @@ namespace Camel {
remove { removeEvent("finalize", ref finalise_id, value); }
}
- public event MetaChangedEvent MetaChanged {
- add { addEvent("meta_changed", ref meta_changed_id, (CamelEventFunc)metaChangedHook, value); }
- remove { removeEvent("meta_changed", ref meta_changed_id, value); }
- }
-
- [DllImport("camel-1.2")] static extern IntPtr camel_object_get_ptr(IntPtr raw, ref CamelException ex, int tag);
[DllImport("camel-1.2")] static extern void camel_object_free(IntPtr raw, int tag, IntPtr val);
- [DllImport("camel-1.2")] static extern int camel_object_get_int(IntPtr raw, ref CamelException ex, int tag);
-
- // maybe we want an indexer class to get properties?
- // e.g. name = folder.properties[Folder.Tag.NAME]
- public String getString(int type) {
- String s;
- IntPtr o;
- CamelException ex = new CamelException();
-
- o = camel_object_get_ptr(cobject, ref ex, type);
- if (ex.id != 0)
- throw new Camel.Exception(ex);
-
- s = Marshal.PtrToStringAuto(o);
- camel_object_free(cobject, type, o);
-
- return s;
- }
-
- public Camel.Object getObject(int type) {
- IntPtr o;
- Camel.Object co;
- CamelException ex = new CamelException();
-
- o = camel_object_get_ptr(cobject, ref ex, type);
- if (ex.id != 0)
- throw new Camel.Exception(ex);
-
- co = fromCamel(o);
- camel_object_free(cobject, type, o);
-
- return co;
- }
-
- public int getInt(int type) {
- int r;
- CamelException ex = new CamelException();
-
- r = camel_object_get_int(cobject, ref ex, type);
- if (ex.id != 0)
- throw new Camel.Exception(ex);
-
- return r;
- }
-
- // meta-data
- [DllImport("camel-1.2")] static extern String camel_object_meta_get(IntPtr raw, string name);
- [DllImport("camel-1.2")] static extern bool camel_object_meta_set(IntPtr raw, string name, string value);
-
- public String metaGet(String name) {
- return camel_object_meta_get(cobject, name);
- }
-
- public bool metaSet(String name, String value) {
- return camel_object_meta_set(cobject, name, value);
- }
}
public class Provider {