Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
evolution-sharp
es-task-bindings.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File es-task-bindings.diff of Package evolution-sharp
Index: evolution/src/CalComponent.cs =================================================================== --- evolution/src/CalComponent.cs (revision 198) +++ evolution/src/CalComponent.cs (working copy) @@ -250,7 +250,18 @@ e_cal_component_set_uid (Handle, value); } } + + [DllImport("ecal")] + static extern CalComponentVType e_cal_component_get_vtype (IntPtr handle); + public CalComponentVType VType + { + get + { + return e_cal_component_get_vtype (Handle); + } + } + [DllImport ("ecal")] static extern IntPtr e_cal_component_get_id (IntPtr handle); [DllImport ("ecal")] @@ -356,7 +367,24 @@ e_cal_component_set_status (Handle, (int) value); } } + + [DllImport("ecal")] + static extern int e_cal_component_get_percent_as_int (IntPtr raw); + [DllImport("ecal")] + static extern void e_cal_component_set_percent_as_int (IntPtr raw, int percent); + public int Percent + { + get + { + return e_cal_component_get_percent_as_int (Handle); + } + set + { + e_cal_component_set_percent_as_int (Handle, value); + } + } + [DllImport("evolutionglue")] static extern int e_cal_component_get_priority2 (IntPtr raw); [DllImport("ecal")] @@ -498,7 +526,25 @@ Marshal.FreeHGlobal (native_dt); } } + + public CalComponentDateTime DueDate { + get { + CalComponentDateTime dt = new CalComponentDateTime (); + IntPtr native_dt = GLib.Marshaller.StructureToPtrAlloc (dt); + e_cal_component_get_due (Handle, native_dt); + dt = (CalComponentDateTime) Marshal.PtrToStructure (native_dt, typeof (CalComponentDateTime)); + Marshal.FreeHGlobal (native_dt); + + return dt; + } + set { + IntPtr native_dt = GLib.Marshaller.StructureToPtrAlloc (value); + e_cal_component_set_due (Handle, native_dt); + Marshal.FreeHGlobal (native_dt); + } + } + #endif [DllImport("ecal")]
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor