File: VCardAttribute.custom

package info (click to toggle)
evolution-sharp 0.17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,892 kB
  • ctags: 875
  • sloc: sh: 8,987; cs: 2,700; ansic: 712; makefile: 183; xml: 28
file content (22 lines) | stat: -rw-r--r-- 650 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//  VCardAttribute.custom - Hand stitched implementation of problematic methods.
//
//  Author: Veerapuram Varadhan   <vvaradhan@novell.com>
//
// Copyright <c> 2007-2008 Novell, Inc.
//
// Additions to the VCardAttribute class.

		[DllImport("ebook")]
		static extern void e_vcard_attribute_add_param(IntPtr raw, IntPtr param);
		[DllImport("ebook")]
		static extern IntPtr e_vcard_attribute_param_copy(IntPtr raw);

		public void AddParam(Evolution.VCardAttributeParam param) {
			IntPtr raw_ret = IntPtr.Zero;

			if (param != null)
				raw_ret = e_vcard_attribute_param_copy (param.Handle);

			e_vcard_attribute_add_param(Handle, raw_ret);
		}