Various Rust wrappers for GNOME calendar libraries
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Generate uncontroversial classes

No warnings or compilation errors

+12288 -4
+93 -2
ical-glib/Gir.toml
··· 9 9 generate_safety_asserts = true 10 10 deprecate_by_min_version = true 11 11 12 - generate = [] 12 + generate = [ 13 + # `Func`: unknown type 14 + # `new_from_data`: this is supposed to be a callback function but no callback was found... 15 + # "ICalGLib.Attach", 16 + "ICalGLib.Array", 17 + "ICalGLib.CompIter", 18 + "ICalGLib.Component", 19 + "ICalGLib.ComponentForeachRecurrenceFunc", 20 + "ICalGLib.ComponentForeachTZIDFunc", 21 + "ICalGLib.ComponentKind", 22 + "ICalGLib.Datetimeperiod", 23 + "ICalGLib.Duration", 24 + "ICalGLib.ErrorEnum", 25 + "ICalGLib.ErrorState", 26 + "ICalGLib.Geo", 27 + "ICalGLib.MimeParseFunc", 28 + # `i_cal_object_construct`: no user data point to the destroy callback 29 + # `i_cal_object_construct`: destructor without linked callback 30 + # Function "get_native_destroy_func" returns callback 31 + # `i_cal_object_set_native_destroy_func`: no user data point to the destroy callback 32 + # `i_cal_object_set_native_destroy_func`: destructor without linked callback 33 + # "ICalGLib.Object", 34 + "ICalGLib.Period", 35 + "ICalGLib.Parameter", 36 + "ICalGLib.ParameterAction", 37 + # error[E0277]: the trait bound `auto::enums::ParameterCutype: TryFromGlib<i32>` is not satisfied 38 + # "ICalGLib.ParameterCutype", 39 + "ICalGLib.ParameterEnable", 40 + "ICalGLib.ParameterDisplay", 41 + "ICalGLib.ParameterEncoding", 42 + "ICalGLib.ParameterFbtype", 43 + "ICalGLib.ParameterFeature", 44 + "ICalGLib.ParameterKind", 45 + "ICalGLib.ParameterLocal", 46 + "ICalGLib.ParameterPartstat", 47 + "ICalGLib.ParameterPatchaction", 48 + "ICalGLib.ParameterRange", 49 + "ICalGLib.ParameterRelated", 50 + "ICalGLib.ParameterReltype", 51 + "ICalGLib.ParameterRequired", 52 + "ICalGLib.ParameterRole", 53 + "ICalGLib.ParameterRsvp", 54 + "ICalGLib.ParameterScheduleagent", 55 + "ICalGLib.ParameterScheduleforcesend", 56 + "ICalGLib.ParameterStayinformed", 57 + "ICalGLib.ParameterSubstate", 58 + "ICalGLib.ParameterValue", 59 + "ICalGLib.ParameterXlicerrortype", 60 + "ICalGLib.ParameterXliccomparetype", 61 + # `ParserLineGenFunc`: unknown type 62 + # `get_line`: this is supposed to be a callback function but no callback was found... 63 + # "ICalGLib.Parser", 64 + "ICalGLib.ParserState", 65 + "ICalGLib.Property", 66 + "ICalGLib.PropertyAction", 67 + "ICalGLib.PropertyBusytype", 68 + "ICalGLib.PropertyCarlevel", 69 + "ICalGLib.Property_Class", 70 + "ICalGLib.PropertyCmd", 71 + "ICalGLib.PropertyKind", 72 + "ICalGLib.PropertyMethod", 73 + "ICalGLib.PropertyPollcompletion", 74 + "ICalGLib.PropertyPollmode", 75 + "ICalGLib.PropertyQuerylevel", 76 + "ICalGLib.PropertyStatus", 77 + "ICalGLib.PropertyTaskmode", 78 + "ICalGLib.PropertyTransp", 79 + "ICalGLib.PropertyXlicclass", 80 + "ICalGLib.RecurIterator", 81 + "ICalGLib.Recurrence", 82 + "ICalGLib.RecurrenceArraySizes", 83 + "ICalGLib.RecurrenceArrayMaxValues", 84 + "ICalGLib.RecurrenceFrequency", 85 + "ICalGLib.RecurrenceSkip", 86 + "ICalGLib.RecurrenceWeekday", 87 + "ICalGLib.Reqstat", 88 + "ICalGLib.RequestStatus", 89 + "ICalGLib.RestrictionKind", 90 + "ICalGLib.Time", 91 + "ICalGLib.TimeSpan", 92 + "ICalGLib.Timezone", 93 + "ICalGLib.Trigger", 94 + "ICalGLib.Unknowntokenhandling", 95 + "ICalGLib.Value", 96 + "ICalGLib.ValueKind", 97 + ] 13 98 14 - manual = [] 99 + manual = [ 100 + # Function "get_native_destroy_func" returns callback 101 + # "ICalGLib.Object", 102 + "GLib.Bytes", 103 + "GLib.Func", 104 + "GObject.Object", 105 + ]
+57
ical-glib/src/auto/array.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalArray")] 11 + pub struct Array(Object<ffi::ICalArray, ffi::ICalArrayClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_array_get_type(), 15 + } 16 + } 17 + 18 + impl Array { 19 + //#[doc(alias = "i_cal_array_new_full")] 20 + //pub fn new_full(native: /*Ignored*/&mut icalarray, owner: &impl IsA<glib::Object>, is_global_memory: bool) -> Array { 21 + // unsafe { TODO: call ffi:i_cal_array_new_full() } 22 + //} 23 + 24 + #[doc(alias = "i_cal_array_copy")] 25 + #[must_use] 26 + pub fn copy(&self) -> Option<Array> { 27 + unsafe { 28 + from_glib_full(ffi::i_cal_array_copy(self.to_glib_none().0)) 29 + } 30 + } 31 + 32 + #[doc(alias = "i_cal_array_element_at")] 33 + pub fn element_at(&self, position: i32) -> Option<glib::Object> { 34 + unsafe { 35 + from_glib_none(ffi::i_cal_array_element_at(self.to_glib_none().0, position)) 36 + } 37 + } 38 + 39 + #[doc(alias = "i_cal_array_remove_element_at")] 40 + pub fn remove_element_at(&self, position: i32) { 41 + unsafe { 42 + ffi::i_cal_array_remove_element_at(self.to_glib_none().0, position); 43 + } 44 + } 45 + 46 + #[doc(alias = "i_cal_array_size")] 47 + pub fn size(&self) -> i32 { 48 + unsafe { 49 + ffi::i_cal_array_size(self.to_glib_none().0) 50 + } 51 + } 52 + 53 + //#[doc(alias = "i_cal_array_sort")] 54 + //pub fn sort(&self, compare: /*Unimplemented*/Option<Basic: Pointer>) { 55 + // unsafe { TODO: call ffi:i_cal_array_sort() } 56 + //} 57 + }
+49
ical-glib/src/auto/comp_iter.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Component}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalCompIter")] 11 + pub struct CompIter(Object<ffi::ICalCompIter, ffi::ICalCompIterClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_comp_iter_get_type(), 15 + } 16 + } 17 + 18 + impl CompIter { 19 + //#[doc(alias = "i_cal_comp_iter_new_full")] 20 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> CompIter { 21 + // unsafe { TODO: call ffi:i_cal_comp_iter_new_full() } 22 + //} 23 + 24 + #[doc(alias = "i_cal_comp_iter_deref")] 25 + pub fn deref(&self) -> Option<Component> { 26 + unsafe { 27 + from_glib_full(ffi::i_cal_comp_iter_deref(self.to_glib_none().0)) 28 + } 29 + } 30 + 31 + #[doc(alias = "i_cal_comp_iter_next")] 32 + pub fn next(&self) -> Option<Component> { 33 + unsafe { 34 + from_glib_full(ffi::i_cal_comp_iter_next(self.to_glib_none().0)) 35 + } 36 + } 37 + 38 + #[doc(alias = "i_cal_comp_iter_prior")] 39 + pub fn prior(&self) -> Option<Component> { 40 + unsafe { 41 + from_glib_full(ffi::i_cal_comp_iter_prior(self.to_glib_none().0)) 42 + } 43 + } 44 + 45 + //#[doc(alias = "i_cal_comp_iter_new_default")] 46 + //pub fn new_default() -> /*Unimplemented*/Option<Basic: Pointer> { 47 + // unsafe { TODO: call ffi:i_cal_comp_iter_new_default() } 48 + //} 49 + }
+713
ical-glib/src/auto/component.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,CompIter,ComponentKind,Duration,Property,PropertyKind,PropertyMethod,PropertyStatus,Time,TimeSpan,Timezone}; 7 + #[cfg(feature = "v3_0_5")] 8 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 9 + use crate::{Parameter}; 10 + use glib::{translate::*}; 11 + 12 + glib::wrapper! { 13 + #[doc(alias = "ICalComponent")] 14 + pub struct Component(Object<ffi::ICalComponent, ffi::ICalComponentClass>); 15 + 16 + match fn { 17 + type_ => || ffi::i_cal_component_get_type(), 18 + } 19 + } 20 + 21 + impl Component { 22 + #[doc(alias = "i_cal_component_new")] 23 + pub fn new(kind: ComponentKind) -> Component { 24 + assert_initialized_main_thread!(); 25 + unsafe { 26 + from_glib_full(ffi::i_cal_component_new(kind.into_glib())) 27 + } 28 + } 29 + 30 + #[doc(alias = "i_cal_component_new_from_string")] 31 + #[doc(alias = "new_from_string")] 32 + pub fn from_string(str: &str) -> Component { 33 + assert_initialized_main_thread!(); 34 + unsafe { 35 + from_glib_full(ffi::i_cal_component_new_from_string(str.to_glib_none().0)) 36 + } 37 + } 38 + 39 + //#[doc(alias = "i_cal_component_new_full")] 40 + //pub fn new_full(native: /*Ignored*/&mut icalcomponent, owner: &impl IsA<glib::Object>) -> Component { 41 + // unsafe { TODO: call ffi:i_cal_component_new_full() } 42 + //} 43 + 44 + #[doc(alias = "i_cal_component_new_vagenda")] 45 + pub fn new_vagenda() -> Component { 46 + assert_initialized_main_thread!(); 47 + unsafe { 48 + from_glib_full(ffi::i_cal_component_new_vagenda()) 49 + } 50 + } 51 + 52 + #[doc(alias = "i_cal_component_new_valarm")] 53 + pub fn new_valarm() -> Component { 54 + assert_initialized_main_thread!(); 55 + unsafe { 56 + from_glib_full(ffi::i_cal_component_new_valarm()) 57 + } 58 + } 59 + 60 + #[doc(alias = "i_cal_component_new_vavailability")] 61 + pub fn new_vavailability() -> Component { 62 + assert_initialized_main_thread!(); 63 + unsafe { 64 + from_glib_full(ffi::i_cal_component_new_vavailability()) 65 + } 66 + } 67 + 68 + #[doc(alias = "i_cal_component_new_vcalendar")] 69 + pub fn new_vcalendar() -> Component { 70 + assert_initialized_main_thread!(); 71 + unsafe { 72 + from_glib_full(ffi::i_cal_component_new_vcalendar()) 73 + } 74 + } 75 + 76 + #[doc(alias = "i_cal_component_new_vevent")] 77 + pub fn new_vevent() -> Component { 78 + assert_initialized_main_thread!(); 79 + unsafe { 80 + from_glib_full(ffi::i_cal_component_new_vevent()) 81 + } 82 + } 83 + 84 + #[doc(alias = "i_cal_component_new_vfreebusy")] 85 + pub fn new_vfreebusy() -> Component { 86 + assert_initialized_main_thread!(); 87 + unsafe { 88 + from_glib_full(ffi::i_cal_component_new_vfreebusy()) 89 + } 90 + } 91 + 92 + #[doc(alias = "i_cal_component_new_vjournal")] 93 + pub fn new_vjournal() -> Component { 94 + assert_initialized_main_thread!(); 95 + unsafe { 96 + from_glib_full(ffi::i_cal_component_new_vjournal()) 97 + } 98 + } 99 + 100 + #[doc(alias = "i_cal_component_new_vpoll")] 101 + pub fn new_vpoll() -> Component { 102 + assert_initialized_main_thread!(); 103 + unsafe { 104 + from_glib_full(ffi::i_cal_component_new_vpoll()) 105 + } 106 + } 107 + 108 + #[doc(alias = "i_cal_component_new_vquery")] 109 + pub fn new_vquery() -> Component { 110 + assert_initialized_main_thread!(); 111 + unsafe { 112 + from_glib_full(ffi::i_cal_component_new_vquery()) 113 + } 114 + } 115 + 116 + #[doc(alias = "i_cal_component_new_vtimezone")] 117 + pub fn new_vtimezone() -> Component { 118 + assert_initialized_main_thread!(); 119 + unsafe { 120 + from_glib_full(ffi::i_cal_component_new_vtimezone()) 121 + } 122 + } 123 + 124 + #[doc(alias = "i_cal_component_new_vtodo")] 125 + pub fn new_vtodo() -> Component { 126 + assert_initialized_main_thread!(); 127 + unsafe { 128 + from_glib_full(ffi::i_cal_component_new_vtodo()) 129 + } 130 + } 131 + 132 + #[doc(alias = "i_cal_component_new_vvoter")] 133 + pub fn new_vvoter() -> Component { 134 + assert_initialized_main_thread!(); 135 + unsafe { 136 + from_glib_full(ffi::i_cal_component_new_vvoter()) 137 + } 138 + } 139 + 140 + #[doc(alias = "i_cal_component_new_x")] 141 + pub fn new_x(x_name: &str) -> Component { 142 + assert_initialized_main_thread!(); 143 + unsafe { 144 + from_glib_full(ffi::i_cal_component_new_x(x_name.to_glib_none().0)) 145 + } 146 + } 147 + 148 + #[doc(alias = "i_cal_component_new_xavailable")] 149 + pub fn new_xavailable() -> Component { 150 + assert_initialized_main_thread!(); 151 + unsafe { 152 + from_glib_full(ffi::i_cal_component_new_xavailable()) 153 + } 154 + } 155 + 156 + #[doc(alias = "i_cal_component_new_xdaylight")] 157 + pub fn new_xdaylight() -> Component { 158 + assert_initialized_main_thread!(); 159 + unsafe { 160 + from_glib_full(ffi::i_cal_component_new_xdaylight()) 161 + } 162 + } 163 + 164 + #[doc(alias = "i_cal_component_new_xstandard")] 165 + pub fn new_xstandard() -> Component { 166 + assert_initialized_main_thread!(); 167 + unsafe { 168 + from_glib_full(ffi::i_cal_component_new_xstandard()) 169 + } 170 + } 171 + 172 + #[doc(alias = "i_cal_component_new_xvote")] 173 + pub fn new_xvote() -> Component { 174 + assert_initialized_main_thread!(); 175 + unsafe { 176 + from_glib_full(ffi::i_cal_component_new_xvote()) 177 + } 178 + } 179 + 180 + #[doc(alias = "i_cal_component_add_component")] 181 + pub fn add_component(&self, child: &Component) { 182 + unsafe { 183 + ffi::i_cal_component_add_component(self.to_glib_none().0, child.to_glib_none().0); 184 + } 185 + } 186 + 187 + #[doc(alias = "i_cal_component_add_property")] 188 + pub fn add_property(&self, property: &Property) { 189 + unsafe { 190 + ffi::i_cal_component_add_property(self.to_glib_none().0, property.to_glib_none().0); 191 + } 192 + } 193 + 194 + #[doc(alias = "i_cal_component_as_ical_string")] 195 + pub fn as_ical_string(&self) -> Option<glib::GString> { 196 + unsafe { 197 + from_glib_full(ffi::i_cal_component_as_ical_string(self.to_glib_none().0)) 198 + } 199 + } 200 + 201 + #[doc(alias = "i_cal_component_begin_component")] 202 + pub fn begin_component(&self, kind: ComponentKind) -> Option<CompIter> { 203 + unsafe { 204 + from_glib_full(ffi::i_cal_component_begin_component(self.to_glib_none().0, kind.into_glib())) 205 + } 206 + } 207 + 208 + #[doc(alias = "i_cal_component_check_restrictions")] 209 + pub fn check_restrictions(&self) -> i32 { 210 + unsafe { 211 + ffi::i_cal_component_check_restrictions(self.to_glib_none().0) 212 + } 213 + } 214 + 215 + #[doc(alias = "i_cal_component_clone")] 216 + #[must_use] 217 + pub fn clone(&self) -> Option<Component> { 218 + unsafe { 219 + from_glib_full(ffi::i_cal_component_clone(self.to_glib_none().0)) 220 + } 221 + } 222 + 223 + #[doc(alias = "i_cal_component_convert_errors")] 224 + pub fn convert_errors(&self) { 225 + unsafe { 226 + ffi::i_cal_component_convert_errors(self.to_glib_none().0); 227 + } 228 + } 229 + 230 + #[doc(alias = "i_cal_component_count_components")] 231 + pub fn count_components(&self, kind: ComponentKind) -> i32 { 232 + unsafe { 233 + ffi::i_cal_component_count_components(self.to_glib_none().0, kind.into_glib()) 234 + } 235 + } 236 + 237 + #[doc(alias = "i_cal_component_count_errors")] 238 + pub fn count_errors(&self) -> i32 { 239 + unsafe { 240 + ffi::i_cal_component_count_errors(self.to_glib_none().0) 241 + } 242 + } 243 + 244 + #[doc(alias = "i_cal_component_count_properties")] 245 + pub fn count_properties(&self, kind: PropertyKind) -> i32 { 246 + unsafe { 247 + ffi::i_cal_component_count_properties(self.to_glib_none().0, kind.into_glib()) 248 + } 249 + } 250 + 251 + #[doc(alias = "i_cal_component_end_component")] 252 + pub fn end_component(&self, kind: ComponentKind) -> Option<CompIter> { 253 + unsafe { 254 + from_glib_full(ffi::i_cal_component_end_component(self.to_glib_none().0, kind.into_glib())) 255 + } 256 + } 257 + 258 + #[cfg(feature = "v3_0_5")] 259 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 260 + #[doc(alias = "i_cal_component_foreach_recurrence")] 261 + pub fn foreach_recurrence(&self, start: &Time, end: &Time, callback: Option<&mut dyn FnMut(&Component, &TimeSpan)>) { 262 + let mut callback_data: Option<&mut dyn FnMut(&Component, &TimeSpan)> = callback; 263 + unsafe extern "C" fn callback_func(comp: *mut ffi::ICalComponent, span: *mut ffi::ICalTimeSpan, user_data: glib::ffi::gpointer) { 264 + let comp = from_glib_borrow(comp); 265 + let span = from_glib_borrow(span); 266 + let callback = user_data as *mut Option<&mut dyn FnMut(&Component, &TimeSpan)>; 267 + if let Some(ref mut callback) = *callback { 268 + callback(&comp, &span) 269 + } else { 270 + panic!("cannot get closure...") 271 + } 272 + } 273 + let callback = if callback_data.is_some() { Some(callback_func as _) } else { None }; 274 + let super_callback0: &mut Option<&mut dyn FnMut(&Component, &TimeSpan)> = &mut callback_data; 275 + unsafe { 276 + ffi::i_cal_component_foreach_recurrence(self.to_glib_none().0, start.to_glib_none().0, end.to_glib_none().0, callback, super_callback0 as *mut _ as *mut _); 277 + } 278 + } 279 + 280 + #[cfg(feature = "v3_0_5")] 281 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 282 + #[doc(alias = "i_cal_component_foreach_tzid")] 283 + pub fn foreach_tzid(&self, callback: Option<&mut dyn FnMut(&Parameter)>) { 284 + let mut callback_data: Option<&mut dyn FnMut(&Parameter)> = callback; 285 + unsafe extern "C" fn callback_func(param: *mut ffi::ICalParameter, user_data: glib::ffi::gpointer) { 286 + let param = from_glib_borrow(param); 287 + let callback = user_data as *mut Option<&mut dyn FnMut(&Parameter)>; 288 + if let Some(ref mut callback) = *callback { 289 + callback(&param) 290 + } else { 291 + panic!("cannot get closure...") 292 + } 293 + } 294 + let callback = if callback_data.is_some() { Some(callback_func as _) } else { None }; 295 + let super_callback0: &mut Option<&mut dyn FnMut(&Parameter)> = &mut callback_data; 296 + unsafe { 297 + ffi::i_cal_component_foreach_tzid(self.to_glib_none().0, callback, super_callback0 as *mut _ as *mut _); 298 + } 299 + } 300 + 301 + #[doc(alias = "i_cal_component_get_comment")] 302 + #[doc(alias = "get_comment")] 303 + pub fn comment(&self) -> Option<glib::GString> { 304 + unsafe { 305 + from_glib_none(ffi::i_cal_component_get_comment(self.to_glib_none().0)) 306 + } 307 + } 308 + 309 + #[doc(alias = "i_cal_component_get_current_component")] 310 + #[doc(alias = "get_current_component")] 311 + #[must_use] 312 + pub fn current_component(&self) -> Option<Component> { 313 + unsafe { 314 + from_glib_full(ffi::i_cal_component_get_current_component(self.to_glib_none().0)) 315 + } 316 + } 317 + 318 + #[doc(alias = "i_cal_component_get_current_property")] 319 + #[doc(alias = "get_current_property")] 320 + pub fn current_property(&self) -> Option<Property> { 321 + unsafe { 322 + from_glib_full(ffi::i_cal_component_get_current_property(self.to_glib_none().0)) 323 + } 324 + } 325 + 326 + #[doc(alias = "i_cal_component_get_description")] 327 + #[doc(alias = "get_description")] 328 + pub fn description(&self) -> Option<glib::GString> { 329 + unsafe { 330 + from_glib_none(ffi::i_cal_component_get_description(self.to_glib_none().0)) 331 + } 332 + } 333 + 334 + #[doc(alias = "i_cal_component_get_dtend")] 335 + #[doc(alias = "get_dtend")] 336 + pub fn dtend(&self) -> Option<Time> { 337 + unsafe { 338 + from_glib_full(ffi::i_cal_component_get_dtend(self.to_glib_none().0)) 339 + } 340 + } 341 + 342 + #[doc(alias = "i_cal_component_get_dtstamp")] 343 + #[doc(alias = "get_dtstamp")] 344 + pub fn dtstamp(&self) -> Option<Time> { 345 + unsafe { 346 + from_glib_full(ffi::i_cal_component_get_dtstamp(self.to_glib_none().0)) 347 + } 348 + } 349 + 350 + #[doc(alias = "i_cal_component_get_dtstart")] 351 + #[doc(alias = "get_dtstart")] 352 + pub fn dtstart(&self) -> Option<Time> { 353 + unsafe { 354 + from_glib_full(ffi::i_cal_component_get_dtstart(self.to_glib_none().0)) 355 + } 356 + } 357 + 358 + #[doc(alias = "i_cal_component_get_due")] 359 + #[doc(alias = "get_due")] 360 + pub fn due(&self) -> Option<Time> { 361 + unsafe { 362 + from_glib_full(ffi::i_cal_component_get_due(self.to_glib_none().0)) 363 + } 364 + } 365 + 366 + #[doc(alias = "i_cal_component_get_duration")] 367 + #[doc(alias = "get_duration")] 368 + pub fn duration(&self) -> Option<Duration> { 369 + unsafe { 370 + from_glib_full(ffi::i_cal_component_get_duration(self.to_glib_none().0)) 371 + } 372 + } 373 + 374 + #[doc(alias = "i_cal_component_get_first_component")] 375 + #[doc(alias = "get_first_component")] 376 + #[must_use] 377 + pub fn first_component(&self, kind: ComponentKind) -> Option<Component> { 378 + unsafe { 379 + from_glib_full(ffi::i_cal_component_get_first_component(self.to_glib_none().0, kind.into_glib())) 380 + } 381 + } 382 + 383 + #[doc(alias = "i_cal_component_get_first_property")] 384 + #[doc(alias = "get_first_property")] 385 + pub fn first_property(&self, kind: PropertyKind) -> Option<Property> { 386 + unsafe { 387 + from_glib_full(ffi::i_cal_component_get_first_property(self.to_glib_none().0, kind.into_glib())) 388 + } 389 + } 390 + 391 + #[doc(alias = "i_cal_component_get_first_real_component")] 392 + #[doc(alias = "get_first_real_component")] 393 + #[must_use] 394 + pub fn first_real_component(&self) -> Option<Component> { 395 + unsafe { 396 + from_glib_full(ffi::i_cal_component_get_first_real_component(self.to_glib_none().0)) 397 + } 398 + } 399 + 400 + #[doc(alias = "i_cal_component_get_inner")] 401 + #[doc(alias = "get_inner")] 402 + #[must_use] 403 + pub fn inner(&self) -> Option<Component> { 404 + unsafe { 405 + from_glib_full(ffi::i_cal_component_get_inner(self.to_glib_none().0)) 406 + } 407 + } 408 + 409 + #[doc(alias = "i_cal_component_get_location")] 410 + #[doc(alias = "get_location")] 411 + pub fn location(&self) -> Option<glib::GString> { 412 + unsafe { 413 + from_glib_none(ffi::i_cal_component_get_location(self.to_glib_none().0)) 414 + } 415 + } 416 + 417 + #[doc(alias = "i_cal_component_get_method")] 418 + #[doc(alias = "get_method")] 419 + pub fn method(&self) -> PropertyMethod { 420 + unsafe { 421 + from_glib(ffi::i_cal_component_get_method(self.to_glib_none().0)) 422 + } 423 + } 424 + 425 + #[doc(alias = "i_cal_component_get_next_component")] 426 + #[doc(alias = "get_next_component")] 427 + #[must_use] 428 + pub fn next_component(&self, kind: ComponentKind) -> Option<Component> { 429 + unsafe { 430 + from_glib_full(ffi::i_cal_component_get_next_component(self.to_glib_none().0, kind.into_glib())) 431 + } 432 + } 433 + 434 + #[doc(alias = "i_cal_component_get_next_property")] 435 + #[doc(alias = "get_next_property")] 436 + pub fn next_property(&self, kind: PropertyKind) -> Option<Property> { 437 + unsafe { 438 + from_glib_full(ffi::i_cal_component_get_next_property(self.to_glib_none().0, kind.into_glib())) 439 + } 440 + } 441 + 442 + #[doc(alias = "i_cal_component_get_parent")] 443 + #[doc(alias = "get_parent")] 444 + #[must_use] 445 + pub fn parent(&self) -> Option<Component> { 446 + unsafe { 447 + from_glib_full(ffi::i_cal_component_get_parent(self.to_glib_none().0)) 448 + } 449 + } 450 + 451 + #[doc(alias = "i_cal_component_get_recurrenceid")] 452 + #[doc(alias = "get_recurrenceid")] 453 + pub fn recurrenceid(&self) -> Option<Time> { 454 + unsafe { 455 + from_glib_full(ffi::i_cal_component_get_recurrenceid(self.to_glib_none().0)) 456 + } 457 + } 458 + 459 + #[doc(alias = "i_cal_component_get_relcalid")] 460 + #[doc(alias = "get_relcalid")] 461 + pub fn relcalid(&self) -> Option<glib::GString> { 462 + unsafe { 463 + from_glib_none(ffi::i_cal_component_get_relcalid(self.to_glib_none().0)) 464 + } 465 + } 466 + 467 + #[doc(alias = "i_cal_component_get_sequence")] 468 + #[doc(alias = "get_sequence")] 469 + pub fn sequence(&self) -> i32 { 470 + unsafe { 471 + ffi::i_cal_component_get_sequence(self.to_glib_none().0) 472 + } 473 + } 474 + 475 + #[doc(alias = "i_cal_component_get_span")] 476 + #[doc(alias = "get_span")] 477 + pub fn span(&self) -> Option<TimeSpan> { 478 + unsafe { 479 + from_glib_full(ffi::i_cal_component_get_span(self.to_glib_none().0)) 480 + } 481 + } 482 + 483 + #[doc(alias = "i_cal_component_get_status")] 484 + #[doc(alias = "get_status")] 485 + pub fn status(&self) -> PropertyStatus { 486 + unsafe { 487 + from_glib(ffi::i_cal_component_get_status(self.to_glib_none().0)) 488 + } 489 + } 490 + 491 + #[doc(alias = "i_cal_component_get_summary")] 492 + #[doc(alias = "get_summary")] 493 + pub fn summary(&self) -> Option<glib::GString> { 494 + unsafe { 495 + from_glib_none(ffi::i_cal_component_get_summary(self.to_glib_none().0)) 496 + } 497 + } 498 + 499 + #[doc(alias = "i_cal_component_get_timezone")] 500 + #[doc(alias = "get_timezone")] 501 + pub fn timezone(&self, tzid: &str) -> Option<Timezone> { 502 + unsafe { 503 + from_glib_full(ffi::i_cal_component_get_timezone(self.to_glib_none().0, tzid.to_glib_none().0)) 504 + } 505 + } 506 + 507 + #[doc(alias = "i_cal_component_get_uid")] 508 + #[doc(alias = "get_uid")] 509 + pub fn uid(&self) -> Option<glib::GString> { 510 + unsafe { 511 + from_glib_none(ffi::i_cal_component_get_uid(self.to_glib_none().0)) 512 + } 513 + } 514 + 515 + #[doc(alias = "i_cal_component_is_valid")] 516 + pub fn is_valid(&self) -> bool { 517 + unsafe { 518 + from_glib(ffi::i_cal_component_is_valid(self.to_glib_none().0)) 519 + } 520 + } 521 + 522 + #[doc(alias = "i_cal_component_isa")] 523 + pub fn isa(&self) -> ComponentKind { 524 + unsafe { 525 + from_glib(ffi::i_cal_component_isa(self.to_glib_none().0)) 526 + } 527 + } 528 + 529 + #[doc(alias = "i_cal_component_isa_component")] 530 + pub fn isa_component(&self) -> i32 { 531 + unsafe { 532 + ffi::i_cal_component_isa_component(self.to_glib_none().0) 533 + } 534 + } 535 + 536 + #[doc(alias = "i_cal_component_merge_component")] 537 + pub fn merge_component(&self, comp_to_merge: &Component) { 538 + unsafe { 539 + ffi::i_cal_component_merge_component(self.to_glib_none().0, comp_to_merge.to_glib_none().0); 540 + } 541 + } 542 + 543 + #[doc(alias = "i_cal_component_remove_component")] 544 + pub fn remove_component(&self, child: &Component) { 545 + unsafe { 546 + ffi::i_cal_component_remove_component(self.to_glib_none().0, child.to_glib_none().0); 547 + } 548 + } 549 + 550 + #[doc(alias = "i_cal_component_remove_property")] 551 + pub fn remove_property(&self, property: &Property) { 552 + unsafe { 553 + ffi::i_cal_component_remove_property(self.to_glib_none().0, property.to_glib_none().0); 554 + } 555 + } 556 + 557 + #[doc(alias = "i_cal_component_set_comment")] 558 + pub fn set_comment(&self, v: &str) { 559 + unsafe { 560 + ffi::i_cal_component_set_comment(self.to_glib_none().0, v.to_glib_none().0); 561 + } 562 + } 563 + 564 + #[doc(alias = "i_cal_component_set_description")] 565 + pub fn set_description(&self, v: &str) { 566 + unsafe { 567 + ffi::i_cal_component_set_description(self.to_glib_none().0, v.to_glib_none().0); 568 + } 569 + } 570 + 571 + #[doc(alias = "i_cal_component_set_dtend")] 572 + pub fn set_dtend(&self, v: &Time) { 573 + unsafe { 574 + ffi::i_cal_component_set_dtend(self.to_glib_none().0, v.to_glib_none().0); 575 + } 576 + } 577 + 578 + #[doc(alias = "i_cal_component_set_dtstamp")] 579 + pub fn set_dtstamp(&self, v: &Time) { 580 + unsafe { 581 + ffi::i_cal_component_set_dtstamp(self.to_glib_none().0, v.to_glib_none().0); 582 + } 583 + } 584 + 585 + #[doc(alias = "i_cal_component_set_dtstart")] 586 + pub fn set_dtstart(&self, v: &Time) { 587 + unsafe { 588 + ffi::i_cal_component_set_dtstart(self.to_glib_none().0, v.to_glib_none().0); 589 + } 590 + } 591 + 592 + #[doc(alias = "i_cal_component_set_due")] 593 + pub fn set_due(&self, v: &Time) { 594 + unsafe { 595 + ffi::i_cal_component_set_due(self.to_glib_none().0, v.to_glib_none().0); 596 + } 597 + } 598 + 599 + #[doc(alias = "i_cal_component_set_duration")] 600 + pub fn set_duration(&self, v: &Duration) { 601 + unsafe { 602 + ffi::i_cal_component_set_duration(self.to_glib_none().0, v.to_glib_none().0); 603 + } 604 + } 605 + 606 + #[doc(alias = "i_cal_component_set_location")] 607 + pub fn set_location(&self, v: &str) { 608 + unsafe { 609 + ffi::i_cal_component_set_location(self.to_glib_none().0, v.to_glib_none().0); 610 + } 611 + } 612 + 613 + #[doc(alias = "i_cal_component_set_method")] 614 + pub fn set_method(&self, method: PropertyMethod) { 615 + unsafe { 616 + ffi::i_cal_component_set_method(self.to_glib_none().0, method.into_glib()); 617 + } 618 + } 619 + 620 + #[doc(alias = "i_cal_component_set_parent")] 621 + pub fn set_parent(&self, parent: Option<&Component>) { 622 + unsafe { 623 + ffi::i_cal_component_set_parent(self.to_glib_none().0, parent.to_glib_none().0); 624 + } 625 + } 626 + 627 + #[doc(alias = "i_cal_component_set_recurrenceid")] 628 + pub fn set_recurrenceid(&self, v: &Time) { 629 + unsafe { 630 + ffi::i_cal_component_set_recurrenceid(self.to_glib_none().0, v.to_glib_none().0); 631 + } 632 + } 633 + 634 + #[doc(alias = "i_cal_component_set_relcalid")] 635 + pub fn set_relcalid(&self, v: &str) { 636 + unsafe { 637 + ffi::i_cal_component_set_relcalid(self.to_glib_none().0, v.to_glib_none().0); 638 + } 639 + } 640 + 641 + #[doc(alias = "i_cal_component_set_sequence")] 642 + pub fn set_sequence(&self, v: i32) { 643 + unsafe { 644 + ffi::i_cal_component_set_sequence(self.to_glib_none().0, v); 645 + } 646 + } 647 + 648 + #[doc(alias = "i_cal_component_set_status")] 649 + pub fn set_status(&self, status: PropertyStatus) { 650 + unsafe { 651 + ffi::i_cal_component_set_status(self.to_glib_none().0, status.into_glib()); 652 + } 653 + } 654 + 655 + #[doc(alias = "i_cal_component_set_summary")] 656 + pub fn set_summary(&self, v: &str) { 657 + unsafe { 658 + ffi::i_cal_component_set_summary(self.to_glib_none().0, v.to_glib_none().0); 659 + } 660 + } 661 + 662 + #[doc(alias = "i_cal_component_set_uid")] 663 + pub fn set_uid(&self, v: &str) { 664 + unsafe { 665 + ffi::i_cal_component_set_uid(self.to_glib_none().0, v.to_glib_none().0); 666 + } 667 + } 668 + 669 + #[doc(alias = "i_cal_component_strip_errors")] 670 + pub fn strip_errors(&self) { 671 + unsafe { 672 + ffi::i_cal_component_strip_errors(self.to_glib_none().0); 673 + } 674 + } 675 + 676 + #[doc(alias = "i_cal_component_take_component")] 677 + pub fn take_component(&self, child: Component) { 678 + unsafe { 679 + ffi::i_cal_component_take_component(self.to_glib_none().0, child.into_glib_ptr()); 680 + } 681 + } 682 + 683 + #[doc(alias = "i_cal_component_take_property")] 684 + pub fn take_property(&self, property: Property) { 685 + unsafe { 686 + ffi::i_cal_component_take_property(self.to_glib_none().0, property.into_glib_ptr()); 687 + } 688 + } 689 + 690 + #[doc(alias = "i_cal_component_kind_from_string")] 691 + pub fn kind_from_string(string: &str) -> ComponentKind { 692 + assert_initialized_main_thread!(); 693 + unsafe { 694 + from_glib(ffi::i_cal_component_kind_from_string(string.to_glib_none().0)) 695 + } 696 + } 697 + 698 + #[doc(alias = "i_cal_component_kind_is_valid")] 699 + pub fn kind_is_valid(kind: ComponentKind) -> bool { 700 + assert_initialized_main_thread!(); 701 + unsafe { 702 + from_glib(ffi::i_cal_component_kind_is_valid(kind.into_glib())) 703 + } 704 + } 705 + 706 + #[doc(alias = "i_cal_component_kind_to_string")] 707 + pub fn kind_to_string(kind: ComponentKind) -> Option<glib::GString> { 708 + assert_initialized_main_thread!(); 709 + unsafe { 710 + from_glib_none(ffi::i_cal_component_kind_to_string(kind.into_glib())) 711 + } 712 + } 713 + }
+72
ical-glib/src/auto/datetimeperiod.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Period,Time}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalDatetimeperiod")] 11 + pub struct Datetimeperiod(Object<ffi::ICalDatetimeperiod, ffi::ICalDatetimeperiodClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_datetimeperiod_get_type(), 15 + } 16 + } 17 + 18 + impl Datetimeperiod { 19 + #[doc(alias = "i_cal_datetimeperiod_new")] 20 + pub fn new() -> Datetimeperiod { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_datetimeperiod_new()) 24 + } 25 + } 26 + 27 + //#[doc(alias = "i_cal_datetimeperiod_new_full")] 28 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Datetimeperiod { 29 + // unsafe { TODO: call ffi:i_cal_datetimeperiod_new_full() } 30 + //} 31 + 32 + #[doc(alias = "i_cal_datetimeperiod_get_period")] 33 + #[doc(alias = "get_period")] 34 + pub fn period(&self) -> Option<Period> { 35 + unsafe { 36 + from_glib_full(ffi::i_cal_datetimeperiod_get_period(self.to_glib_none().0)) 37 + } 38 + } 39 + 40 + #[doc(alias = "i_cal_datetimeperiod_get_time")] 41 + #[doc(alias = "get_time")] 42 + pub fn time(&self) -> Option<Time> { 43 + unsafe { 44 + from_glib_full(ffi::i_cal_datetimeperiod_get_time(self.to_glib_none().0)) 45 + } 46 + } 47 + 48 + #[doc(alias = "i_cal_datetimeperiod_set_period")] 49 + pub fn set_period(&self, period: &Period) { 50 + unsafe { 51 + ffi::i_cal_datetimeperiod_set_period(self.to_glib_none().0, period.to_glib_none().0); 52 + } 53 + } 54 + 55 + #[doc(alias = "i_cal_datetimeperiod_set_time")] 56 + pub fn set_time(&self, time: &Time) { 57 + unsafe { 58 + ffi::i_cal_datetimeperiod_set_time(self.to_glib_none().0, time.to_glib_none().0); 59 + } 60 + } 61 + 62 + //#[doc(alias = "i_cal_datetimeperiod_new_default")] 63 + //pub fn new_default() -> /*Unimplemented*/Option<Basic: Pointer> { 64 + // unsafe { TODO: call ffi:i_cal_datetimeperiod_new_default() } 65 + //} 66 + } 67 + 68 + impl Default for Datetimeperiod { 69 + fn default() -> Self { 70 + Self::new() 71 + } 72 + }
+174
ical-glib/src/auto/duration.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalDuration")] 11 + pub struct Duration(Object<ffi::ICalDuration, ffi::ICalDurationClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_duration_get_type(), 15 + } 16 + } 17 + 18 + impl Duration { 19 + #[doc(alias = "i_cal_duration_new_bad_duration")] 20 + pub fn new_bad_duration() -> Duration { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_duration_new_bad_duration()) 24 + } 25 + } 26 + 27 + #[doc(alias = "i_cal_duration_new_from_int")] 28 + #[doc(alias = "new_from_int")] 29 + pub fn from_int(t: i32) -> Duration { 30 + assert_initialized_main_thread!(); 31 + unsafe { 32 + from_glib_full(ffi::i_cal_duration_new_from_int(t)) 33 + } 34 + } 35 + 36 + #[doc(alias = "i_cal_duration_new_from_string")] 37 + #[doc(alias = "new_from_string")] 38 + pub fn from_string(str: &str) -> Duration { 39 + assert_initialized_main_thread!(); 40 + unsafe { 41 + from_glib_full(ffi::i_cal_duration_new_from_string(str.to_glib_none().0)) 42 + } 43 + } 44 + 45 + //#[doc(alias = "i_cal_duration_new_full")] 46 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Duration { 47 + // unsafe { TODO: call ffi:i_cal_duration_new_full() } 48 + //} 49 + 50 + #[doc(alias = "i_cal_duration_new_null_duration")] 51 + pub fn new_null_duration() -> Duration { 52 + assert_initialized_main_thread!(); 53 + unsafe { 54 + from_glib_full(ffi::i_cal_duration_new_null_duration()) 55 + } 56 + } 57 + 58 + #[doc(alias = "i_cal_duration_as_ical_string")] 59 + pub fn as_ical_string(&self) -> Option<glib::GString> { 60 + unsafe { 61 + from_glib_full(ffi::i_cal_duration_as_ical_string(self.to_glib_none().0)) 62 + } 63 + } 64 + 65 + #[doc(alias = "i_cal_duration_as_int")] 66 + pub fn as_int(&self) -> i32 { 67 + unsafe { 68 + ffi::i_cal_duration_as_int(self.to_glib_none().0) 69 + } 70 + } 71 + 72 + #[doc(alias = "i_cal_duration_get_days")] 73 + #[doc(alias = "get_days")] 74 + pub fn days(&self) -> u32 { 75 + unsafe { 76 + ffi::i_cal_duration_get_days(self.to_glib_none().0) 77 + } 78 + } 79 + 80 + #[doc(alias = "i_cal_duration_get_hours")] 81 + #[doc(alias = "get_hours")] 82 + pub fn hours(&self) -> u32 { 83 + unsafe { 84 + ffi::i_cal_duration_get_hours(self.to_glib_none().0) 85 + } 86 + } 87 + 88 + #[doc(alias = "i_cal_duration_get_minutes")] 89 + #[doc(alias = "get_minutes")] 90 + pub fn minutes(&self) -> u32 { 91 + unsafe { 92 + ffi::i_cal_duration_get_minutes(self.to_glib_none().0) 93 + } 94 + } 95 + 96 + #[doc(alias = "i_cal_duration_get_seconds")] 97 + #[doc(alias = "get_seconds")] 98 + pub fn seconds(&self) -> u32 { 99 + unsafe { 100 + ffi::i_cal_duration_get_seconds(self.to_glib_none().0) 101 + } 102 + } 103 + 104 + #[doc(alias = "i_cal_duration_get_weeks")] 105 + #[doc(alias = "get_weeks")] 106 + pub fn weeks(&self) -> u32 { 107 + unsafe { 108 + ffi::i_cal_duration_get_weeks(self.to_glib_none().0) 109 + } 110 + } 111 + 112 + #[doc(alias = "i_cal_duration_is_bad_duration")] 113 + pub fn is_bad_duration(&self) -> bool { 114 + unsafe { 115 + from_glib(ffi::i_cal_duration_is_bad_duration(self.to_glib_none().0)) 116 + } 117 + } 118 + 119 + #[doc(alias = "i_cal_duration_is_neg")] 120 + pub fn is_neg(&self) -> bool { 121 + unsafe { 122 + from_glib(ffi::i_cal_duration_is_neg(self.to_glib_none().0)) 123 + } 124 + } 125 + 126 + #[doc(alias = "i_cal_duration_is_null_duration")] 127 + pub fn is_null_duration(&self) -> bool { 128 + unsafe { 129 + from_glib(ffi::i_cal_duration_is_null_duration(self.to_glib_none().0)) 130 + } 131 + } 132 + 133 + #[doc(alias = "i_cal_duration_set_days")] 134 + pub fn set_days(&self, days: u32) { 135 + unsafe { 136 + ffi::i_cal_duration_set_days(self.to_glib_none().0, days); 137 + } 138 + } 139 + 140 + #[doc(alias = "i_cal_duration_set_hours")] 141 + pub fn set_hours(&self, hours: u32) { 142 + unsafe { 143 + ffi::i_cal_duration_set_hours(self.to_glib_none().0, hours); 144 + } 145 + } 146 + 147 + #[doc(alias = "i_cal_duration_set_is_neg")] 148 + pub fn set_is_neg(&self, is_neg: bool) { 149 + unsafe { 150 + ffi::i_cal_duration_set_is_neg(self.to_glib_none().0, is_neg.into_glib()); 151 + } 152 + } 153 + 154 + #[doc(alias = "i_cal_duration_set_minutes")] 155 + pub fn set_minutes(&self, minutes: u32) { 156 + unsafe { 157 + ffi::i_cal_duration_set_minutes(self.to_glib_none().0, minutes); 158 + } 159 + } 160 + 161 + #[doc(alias = "i_cal_duration_set_seconds")] 162 + pub fn set_seconds(&self, seconds: u32) { 163 + unsafe { 164 + ffi::i_cal_duration_set_seconds(self.to_glib_none().0, seconds); 165 + } 166 + } 167 + 168 + #[doc(alias = "i_cal_duration_set_weeks")] 169 + pub fn set_weeks(&self, weeks: u32) { 170 + unsafe { 171 + ffi::i_cal_duration_set_weeks(self.to_glib_none().0, weeks); 172 + } 173 + } 174 + }
+3994
ical-glib/src/auto/enums.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi}; 7 + use glib::{translate::*}; 8 + 9 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 10 + #[derive(Clone, Copy)] 11 + #[non_exhaustive] 12 + #[doc(alias = "ICalComponentKind")] 13 + pub enum ComponentKind { 14 + #[doc(alias = "I_CAL_NO_COMPONENT")] 15 + NoComponent, 16 + #[doc(alias = "I_CAL_ANY_COMPONENT")] 17 + AnyComponent, 18 + #[doc(alias = "I_CAL_XROOT_COMPONENT")] 19 + XrootComponent, 20 + #[doc(alias = "I_CAL_XATTACH_COMPONENT")] 21 + XattachComponent, 22 + #[doc(alias = "I_CAL_VEVENT_COMPONENT")] 23 + VeventComponent, 24 + #[doc(alias = "I_CAL_VTODO_COMPONENT")] 25 + VtodoComponent, 26 + #[doc(alias = "I_CAL_VJOURNAL_COMPONENT")] 27 + VjournalComponent, 28 + #[doc(alias = "I_CAL_VCALENDAR_COMPONENT")] 29 + VcalendarComponent, 30 + #[doc(alias = "I_CAL_VAGENDA_COMPONENT")] 31 + VagendaComponent, 32 + #[doc(alias = "I_CAL_VFREEBUSY_COMPONENT")] 33 + VfreebusyComponent, 34 + #[doc(alias = "I_CAL_VALARM_COMPONENT")] 35 + ValarmComponent, 36 + #[doc(alias = "I_CAL_XAUDIOALARM_COMPONENT")] 37 + XaudioalarmComponent, 38 + #[doc(alias = "I_CAL_XDISPLAYALARM_COMPONENT")] 39 + XdisplayalarmComponent, 40 + #[doc(alias = "I_CAL_XEMAILALARM_COMPONENT")] 41 + XemailalarmComponent, 42 + #[doc(alias = "I_CAL_XPROCEDUREALARM_COMPONENT")] 43 + XprocedurealarmComponent, 44 + #[doc(alias = "I_CAL_VTIMEZONE_COMPONENT")] 45 + VtimezoneComponent, 46 + #[doc(alias = "I_CAL_XSTANDARD_COMPONENT")] 47 + XstandardComponent, 48 + #[doc(alias = "I_CAL_XDAYLIGHT_COMPONENT")] 49 + XdaylightComponent, 50 + #[doc(alias = "I_CAL_X_COMPONENT")] 51 + XComponent, 52 + #[doc(alias = "I_CAL_VSCHEDULE_COMPONENT")] 53 + VscheduleComponent, 54 + #[doc(alias = "I_CAL_VQUERY_COMPONENT")] 55 + VqueryComponent, 56 + #[doc(alias = "I_CAL_VREPLY_COMPONENT")] 57 + VreplyComponent, 58 + #[doc(alias = "I_CAL_VCAR_COMPONENT")] 59 + VcarComponent, 60 + #[doc(alias = "I_CAL_VCOMMAND_COMPONENT")] 61 + VcommandComponent, 62 + #[doc(alias = "I_CAL_XLICINVALID_COMPONENT")] 63 + XlicinvalidComponent, 64 + #[doc(alias = "I_CAL_XLICMIMEPART_COMPONENT")] 65 + XlicmimepartComponent, 66 + #[doc(alias = "I_CAL_VAVAILABILITY_COMPONENT")] 67 + VavailabilityComponent, 68 + #[doc(alias = "I_CAL_XAVAILABLE_COMPONENT")] 69 + XavailableComponent, 70 + #[doc(alias = "I_CAL_VPOLL_COMPONENT")] 71 + VpollComponent, 72 + #[doc(alias = "I_CAL_VVOTER_COMPONENT")] 73 + VvoterComponent, 74 + #[doc(alias = "I_CAL_XVOTE_COMPONENT")] 75 + XvoteComponent, 76 + #[doc(hidden)] 77 + __Unknown(i32), 78 + } 79 + 80 + #[doc(hidden)] 81 + impl IntoGlib for ComponentKind { 82 + type GlibType = ffi::ICalComponentKind; 83 + 84 + fn into_glib(self) -> ffi::ICalComponentKind { 85 + match self { 86 + Self::NoComponent => ffi::I_CAL_NO_COMPONENT, 87 + Self::AnyComponent => ffi::I_CAL_ANY_COMPONENT, 88 + Self::XrootComponent => ffi::I_CAL_XROOT_COMPONENT, 89 + Self::XattachComponent => ffi::I_CAL_XATTACH_COMPONENT, 90 + Self::VeventComponent => ffi::I_CAL_VEVENT_COMPONENT, 91 + Self::VtodoComponent => ffi::I_CAL_VTODO_COMPONENT, 92 + Self::VjournalComponent => ffi::I_CAL_VJOURNAL_COMPONENT, 93 + Self::VcalendarComponent => ffi::I_CAL_VCALENDAR_COMPONENT, 94 + Self::VagendaComponent => ffi::I_CAL_VAGENDA_COMPONENT, 95 + Self::VfreebusyComponent => ffi::I_CAL_VFREEBUSY_COMPONENT, 96 + Self::ValarmComponent => ffi::I_CAL_VALARM_COMPONENT, 97 + Self::XaudioalarmComponent => ffi::I_CAL_XAUDIOALARM_COMPONENT, 98 + Self::XdisplayalarmComponent => ffi::I_CAL_XDISPLAYALARM_COMPONENT, 99 + Self::XemailalarmComponent => ffi::I_CAL_XEMAILALARM_COMPONENT, 100 + Self::XprocedurealarmComponent => ffi::I_CAL_XPROCEDUREALARM_COMPONENT, 101 + Self::VtimezoneComponent => ffi::I_CAL_VTIMEZONE_COMPONENT, 102 + Self::XstandardComponent => ffi::I_CAL_XSTANDARD_COMPONENT, 103 + Self::XdaylightComponent => ffi::I_CAL_XDAYLIGHT_COMPONENT, 104 + Self::XComponent => ffi::I_CAL_X_COMPONENT, 105 + Self::VscheduleComponent => ffi::I_CAL_VSCHEDULE_COMPONENT, 106 + Self::VqueryComponent => ffi::I_CAL_VQUERY_COMPONENT, 107 + Self::VreplyComponent => ffi::I_CAL_VREPLY_COMPONENT, 108 + Self::VcarComponent => ffi::I_CAL_VCAR_COMPONENT, 109 + Self::VcommandComponent => ffi::I_CAL_VCOMMAND_COMPONENT, 110 + Self::XlicinvalidComponent => ffi::I_CAL_XLICINVALID_COMPONENT, 111 + Self::XlicmimepartComponent => ffi::I_CAL_XLICMIMEPART_COMPONENT, 112 + Self::VavailabilityComponent => ffi::I_CAL_VAVAILABILITY_COMPONENT, 113 + Self::XavailableComponent => ffi::I_CAL_XAVAILABLE_COMPONENT, 114 + Self::VpollComponent => ffi::I_CAL_VPOLL_COMPONENT, 115 + Self::VvoterComponent => ffi::I_CAL_VVOTER_COMPONENT, 116 + Self::XvoteComponent => ffi::I_CAL_XVOTE_COMPONENT, 117 + Self::__Unknown(value) => value, 118 + } 119 + } 120 + } 121 + 122 + #[doc(hidden)] 123 + impl FromGlib<ffi::ICalComponentKind> for ComponentKind { 124 + unsafe fn from_glib(value: ffi::ICalComponentKind) -> Self { 125 + skip_assert_initialized!(); 126 + 127 + match value { 128 + ffi::I_CAL_NO_COMPONENT => Self::NoComponent, 129 + ffi::I_CAL_ANY_COMPONENT => Self::AnyComponent, 130 + ffi::I_CAL_XROOT_COMPONENT => Self::XrootComponent, 131 + ffi::I_CAL_XATTACH_COMPONENT => Self::XattachComponent, 132 + ffi::I_CAL_VEVENT_COMPONENT => Self::VeventComponent, 133 + ffi::I_CAL_VTODO_COMPONENT => Self::VtodoComponent, 134 + ffi::I_CAL_VJOURNAL_COMPONENT => Self::VjournalComponent, 135 + ffi::I_CAL_VCALENDAR_COMPONENT => Self::VcalendarComponent, 136 + ffi::I_CAL_VAGENDA_COMPONENT => Self::VagendaComponent, 137 + ffi::I_CAL_VFREEBUSY_COMPONENT => Self::VfreebusyComponent, 138 + ffi::I_CAL_VALARM_COMPONENT => Self::ValarmComponent, 139 + ffi::I_CAL_XAUDIOALARM_COMPONENT => Self::XaudioalarmComponent, 140 + ffi::I_CAL_XDISPLAYALARM_COMPONENT => Self::XdisplayalarmComponent, 141 + ffi::I_CAL_XEMAILALARM_COMPONENT => Self::XemailalarmComponent, 142 + ffi::I_CAL_XPROCEDUREALARM_COMPONENT => Self::XprocedurealarmComponent, 143 + ffi::I_CAL_VTIMEZONE_COMPONENT => Self::VtimezoneComponent, 144 + ffi::I_CAL_XSTANDARD_COMPONENT => Self::XstandardComponent, 145 + ffi::I_CAL_XDAYLIGHT_COMPONENT => Self::XdaylightComponent, 146 + ffi::I_CAL_X_COMPONENT => Self::XComponent, 147 + ffi::I_CAL_VSCHEDULE_COMPONENT => Self::VscheduleComponent, 148 + ffi::I_CAL_VQUERY_COMPONENT => Self::VqueryComponent, 149 + ffi::I_CAL_VREPLY_COMPONENT => Self::VreplyComponent, 150 + ffi::I_CAL_VCAR_COMPONENT => Self::VcarComponent, 151 + ffi::I_CAL_VCOMMAND_COMPONENT => Self::VcommandComponent, 152 + ffi::I_CAL_XLICINVALID_COMPONENT => Self::XlicinvalidComponent, 153 + ffi::I_CAL_XLICMIMEPART_COMPONENT => Self::XlicmimepartComponent, 154 + ffi::I_CAL_VAVAILABILITY_COMPONENT => Self::VavailabilityComponent, 155 + ffi::I_CAL_XAVAILABLE_COMPONENT => Self::XavailableComponent, 156 + ffi::I_CAL_VPOLL_COMPONENT => Self::VpollComponent, 157 + ffi::I_CAL_VVOTER_COMPONENT => Self::VvoterComponent, 158 + ffi::I_CAL_XVOTE_COMPONENT => Self::XvoteComponent, 159 + value => Self::__Unknown(value), 160 + } 161 + } 162 + } 163 + 164 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 165 + #[derive(Clone, Copy)] 166 + #[non_exhaustive] 167 + #[doc(alias = "ICalErrorEnum")] 168 + pub enum ErrorEnum { 169 + #[doc(alias = "I_CAL_NO_ERROR")] 170 + NoError, 171 + #[doc(alias = "I_CAL_BADARG_ERROR")] 172 + BadargError, 173 + #[doc(alias = "I_CAL_NEWFAILED_ERROR")] 174 + NewfailedError, 175 + #[doc(alias = "I_CAL_ALLOCATION_ERROR")] 176 + AllocationError, 177 + #[doc(alias = "I_CAL_MALFORMEDDATA_ERROR")] 178 + MalformeddataError, 179 + #[doc(alias = "I_CAL_PARSE_ERROR")] 180 + ParseError, 181 + #[doc(alias = "I_CAL_INTERNAL_ERROR")] 182 + InternalError, 183 + #[doc(alias = "I_CAL_FILE_ERROR")] 184 + FileError, 185 + #[doc(alias = "I_CAL_USAGE_ERROR")] 186 + UsageError, 187 + #[doc(alias = "I_CAL_UNIMPLEMENTED_ERROR")] 188 + UnimplementedError, 189 + #[doc(alias = "I_CAL_UNKNOWN_ERROR")] 190 + UnknownError, 191 + #[doc(hidden)] 192 + __Unknown(i32), 193 + } 194 + 195 + #[doc(hidden)] 196 + impl IntoGlib for ErrorEnum { 197 + type GlibType = ffi::ICalErrorEnum; 198 + 199 + #[inline] 200 + fn into_glib(self) -> ffi::ICalErrorEnum { 201 + match self { 202 + Self::NoError => ffi::I_CAL_NO_ERROR, 203 + Self::BadargError => ffi::I_CAL_BADARG_ERROR, 204 + Self::NewfailedError => ffi::I_CAL_NEWFAILED_ERROR, 205 + Self::AllocationError => ffi::I_CAL_ALLOCATION_ERROR, 206 + Self::MalformeddataError => ffi::I_CAL_MALFORMEDDATA_ERROR, 207 + Self::ParseError => ffi::I_CAL_PARSE_ERROR, 208 + Self::InternalError => ffi::I_CAL_INTERNAL_ERROR, 209 + Self::FileError => ffi::I_CAL_FILE_ERROR, 210 + Self::UsageError => ffi::I_CAL_USAGE_ERROR, 211 + Self::UnimplementedError => ffi::I_CAL_UNIMPLEMENTED_ERROR, 212 + Self::UnknownError => ffi::I_CAL_UNKNOWN_ERROR, 213 + Self::__Unknown(value) => value, 214 + } 215 + } 216 + } 217 + 218 + #[doc(hidden)] 219 + impl FromGlib<ffi::ICalErrorEnum> for ErrorEnum { 220 + #[inline] 221 + unsafe fn from_glib(value: ffi::ICalErrorEnum) -> Self { 222 + skip_assert_initialized!(); 223 + 224 + match value { 225 + ffi::I_CAL_NO_ERROR => Self::NoError, 226 + ffi::I_CAL_BADARG_ERROR => Self::BadargError, 227 + ffi::I_CAL_NEWFAILED_ERROR => Self::NewfailedError, 228 + ffi::I_CAL_ALLOCATION_ERROR => Self::AllocationError, 229 + ffi::I_CAL_MALFORMEDDATA_ERROR => Self::MalformeddataError, 230 + ffi::I_CAL_PARSE_ERROR => Self::ParseError, 231 + ffi::I_CAL_INTERNAL_ERROR => Self::InternalError, 232 + ffi::I_CAL_FILE_ERROR => Self::FileError, 233 + ffi::I_CAL_USAGE_ERROR => Self::UsageError, 234 + ffi::I_CAL_UNIMPLEMENTED_ERROR => Self::UnimplementedError, 235 + ffi::I_CAL_UNKNOWN_ERROR => Self::UnknownError, 236 + value => Self::__Unknown(value), 237 + } 238 + } 239 + } 240 + 241 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 242 + #[derive(Clone, Copy)] 243 + #[non_exhaustive] 244 + #[doc(alias = "ICalErrorState")] 245 + pub enum ErrorState { 246 + #[doc(alias = "I_CAL_ERROR_FATAL")] 247 + Fatal, 248 + #[doc(alias = "I_CAL_ERROR_NONFATAL")] 249 + Nonfatal, 250 + #[doc(alias = "I_CAL_ERROR_DEFAULT")] 251 + Default, 252 + #[doc(alias = "I_CAL_ERROR_UNKNOWN")] 253 + Unknown, 254 + #[doc(hidden)] 255 + __Unknown(i32), 256 + } 257 + 258 + #[doc(hidden)] 259 + impl IntoGlib for ErrorState { 260 + type GlibType = ffi::ICalErrorState; 261 + 262 + #[inline] 263 + fn into_glib(self) -> ffi::ICalErrorState { 264 + match self { 265 + Self::Fatal => ffi::I_CAL_ERROR_FATAL, 266 + Self::Nonfatal => ffi::I_CAL_ERROR_NONFATAL, 267 + Self::Default => ffi::I_CAL_ERROR_DEFAULT, 268 + Self::Unknown => ffi::I_CAL_ERROR_UNKNOWN, 269 + Self::__Unknown(value) => value, 270 + } 271 + } 272 + } 273 + 274 + #[doc(hidden)] 275 + impl FromGlib<ffi::ICalErrorState> for ErrorState { 276 + #[inline] 277 + unsafe fn from_glib(value: ffi::ICalErrorState) -> Self { 278 + skip_assert_initialized!(); 279 + 280 + match value { 281 + ffi::I_CAL_ERROR_FATAL => Self::Fatal, 282 + ffi::I_CAL_ERROR_NONFATAL => Self::Nonfatal, 283 + ffi::I_CAL_ERROR_DEFAULT => Self::Default, 284 + ffi::I_CAL_ERROR_UNKNOWN => Self::Unknown, 285 + value => Self::__Unknown(value), 286 + } 287 + } 288 + } 289 + 290 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 291 + #[derive(Clone, Copy)] 292 + #[non_exhaustive] 293 + #[doc(alias = "ICalParameterAction")] 294 + pub enum ParameterAction { 295 + #[doc(alias = "I_CAL_ACTIONPARAM_X")] 296 + X, 297 + #[doc(alias = "I_CAL_ACTIONPARAM_ASK")] 298 + Ask, 299 + #[doc(alias = "I_CAL_ACTIONPARAM_ABORT")] 300 + Abort, 301 + #[doc(alias = "I_CAL_ACTIONPARAM_NONE")] 302 + None, 303 + #[doc(hidden)] 304 + __Unknown(i32), 305 + } 306 + 307 + #[doc(hidden)] 308 + impl IntoGlib for ParameterAction { 309 + type GlibType = ffi::ICalParameterAction; 310 + 311 + #[inline] 312 + fn into_glib(self) -> ffi::ICalParameterAction { 313 + match self { 314 + Self::X => ffi::I_CAL_ACTIONPARAM_X, 315 + Self::Ask => ffi::I_CAL_ACTIONPARAM_ASK, 316 + Self::Abort => ffi::I_CAL_ACTIONPARAM_ABORT, 317 + Self::None => ffi::I_CAL_ACTIONPARAM_NONE, 318 + Self::__Unknown(value) => value, 319 + } 320 + } 321 + } 322 + 323 + #[doc(hidden)] 324 + impl FromGlib<ffi::ICalParameterAction> for ParameterAction { 325 + #[inline] 326 + unsafe fn from_glib(value: ffi::ICalParameterAction) -> Self { 327 + skip_assert_initialized!(); 328 + 329 + match value { 330 + ffi::I_CAL_ACTIONPARAM_X => Self::X, 331 + ffi::I_CAL_ACTIONPARAM_ASK => Self::Ask, 332 + ffi::I_CAL_ACTIONPARAM_ABORT => Self::Abort, 333 + ffi::I_CAL_ACTIONPARAM_NONE => Self::None, 334 + value => Self::__Unknown(value), 335 + } 336 + } 337 + } 338 + 339 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 340 + #[derive(Clone, Copy)] 341 + #[non_exhaustive] 342 + #[doc(alias = "ICalParameterDisplay")] 343 + pub enum ParameterDisplay { 344 + #[doc(alias = "I_CAL_DISPLAY_X")] 345 + X, 346 + #[doc(alias = "I_CAL_DISPLAY_BADGE")] 347 + Badge, 348 + #[doc(alias = "I_CAL_DISPLAY_GRAPHIC")] 349 + Graphic, 350 + #[doc(alias = "I_CAL_DISPLAY_FULLSIZE")] 351 + Fullsize, 352 + #[doc(alias = "I_CAL_DISPLAY_THUMBNAIL")] 353 + Thumbnail, 354 + #[doc(alias = "I_CAL_DISPLAY_NONE")] 355 + None, 356 + #[doc(hidden)] 357 + __Unknown(i32), 358 + } 359 + 360 + #[doc(hidden)] 361 + impl IntoGlib for ParameterDisplay { 362 + type GlibType = ffi::ICalParameterDisplay; 363 + 364 + #[inline] 365 + fn into_glib(self) -> ffi::ICalParameterDisplay { 366 + match self { 367 + Self::X => ffi::I_CAL_DISPLAY_X, 368 + Self::Badge => ffi::I_CAL_DISPLAY_BADGE, 369 + Self::Graphic => ffi::I_CAL_DISPLAY_GRAPHIC, 370 + Self::Fullsize => ffi::I_CAL_DISPLAY_FULLSIZE, 371 + Self::Thumbnail => ffi::I_CAL_DISPLAY_THUMBNAIL, 372 + Self::None => ffi::I_CAL_DISPLAY_NONE, 373 + Self::__Unknown(value) => value, 374 + } 375 + } 376 + } 377 + 378 + #[doc(hidden)] 379 + impl FromGlib<ffi::ICalParameterDisplay> for ParameterDisplay { 380 + #[inline] 381 + unsafe fn from_glib(value: ffi::ICalParameterDisplay) -> Self { 382 + skip_assert_initialized!(); 383 + 384 + match value { 385 + ffi::I_CAL_DISPLAY_X => Self::X, 386 + ffi::I_CAL_DISPLAY_BADGE => Self::Badge, 387 + ffi::I_CAL_DISPLAY_GRAPHIC => Self::Graphic, 388 + ffi::I_CAL_DISPLAY_FULLSIZE => Self::Fullsize, 389 + ffi::I_CAL_DISPLAY_THUMBNAIL => Self::Thumbnail, 390 + ffi::I_CAL_DISPLAY_NONE => Self::None, 391 + value => Self::__Unknown(value), 392 + } 393 + } 394 + } 395 + 396 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 397 + #[derive(Clone, Copy)] 398 + #[non_exhaustive] 399 + #[doc(alias = "ICalParameterEnable")] 400 + pub enum ParameterEnable { 401 + #[doc(alias = "I_CAL_ENABLE_X")] 402 + X, 403 + #[doc(alias = "I_CAL_ENABLE_TRUE")] 404 + True, 405 + #[doc(alias = "I_CAL_ENABLE_FALSE")] 406 + False, 407 + #[doc(alias = "I_CAL_ENABLE_NONE")] 408 + None, 409 + #[doc(hidden)] 410 + __Unknown(i32), 411 + } 412 + 413 + #[doc(hidden)] 414 + impl IntoGlib for ParameterEnable { 415 + type GlibType = ffi::ICalParameterEnable; 416 + 417 + #[inline] 418 + fn into_glib(self) -> ffi::ICalParameterEnable { 419 + match self { 420 + Self::X => ffi::I_CAL_ENABLE_X, 421 + Self::True => ffi::I_CAL_ENABLE_TRUE, 422 + Self::False => ffi::I_CAL_ENABLE_FALSE, 423 + Self::None => ffi::I_CAL_ENABLE_NONE, 424 + Self::__Unknown(value) => value, 425 + } 426 + } 427 + } 428 + 429 + #[doc(hidden)] 430 + impl FromGlib<ffi::ICalParameterEnable> for ParameterEnable { 431 + #[inline] 432 + unsafe fn from_glib(value: ffi::ICalParameterEnable) -> Self { 433 + skip_assert_initialized!(); 434 + 435 + match value { 436 + ffi::I_CAL_ENABLE_X => Self::X, 437 + ffi::I_CAL_ENABLE_TRUE => Self::True, 438 + ffi::I_CAL_ENABLE_FALSE => Self::False, 439 + ffi::I_CAL_ENABLE_NONE => Self::None, 440 + value => Self::__Unknown(value), 441 + } 442 + } 443 + } 444 + 445 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 446 + #[derive(Clone, Copy)] 447 + #[non_exhaustive] 448 + #[doc(alias = "ICalParameterEncoding")] 449 + pub enum ParameterEncoding { 450 + #[doc(alias = "I_CAL_ENCODING_X")] 451 + X, 452 + #[doc(alias = "I_CAL_ENCODING_8BIT")] 453 + _8bit, 454 + #[doc(alias = "I_CAL_ENCODING_BASE64")] 455 + Base64, 456 + #[doc(alias = "I_CAL_ENCODING_NONE")] 457 + None, 458 + #[doc(hidden)] 459 + __Unknown(i32), 460 + } 461 + 462 + #[doc(hidden)] 463 + impl IntoGlib for ParameterEncoding { 464 + type GlibType = ffi::ICalParameterEncoding; 465 + 466 + #[inline] 467 + fn into_glib(self) -> ffi::ICalParameterEncoding { 468 + match self { 469 + Self::X => ffi::I_CAL_ENCODING_X, 470 + Self::_8bit => ffi::I_CAL_ENCODING_8BIT, 471 + Self::Base64 => ffi::I_CAL_ENCODING_BASE64, 472 + Self::None => ffi::I_CAL_ENCODING_NONE, 473 + Self::__Unknown(value) => value, 474 + } 475 + } 476 + } 477 + 478 + #[doc(hidden)] 479 + impl FromGlib<ffi::ICalParameterEncoding> for ParameterEncoding { 480 + #[inline] 481 + unsafe fn from_glib(value: ffi::ICalParameterEncoding) -> Self { 482 + skip_assert_initialized!(); 483 + 484 + match value { 485 + ffi::I_CAL_ENCODING_X => Self::X, 486 + ffi::I_CAL_ENCODING_8BIT => Self::_8bit, 487 + ffi::I_CAL_ENCODING_BASE64 => Self::Base64, 488 + ffi::I_CAL_ENCODING_NONE => Self::None, 489 + value => Self::__Unknown(value), 490 + } 491 + } 492 + } 493 + 494 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 495 + #[derive(Clone, Copy)] 496 + #[non_exhaustive] 497 + #[doc(alias = "ICalParameterFbtype")] 498 + pub enum ParameterFbtype { 499 + #[doc(alias = "I_CAL_FBTYPE_X")] 500 + X, 501 + #[doc(alias = "I_CAL_FBTYPE_FREE")] 502 + Free, 503 + #[doc(alias = "I_CAL_FBTYPE_BUSY")] 504 + Busy, 505 + #[doc(alias = "I_CAL_FBTYPE_BUSYUNAVAILABLE")] 506 + Busyunavailable, 507 + #[doc(alias = "I_CAL_FBTYPE_BUSYTENTATIVE")] 508 + Busytentative, 509 + #[doc(alias = "I_CAL_FBTYPE_NONE")] 510 + None, 511 + #[doc(hidden)] 512 + __Unknown(i32), 513 + } 514 + 515 + #[doc(hidden)] 516 + impl IntoGlib for ParameterFbtype { 517 + type GlibType = ffi::ICalParameterFbtype; 518 + 519 + #[inline] 520 + fn into_glib(self) -> ffi::ICalParameterFbtype { 521 + match self { 522 + Self::X => ffi::I_CAL_FBTYPE_X, 523 + Self::Free => ffi::I_CAL_FBTYPE_FREE, 524 + Self::Busy => ffi::I_CAL_FBTYPE_BUSY, 525 + Self::Busyunavailable => ffi::I_CAL_FBTYPE_BUSYUNAVAILABLE, 526 + Self::Busytentative => ffi::I_CAL_FBTYPE_BUSYTENTATIVE, 527 + Self::None => ffi::I_CAL_FBTYPE_NONE, 528 + Self::__Unknown(value) => value, 529 + } 530 + } 531 + } 532 + 533 + #[doc(hidden)] 534 + impl FromGlib<ffi::ICalParameterFbtype> for ParameterFbtype { 535 + #[inline] 536 + unsafe fn from_glib(value: ffi::ICalParameterFbtype) -> Self { 537 + skip_assert_initialized!(); 538 + 539 + match value { 540 + ffi::I_CAL_FBTYPE_X => Self::X, 541 + ffi::I_CAL_FBTYPE_FREE => Self::Free, 542 + ffi::I_CAL_FBTYPE_BUSY => Self::Busy, 543 + ffi::I_CAL_FBTYPE_BUSYUNAVAILABLE => Self::Busyunavailable, 544 + ffi::I_CAL_FBTYPE_BUSYTENTATIVE => Self::Busytentative, 545 + ffi::I_CAL_FBTYPE_NONE => Self::None, 546 + value => Self::__Unknown(value), 547 + } 548 + } 549 + } 550 + 551 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 552 + #[derive(Clone, Copy)] 553 + #[non_exhaustive] 554 + #[doc(alias = "ICalParameterFeature")] 555 + pub enum ParameterFeature { 556 + #[doc(alias = "I_CAL_FEATURE_X")] 557 + X, 558 + #[doc(alias = "I_CAL_FEATURE_AUDIO")] 559 + Audio, 560 + #[doc(alias = "I_CAL_FEATURE_CHAT")] 561 + Chat, 562 + #[doc(alias = "I_CAL_FEATURE_FEED")] 563 + Feed, 564 + #[doc(alias = "I_CAL_FEATURE_MODERATOR")] 565 + Moderator, 566 + #[doc(alias = "I_CAL_FEATURE_PHONE")] 567 + Phone, 568 + #[doc(alias = "I_CAL_FEATURE_SCREEN")] 569 + Screen, 570 + #[doc(alias = "I_CAL_FEATURE_VIDEO")] 571 + Video, 572 + #[doc(alias = "I_CAL_FEATURE_NONE")] 573 + None, 574 + #[doc(hidden)] 575 + __Unknown(i32), 576 + } 577 + 578 + #[doc(hidden)] 579 + impl IntoGlib for ParameterFeature { 580 + type GlibType = ffi::ICalParameterFeature; 581 + 582 + #[inline] 583 + fn into_glib(self) -> ffi::ICalParameterFeature { 584 + match self { 585 + Self::X => ffi::I_CAL_FEATURE_X, 586 + Self::Audio => ffi::I_CAL_FEATURE_AUDIO, 587 + Self::Chat => ffi::I_CAL_FEATURE_CHAT, 588 + Self::Feed => ffi::I_CAL_FEATURE_FEED, 589 + Self::Moderator => ffi::I_CAL_FEATURE_MODERATOR, 590 + Self::Phone => ffi::I_CAL_FEATURE_PHONE, 591 + Self::Screen => ffi::I_CAL_FEATURE_SCREEN, 592 + Self::Video => ffi::I_CAL_FEATURE_VIDEO, 593 + Self::None => ffi::I_CAL_FEATURE_NONE, 594 + Self::__Unknown(value) => value, 595 + } 596 + } 597 + } 598 + 599 + #[doc(hidden)] 600 + impl FromGlib<ffi::ICalParameterFeature> for ParameterFeature { 601 + #[inline] 602 + unsafe fn from_glib(value: ffi::ICalParameterFeature) -> Self { 603 + skip_assert_initialized!(); 604 + 605 + match value { 606 + ffi::I_CAL_FEATURE_X => Self::X, 607 + ffi::I_CAL_FEATURE_AUDIO => Self::Audio, 608 + ffi::I_CAL_FEATURE_CHAT => Self::Chat, 609 + ffi::I_CAL_FEATURE_FEED => Self::Feed, 610 + ffi::I_CAL_FEATURE_MODERATOR => Self::Moderator, 611 + ffi::I_CAL_FEATURE_PHONE => Self::Phone, 612 + ffi::I_CAL_FEATURE_SCREEN => Self::Screen, 613 + ffi::I_CAL_FEATURE_VIDEO => Self::Video, 614 + ffi::I_CAL_FEATURE_NONE => Self::None, 615 + value => Self::__Unknown(value), 616 + } 617 + } 618 + } 619 + 620 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 621 + #[derive(Clone, Copy)] 622 + #[non_exhaustive] 623 + #[doc(alias = "ICalParameterKind")] 624 + pub enum ParameterKind { 625 + #[doc(alias = "I_CAL_ANY_PARAMETER")] 626 + AnyParameter, 627 + #[doc(alias = "I_CAL_ACTIONPARAM_PARAMETER")] 628 + ActionparamParameter, 629 + #[doc(alias = "I_CAL_ALTREP_PARAMETER")] 630 + AltrepParameter, 631 + #[doc(alias = "I_CAL_CHARSET_PARAMETER")] 632 + CharsetParameter, 633 + #[doc(alias = "I_CAL_CN_PARAMETER")] 634 + CnParameter, 635 + #[doc(alias = "I_CAL_CUTYPE_PARAMETER")] 636 + CutypeParameter, 637 + #[doc(alias = "I_CAL_DELEGATEDFROM_PARAMETER")] 638 + DelegatedfromParameter, 639 + #[doc(alias = "I_CAL_DELEGATEDTO_PARAMETER")] 640 + DelegatedtoParameter, 641 + #[doc(alias = "I_CAL_DIR_PARAMETER")] 642 + DirParameter, 643 + #[doc(alias = "I_CAL_DISPLAY_PARAMETER")] 644 + DisplayParameter, 645 + #[doc(alias = "I_CAL_EMAIL_PARAMETER")] 646 + EmailParameter, 647 + #[doc(alias = "I_CAL_ENABLE_PARAMETER")] 648 + EnableParameter, 649 + #[doc(alias = "I_CAL_ENCODING_PARAMETER")] 650 + EncodingParameter, 651 + #[doc(alias = "I_CAL_FBTYPE_PARAMETER")] 652 + FbtypeParameter, 653 + #[doc(alias = "I_CAL_FEATURE_PARAMETER")] 654 + FeatureParameter, 655 + #[doc(alias = "I_CAL_FILENAME_PARAMETER")] 656 + FilenameParameter, 657 + #[doc(alias = "I_CAL_FMTTYPE_PARAMETER")] 658 + FmttypeParameter, 659 + #[doc(alias = "I_CAL_IANA_PARAMETER")] 660 + IanaParameter, 661 + #[doc(alias = "I_CAL_ID_PARAMETER")] 662 + IdParameter, 663 + #[doc(alias = "I_CAL_LABEL_PARAMETER")] 664 + LabelParameter, 665 + #[doc(alias = "I_CAL_LANGUAGE_PARAMETER")] 666 + LanguageParameter, 667 + #[doc(alias = "I_CAL_LATENCY_PARAMETER")] 668 + LatencyParameter, 669 + #[doc(alias = "I_CAL_LOCAL_PARAMETER")] 670 + LocalParameter, 671 + #[doc(alias = "I_CAL_LOCALIZE_PARAMETER")] 672 + LocalizeParameter, 673 + #[doc(alias = "I_CAL_MANAGEDID_PARAMETER")] 674 + ManagedidParameter, 675 + #[doc(alias = "I_CAL_MEMBER_PARAMETER")] 676 + MemberParameter, 677 + #[doc(alias = "I_CAL_MODIFIED_PARAMETER")] 678 + ModifiedParameter, 679 + #[doc(alias = "I_CAL_OPTIONS_PARAMETER")] 680 + OptionsParameter, 681 + #[doc(alias = "I_CAL_PARTSTAT_PARAMETER")] 682 + PartstatParameter, 683 + #[doc(alias = "I_CAL_PATCHACTION_PARAMETER")] 684 + PatchactionParameter, 685 + #[doc(alias = "I_CAL_PUBLICCOMMENT_PARAMETER")] 686 + PubliccommentParameter, 687 + #[doc(alias = "I_CAL_RANGE_PARAMETER")] 688 + RangeParameter, 689 + #[doc(alias = "I_CAL_REASON_PARAMETER")] 690 + ReasonParameter, 691 + #[doc(alias = "I_CAL_RELATED_PARAMETER")] 692 + RelatedParameter, 693 + #[doc(alias = "I_CAL_RELTYPE_PARAMETER")] 694 + ReltypeParameter, 695 + #[doc(alias = "I_CAL_RESPONSE_PARAMETER")] 696 + ResponseParameter, 697 + #[doc(alias = "I_CAL_ROLE_PARAMETER")] 698 + RoleParameter, 699 + #[doc(alias = "I_CAL_RSVP_PARAMETER")] 700 + RsvpParameter, 701 + #[doc(alias = "I_CAL_SCHEDULEAGENT_PARAMETER")] 702 + ScheduleagentParameter, 703 + #[doc(alias = "I_CAL_SCHEDULEFORCESEND_PARAMETER")] 704 + ScheduleforcesendParameter, 705 + #[doc(alias = "I_CAL_SCHEDULESTATUS_PARAMETER")] 706 + SchedulestatusParameter, 707 + #[doc(alias = "I_CAL_SENTBY_PARAMETER")] 708 + SentbyParameter, 709 + #[doc(alias = "I_CAL_SIZE_PARAMETER")] 710 + SizeParameter, 711 + #[doc(alias = "I_CAL_STAYINFORMED_PARAMETER")] 712 + StayinformedParameter, 713 + #[doc(alias = "I_CAL_SUBSTATE_PARAMETER")] 714 + SubstateParameter, 715 + #[doc(alias = "I_CAL_TZID_PARAMETER")] 716 + TzidParameter, 717 + #[doc(alias = "I_CAL_VALUE_PARAMETER")] 718 + ValueParameter, 719 + #[doc(alias = "I_CAL_X_PARAMETER")] 720 + XParameter, 721 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_PARAMETER")] 722 + XliccomparetypeParameter, 723 + #[doc(alias = "I_CAL_XLICERRORTYPE_PARAMETER")] 724 + XlicerrortypeParameter, 725 + #[doc(alias = "I_CAL_NO_PARAMETER")] 726 + NoParameter, 727 + #[doc(hidden)] 728 + __Unknown(i32), 729 + } 730 + 731 + #[doc(hidden)] 732 + impl IntoGlib for ParameterKind { 733 + type GlibType = ffi::ICalParameterKind; 734 + 735 + fn into_glib(self) -> ffi::ICalParameterKind { 736 + match self { 737 + Self::AnyParameter => ffi::I_CAL_ANY_PARAMETER, 738 + Self::ActionparamParameter => ffi::I_CAL_ACTIONPARAM_PARAMETER, 739 + Self::AltrepParameter => ffi::I_CAL_ALTREP_PARAMETER, 740 + Self::CharsetParameter => ffi::I_CAL_CHARSET_PARAMETER, 741 + Self::CnParameter => ffi::I_CAL_CN_PARAMETER, 742 + Self::CutypeParameter => ffi::I_CAL_CUTYPE_PARAMETER, 743 + Self::DelegatedfromParameter => ffi::I_CAL_DELEGATEDFROM_PARAMETER, 744 + Self::DelegatedtoParameter => ffi::I_CAL_DELEGATEDTO_PARAMETER, 745 + Self::DirParameter => ffi::I_CAL_DIR_PARAMETER, 746 + Self::DisplayParameter => ffi::I_CAL_DISPLAY_PARAMETER, 747 + Self::EmailParameter => ffi::I_CAL_EMAIL_PARAMETER, 748 + Self::EnableParameter => ffi::I_CAL_ENABLE_PARAMETER, 749 + Self::EncodingParameter => ffi::I_CAL_ENCODING_PARAMETER, 750 + Self::FbtypeParameter => ffi::I_CAL_FBTYPE_PARAMETER, 751 + Self::FeatureParameter => ffi::I_CAL_FEATURE_PARAMETER, 752 + Self::FilenameParameter => ffi::I_CAL_FILENAME_PARAMETER, 753 + Self::FmttypeParameter => ffi::I_CAL_FMTTYPE_PARAMETER, 754 + Self::IanaParameter => ffi::I_CAL_IANA_PARAMETER, 755 + Self::IdParameter => ffi::I_CAL_ID_PARAMETER, 756 + Self::LabelParameter => ffi::I_CAL_LABEL_PARAMETER, 757 + Self::LanguageParameter => ffi::I_CAL_LANGUAGE_PARAMETER, 758 + Self::LatencyParameter => ffi::I_CAL_LATENCY_PARAMETER, 759 + Self::LocalParameter => ffi::I_CAL_LOCAL_PARAMETER, 760 + Self::LocalizeParameter => ffi::I_CAL_LOCALIZE_PARAMETER, 761 + Self::ManagedidParameter => ffi::I_CAL_MANAGEDID_PARAMETER, 762 + Self::MemberParameter => ffi::I_CAL_MEMBER_PARAMETER, 763 + Self::ModifiedParameter => ffi::I_CAL_MODIFIED_PARAMETER, 764 + Self::OptionsParameter => ffi::I_CAL_OPTIONS_PARAMETER, 765 + Self::PartstatParameter => ffi::I_CAL_PARTSTAT_PARAMETER, 766 + Self::PatchactionParameter => ffi::I_CAL_PATCHACTION_PARAMETER, 767 + Self::PubliccommentParameter => ffi::I_CAL_PUBLICCOMMENT_PARAMETER, 768 + Self::RangeParameter => ffi::I_CAL_RANGE_PARAMETER, 769 + Self::ReasonParameter => ffi::I_CAL_REASON_PARAMETER, 770 + Self::RelatedParameter => ffi::I_CAL_RELATED_PARAMETER, 771 + Self::ReltypeParameter => ffi::I_CAL_RELTYPE_PARAMETER, 772 + Self::ResponseParameter => ffi::I_CAL_RESPONSE_PARAMETER, 773 + Self::RoleParameter => ffi::I_CAL_ROLE_PARAMETER, 774 + Self::RsvpParameter => ffi::I_CAL_RSVP_PARAMETER, 775 + Self::ScheduleagentParameter => ffi::I_CAL_SCHEDULEAGENT_PARAMETER, 776 + Self::ScheduleforcesendParameter => ffi::I_CAL_SCHEDULEFORCESEND_PARAMETER, 777 + Self::SchedulestatusParameter => ffi::I_CAL_SCHEDULESTATUS_PARAMETER, 778 + Self::SentbyParameter => ffi::I_CAL_SENTBY_PARAMETER, 779 + Self::SizeParameter => ffi::I_CAL_SIZE_PARAMETER, 780 + Self::StayinformedParameter => ffi::I_CAL_STAYINFORMED_PARAMETER, 781 + Self::SubstateParameter => ffi::I_CAL_SUBSTATE_PARAMETER, 782 + Self::TzidParameter => ffi::I_CAL_TZID_PARAMETER, 783 + Self::ValueParameter => ffi::I_CAL_VALUE_PARAMETER, 784 + Self::XParameter => ffi::I_CAL_X_PARAMETER, 785 + Self::XliccomparetypeParameter => ffi::I_CAL_XLICCOMPARETYPE_PARAMETER, 786 + Self::XlicerrortypeParameter => ffi::I_CAL_XLICERRORTYPE_PARAMETER, 787 + Self::NoParameter => ffi::I_CAL_NO_PARAMETER, 788 + Self::__Unknown(value) => value, 789 + } 790 + } 791 + } 792 + 793 + #[doc(hidden)] 794 + impl FromGlib<ffi::ICalParameterKind> for ParameterKind { 795 + unsafe fn from_glib(value: ffi::ICalParameterKind) -> Self { 796 + skip_assert_initialized!(); 797 + 798 + match value { 799 + ffi::I_CAL_ANY_PARAMETER => Self::AnyParameter, 800 + ffi::I_CAL_ACTIONPARAM_PARAMETER => Self::ActionparamParameter, 801 + ffi::I_CAL_ALTREP_PARAMETER => Self::AltrepParameter, 802 + ffi::I_CAL_CHARSET_PARAMETER => Self::CharsetParameter, 803 + ffi::I_CAL_CN_PARAMETER => Self::CnParameter, 804 + ffi::I_CAL_CUTYPE_PARAMETER => Self::CutypeParameter, 805 + ffi::I_CAL_DELEGATEDFROM_PARAMETER => Self::DelegatedfromParameter, 806 + ffi::I_CAL_DELEGATEDTO_PARAMETER => Self::DelegatedtoParameter, 807 + ffi::I_CAL_DIR_PARAMETER => Self::DirParameter, 808 + ffi::I_CAL_DISPLAY_PARAMETER => Self::DisplayParameter, 809 + ffi::I_CAL_EMAIL_PARAMETER => Self::EmailParameter, 810 + ffi::I_CAL_ENABLE_PARAMETER => Self::EnableParameter, 811 + ffi::I_CAL_ENCODING_PARAMETER => Self::EncodingParameter, 812 + ffi::I_CAL_FBTYPE_PARAMETER => Self::FbtypeParameter, 813 + ffi::I_CAL_FEATURE_PARAMETER => Self::FeatureParameter, 814 + ffi::I_CAL_FILENAME_PARAMETER => Self::FilenameParameter, 815 + ffi::I_CAL_FMTTYPE_PARAMETER => Self::FmttypeParameter, 816 + ffi::I_CAL_IANA_PARAMETER => Self::IanaParameter, 817 + ffi::I_CAL_ID_PARAMETER => Self::IdParameter, 818 + ffi::I_CAL_LABEL_PARAMETER => Self::LabelParameter, 819 + ffi::I_CAL_LANGUAGE_PARAMETER => Self::LanguageParameter, 820 + ffi::I_CAL_LATENCY_PARAMETER => Self::LatencyParameter, 821 + ffi::I_CAL_LOCAL_PARAMETER => Self::LocalParameter, 822 + ffi::I_CAL_LOCALIZE_PARAMETER => Self::LocalizeParameter, 823 + ffi::I_CAL_MANAGEDID_PARAMETER => Self::ManagedidParameter, 824 + ffi::I_CAL_MEMBER_PARAMETER => Self::MemberParameter, 825 + ffi::I_CAL_MODIFIED_PARAMETER => Self::ModifiedParameter, 826 + ffi::I_CAL_OPTIONS_PARAMETER => Self::OptionsParameter, 827 + ffi::I_CAL_PARTSTAT_PARAMETER => Self::PartstatParameter, 828 + ffi::I_CAL_PATCHACTION_PARAMETER => Self::PatchactionParameter, 829 + ffi::I_CAL_PUBLICCOMMENT_PARAMETER => Self::PubliccommentParameter, 830 + ffi::I_CAL_RANGE_PARAMETER => Self::RangeParameter, 831 + ffi::I_CAL_REASON_PARAMETER => Self::ReasonParameter, 832 + ffi::I_CAL_RELATED_PARAMETER => Self::RelatedParameter, 833 + ffi::I_CAL_RELTYPE_PARAMETER => Self::ReltypeParameter, 834 + ffi::I_CAL_RESPONSE_PARAMETER => Self::ResponseParameter, 835 + ffi::I_CAL_ROLE_PARAMETER => Self::RoleParameter, 836 + ffi::I_CAL_RSVP_PARAMETER => Self::RsvpParameter, 837 + ffi::I_CAL_SCHEDULEAGENT_PARAMETER => Self::ScheduleagentParameter, 838 + ffi::I_CAL_SCHEDULEFORCESEND_PARAMETER => Self::ScheduleforcesendParameter, 839 + ffi::I_CAL_SCHEDULESTATUS_PARAMETER => Self::SchedulestatusParameter, 840 + ffi::I_CAL_SENTBY_PARAMETER => Self::SentbyParameter, 841 + ffi::I_CAL_SIZE_PARAMETER => Self::SizeParameter, 842 + ffi::I_CAL_STAYINFORMED_PARAMETER => Self::StayinformedParameter, 843 + ffi::I_CAL_SUBSTATE_PARAMETER => Self::SubstateParameter, 844 + ffi::I_CAL_TZID_PARAMETER => Self::TzidParameter, 845 + ffi::I_CAL_VALUE_PARAMETER => Self::ValueParameter, 846 + ffi::I_CAL_X_PARAMETER => Self::XParameter, 847 + ffi::I_CAL_XLICCOMPARETYPE_PARAMETER => Self::XliccomparetypeParameter, 848 + ffi::I_CAL_XLICERRORTYPE_PARAMETER => Self::XlicerrortypeParameter, 849 + ffi::I_CAL_NO_PARAMETER => Self::NoParameter, 850 + value => Self::__Unknown(value), 851 + } 852 + } 853 + } 854 + 855 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 856 + #[derive(Clone, Copy)] 857 + #[non_exhaustive] 858 + #[doc(alias = "ICalParameterLocal")] 859 + pub enum ParameterLocal { 860 + #[doc(alias = "I_CAL_LOCAL_X")] 861 + X, 862 + #[doc(alias = "I_CAL_LOCAL_TRUE")] 863 + True, 864 + #[doc(alias = "I_CAL_LOCAL_FALSE")] 865 + False, 866 + #[doc(alias = "I_CAL_LOCAL_NONE")] 867 + None, 868 + #[doc(hidden)] 869 + __Unknown(i32), 870 + } 871 + 872 + #[doc(hidden)] 873 + impl IntoGlib for ParameterLocal { 874 + type GlibType = ffi::ICalParameterLocal; 875 + 876 + #[inline] 877 + fn into_glib(self) -> ffi::ICalParameterLocal { 878 + match self { 879 + Self::X => ffi::I_CAL_LOCAL_X, 880 + Self::True => ffi::I_CAL_LOCAL_TRUE, 881 + Self::False => ffi::I_CAL_LOCAL_FALSE, 882 + Self::None => ffi::I_CAL_LOCAL_NONE, 883 + Self::__Unknown(value) => value, 884 + } 885 + } 886 + } 887 + 888 + #[doc(hidden)] 889 + impl FromGlib<ffi::ICalParameterLocal> for ParameterLocal { 890 + #[inline] 891 + unsafe fn from_glib(value: ffi::ICalParameterLocal) -> Self { 892 + skip_assert_initialized!(); 893 + 894 + match value { 895 + ffi::I_CAL_LOCAL_X => Self::X, 896 + ffi::I_CAL_LOCAL_TRUE => Self::True, 897 + ffi::I_CAL_LOCAL_FALSE => Self::False, 898 + ffi::I_CAL_LOCAL_NONE => Self::None, 899 + value => Self::__Unknown(value), 900 + } 901 + } 902 + } 903 + 904 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 905 + #[derive(Clone, Copy)] 906 + #[non_exhaustive] 907 + #[doc(alias = "ICalParameterPartstat")] 908 + pub enum ParameterPartstat { 909 + #[doc(alias = "I_CAL_PARTSTAT_X")] 910 + X, 911 + #[doc(alias = "I_CAL_PARTSTAT_NEEDSACTION")] 912 + Needsaction, 913 + #[doc(alias = "I_CAL_PARTSTAT_ACCEPTED")] 914 + Accepted, 915 + #[doc(alias = "I_CAL_PARTSTAT_DECLINED")] 916 + Declined, 917 + #[doc(alias = "I_CAL_PARTSTAT_TENTATIVE")] 918 + Tentative, 919 + #[doc(alias = "I_CAL_PARTSTAT_DELEGATED")] 920 + Delegated, 921 + #[doc(alias = "I_CAL_PARTSTAT_COMPLETED")] 922 + Completed, 923 + #[doc(alias = "I_CAL_PARTSTAT_INPROCESS")] 924 + Inprocess, 925 + #[doc(alias = "I_CAL_PARTSTAT_FAILED")] 926 + Failed, 927 + #[doc(alias = "I_CAL_PARTSTAT_NONE")] 928 + None, 929 + #[doc(hidden)] 930 + __Unknown(i32), 931 + } 932 + 933 + #[doc(hidden)] 934 + impl IntoGlib for ParameterPartstat { 935 + type GlibType = ffi::ICalParameterPartstat; 936 + 937 + #[inline] 938 + fn into_glib(self) -> ffi::ICalParameterPartstat { 939 + match self { 940 + Self::X => ffi::I_CAL_PARTSTAT_X, 941 + Self::Needsaction => ffi::I_CAL_PARTSTAT_NEEDSACTION, 942 + Self::Accepted => ffi::I_CAL_PARTSTAT_ACCEPTED, 943 + Self::Declined => ffi::I_CAL_PARTSTAT_DECLINED, 944 + Self::Tentative => ffi::I_CAL_PARTSTAT_TENTATIVE, 945 + Self::Delegated => ffi::I_CAL_PARTSTAT_DELEGATED, 946 + Self::Completed => ffi::I_CAL_PARTSTAT_COMPLETED, 947 + Self::Inprocess => ffi::I_CAL_PARTSTAT_INPROCESS, 948 + Self::Failed => ffi::I_CAL_PARTSTAT_FAILED, 949 + Self::None => ffi::I_CAL_PARTSTAT_NONE, 950 + Self::__Unknown(value) => value, 951 + } 952 + } 953 + } 954 + 955 + #[doc(hidden)] 956 + impl FromGlib<ffi::ICalParameterPartstat> for ParameterPartstat { 957 + #[inline] 958 + unsafe fn from_glib(value: ffi::ICalParameterPartstat) -> Self { 959 + skip_assert_initialized!(); 960 + 961 + match value { 962 + ffi::I_CAL_PARTSTAT_X => Self::X, 963 + ffi::I_CAL_PARTSTAT_NEEDSACTION => Self::Needsaction, 964 + ffi::I_CAL_PARTSTAT_ACCEPTED => Self::Accepted, 965 + ffi::I_CAL_PARTSTAT_DECLINED => Self::Declined, 966 + ffi::I_CAL_PARTSTAT_TENTATIVE => Self::Tentative, 967 + ffi::I_CAL_PARTSTAT_DELEGATED => Self::Delegated, 968 + ffi::I_CAL_PARTSTAT_COMPLETED => Self::Completed, 969 + ffi::I_CAL_PARTSTAT_INPROCESS => Self::Inprocess, 970 + ffi::I_CAL_PARTSTAT_FAILED => Self::Failed, 971 + ffi::I_CAL_PARTSTAT_NONE => Self::None, 972 + value => Self::__Unknown(value), 973 + } 974 + } 975 + } 976 + 977 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 978 + #[derive(Clone, Copy)] 979 + #[non_exhaustive] 980 + #[doc(alias = "ICalParameterPatchaction")] 981 + pub enum ParameterPatchaction { 982 + #[doc(alias = "I_CAL_PATCHACTION_X")] 983 + X, 984 + #[doc(alias = "I_CAL_PATCHACTION_CREATE")] 985 + Create, 986 + #[doc(alias = "I_CAL_PATCHACTION_BYNAME")] 987 + Byname, 988 + #[doc(alias = "I_CAL_PATCHACTION_BYVALUE")] 989 + Byvalue, 990 + #[doc(alias = "I_CAL_PATCHACTION_BYPARAM")] 991 + Byparam, 992 + #[doc(alias = "I_CAL_PATCHACTION_NONE")] 993 + None, 994 + #[doc(hidden)] 995 + __Unknown(i32), 996 + } 997 + 998 + #[doc(hidden)] 999 + impl IntoGlib for ParameterPatchaction { 1000 + type GlibType = ffi::ICalParameterPatchaction; 1001 + 1002 + #[inline] 1003 + fn into_glib(self) -> ffi::ICalParameterPatchaction { 1004 + match self { 1005 + Self::X => ffi::I_CAL_PATCHACTION_X, 1006 + Self::Create => ffi::I_CAL_PATCHACTION_CREATE, 1007 + Self::Byname => ffi::I_CAL_PATCHACTION_BYNAME, 1008 + Self::Byvalue => ffi::I_CAL_PATCHACTION_BYVALUE, 1009 + Self::Byparam => ffi::I_CAL_PATCHACTION_BYPARAM, 1010 + Self::None => ffi::I_CAL_PATCHACTION_NONE, 1011 + Self::__Unknown(value) => value, 1012 + } 1013 + } 1014 + } 1015 + 1016 + #[doc(hidden)] 1017 + impl FromGlib<ffi::ICalParameterPatchaction> for ParameterPatchaction { 1018 + #[inline] 1019 + unsafe fn from_glib(value: ffi::ICalParameterPatchaction) -> Self { 1020 + skip_assert_initialized!(); 1021 + 1022 + match value { 1023 + ffi::I_CAL_PATCHACTION_X => Self::X, 1024 + ffi::I_CAL_PATCHACTION_CREATE => Self::Create, 1025 + ffi::I_CAL_PATCHACTION_BYNAME => Self::Byname, 1026 + ffi::I_CAL_PATCHACTION_BYVALUE => Self::Byvalue, 1027 + ffi::I_CAL_PATCHACTION_BYPARAM => Self::Byparam, 1028 + ffi::I_CAL_PATCHACTION_NONE => Self::None, 1029 + value => Self::__Unknown(value), 1030 + } 1031 + } 1032 + } 1033 + 1034 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1035 + #[derive(Clone, Copy)] 1036 + #[non_exhaustive] 1037 + #[doc(alias = "ICalParameterRange")] 1038 + pub enum ParameterRange { 1039 + #[doc(alias = "I_CAL_RANGE_X")] 1040 + X, 1041 + #[doc(alias = "I_CAL_RANGE_THISANDPRIOR")] 1042 + Thisandprior, 1043 + #[doc(alias = "I_CAL_RANGE_THISANDFUTURE")] 1044 + Thisandfuture, 1045 + #[doc(alias = "I_CAL_RANGE_NONE")] 1046 + None, 1047 + #[doc(hidden)] 1048 + __Unknown(i32), 1049 + } 1050 + 1051 + #[doc(hidden)] 1052 + impl IntoGlib for ParameterRange { 1053 + type GlibType = ffi::ICalParameterRange; 1054 + 1055 + #[inline] 1056 + fn into_glib(self) -> ffi::ICalParameterRange { 1057 + match self { 1058 + Self::X => ffi::I_CAL_RANGE_X, 1059 + Self::Thisandprior => ffi::I_CAL_RANGE_THISANDPRIOR, 1060 + Self::Thisandfuture => ffi::I_CAL_RANGE_THISANDFUTURE, 1061 + Self::None => ffi::I_CAL_RANGE_NONE, 1062 + Self::__Unknown(value) => value, 1063 + } 1064 + } 1065 + } 1066 + 1067 + #[doc(hidden)] 1068 + impl FromGlib<ffi::ICalParameterRange> for ParameterRange { 1069 + #[inline] 1070 + unsafe fn from_glib(value: ffi::ICalParameterRange) -> Self { 1071 + skip_assert_initialized!(); 1072 + 1073 + match value { 1074 + ffi::I_CAL_RANGE_X => Self::X, 1075 + ffi::I_CAL_RANGE_THISANDPRIOR => Self::Thisandprior, 1076 + ffi::I_CAL_RANGE_THISANDFUTURE => Self::Thisandfuture, 1077 + ffi::I_CAL_RANGE_NONE => Self::None, 1078 + value => Self::__Unknown(value), 1079 + } 1080 + } 1081 + } 1082 + 1083 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1084 + #[derive(Clone, Copy)] 1085 + #[non_exhaustive] 1086 + #[doc(alias = "ICalParameterRelated")] 1087 + pub enum ParameterRelated { 1088 + #[doc(alias = "I_CAL_RELATED_X")] 1089 + X, 1090 + #[doc(alias = "I_CAL_RELATED_START")] 1091 + Start, 1092 + #[doc(alias = "I_CAL_RELATED_END")] 1093 + End, 1094 + #[doc(alias = "I_CAL_RELATED_NONE")] 1095 + None, 1096 + #[doc(hidden)] 1097 + __Unknown(i32), 1098 + } 1099 + 1100 + #[doc(hidden)] 1101 + impl IntoGlib for ParameterRelated { 1102 + type GlibType = ffi::ICalParameterRelated; 1103 + 1104 + #[inline] 1105 + fn into_glib(self) -> ffi::ICalParameterRelated { 1106 + match self { 1107 + Self::X => ffi::I_CAL_RELATED_X, 1108 + Self::Start => ffi::I_CAL_RELATED_START, 1109 + Self::End => ffi::I_CAL_RELATED_END, 1110 + Self::None => ffi::I_CAL_RELATED_NONE, 1111 + Self::__Unknown(value) => value, 1112 + } 1113 + } 1114 + } 1115 + 1116 + #[doc(hidden)] 1117 + impl FromGlib<ffi::ICalParameterRelated> for ParameterRelated { 1118 + #[inline] 1119 + unsafe fn from_glib(value: ffi::ICalParameterRelated) -> Self { 1120 + skip_assert_initialized!(); 1121 + 1122 + match value { 1123 + ffi::I_CAL_RELATED_X => Self::X, 1124 + ffi::I_CAL_RELATED_START => Self::Start, 1125 + ffi::I_CAL_RELATED_END => Self::End, 1126 + ffi::I_CAL_RELATED_NONE => Self::None, 1127 + value => Self::__Unknown(value), 1128 + } 1129 + } 1130 + } 1131 + 1132 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1133 + #[derive(Clone, Copy)] 1134 + #[non_exhaustive] 1135 + #[doc(alias = "ICalParameterReltype")] 1136 + pub enum ParameterReltype { 1137 + #[doc(alias = "I_CAL_RELTYPE_X")] 1138 + X, 1139 + #[doc(alias = "I_CAL_RELTYPE_PARENT")] 1140 + Parent, 1141 + #[doc(alias = "I_CAL_RELTYPE_CHILD")] 1142 + Child, 1143 + #[doc(alias = "I_CAL_RELTYPE_SIBLING")] 1144 + Sibling, 1145 + #[doc(alias = "I_CAL_RELTYPE_POLL")] 1146 + Poll, 1147 + #[doc(alias = "I_CAL_RELTYPE_NONE")] 1148 + None, 1149 + #[doc(hidden)] 1150 + __Unknown(i32), 1151 + } 1152 + 1153 + #[doc(hidden)] 1154 + impl IntoGlib for ParameterReltype { 1155 + type GlibType = ffi::ICalParameterReltype; 1156 + 1157 + #[inline] 1158 + fn into_glib(self) -> ffi::ICalParameterReltype { 1159 + match self { 1160 + Self::X => ffi::I_CAL_RELTYPE_X, 1161 + Self::Parent => ffi::I_CAL_RELTYPE_PARENT, 1162 + Self::Child => ffi::I_CAL_RELTYPE_CHILD, 1163 + Self::Sibling => ffi::I_CAL_RELTYPE_SIBLING, 1164 + Self::Poll => ffi::I_CAL_RELTYPE_POLL, 1165 + Self::None => ffi::I_CAL_RELTYPE_NONE, 1166 + Self::__Unknown(value) => value, 1167 + } 1168 + } 1169 + } 1170 + 1171 + #[doc(hidden)] 1172 + impl FromGlib<ffi::ICalParameterReltype> for ParameterReltype { 1173 + #[inline] 1174 + unsafe fn from_glib(value: ffi::ICalParameterReltype) -> Self { 1175 + skip_assert_initialized!(); 1176 + 1177 + match value { 1178 + ffi::I_CAL_RELTYPE_X => Self::X, 1179 + ffi::I_CAL_RELTYPE_PARENT => Self::Parent, 1180 + ffi::I_CAL_RELTYPE_CHILD => Self::Child, 1181 + ffi::I_CAL_RELTYPE_SIBLING => Self::Sibling, 1182 + ffi::I_CAL_RELTYPE_POLL => Self::Poll, 1183 + ffi::I_CAL_RELTYPE_NONE => Self::None, 1184 + value => Self::__Unknown(value), 1185 + } 1186 + } 1187 + } 1188 + 1189 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1190 + #[derive(Clone, Copy)] 1191 + #[non_exhaustive] 1192 + #[doc(alias = "ICalParameterRequired")] 1193 + pub enum ParameterRequired { 1194 + #[doc(alias = "I_CAL_REQUIRED_X")] 1195 + X, 1196 + #[doc(alias = "I_CAL_REQUIRED_TRUE")] 1197 + True, 1198 + #[doc(alias = "I_CAL_REQUIRED_FALSE")] 1199 + False, 1200 + #[doc(alias = "I_CAL_REQUIRED_NONE")] 1201 + None, 1202 + #[doc(hidden)] 1203 + __Unknown(i32), 1204 + } 1205 + 1206 + #[doc(hidden)] 1207 + impl IntoGlib for ParameterRequired { 1208 + type GlibType = ffi::ICalParameterRequired; 1209 + 1210 + #[inline] 1211 + fn into_glib(self) -> ffi::ICalParameterRequired { 1212 + match self { 1213 + Self::X => ffi::I_CAL_REQUIRED_X, 1214 + Self::True => ffi::I_CAL_REQUIRED_TRUE, 1215 + Self::False => ffi::I_CAL_REQUIRED_FALSE, 1216 + Self::None => ffi::I_CAL_REQUIRED_NONE, 1217 + Self::__Unknown(value) => value, 1218 + } 1219 + } 1220 + } 1221 + 1222 + #[doc(hidden)] 1223 + impl FromGlib<ffi::ICalParameterRequired> for ParameterRequired { 1224 + #[inline] 1225 + unsafe fn from_glib(value: ffi::ICalParameterRequired) -> Self { 1226 + skip_assert_initialized!(); 1227 + 1228 + match value { 1229 + ffi::I_CAL_REQUIRED_X => Self::X, 1230 + ffi::I_CAL_REQUIRED_TRUE => Self::True, 1231 + ffi::I_CAL_REQUIRED_FALSE => Self::False, 1232 + ffi::I_CAL_REQUIRED_NONE => Self::None, 1233 + value => Self::__Unknown(value), 1234 + } 1235 + } 1236 + } 1237 + 1238 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1239 + #[derive(Clone, Copy)] 1240 + #[non_exhaustive] 1241 + #[doc(alias = "ICalParameterRole")] 1242 + pub enum ParameterRole { 1243 + #[doc(alias = "I_CAL_ROLE_X")] 1244 + X, 1245 + #[doc(alias = "I_CAL_ROLE_CHAIR")] 1246 + Chair, 1247 + #[doc(alias = "I_CAL_ROLE_REQPARTICIPANT")] 1248 + Reqparticipant, 1249 + #[doc(alias = "I_CAL_ROLE_OPTPARTICIPANT")] 1250 + Optparticipant, 1251 + #[doc(alias = "I_CAL_ROLE_NONPARTICIPANT")] 1252 + Nonparticipant, 1253 + #[doc(alias = "I_CAL_ROLE_NONE")] 1254 + None, 1255 + #[doc(hidden)] 1256 + __Unknown(i32), 1257 + } 1258 + 1259 + #[doc(hidden)] 1260 + impl IntoGlib for ParameterRole { 1261 + type GlibType = ffi::ICalParameterRole; 1262 + 1263 + #[inline] 1264 + fn into_glib(self) -> ffi::ICalParameterRole { 1265 + match self { 1266 + Self::X => ffi::I_CAL_ROLE_X, 1267 + Self::Chair => ffi::I_CAL_ROLE_CHAIR, 1268 + Self::Reqparticipant => ffi::I_CAL_ROLE_REQPARTICIPANT, 1269 + Self::Optparticipant => ffi::I_CAL_ROLE_OPTPARTICIPANT, 1270 + Self::Nonparticipant => ffi::I_CAL_ROLE_NONPARTICIPANT, 1271 + Self::None => ffi::I_CAL_ROLE_NONE, 1272 + Self::__Unknown(value) => value, 1273 + } 1274 + } 1275 + } 1276 + 1277 + #[doc(hidden)] 1278 + impl FromGlib<ffi::ICalParameterRole> for ParameterRole { 1279 + #[inline] 1280 + unsafe fn from_glib(value: ffi::ICalParameterRole) -> Self { 1281 + skip_assert_initialized!(); 1282 + 1283 + match value { 1284 + ffi::I_CAL_ROLE_X => Self::X, 1285 + ffi::I_CAL_ROLE_CHAIR => Self::Chair, 1286 + ffi::I_CAL_ROLE_REQPARTICIPANT => Self::Reqparticipant, 1287 + ffi::I_CAL_ROLE_OPTPARTICIPANT => Self::Optparticipant, 1288 + ffi::I_CAL_ROLE_NONPARTICIPANT => Self::Nonparticipant, 1289 + ffi::I_CAL_ROLE_NONE => Self::None, 1290 + value => Self::__Unknown(value), 1291 + } 1292 + } 1293 + } 1294 + 1295 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1296 + #[derive(Clone, Copy)] 1297 + #[non_exhaustive] 1298 + #[doc(alias = "ICalParameterRsvp")] 1299 + pub enum ParameterRsvp { 1300 + #[doc(alias = "I_CAL_RSVP_X")] 1301 + X, 1302 + #[doc(alias = "I_CAL_RSVP_TRUE")] 1303 + True, 1304 + #[doc(alias = "I_CAL_RSVP_FALSE")] 1305 + False, 1306 + #[doc(alias = "I_CAL_RSVP_NONE")] 1307 + None, 1308 + #[doc(hidden)] 1309 + __Unknown(i32), 1310 + } 1311 + 1312 + #[doc(hidden)] 1313 + impl IntoGlib for ParameterRsvp { 1314 + type GlibType = ffi::ICalParameterRsvp; 1315 + 1316 + #[inline] 1317 + fn into_glib(self) -> ffi::ICalParameterRsvp { 1318 + match self { 1319 + Self::X => ffi::I_CAL_RSVP_X, 1320 + Self::True => ffi::I_CAL_RSVP_TRUE, 1321 + Self::False => ffi::I_CAL_RSVP_FALSE, 1322 + Self::None => ffi::I_CAL_RSVP_NONE, 1323 + Self::__Unknown(value) => value, 1324 + } 1325 + } 1326 + } 1327 + 1328 + #[doc(hidden)] 1329 + impl FromGlib<ffi::ICalParameterRsvp> for ParameterRsvp { 1330 + #[inline] 1331 + unsafe fn from_glib(value: ffi::ICalParameterRsvp) -> Self { 1332 + skip_assert_initialized!(); 1333 + 1334 + match value { 1335 + ffi::I_CAL_RSVP_X => Self::X, 1336 + ffi::I_CAL_RSVP_TRUE => Self::True, 1337 + ffi::I_CAL_RSVP_FALSE => Self::False, 1338 + ffi::I_CAL_RSVP_NONE => Self::None, 1339 + value => Self::__Unknown(value), 1340 + } 1341 + } 1342 + } 1343 + 1344 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1345 + #[derive(Clone, Copy)] 1346 + #[non_exhaustive] 1347 + #[doc(alias = "ICalParameterScheduleagent")] 1348 + pub enum ParameterScheduleagent { 1349 + #[doc(alias = "I_CAL_SCHEDULEAGENT_X")] 1350 + X, 1351 + #[doc(alias = "I_CAL_SCHEDULEAGENT_SERVER")] 1352 + Server, 1353 + #[doc(alias = "I_CAL_SCHEDULEAGENT_CLIENT")] 1354 + Client, 1355 + #[doc(alias = "I_CAL_SCHEDULEAGENT_NONE")] 1356 + None, 1357 + #[doc(hidden)] 1358 + __Unknown(i32), 1359 + } 1360 + 1361 + #[doc(hidden)] 1362 + impl IntoGlib for ParameterScheduleagent { 1363 + type GlibType = ffi::ICalParameterScheduleagent; 1364 + 1365 + #[inline] 1366 + fn into_glib(self) -> ffi::ICalParameterScheduleagent { 1367 + match self { 1368 + Self::X => ffi::I_CAL_SCHEDULEAGENT_X, 1369 + Self::Server => ffi::I_CAL_SCHEDULEAGENT_SERVER, 1370 + Self::Client => ffi::I_CAL_SCHEDULEAGENT_CLIENT, 1371 + Self::None => ffi::I_CAL_SCHEDULEAGENT_NONE, 1372 + Self::__Unknown(value) => value, 1373 + } 1374 + } 1375 + } 1376 + 1377 + #[doc(hidden)] 1378 + impl FromGlib<ffi::ICalParameterScheduleagent> for ParameterScheduleagent { 1379 + #[inline] 1380 + unsafe fn from_glib(value: ffi::ICalParameterScheduleagent) -> Self { 1381 + skip_assert_initialized!(); 1382 + 1383 + match value { 1384 + ffi::I_CAL_SCHEDULEAGENT_X => Self::X, 1385 + ffi::I_CAL_SCHEDULEAGENT_SERVER => Self::Server, 1386 + ffi::I_CAL_SCHEDULEAGENT_CLIENT => Self::Client, 1387 + ffi::I_CAL_SCHEDULEAGENT_NONE => Self::None, 1388 + value => Self::__Unknown(value), 1389 + } 1390 + } 1391 + } 1392 + 1393 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1394 + #[derive(Clone, Copy)] 1395 + #[non_exhaustive] 1396 + #[doc(alias = "ICalParameterScheduleforcesend")] 1397 + pub enum ParameterScheduleforcesend { 1398 + #[doc(alias = "I_CAL_SCHEDULEFORCESEND_X")] 1399 + X, 1400 + #[doc(alias = "I_CAL_SCHEDULEFORCESEND_REQUEST")] 1401 + Request, 1402 + #[doc(alias = "I_CAL_SCHEDULEFORCESEND_REPLY")] 1403 + Reply, 1404 + #[doc(alias = "I_CAL_SCHEDULEFORCESEND_NONE")] 1405 + None, 1406 + #[doc(hidden)] 1407 + __Unknown(i32), 1408 + } 1409 + 1410 + #[doc(hidden)] 1411 + impl IntoGlib for ParameterScheduleforcesend { 1412 + type GlibType = ffi::ICalParameterScheduleforcesend; 1413 + 1414 + #[inline] 1415 + fn into_glib(self) -> ffi::ICalParameterScheduleforcesend { 1416 + match self { 1417 + Self::X => ffi::I_CAL_SCHEDULEFORCESEND_X, 1418 + Self::Request => ffi::I_CAL_SCHEDULEFORCESEND_REQUEST, 1419 + Self::Reply => ffi::I_CAL_SCHEDULEFORCESEND_REPLY, 1420 + Self::None => ffi::I_CAL_SCHEDULEFORCESEND_NONE, 1421 + Self::__Unknown(value) => value, 1422 + } 1423 + } 1424 + } 1425 + 1426 + #[doc(hidden)] 1427 + impl FromGlib<ffi::ICalParameterScheduleforcesend> for ParameterScheduleforcesend { 1428 + #[inline] 1429 + unsafe fn from_glib(value: ffi::ICalParameterScheduleforcesend) -> Self { 1430 + skip_assert_initialized!(); 1431 + 1432 + match value { 1433 + ffi::I_CAL_SCHEDULEFORCESEND_X => Self::X, 1434 + ffi::I_CAL_SCHEDULEFORCESEND_REQUEST => Self::Request, 1435 + ffi::I_CAL_SCHEDULEFORCESEND_REPLY => Self::Reply, 1436 + ffi::I_CAL_SCHEDULEFORCESEND_NONE => Self::None, 1437 + value => Self::__Unknown(value), 1438 + } 1439 + } 1440 + } 1441 + 1442 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1443 + #[derive(Clone, Copy)] 1444 + #[non_exhaustive] 1445 + #[doc(alias = "ICalParameterStayinformed")] 1446 + pub enum ParameterStayinformed { 1447 + #[doc(alias = "I_CAL_STAYINFORMED_X")] 1448 + X, 1449 + #[doc(alias = "I_CAL_STAYINFORMED_TRUE")] 1450 + True, 1451 + #[doc(alias = "I_CAL_STAYINFORMED_FALSE")] 1452 + False, 1453 + #[doc(alias = "I_CAL_STAYINFORMED_NONE")] 1454 + None, 1455 + #[doc(hidden)] 1456 + __Unknown(i32), 1457 + } 1458 + 1459 + #[doc(hidden)] 1460 + impl IntoGlib for ParameterStayinformed { 1461 + type GlibType = ffi::ICalParameterStayinformed; 1462 + 1463 + #[inline] 1464 + fn into_glib(self) -> ffi::ICalParameterStayinformed { 1465 + match self { 1466 + Self::X => ffi::I_CAL_STAYINFORMED_X, 1467 + Self::True => ffi::I_CAL_STAYINFORMED_TRUE, 1468 + Self::False => ffi::I_CAL_STAYINFORMED_FALSE, 1469 + Self::None => ffi::I_CAL_STAYINFORMED_NONE, 1470 + Self::__Unknown(value) => value, 1471 + } 1472 + } 1473 + } 1474 + 1475 + #[doc(hidden)] 1476 + impl FromGlib<ffi::ICalParameterStayinformed> for ParameterStayinformed { 1477 + #[inline] 1478 + unsafe fn from_glib(value: ffi::ICalParameterStayinformed) -> Self { 1479 + skip_assert_initialized!(); 1480 + 1481 + match value { 1482 + ffi::I_CAL_STAYINFORMED_X => Self::X, 1483 + ffi::I_CAL_STAYINFORMED_TRUE => Self::True, 1484 + ffi::I_CAL_STAYINFORMED_FALSE => Self::False, 1485 + ffi::I_CAL_STAYINFORMED_NONE => Self::None, 1486 + value => Self::__Unknown(value), 1487 + } 1488 + } 1489 + } 1490 + 1491 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1492 + #[derive(Clone, Copy)] 1493 + #[non_exhaustive] 1494 + #[doc(alias = "ICalParameterSubstate")] 1495 + pub enum ParameterSubstate { 1496 + #[doc(alias = "I_CAL_SUBSTATE_X")] 1497 + X, 1498 + #[doc(alias = "I_CAL_SUBSTATE_OK")] 1499 + Ok, 1500 + #[doc(alias = "I_CAL_SUBSTATE_ERROR")] 1501 + Error, 1502 + #[doc(alias = "I_CAL_SUBSTATE_SUSPENDED")] 1503 + Suspended, 1504 + #[doc(alias = "I_CAL_SUBSTATE_NONE")] 1505 + None, 1506 + #[doc(hidden)] 1507 + __Unknown(i32), 1508 + } 1509 + 1510 + #[doc(hidden)] 1511 + impl IntoGlib for ParameterSubstate { 1512 + type GlibType = ffi::ICalParameterSubstate; 1513 + 1514 + #[inline] 1515 + fn into_glib(self) -> ffi::ICalParameterSubstate { 1516 + match self { 1517 + Self::X => ffi::I_CAL_SUBSTATE_X, 1518 + Self::Ok => ffi::I_CAL_SUBSTATE_OK, 1519 + Self::Error => ffi::I_CAL_SUBSTATE_ERROR, 1520 + Self::Suspended => ffi::I_CAL_SUBSTATE_SUSPENDED, 1521 + Self::None => ffi::I_CAL_SUBSTATE_NONE, 1522 + Self::__Unknown(value) => value, 1523 + } 1524 + } 1525 + } 1526 + 1527 + #[doc(hidden)] 1528 + impl FromGlib<ffi::ICalParameterSubstate> for ParameterSubstate { 1529 + #[inline] 1530 + unsafe fn from_glib(value: ffi::ICalParameterSubstate) -> Self { 1531 + skip_assert_initialized!(); 1532 + 1533 + match value { 1534 + ffi::I_CAL_SUBSTATE_X => Self::X, 1535 + ffi::I_CAL_SUBSTATE_OK => Self::Ok, 1536 + ffi::I_CAL_SUBSTATE_ERROR => Self::Error, 1537 + ffi::I_CAL_SUBSTATE_SUSPENDED => Self::Suspended, 1538 + ffi::I_CAL_SUBSTATE_NONE => Self::None, 1539 + value => Self::__Unknown(value), 1540 + } 1541 + } 1542 + } 1543 + 1544 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1545 + #[derive(Clone, Copy)] 1546 + #[non_exhaustive] 1547 + #[doc(alias = "ICalParameterValue")] 1548 + pub enum ParameterValue { 1549 + #[doc(alias = "I_CAL_VALUE_X")] 1550 + X, 1551 + #[doc(alias = "I_CAL_VALUE_BINARY")] 1552 + Binary, 1553 + #[doc(alias = "I_CAL_VALUE_BOOLEAN")] 1554 + Boolean, 1555 + #[doc(alias = "I_CAL_VALUE_DATE")] 1556 + Date, 1557 + #[doc(alias = "I_CAL_VALUE_DURATION")] 1558 + Duration, 1559 + #[doc(alias = "I_CAL_VALUE_FLOAT")] 1560 + Float, 1561 + #[doc(alias = "I_CAL_VALUE_INTEGER")] 1562 + Integer, 1563 + #[doc(alias = "I_CAL_VALUE_PERIOD")] 1564 + Period, 1565 + #[doc(alias = "I_CAL_VALUE_RECUR")] 1566 + Recur, 1567 + #[doc(alias = "I_CAL_VALUE_TEXT")] 1568 + Text, 1569 + #[doc(alias = "I_CAL_VALUE_URI")] 1570 + Uri, 1571 + #[doc(alias = "I_CAL_VALUE_ERROR")] 1572 + Error, 1573 + #[doc(alias = "I_CAL_VALUE_DATETIME")] 1574 + Datetime, 1575 + #[doc(alias = "I_CAL_VALUE_UTCOFFSET")] 1576 + Utcoffset, 1577 + #[doc(alias = "I_CAL_VALUE_CALADDRESS")] 1578 + Caladdress, 1579 + #[doc(alias = "I_CAL_VALUE_NONE")] 1580 + None, 1581 + #[doc(hidden)] 1582 + __Unknown(i32), 1583 + } 1584 + 1585 + #[doc(hidden)] 1586 + impl IntoGlib for ParameterValue { 1587 + type GlibType = ffi::ICalParameterValue; 1588 + 1589 + fn into_glib(self) -> ffi::ICalParameterValue { 1590 + match self { 1591 + Self::X => ffi::I_CAL_VALUE_X, 1592 + Self::Binary => ffi::I_CAL_VALUE_BINARY, 1593 + Self::Boolean => ffi::I_CAL_VALUE_BOOLEAN, 1594 + Self::Date => ffi::I_CAL_VALUE_DATE, 1595 + Self::Duration => ffi::I_CAL_VALUE_DURATION, 1596 + Self::Float => ffi::I_CAL_VALUE_FLOAT, 1597 + Self::Integer => ffi::I_CAL_VALUE_INTEGER, 1598 + Self::Period => ffi::I_CAL_VALUE_PERIOD, 1599 + Self::Recur => ffi::I_CAL_VALUE_RECUR, 1600 + Self::Text => ffi::I_CAL_VALUE_TEXT, 1601 + Self::Uri => ffi::I_CAL_VALUE_URI, 1602 + Self::Error => ffi::I_CAL_VALUE_ERROR, 1603 + Self::Datetime => ffi::I_CAL_VALUE_DATETIME, 1604 + Self::Utcoffset => ffi::I_CAL_VALUE_UTCOFFSET, 1605 + Self::Caladdress => ffi::I_CAL_VALUE_CALADDRESS, 1606 + Self::None => ffi::I_CAL_VALUE_NONE, 1607 + Self::__Unknown(value) => value, 1608 + } 1609 + } 1610 + } 1611 + 1612 + #[doc(hidden)] 1613 + impl FromGlib<ffi::ICalParameterValue> for ParameterValue { 1614 + unsafe fn from_glib(value: ffi::ICalParameterValue) -> Self { 1615 + skip_assert_initialized!(); 1616 + 1617 + match value { 1618 + ffi::I_CAL_VALUE_X => Self::X, 1619 + ffi::I_CAL_VALUE_BINARY => Self::Binary, 1620 + ffi::I_CAL_VALUE_BOOLEAN => Self::Boolean, 1621 + ffi::I_CAL_VALUE_DATE => Self::Date, 1622 + ffi::I_CAL_VALUE_DURATION => Self::Duration, 1623 + ffi::I_CAL_VALUE_FLOAT => Self::Float, 1624 + ffi::I_CAL_VALUE_INTEGER => Self::Integer, 1625 + ffi::I_CAL_VALUE_PERIOD => Self::Period, 1626 + ffi::I_CAL_VALUE_RECUR => Self::Recur, 1627 + ffi::I_CAL_VALUE_TEXT => Self::Text, 1628 + ffi::I_CAL_VALUE_URI => Self::Uri, 1629 + ffi::I_CAL_VALUE_ERROR => Self::Error, 1630 + ffi::I_CAL_VALUE_DATETIME => Self::Datetime, 1631 + ffi::I_CAL_VALUE_UTCOFFSET => Self::Utcoffset, 1632 + ffi::I_CAL_VALUE_CALADDRESS => Self::Caladdress, 1633 + ffi::I_CAL_VALUE_NONE => Self::None, 1634 + value => Self::__Unknown(value), 1635 + } 1636 + } 1637 + } 1638 + 1639 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1640 + #[derive(Clone, Copy)] 1641 + #[non_exhaustive] 1642 + #[doc(alias = "ICalParameterXliccomparetype")] 1643 + pub enum ParameterXliccomparetype { 1644 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_X")] 1645 + X, 1646 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_EQUAL")] 1647 + Equal, 1648 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_NOTEQUAL")] 1649 + Notequal, 1650 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_LESS")] 1651 + Less, 1652 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_GREATER")] 1653 + Greater, 1654 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_LESSEQUAL")] 1655 + Lessequal, 1656 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_GREATEREQUAL")] 1657 + Greaterequal, 1658 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_REGEX")] 1659 + Regex, 1660 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_ISNULL")] 1661 + Isnull, 1662 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_ISNOTNULL")] 1663 + Isnotnull, 1664 + #[doc(alias = "I_CAL_XLICCOMPARETYPE_NONE")] 1665 + None, 1666 + #[doc(hidden)] 1667 + __Unknown(i32), 1668 + } 1669 + 1670 + #[doc(hidden)] 1671 + impl IntoGlib for ParameterXliccomparetype { 1672 + type GlibType = ffi::ICalParameterXliccomparetype; 1673 + 1674 + #[inline] 1675 + fn into_glib(self) -> ffi::ICalParameterXliccomparetype { 1676 + match self { 1677 + Self::X => ffi::I_CAL_XLICCOMPARETYPE_X, 1678 + Self::Equal => ffi::I_CAL_XLICCOMPARETYPE_EQUAL, 1679 + Self::Notequal => ffi::I_CAL_XLICCOMPARETYPE_NOTEQUAL, 1680 + Self::Less => ffi::I_CAL_XLICCOMPARETYPE_LESS, 1681 + Self::Greater => ffi::I_CAL_XLICCOMPARETYPE_GREATER, 1682 + Self::Lessequal => ffi::I_CAL_XLICCOMPARETYPE_LESSEQUAL, 1683 + Self::Greaterequal => ffi::I_CAL_XLICCOMPARETYPE_GREATEREQUAL, 1684 + Self::Regex => ffi::I_CAL_XLICCOMPARETYPE_REGEX, 1685 + Self::Isnull => ffi::I_CAL_XLICCOMPARETYPE_ISNULL, 1686 + Self::Isnotnull => ffi::I_CAL_XLICCOMPARETYPE_ISNOTNULL, 1687 + Self::None => ffi::I_CAL_XLICCOMPARETYPE_NONE, 1688 + Self::__Unknown(value) => value, 1689 + } 1690 + } 1691 + } 1692 + 1693 + #[doc(hidden)] 1694 + impl FromGlib<ffi::ICalParameterXliccomparetype> for ParameterXliccomparetype { 1695 + #[inline] 1696 + unsafe fn from_glib(value: ffi::ICalParameterXliccomparetype) -> Self { 1697 + skip_assert_initialized!(); 1698 + 1699 + match value { 1700 + ffi::I_CAL_XLICCOMPARETYPE_X => Self::X, 1701 + ffi::I_CAL_XLICCOMPARETYPE_EQUAL => Self::Equal, 1702 + ffi::I_CAL_XLICCOMPARETYPE_NOTEQUAL => Self::Notequal, 1703 + ffi::I_CAL_XLICCOMPARETYPE_LESS => Self::Less, 1704 + ffi::I_CAL_XLICCOMPARETYPE_GREATER => Self::Greater, 1705 + ffi::I_CAL_XLICCOMPARETYPE_LESSEQUAL => Self::Lessequal, 1706 + ffi::I_CAL_XLICCOMPARETYPE_GREATEREQUAL => Self::Greaterequal, 1707 + ffi::I_CAL_XLICCOMPARETYPE_REGEX => Self::Regex, 1708 + ffi::I_CAL_XLICCOMPARETYPE_ISNULL => Self::Isnull, 1709 + ffi::I_CAL_XLICCOMPARETYPE_ISNOTNULL => Self::Isnotnull, 1710 + ffi::I_CAL_XLICCOMPARETYPE_NONE => Self::None, 1711 + value => Self::__Unknown(value), 1712 + } 1713 + } 1714 + } 1715 + 1716 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1717 + #[derive(Clone, Copy)] 1718 + #[non_exhaustive] 1719 + #[doc(alias = "ICalParameterXlicerrortype")] 1720 + pub enum ParameterXlicerrortype { 1721 + #[doc(alias = "I_CAL_XLICERRORTYPE_X")] 1722 + X, 1723 + #[doc(alias = "I_CAL_XLICERRORTYPE_COMPONENTPARSEERROR")] 1724 + Componentparseerror, 1725 + #[doc(alias = "I_CAL_XLICERRORTYPE_PROPERTYPARSEERROR")] 1726 + Propertyparseerror, 1727 + #[doc(alias = "I_CAL_XLICERRORTYPE_PARAMETERNAMEPARSEERROR")] 1728 + Parameternameparseerror, 1729 + #[doc(alias = "I_CAL_XLICERRORTYPE_PARAMETERVALUEPARSEERROR")] 1730 + Parametervalueparseerror, 1731 + #[doc(alias = "I_CAL_XLICERRORTYPE_VALUEPARSEERROR")] 1732 + Valueparseerror, 1733 + #[doc(alias = "I_CAL_XLICERRORTYPE_INVALIDITIP")] 1734 + Invaliditip, 1735 + #[doc(alias = "I_CAL_XLICERRORTYPE_UNKNOWNVCALPROPERROR")] 1736 + Unknownvcalproperror, 1737 + #[doc(alias = "I_CAL_XLICERRORTYPE_MIMEPARSEERROR")] 1738 + Mimeparseerror, 1739 + #[doc(alias = "I_CAL_XLICERRORTYPE_VCALPROPPARSEERROR")] 1740 + Vcalpropparseerror, 1741 + #[doc(alias = "I_CAL_XLICERRORTYPE_NONE")] 1742 + None, 1743 + #[doc(hidden)] 1744 + __Unknown(i32), 1745 + } 1746 + 1747 + #[doc(hidden)] 1748 + impl IntoGlib for ParameterXlicerrortype { 1749 + type GlibType = ffi::ICalParameterXlicerrortype; 1750 + 1751 + #[inline] 1752 + fn into_glib(self) -> ffi::ICalParameterXlicerrortype { 1753 + match self { 1754 + Self::X => ffi::I_CAL_XLICERRORTYPE_X, 1755 + Self::Componentparseerror => ffi::I_CAL_XLICERRORTYPE_COMPONENTPARSEERROR, 1756 + Self::Propertyparseerror => ffi::I_CAL_XLICERRORTYPE_PROPERTYPARSEERROR, 1757 + Self::Parameternameparseerror => ffi::I_CAL_XLICERRORTYPE_PARAMETERNAMEPARSEERROR, 1758 + Self::Parametervalueparseerror => ffi::I_CAL_XLICERRORTYPE_PARAMETERVALUEPARSEERROR, 1759 + Self::Valueparseerror => ffi::I_CAL_XLICERRORTYPE_VALUEPARSEERROR, 1760 + Self::Invaliditip => ffi::I_CAL_XLICERRORTYPE_INVALIDITIP, 1761 + Self::Unknownvcalproperror => ffi::I_CAL_XLICERRORTYPE_UNKNOWNVCALPROPERROR, 1762 + Self::Mimeparseerror => ffi::I_CAL_XLICERRORTYPE_MIMEPARSEERROR, 1763 + Self::Vcalpropparseerror => ffi::I_CAL_XLICERRORTYPE_VCALPROPPARSEERROR, 1764 + Self::None => ffi::I_CAL_XLICERRORTYPE_NONE, 1765 + Self::__Unknown(value) => value, 1766 + } 1767 + } 1768 + } 1769 + 1770 + #[doc(hidden)] 1771 + impl FromGlib<ffi::ICalParameterXlicerrortype> for ParameterXlicerrortype { 1772 + #[inline] 1773 + unsafe fn from_glib(value: ffi::ICalParameterXlicerrortype) -> Self { 1774 + skip_assert_initialized!(); 1775 + 1776 + match value { 1777 + ffi::I_CAL_XLICERRORTYPE_X => Self::X, 1778 + ffi::I_CAL_XLICERRORTYPE_COMPONENTPARSEERROR => Self::Componentparseerror, 1779 + ffi::I_CAL_XLICERRORTYPE_PROPERTYPARSEERROR => Self::Propertyparseerror, 1780 + ffi::I_CAL_XLICERRORTYPE_PARAMETERNAMEPARSEERROR => Self::Parameternameparseerror, 1781 + ffi::I_CAL_XLICERRORTYPE_PARAMETERVALUEPARSEERROR => Self::Parametervalueparseerror, 1782 + ffi::I_CAL_XLICERRORTYPE_VALUEPARSEERROR => Self::Valueparseerror, 1783 + ffi::I_CAL_XLICERRORTYPE_INVALIDITIP => Self::Invaliditip, 1784 + ffi::I_CAL_XLICERRORTYPE_UNKNOWNVCALPROPERROR => Self::Unknownvcalproperror, 1785 + ffi::I_CAL_XLICERRORTYPE_MIMEPARSEERROR => Self::Mimeparseerror, 1786 + ffi::I_CAL_XLICERRORTYPE_VCALPROPPARSEERROR => Self::Vcalpropparseerror, 1787 + ffi::I_CAL_XLICERRORTYPE_NONE => Self::None, 1788 + value => Self::__Unknown(value), 1789 + } 1790 + } 1791 + } 1792 + 1793 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1794 + #[derive(Clone, Copy)] 1795 + #[non_exhaustive] 1796 + #[doc(alias = "ICalParserState")] 1797 + pub enum ParserState { 1798 + #[doc(alias = "I_CAL_PARSER_ERROR")] 1799 + Error, 1800 + #[doc(alias = "I_CAL_PARSER_SUCCESS")] 1801 + Success, 1802 + #[doc(alias = "I_CAL_PARSER_BEGIN_COMP")] 1803 + BeginComp, 1804 + #[doc(alias = "I_CAL_PARSER_END_COMP")] 1805 + EndComp, 1806 + #[doc(alias = "I_CAL_PARSER_IN_PROGRESS")] 1807 + InProgress, 1808 + #[doc(hidden)] 1809 + __Unknown(i32), 1810 + } 1811 + 1812 + #[doc(hidden)] 1813 + impl IntoGlib for ParserState { 1814 + type GlibType = ffi::ICalParserState; 1815 + 1816 + #[inline] 1817 + fn into_glib(self) -> ffi::ICalParserState { 1818 + match self { 1819 + Self::Error => ffi::I_CAL_PARSER_ERROR, 1820 + Self::Success => ffi::I_CAL_PARSER_SUCCESS, 1821 + Self::BeginComp => ffi::I_CAL_PARSER_BEGIN_COMP, 1822 + Self::EndComp => ffi::I_CAL_PARSER_END_COMP, 1823 + Self::InProgress => ffi::I_CAL_PARSER_IN_PROGRESS, 1824 + Self::__Unknown(value) => value, 1825 + } 1826 + } 1827 + } 1828 + 1829 + #[doc(hidden)] 1830 + impl FromGlib<ffi::ICalParserState> for ParserState { 1831 + #[inline] 1832 + unsafe fn from_glib(value: ffi::ICalParserState) -> Self { 1833 + skip_assert_initialized!(); 1834 + 1835 + match value { 1836 + ffi::I_CAL_PARSER_ERROR => Self::Error, 1837 + ffi::I_CAL_PARSER_SUCCESS => Self::Success, 1838 + ffi::I_CAL_PARSER_BEGIN_COMP => Self::BeginComp, 1839 + ffi::I_CAL_PARSER_END_COMP => Self::EndComp, 1840 + ffi::I_CAL_PARSER_IN_PROGRESS => Self::InProgress, 1841 + value => Self::__Unknown(value), 1842 + } 1843 + } 1844 + } 1845 + 1846 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1847 + #[derive(Clone, Copy)] 1848 + #[non_exhaustive] 1849 + #[doc(alias = "ICalPropertyAction")] 1850 + pub enum PropertyAction { 1851 + #[doc(alias = "I_CAL_ACTION_X")] 1852 + X, 1853 + #[doc(alias = "I_CAL_ACTION_AUDIO")] 1854 + Audio, 1855 + #[doc(alias = "I_CAL_ACTION_DISPLAY")] 1856 + Display, 1857 + #[doc(alias = "I_CAL_ACTION_EMAIL")] 1858 + Email, 1859 + #[doc(alias = "I_CAL_ACTION_PROCEDURE")] 1860 + Procedure, 1861 + #[doc(alias = "I_CAL_ACTION_NONE")] 1862 + None, 1863 + #[doc(hidden)] 1864 + __Unknown(i32), 1865 + } 1866 + 1867 + #[doc(hidden)] 1868 + impl IntoGlib for PropertyAction { 1869 + type GlibType = ffi::ICalPropertyAction; 1870 + 1871 + #[inline] 1872 + fn into_glib(self) -> ffi::ICalPropertyAction { 1873 + match self { 1874 + Self::X => ffi::I_CAL_ACTION_X, 1875 + Self::Audio => ffi::I_CAL_ACTION_AUDIO, 1876 + Self::Display => ffi::I_CAL_ACTION_DISPLAY, 1877 + Self::Email => ffi::I_CAL_ACTION_EMAIL, 1878 + Self::Procedure => ffi::I_CAL_ACTION_PROCEDURE, 1879 + Self::None => ffi::I_CAL_ACTION_NONE, 1880 + Self::__Unknown(value) => value, 1881 + } 1882 + } 1883 + } 1884 + 1885 + #[doc(hidden)] 1886 + impl FromGlib<ffi::ICalPropertyAction> for PropertyAction { 1887 + #[inline] 1888 + unsafe fn from_glib(value: ffi::ICalPropertyAction) -> Self { 1889 + skip_assert_initialized!(); 1890 + 1891 + match value { 1892 + ffi::I_CAL_ACTION_X => Self::X, 1893 + ffi::I_CAL_ACTION_AUDIO => Self::Audio, 1894 + ffi::I_CAL_ACTION_DISPLAY => Self::Display, 1895 + ffi::I_CAL_ACTION_EMAIL => Self::Email, 1896 + ffi::I_CAL_ACTION_PROCEDURE => Self::Procedure, 1897 + ffi::I_CAL_ACTION_NONE => Self::None, 1898 + value => Self::__Unknown(value), 1899 + } 1900 + } 1901 + } 1902 + 1903 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1904 + #[derive(Clone, Copy)] 1905 + #[non_exhaustive] 1906 + #[doc(alias = "ICalPropertyBusytype")] 1907 + pub enum PropertyBusytype { 1908 + #[doc(alias = "I_CAL_BUSYTYPE_X")] 1909 + X, 1910 + #[doc(alias = "I_CAL_BUSYTYPE_BUSY")] 1911 + Busy, 1912 + #[doc(alias = "I_CAL_BUSYTYPE_BUSYUNAVAILABLE")] 1913 + Busyunavailable, 1914 + #[doc(alias = "I_CAL_BUSYTYPE_BUSYTENTATIVE")] 1915 + Busytentative, 1916 + #[doc(alias = "I_CAL_BUSYTYPE_NONE")] 1917 + None, 1918 + #[doc(hidden)] 1919 + __Unknown(i32), 1920 + } 1921 + 1922 + #[doc(hidden)] 1923 + impl IntoGlib for PropertyBusytype { 1924 + type GlibType = ffi::ICalPropertyBusytype; 1925 + 1926 + #[inline] 1927 + fn into_glib(self) -> ffi::ICalPropertyBusytype { 1928 + match self { 1929 + Self::X => ffi::I_CAL_BUSYTYPE_X, 1930 + Self::Busy => ffi::I_CAL_BUSYTYPE_BUSY, 1931 + Self::Busyunavailable => ffi::I_CAL_BUSYTYPE_BUSYUNAVAILABLE, 1932 + Self::Busytentative => ffi::I_CAL_BUSYTYPE_BUSYTENTATIVE, 1933 + Self::None => ffi::I_CAL_BUSYTYPE_NONE, 1934 + Self::__Unknown(value) => value, 1935 + } 1936 + } 1937 + } 1938 + 1939 + #[doc(hidden)] 1940 + impl FromGlib<ffi::ICalPropertyBusytype> for PropertyBusytype { 1941 + #[inline] 1942 + unsafe fn from_glib(value: ffi::ICalPropertyBusytype) -> Self { 1943 + skip_assert_initialized!(); 1944 + 1945 + match value { 1946 + ffi::I_CAL_BUSYTYPE_X => Self::X, 1947 + ffi::I_CAL_BUSYTYPE_BUSY => Self::Busy, 1948 + ffi::I_CAL_BUSYTYPE_BUSYUNAVAILABLE => Self::Busyunavailable, 1949 + ffi::I_CAL_BUSYTYPE_BUSYTENTATIVE => Self::Busytentative, 1950 + ffi::I_CAL_BUSYTYPE_NONE => Self::None, 1951 + value => Self::__Unknown(value), 1952 + } 1953 + } 1954 + } 1955 + 1956 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 1957 + #[derive(Clone, Copy)] 1958 + #[non_exhaustive] 1959 + #[doc(alias = "ICalPropertyCarlevel")] 1960 + pub enum PropertyCarlevel { 1961 + #[doc(alias = "I_CAL_CARLEVEL_X")] 1962 + X, 1963 + #[doc(alias = "I_CAL_CARLEVEL_CARNONE")] 1964 + Carnone, 1965 + #[doc(alias = "I_CAL_CARLEVEL_CARMIN")] 1966 + Carmin, 1967 + #[doc(alias = "I_CAL_CARLEVEL_CARFULL1")] 1968 + Carfull1, 1969 + #[doc(alias = "I_CAL_CARLEVEL_NONE")] 1970 + None, 1971 + #[doc(hidden)] 1972 + __Unknown(i32), 1973 + } 1974 + 1975 + #[doc(hidden)] 1976 + impl IntoGlib for PropertyCarlevel { 1977 + type GlibType = ffi::ICalPropertyCarlevel; 1978 + 1979 + #[inline] 1980 + fn into_glib(self) -> ffi::ICalPropertyCarlevel { 1981 + match self { 1982 + Self::X => ffi::I_CAL_CARLEVEL_X, 1983 + Self::Carnone => ffi::I_CAL_CARLEVEL_CARNONE, 1984 + Self::Carmin => ffi::I_CAL_CARLEVEL_CARMIN, 1985 + Self::Carfull1 => ffi::I_CAL_CARLEVEL_CARFULL1, 1986 + Self::None => ffi::I_CAL_CARLEVEL_NONE, 1987 + Self::__Unknown(value) => value, 1988 + } 1989 + } 1990 + } 1991 + 1992 + #[doc(hidden)] 1993 + impl FromGlib<ffi::ICalPropertyCarlevel> for PropertyCarlevel { 1994 + #[inline] 1995 + unsafe fn from_glib(value: ffi::ICalPropertyCarlevel) -> Self { 1996 + skip_assert_initialized!(); 1997 + 1998 + match value { 1999 + ffi::I_CAL_CARLEVEL_X => Self::X, 2000 + ffi::I_CAL_CARLEVEL_CARNONE => Self::Carnone, 2001 + ffi::I_CAL_CARLEVEL_CARMIN => Self::Carmin, 2002 + ffi::I_CAL_CARLEVEL_CARFULL1 => Self::Carfull1, 2003 + ffi::I_CAL_CARLEVEL_NONE => Self::None, 2004 + value => Self::__Unknown(value), 2005 + } 2006 + } 2007 + } 2008 + 2009 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2010 + #[derive(Clone, Copy)] 2011 + #[non_exhaustive] 2012 + #[doc(alias = "ICalPropertyCmd")] 2013 + pub enum PropertyCmd { 2014 + #[doc(alias = "I_CAL_CMD_X")] 2015 + X, 2016 + #[doc(alias = "I_CAL_CMD_ABORT")] 2017 + Abort, 2018 + #[doc(alias = "I_CAL_CMD_CONTINUE")] 2019 + Continue, 2020 + #[doc(alias = "I_CAL_CMD_CREATE")] 2021 + Create, 2022 + #[doc(alias = "I_CAL_CMD_DELETE")] 2023 + Delete, 2024 + #[doc(alias = "I_CAL_CMD_GENERATEUID")] 2025 + Generateuid, 2026 + #[doc(alias = "I_CAL_CMD_GETCAPABILITY")] 2027 + Getcapability, 2028 + #[doc(alias = "I_CAL_CMD_IDENTIFY")] 2029 + Identify, 2030 + #[doc(alias = "I_CAL_CMD_MODIFY")] 2031 + Modify, 2032 + #[doc(alias = "I_CAL_CMD_MOVE")] 2033 + Move, 2034 + #[doc(alias = "I_CAL_CMD_REPLY")] 2035 + Reply, 2036 + #[doc(alias = "I_CAL_CMD_SEARCH")] 2037 + Search, 2038 + #[doc(alias = "I_CAL_CMD_SETLOCALE")] 2039 + Setlocale, 2040 + #[doc(alias = "I_CAL_CMD_NONE")] 2041 + None, 2042 + #[doc(hidden)] 2043 + __Unknown(i32), 2044 + } 2045 + 2046 + #[doc(hidden)] 2047 + impl IntoGlib for PropertyCmd { 2048 + type GlibType = ffi::ICalPropertyCmd; 2049 + 2050 + fn into_glib(self) -> ffi::ICalPropertyCmd { 2051 + match self { 2052 + Self::X => ffi::I_CAL_CMD_X, 2053 + Self::Abort => ffi::I_CAL_CMD_ABORT, 2054 + Self::Continue => ffi::I_CAL_CMD_CONTINUE, 2055 + Self::Create => ffi::I_CAL_CMD_CREATE, 2056 + Self::Delete => ffi::I_CAL_CMD_DELETE, 2057 + Self::Generateuid => ffi::I_CAL_CMD_GENERATEUID, 2058 + Self::Getcapability => ffi::I_CAL_CMD_GETCAPABILITY, 2059 + Self::Identify => ffi::I_CAL_CMD_IDENTIFY, 2060 + Self::Modify => ffi::I_CAL_CMD_MODIFY, 2061 + Self::Move => ffi::I_CAL_CMD_MOVE, 2062 + Self::Reply => ffi::I_CAL_CMD_REPLY, 2063 + Self::Search => ffi::I_CAL_CMD_SEARCH, 2064 + Self::Setlocale => ffi::I_CAL_CMD_SETLOCALE, 2065 + Self::None => ffi::I_CAL_CMD_NONE, 2066 + Self::__Unknown(value) => value, 2067 + } 2068 + } 2069 + } 2070 + 2071 + #[doc(hidden)] 2072 + impl FromGlib<ffi::ICalPropertyCmd> for PropertyCmd { 2073 + unsafe fn from_glib(value: ffi::ICalPropertyCmd) -> Self { 2074 + skip_assert_initialized!(); 2075 + 2076 + match value { 2077 + ffi::I_CAL_CMD_X => Self::X, 2078 + ffi::I_CAL_CMD_ABORT => Self::Abort, 2079 + ffi::I_CAL_CMD_CONTINUE => Self::Continue, 2080 + ffi::I_CAL_CMD_CREATE => Self::Create, 2081 + ffi::I_CAL_CMD_DELETE => Self::Delete, 2082 + ffi::I_CAL_CMD_GENERATEUID => Self::Generateuid, 2083 + ffi::I_CAL_CMD_GETCAPABILITY => Self::Getcapability, 2084 + ffi::I_CAL_CMD_IDENTIFY => Self::Identify, 2085 + ffi::I_CAL_CMD_MODIFY => Self::Modify, 2086 + ffi::I_CAL_CMD_MOVE => Self::Move, 2087 + ffi::I_CAL_CMD_REPLY => Self::Reply, 2088 + ffi::I_CAL_CMD_SEARCH => Self::Search, 2089 + ffi::I_CAL_CMD_SETLOCALE => Self::Setlocale, 2090 + ffi::I_CAL_CMD_NONE => Self::None, 2091 + value => Self::__Unknown(value), 2092 + } 2093 + } 2094 + } 2095 + 2096 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2097 + #[derive(Clone, Copy)] 2098 + #[non_exhaustive] 2099 + #[doc(alias = "ICalPropertyKind")] 2100 + pub enum PropertyKind { 2101 + #[doc(alias = "I_CAL_ANY_PROPERTY")] 2102 + AnyProperty, 2103 + #[doc(alias = "I_CAL_ACCEPTRESPONSE_PROPERTY")] 2104 + AcceptresponseProperty, 2105 + #[doc(alias = "I_CAL_ACKNOWLEDGED_PROPERTY")] 2106 + AcknowledgedProperty, 2107 + #[doc(alias = "I_CAL_ACTION_PROPERTY")] 2108 + ActionProperty, 2109 + #[doc(alias = "I_CAL_ALLOWCONFLICT_PROPERTY")] 2110 + AllowconflictProperty, 2111 + #[doc(alias = "I_CAL_ATTACH_PROPERTY")] 2112 + AttachProperty, 2113 + #[doc(alias = "I_CAL_ATTENDEE_PROPERTY")] 2114 + AttendeeProperty, 2115 + #[doc(alias = "I_CAL_BUSYTYPE_PROPERTY")] 2116 + BusytypeProperty, 2117 + #[doc(alias = "I_CAL_CALID_PROPERTY")] 2118 + CalidProperty, 2119 + #[doc(alias = "I_CAL_CALMASTER_PROPERTY")] 2120 + CalmasterProperty, 2121 + #[doc(alias = "I_CAL_CALSCALE_PROPERTY")] 2122 + CalscaleProperty, 2123 + #[doc(alias = "I_CAL_CAPVERSION_PROPERTY")] 2124 + CapversionProperty, 2125 + #[doc(alias = "I_CAL_CARLEVEL_PROPERTY")] 2126 + CarlevelProperty, 2127 + #[doc(alias = "I_CAL_CARID_PROPERTY")] 2128 + CaridProperty, 2129 + #[doc(alias = "I_CAL_CATEGORIES_PROPERTY")] 2130 + CategoriesProperty, 2131 + #[doc(alias = "I_CAL_CLASS_PROPERTY")] 2132 + ClassProperty, 2133 + #[doc(alias = "I_CAL_CMD_PROPERTY")] 2134 + CmdProperty, 2135 + #[doc(alias = "I_CAL_COLOR_PROPERTY")] 2136 + ColorProperty, 2137 + #[doc(alias = "I_CAL_COMMENT_PROPERTY")] 2138 + CommentProperty, 2139 + #[doc(alias = "I_CAL_COMPLETED_PROPERTY")] 2140 + CompletedProperty, 2141 + #[doc(alias = "I_CAL_COMPONENTS_PROPERTY")] 2142 + ComponentsProperty, 2143 + #[doc(alias = "I_CAL_CONTACT_PROPERTY")] 2144 + ContactProperty, 2145 + #[doc(alias = "I_CAL_CREATED_PROPERTY")] 2146 + CreatedProperty, 2147 + #[doc(alias = "I_CAL_CSID_PROPERTY")] 2148 + CsidProperty, 2149 + #[doc(alias = "I_CAL_DATEMAX_PROPERTY")] 2150 + DatemaxProperty, 2151 + #[doc(alias = "I_CAL_DATEMIN_PROPERTY")] 2152 + DateminProperty, 2153 + #[doc(alias = "I_CAL_DECREED_PROPERTY")] 2154 + DecreedProperty, 2155 + #[doc(alias = "I_CAL_DEFAULTCHARSET_PROPERTY")] 2156 + DefaultcharsetProperty, 2157 + #[doc(alias = "I_CAL_DEFAULTLOCALE_PROPERTY")] 2158 + DefaultlocaleProperty, 2159 + #[doc(alias = "I_CAL_DEFAULTTZID_PROPERTY")] 2160 + DefaulttzidProperty, 2161 + #[doc(alias = "I_CAL_DEFAULTVCARS_PROPERTY")] 2162 + DefaultvcarsProperty, 2163 + #[doc(alias = "I_CAL_DENY_PROPERTY")] 2164 + DenyProperty, 2165 + #[doc(alias = "I_CAL_DESCRIPTION_PROPERTY")] 2166 + DescriptionProperty, 2167 + #[doc(alias = "I_CAL_DTEND_PROPERTY")] 2168 + DtendProperty, 2169 + #[doc(alias = "I_CAL_DTSTAMP_PROPERTY")] 2170 + DtstampProperty, 2171 + #[doc(alias = "I_CAL_DTSTART_PROPERTY")] 2172 + DtstartProperty, 2173 + #[doc(alias = "I_CAL_DUE_PROPERTY")] 2174 + DueProperty, 2175 + #[doc(alias = "I_CAL_DURATION_PROPERTY")] 2176 + DurationProperty, 2177 + #[doc(alias = "I_CAL_ESTIMATEDDURATION_PROPERTY")] 2178 + EstimateddurationProperty, 2179 + #[doc(alias = "I_CAL_EXDATE_PROPERTY")] 2180 + ExdateProperty, 2181 + #[doc(alias = "I_CAL_EXPAND_PROPERTY")] 2182 + ExpandProperty, 2183 + #[doc(alias = "I_CAL_EXRULE_PROPERTY")] 2184 + ExruleProperty, 2185 + #[doc(alias = "I_CAL_FREEBUSY_PROPERTY")] 2186 + FreebusyProperty, 2187 + #[doc(alias = "I_CAL_GEO_PROPERTY")] 2188 + GeoProperty, 2189 + #[doc(alias = "I_CAL_GRANT_PROPERTY")] 2190 + GrantProperty, 2191 + #[doc(alias = "I_CAL_ITIPVERSION_PROPERTY")] 2192 + ItipversionProperty, 2193 + #[doc(alias = "I_CAL_LASTMODIFIED_PROPERTY")] 2194 + LastmodifiedProperty, 2195 + #[doc(alias = "I_CAL_LOCATION_PROPERTY")] 2196 + LocationProperty, 2197 + #[doc(alias = "I_CAL_MAXCOMPONENTSIZE_PROPERTY")] 2198 + MaxcomponentsizeProperty, 2199 + #[doc(alias = "I_CAL_MAXDATE_PROPERTY")] 2200 + MaxdateProperty, 2201 + #[doc(alias = "I_CAL_MAXRESULTS_PROPERTY")] 2202 + MaxresultsProperty, 2203 + #[doc(alias = "I_CAL_MAXRESULTSSIZE_PROPERTY")] 2204 + MaxresultssizeProperty, 2205 + #[doc(alias = "I_CAL_METHOD_PROPERTY")] 2206 + MethodProperty, 2207 + #[doc(alias = "I_CAL_MINDATE_PROPERTY")] 2208 + MindateProperty, 2209 + #[doc(alias = "I_CAL_MULTIPART_PROPERTY")] 2210 + MultipartProperty, 2211 + #[doc(alias = "I_CAL_NAME_PROPERTY")] 2212 + NameProperty, 2213 + #[doc(alias = "I_CAL_ORGANIZER_PROPERTY")] 2214 + OrganizerProperty, 2215 + #[doc(alias = "I_CAL_OWNER_PROPERTY")] 2216 + OwnerProperty, 2217 + #[doc(alias = "I_CAL_PERCENTCOMPLETE_PROPERTY")] 2218 + PercentcompleteProperty, 2219 + #[doc(alias = "I_CAL_PERMISSION_PROPERTY")] 2220 + PermissionProperty, 2221 + #[doc(alias = "I_CAL_POLLCOMPLETION_PROPERTY")] 2222 + PollcompletionProperty, 2223 + #[doc(alias = "I_CAL_POLLITEMID_PROPERTY")] 2224 + PollitemidProperty, 2225 + #[doc(alias = "I_CAL_POLLMODE_PROPERTY")] 2226 + PollmodeProperty, 2227 + #[doc(alias = "I_CAL_POLLPROPERTIES_PROPERTY")] 2228 + PollpropertiesProperty, 2229 + #[doc(alias = "I_CAL_POLLWINNER_PROPERTY")] 2230 + PollwinnerProperty, 2231 + #[doc(alias = "I_CAL_PRIORITY_PROPERTY")] 2232 + PriorityProperty, 2233 + #[doc(alias = "I_CAL_PRODID_PROPERTY")] 2234 + ProdidProperty, 2235 + #[doc(alias = "I_CAL_QUERY_PROPERTY")] 2236 + QueryProperty, 2237 + #[doc(alias = "I_CAL_QUERYLEVEL_PROPERTY")] 2238 + QuerylevelProperty, 2239 + #[doc(alias = "I_CAL_QUERYID_PROPERTY")] 2240 + QueryidProperty, 2241 + #[doc(alias = "I_CAL_QUERYNAME_PROPERTY")] 2242 + QuerynameProperty, 2243 + #[doc(alias = "I_CAL_RDATE_PROPERTY")] 2244 + RdateProperty, 2245 + #[doc(alias = "I_CAL_RECURACCEPTED_PROPERTY")] 2246 + RecuracceptedProperty, 2247 + #[doc(alias = "I_CAL_RECUREXPAND_PROPERTY")] 2248 + RecurexpandProperty, 2249 + #[doc(alias = "I_CAL_RECURLIMIT_PROPERTY")] 2250 + RecurlimitProperty, 2251 + #[doc(alias = "I_CAL_RECURRENCEID_PROPERTY")] 2252 + RecurrenceidProperty, 2253 + #[doc(alias = "I_CAL_RELATEDTO_PROPERTY")] 2254 + RelatedtoProperty, 2255 + #[doc(alias = "I_CAL_RELCALID_PROPERTY")] 2256 + RelcalidProperty, 2257 + #[doc(alias = "I_CAL_REPEAT_PROPERTY")] 2258 + RepeatProperty, 2259 + #[doc(alias = "I_CAL_REPLYURL_PROPERTY")] 2260 + ReplyurlProperty, 2261 + #[doc(alias = "I_CAL_REQUESTSTATUS_PROPERTY")] 2262 + RequeststatusProperty, 2263 + #[doc(alias = "I_CAL_RESOURCES_PROPERTY")] 2264 + ResourcesProperty, 2265 + #[doc(alias = "I_CAL_RESPONSE_PROPERTY")] 2266 + ResponseProperty, 2267 + #[doc(alias = "I_CAL_RESTRICTION_PROPERTY")] 2268 + RestrictionProperty, 2269 + #[doc(alias = "I_CAL_RRULE_PROPERTY")] 2270 + RruleProperty, 2271 + #[doc(alias = "I_CAL_SCOPE_PROPERTY")] 2272 + ScopeProperty, 2273 + #[doc(alias = "I_CAL_SEQUENCE_PROPERTY")] 2274 + SequenceProperty, 2275 + #[doc(alias = "I_CAL_STATUS_PROPERTY")] 2276 + StatusProperty, 2277 + #[doc(alias = "I_CAL_STORESEXPANDED_PROPERTY")] 2278 + StoresexpandedProperty, 2279 + #[doc(alias = "I_CAL_SUMMARY_PROPERTY")] 2280 + SummaryProperty, 2281 + #[doc(alias = "I_CAL_TARGET_PROPERTY")] 2282 + TargetProperty, 2283 + #[doc(alias = "I_CAL_TASKMODE_PROPERTY")] 2284 + TaskmodeProperty, 2285 + #[doc(alias = "I_CAL_TRANSP_PROPERTY")] 2286 + TranspProperty, 2287 + #[doc(alias = "I_CAL_TRIGGER_PROPERTY")] 2288 + TriggerProperty, 2289 + #[doc(alias = "I_CAL_TZID_PROPERTY")] 2290 + TzidProperty, 2291 + #[doc(alias = "I_CAL_TZIDALIASOF_PROPERTY")] 2292 + TzidaliasofProperty, 2293 + #[doc(alias = "I_CAL_TZNAME_PROPERTY")] 2294 + TznameProperty, 2295 + #[doc(alias = "I_CAL_TZOFFSETFROM_PROPERTY")] 2296 + TzoffsetfromProperty, 2297 + #[doc(alias = "I_CAL_TZOFFSETTO_PROPERTY")] 2298 + TzoffsettoProperty, 2299 + #[doc(alias = "I_CAL_TZUNTIL_PROPERTY")] 2300 + TzuntilProperty, 2301 + #[doc(alias = "I_CAL_TZURL_PROPERTY")] 2302 + TzurlProperty, 2303 + #[doc(alias = "I_CAL_UID_PROPERTY")] 2304 + UidProperty, 2305 + #[doc(alias = "I_CAL_URL_PROPERTY")] 2306 + UrlProperty, 2307 + #[doc(alias = "I_CAL_VERSION_PROPERTY")] 2308 + VersionProperty, 2309 + #[doc(alias = "I_CAL_VOTER_PROPERTY")] 2310 + VoterProperty, 2311 + #[doc(alias = "I_CAL_X_PROPERTY")] 2312 + XProperty, 2313 + #[doc(alias = "I_CAL_XLICCLASS_PROPERTY")] 2314 + XlicclassProperty, 2315 + #[doc(alias = "I_CAL_XLICCLUSTERCOUNT_PROPERTY")] 2316 + XlicclustercountProperty, 2317 + #[doc(alias = "I_CAL_XLICERROR_PROPERTY")] 2318 + XlicerrorProperty, 2319 + #[doc(alias = "I_CAL_XLICMIMECHARSET_PROPERTY")] 2320 + XlicmimecharsetProperty, 2321 + #[doc(alias = "I_CAL_XLICMIMECID_PROPERTY")] 2322 + XlicmimecidProperty, 2323 + #[doc(alias = "I_CAL_XLICMIMECONTENTTYPE_PROPERTY")] 2324 + XlicmimecontenttypeProperty, 2325 + #[doc(alias = "I_CAL_XLICMIMEENCODING_PROPERTY")] 2326 + XlicmimeencodingProperty, 2327 + #[doc(alias = "I_CAL_XLICMIMEFILENAME_PROPERTY")] 2328 + XlicmimefilenameProperty, 2329 + #[doc(alias = "I_CAL_XLICMIMEOPTINFO_PROPERTY")] 2330 + XlicmimeoptinfoProperty, 2331 + #[doc(alias = "I_CAL_NO_PROPERTY")] 2332 + NoProperty, 2333 + #[doc(hidden)] 2334 + __Unknown(i32), 2335 + } 2336 + 2337 + #[doc(hidden)] 2338 + impl IntoGlib for PropertyKind { 2339 + type GlibType = ffi::ICalPropertyKind; 2340 + 2341 + fn into_glib(self) -> ffi::ICalPropertyKind { 2342 + match self { 2343 + Self::AnyProperty => ffi::I_CAL_ANY_PROPERTY, 2344 + Self::AcceptresponseProperty => ffi::I_CAL_ACCEPTRESPONSE_PROPERTY, 2345 + Self::AcknowledgedProperty => ffi::I_CAL_ACKNOWLEDGED_PROPERTY, 2346 + Self::ActionProperty => ffi::I_CAL_ACTION_PROPERTY, 2347 + Self::AllowconflictProperty => ffi::I_CAL_ALLOWCONFLICT_PROPERTY, 2348 + Self::AttachProperty => ffi::I_CAL_ATTACH_PROPERTY, 2349 + Self::AttendeeProperty => ffi::I_CAL_ATTENDEE_PROPERTY, 2350 + Self::BusytypeProperty => ffi::I_CAL_BUSYTYPE_PROPERTY, 2351 + Self::CalidProperty => ffi::I_CAL_CALID_PROPERTY, 2352 + Self::CalmasterProperty => ffi::I_CAL_CALMASTER_PROPERTY, 2353 + Self::CalscaleProperty => ffi::I_CAL_CALSCALE_PROPERTY, 2354 + Self::CapversionProperty => ffi::I_CAL_CAPVERSION_PROPERTY, 2355 + Self::CarlevelProperty => ffi::I_CAL_CARLEVEL_PROPERTY, 2356 + Self::CaridProperty => ffi::I_CAL_CARID_PROPERTY, 2357 + Self::CategoriesProperty => ffi::I_CAL_CATEGORIES_PROPERTY, 2358 + Self::ClassProperty => ffi::I_CAL_CLASS_PROPERTY, 2359 + Self::CmdProperty => ffi::I_CAL_CMD_PROPERTY, 2360 + Self::ColorProperty => ffi::I_CAL_COLOR_PROPERTY, 2361 + Self::CommentProperty => ffi::I_CAL_COMMENT_PROPERTY, 2362 + Self::CompletedProperty => ffi::I_CAL_COMPLETED_PROPERTY, 2363 + Self::ComponentsProperty => ffi::I_CAL_COMPONENTS_PROPERTY, 2364 + Self::ContactProperty => ffi::I_CAL_CONTACT_PROPERTY, 2365 + Self::CreatedProperty => ffi::I_CAL_CREATED_PROPERTY, 2366 + Self::CsidProperty => ffi::I_CAL_CSID_PROPERTY, 2367 + Self::DatemaxProperty => ffi::I_CAL_DATEMAX_PROPERTY, 2368 + Self::DateminProperty => ffi::I_CAL_DATEMIN_PROPERTY, 2369 + Self::DecreedProperty => ffi::I_CAL_DECREED_PROPERTY, 2370 + Self::DefaultcharsetProperty => ffi::I_CAL_DEFAULTCHARSET_PROPERTY, 2371 + Self::DefaultlocaleProperty => ffi::I_CAL_DEFAULTLOCALE_PROPERTY, 2372 + Self::DefaulttzidProperty => ffi::I_CAL_DEFAULTTZID_PROPERTY, 2373 + Self::DefaultvcarsProperty => ffi::I_CAL_DEFAULTVCARS_PROPERTY, 2374 + Self::DenyProperty => ffi::I_CAL_DENY_PROPERTY, 2375 + Self::DescriptionProperty => ffi::I_CAL_DESCRIPTION_PROPERTY, 2376 + Self::DtendProperty => ffi::I_CAL_DTEND_PROPERTY, 2377 + Self::DtstampProperty => ffi::I_CAL_DTSTAMP_PROPERTY, 2378 + Self::DtstartProperty => ffi::I_CAL_DTSTART_PROPERTY, 2379 + Self::DueProperty => ffi::I_CAL_DUE_PROPERTY, 2380 + Self::DurationProperty => ffi::I_CAL_DURATION_PROPERTY, 2381 + Self::EstimateddurationProperty => ffi::I_CAL_ESTIMATEDDURATION_PROPERTY, 2382 + Self::ExdateProperty => ffi::I_CAL_EXDATE_PROPERTY, 2383 + Self::ExpandProperty => ffi::I_CAL_EXPAND_PROPERTY, 2384 + Self::ExruleProperty => ffi::I_CAL_EXRULE_PROPERTY, 2385 + Self::FreebusyProperty => ffi::I_CAL_FREEBUSY_PROPERTY, 2386 + Self::GeoProperty => ffi::I_CAL_GEO_PROPERTY, 2387 + Self::GrantProperty => ffi::I_CAL_GRANT_PROPERTY, 2388 + Self::ItipversionProperty => ffi::I_CAL_ITIPVERSION_PROPERTY, 2389 + Self::LastmodifiedProperty => ffi::I_CAL_LASTMODIFIED_PROPERTY, 2390 + Self::LocationProperty => ffi::I_CAL_LOCATION_PROPERTY, 2391 + Self::MaxcomponentsizeProperty => ffi::I_CAL_MAXCOMPONENTSIZE_PROPERTY, 2392 + Self::MaxdateProperty => ffi::I_CAL_MAXDATE_PROPERTY, 2393 + Self::MaxresultsProperty => ffi::I_CAL_MAXRESULTS_PROPERTY, 2394 + Self::MaxresultssizeProperty => ffi::I_CAL_MAXRESULTSSIZE_PROPERTY, 2395 + Self::MethodProperty => ffi::I_CAL_METHOD_PROPERTY, 2396 + Self::MindateProperty => ffi::I_CAL_MINDATE_PROPERTY, 2397 + Self::MultipartProperty => ffi::I_CAL_MULTIPART_PROPERTY, 2398 + Self::NameProperty => ffi::I_CAL_NAME_PROPERTY, 2399 + Self::OrganizerProperty => ffi::I_CAL_ORGANIZER_PROPERTY, 2400 + Self::OwnerProperty => ffi::I_CAL_OWNER_PROPERTY, 2401 + Self::PercentcompleteProperty => ffi::I_CAL_PERCENTCOMPLETE_PROPERTY, 2402 + Self::PermissionProperty => ffi::I_CAL_PERMISSION_PROPERTY, 2403 + Self::PollcompletionProperty => ffi::I_CAL_POLLCOMPLETION_PROPERTY, 2404 + Self::PollitemidProperty => ffi::I_CAL_POLLITEMID_PROPERTY, 2405 + Self::PollmodeProperty => ffi::I_CAL_POLLMODE_PROPERTY, 2406 + Self::PollpropertiesProperty => ffi::I_CAL_POLLPROPERTIES_PROPERTY, 2407 + Self::PollwinnerProperty => ffi::I_CAL_POLLWINNER_PROPERTY, 2408 + Self::PriorityProperty => ffi::I_CAL_PRIORITY_PROPERTY, 2409 + Self::ProdidProperty => ffi::I_CAL_PRODID_PROPERTY, 2410 + Self::QueryProperty => ffi::I_CAL_QUERY_PROPERTY, 2411 + Self::QuerylevelProperty => ffi::I_CAL_QUERYLEVEL_PROPERTY, 2412 + Self::QueryidProperty => ffi::I_CAL_QUERYID_PROPERTY, 2413 + Self::QuerynameProperty => ffi::I_CAL_QUERYNAME_PROPERTY, 2414 + Self::RdateProperty => ffi::I_CAL_RDATE_PROPERTY, 2415 + Self::RecuracceptedProperty => ffi::I_CAL_RECURACCEPTED_PROPERTY, 2416 + Self::RecurexpandProperty => ffi::I_CAL_RECUREXPAND_PROPERTY, 2417 + Self::RecurlimitProperty => ffi::I_CAL_RECURLIMIT_PROPERTY, 2418 + Self::RecurrenceidProperty => ffi::I_CAL_RECURRENCEID_PROPERTY, 2419 + Self::RelatedtoProperty => ffi::I_CAL_RELATEDTO_PROPERTY, 2420 + Self::RelcalidProperty => ffi::I_CAL_RELCALID_PROPERTY, 2421 + Self::RepeatProperty => ffi::I_CAL_REPEAT_PROPERTY, 2422 + Self::ReplyurlProperty => ffi::I_CAL_REPLYURL_PROPERTY, 2423 + Self::RequeststatusProperty => ffi::I_CAL_REQUESTSTATUS_PROPERTY, 2424 + Self::ResourcesProperty => ffi::I_CAL_RESOURCES_PROPERTY, 2425 + Self::ResponseProperty => ffi::I_CAL_RESPONSE_PROPERTY, 2426 + Self::RestrictionProperty => ffi::I_CAL_RESTRICTION_PROPERTY, 2427 + Self::RruleProperty => ffi::I_CAL_RRULE_PROPERTY, 2428 + Self::ScopeProperty => ffi::I_CAL_SCOPE_PROPERTY, 2429 + Self::SequenceProperty => ffi::I_CAL_SEQUENCE_PROPERTY, 2430 + Self::StatusProperty => ffi::I_CAL_STATUS_PROPERTY, 2431 + Self::StoresexpandedProperty => ffi::I_CAL_STORESEXPANDED_PROPERTY, 2432 + Self::SummaryProperty => ffi::I_CAL_SUMMARY_PROPERTY, 2433 + Self::TargetProperty => ffi::I_CAL_TARGET_PROPERTY, 2434 + Self::TaskmodeProperty => ffi::I_CAL_TASKMODE_PROPERTY, 2435 + Self::TranspProperty => ffi::I_CAL_TRANSP_PROPERTY, 2436 + Self::TriggerProperty => ffi::I_CAL_TRIGGER_PROPERTY, 2437 + Self::TzidProperty => ffi::I_CAL_TZID_PROPERTY, 2438 + Self::TzidaliasofProperty => ffi::I_CAL_TZIDALIASOF_PROPERTY, 2439 + Self::TznameProperty => ffi::I_CAL_TZNAME_PROPERTY, 2440 + Self::TzoffsetfromProperty => ffi::I_CAL_TZOFFSETFROM_PROPERTY, 2441 + Self::TzoffsettoProperty => ffi::I_CAL_TZOFFSETTO_PROPERTY, 2442 + Self::TzuntilProperty => ffi::I_CAL_TZUNTIL_PROPERTY, 2443 + Self::TzurlProperty => ffi::I_CAL_TZURL_PROPERTY, 2444 + Self::UidProperty => ffi::I_CAL_UID_PROPERTY, 2445 + Self::UrlProperty => ffi::I_CAL_URL_PROPERTY, 2446 + Self::VersionProperty => ffi::I_CAL_VERSION_PROPERTY, 2447 + Self::VoterProperty => ffi::I_CAL_VOTER_PROPERTY, 2448 + Self::XProperty => ffi::I_CAL_X_PROPERTY, 2449 + Self::XlicclassProperty => ffi::I_CAL_XLICCLASS_PROPERTY, 2450 + Self::XlicclustercountProperty => ffi::I_CAL_XLICCLUSTERCOUNT_PROPERTY, 2451 + Self::XlicerrorProperty => ffi::I_CAL_XLICERROR_PROPERTY, 2452 + Self::XlicmimecharsetProperty => ffi::I_CAL_XLICMIMECHARSET_PROPERTY, 2453 + Self::XlicmimecidProperty => ffi::I_CAL_XLICMIMECID_PROPERTY, 2454 + Self::XlicmimecontenttypeProperty => ffi::I_CAL_XLICMIMECONTENTTYPE_PROPERTY, 2455 + Self::XlicmimeencodingProperty => ffi::I_CAL_XLICMIMEENCODING_PROPERTY, 2456 + Self::XlicmimefilenameProperty => ffi::I_CAL_XLICMIMEFILENAME_PROPERTY, 2457 + Self::XlicmimeoptinfoProperty => ffi::I_CAL_XLICMIMEOPTINFO_PROPERTY, 2458 + Self::NoProperty => ffi::I_CAL_NO_PROPERTY, 2459 + Self::__Unknown(value) => value, 2460 + } 2461 + } 2462 + } 2463 + 2464 + #[doc(hidden)] 2465 + impl FromGlib<ffi::ICalPropertyKind> for PropertyKind { 2466 + unsafe fn from_glib(value: ffi::ICalPropertyKind) -> Self { 2467 + skip_assert_initialized!(); 2468 + 2469 + match value { 2470 + ffi::I_CAL_ANY_PROPERTY => Self::AnyProperty, 2471 + ffi::I_CAL_ACCEPTRESPONSE_PROPERTY => Self::AcceptresponseProperty, 2472 + ffi::I_CAL_ACKNOWLEDGED_PROPERTY => Self::AcknowledgedProperty, 2473 + ffi::I_CAL_ACTION_PROPERTY => Self::ActionProperty, 2474 + ffi::I_CAL_ALLOWCONFLICT_PROPERTY => Self::AllowconflictProperty, 2475 + ffi::I_CAL_ATTACH_PROPERTY => Self::AttachProperty, 2476 + ffi::I_CAL_ATTENDEE_PROPERTY => Self::AttendeeProperty, 2477 + ffi::I_CAL_BUSYTYPE_PROPERTY => Self::BusytypeProperty, 2478 + ffi::I_CAL_CALID_PROPERTY => Self::CalidProperty, 2479 + ffi::I_CAL_CALMASTER_PROPERTY => Self::CalmasterProperty, 2480 + ffi::I_CAL_CALSCALE_PROPERTY => Self::CalscaleProperty, 2481 + ffi::I_CAL_CAPVERSION_PROPERTY => Self::CapversionProperty, 2482 + ffi::I_CAL_CARLEVEL_PROPERTY => Self::CarlevelProperty, 2483 + ffi::I_CAL_CARID_PROPERTY => Self::CaridProperty, 2484 + ffi::I_CAL_CATEGORIES_PROPERTY => Self::CategoriesProperty, 2485 + ffi::I_CAL_CLASS_PROPERTY => Self::ClassProperty, 2486 + ffi::I_CAL_CMD_PROPERTY => Self::CmdProperty, 2487 + ffi::I_CAL_COLOR_PROPERTY => Self::ColorProperty, 2488 + ffi::I_CAL_COMMENT_PROPERTY => Self::CommentProperty, 2489 + ffi::I_CAL_COMPLETED_PROPERTY => Self::CompletedProperty, 2490 + ffi::I_CAL_COMPONENTS_PROPERTY => Self::ComponentsProperty, 2491 + ffi::I_CAL_CONTACT_PROPERTY => Self::ContactProperty, 2492 + ffi::I_CAL_CREATED_PROPERTY => Self::CreatedProperty, 2493 + ffi::I_CAL_CSID_PROPERTY => Self::CsidProperty, 2494 + ffi::I_CAL_DATEMAX_PROPERTY => Self::DatemaxProperty, 2495 + ffi::I_CAL_DATEMIN_PROPERTY => Self::DateminProperty, 2496 + ffi::I_CAL_DECREED_PROPERTY => Self::DecreedProperty, 2497 + ffi::I_CAL_DEFAULTCHARSET_PROPERTY => Self::DefaultcharsetProperty, 2498 + ffi::I_CAL_DEFAULTLOCALE_PROPERTY => Self::DefaultlocaleProperty, 2499 + ffi::I_CAL_DEFAULTTZID_PROPERTY => Self::DefaulttzidProperty, 2500 + ffi::I_CAL_DEFAULTVCARS_PROPERTY => Self::DefaultvcarsProperty, 2501 + ffi::I_CAL_DENY_PROPERTY => Self::DenyProperty, 2502 + ffi::I_CAL_DESCRIPTION_PROPERTY => Self::DescriptionProperty, 2503 + ffi::I_CAL_DTEND_PROPERTY => Self::DtendProperty, 2504 + ffi::I_CAL_DTSTAMP_PROPERTY => Self::DtstampProperty, 2505 + ffi::I_CAL_DTSTART_PROPERTY => Self::DtstartProperty, 2506 + ffi::I_CAL_DUE_PROPERTY => Self::DueProperty, 2507 + ffi::I_CAL_DURATION_PROPERTY => Self::DurationProperty, 2508 + ffi::I_CAL_ESTIMATEDDURATION_PROPERTY => Self::EstimateddurationProperty, 2509 + ffi::I_CAL_EXDATE_PROPERTY => Self::ExdateProperty, 2510 + ffi::I_CAL_EXPAND_PROPERTY => Self::ExpandProperty, 2511 + ffi::I_CAL_EXRULE_PROPERTY => Self::ExruleProperty, 2512 + ffi::I_CAL_FREEBUSY_PROPERTY => Self::FreebusyProperty, 2513 + ffi::I_CAL_GEO_PROPERTY => Self::GeoProperty, 2514 + ffi::I_CAL_GRANT_PROPERTY => Self::GrantProperty, 2515 + ffi::I_CAL_ITIPVERSION_PROPERTY => Self::ItipversionProperty, 2516 + ffi::I_CAL_LASTMODIFIED_PROPERTY => Self::LastmodifiedProperty, 2517 + ffi::I_CAL_LOCATION_PROPERTY => Self::LocationProperty, 2518 + ffi::I_CAL_MAXCOMPONENTSIZE_PROPERTY => Self::MaxcomponentsizeProperty, 2519 + ffi::I_CAL_MAXDATE_PROPERTY => Self::MaxdateProperty, 2520 + ffi::I_CAL_MAXRESULTS_PROPERTY => Self::MaxresultsProperty, 2521 + ffi::I_CAL_MAXRESULTSSIZE_PROPERTY => Self::MaxresultssizeProperty, 2522 + ffi::I_CAL_METHOD_PROPERTY => Self::MethodProperty, 2523 + ffi::I_CAL_MINDATE_PROPERTY => Self::MindateProperty, 2524 + ffi::I_CAL_MULTIPART_PROPERTY => Self::MultipartProperty, 2525 + ffi::I_CAL_NAME_PROPERTY => Self::NameProperty, 2526 + ffi::I_CAL_ORGANIZER_PROPERTY => Self::OrganizerProperty, 2527 + ffi::I_CAL_OWNER_PROPERTY => Self::OwnerProperty, 2528 + ffi::I_CAL_PERCENTCOMPLETE_PROPERTY => Self::PercentcompleteProperty, 2529 + ffi::I_CAL_PERMISSION_PROPERTY => Self::PermissionProperty, 2530 + ffi::I_CAL_POLLCOMPLETION_PROPERTY => Self::PollcompletionProperty, 2531 + ffi::I_CAL_POLLITEMID_PROPERTY => Self::PollitemidProperty, 2532 + ffi::I_CAL_POLLMODE_PROPERTY => Self::PollmodeProperty, 2533 + ffi::I_CAL_POLLPROPERTIES_PROPERTY => Self::PollpropertiesProperty, 2534 + ffi::I_CAL_POLLWINNER_PROPERTY => Self::PollwinnerProperty, 2535 + ffi::I_CAL_PRIORITY_PROPERTY => Self::PriorityProperty, 2536 + ffi::I_CAL_PRODID_PROPERTY => Self::ProdidProperty, 2537 + ffi::I_CAL_QUERY_PROPERTY => Self::QueryProperty, 2538 + ffi::I_CAL_QUERYLEVEL_PROPERTY => Self::QuerylevelProperty, 2539 + ffi::I_CAL_QUERYID_PROPERTY => Self::QueryidProperty, 2540 + ffi::I_CAL_QUERYNAME_PROPERTY => Self::QuerynameProperty, 2541 + ffi::I_CAL_RDATE_PROPERTY => Self::RdateProperty, 2542 + ffi::I_CAL_RECURACCEPTED_PROPERTY => Self::RecuracceptedProperty, 2543 + ffi::I_CAL_RECUREXPAND_PROPERTY => Self::RecurexpandProperty, 2544 + ffi::I_CAL_RECURLIMIT_PROPERTY => Self::RecurlimitProperty, 2545 + ffi::I_CAL_RECURRENCEID_PROPERTY => Self::RecurrenceidProperty, 2546 + ffi::I_CAL_RELATEDTO_PROPERTY => Self::RelatedtoProperty, 2547 + ffi::I_CAL_RELCALID_PROPERTY => Self::RelcalidProperty, 2548 + ffi::I_CAL_REPEAT_PROPERTY => Self::RepeatProperty, 2549 + ffi::I_CAL_REPLYURL_PROPERTY => Self::ReplyurlProperty, 2550 + ffi::I_CAL_REQUESTSTATUS_PROPERTY => Self::RequeststatusProperty, 2551 + ffi::I_CAL_RESOURCES_PROPERTY => Self::ResourcesProperty, 2552 + ffi::I_CAL_RESPONSE_PROPERTY => Self::ResponseProperty, 2553 + ffi::I_CAL_RESTRICTION_PROPERTY => Self::RestrictionProperty, 2554 + ffi::I_CAL_RRULE_PROPERTY => Self::RruleProperty, 2555 + ffi::I_CAL_SCOPE_PROPERTY => Self::ScopeProperty, 2556 + ffi::I_CAL_SEQUENCE_PROPERTY => Self::SequenceProperty, 2557 + ffi::I_CAL_STATUS_PROPERTY => Self::StatusProperty, 2558 + ffi::I_CAL_STORESEXPANDED_PROPERTY => Self::StoresexpandedProperty, 2559 + ffi::I_CAL_SUMMARY_PROPERTY => Self::SummaryProperty, 2560 + ffi::I_CAL_TARGET_PROPERTY => Self::TargetProperty, 2561 + ffi::I_CAL_TASKMODE_PROPERTY => Self::TaskmodeProperty, 2562 + ffi::I_CAL_TRANSP_PROPERTY => Self::TranspProperty, 2563 + ffi::I_CAL_TRIGGER_PROPERTY => Self::TriggerProperty, 2564 + ffi::I_CAL_TZID_PROPERTY => Self::TzidProperty, 2565 + ffi::I_CAL_TZIDALIASOF_PROPERTY => Self::TzidaliasofProperty, 2566 + ffi::I_CAL_TZNAME_PROPERTY => Self::TznameProperty, 2567 + ffi::I_CAL_TZOFFSETFROM_PROPERTY => Self::TzoffsetfromProperty, 2568 + ffi::I_CAL_TZOFFSETTO_PROPERTY => Self::TzoffsettoProperty, 2569 + ffi::I_CAL_TZUNTIL_PROPERTY => Self::TzuntilProperty, 2570 + ffi::I_CAL_TZURL_PROPERTY => Self::TzurlProperty, 2571 + ffi::I_CAL_UID_PROPERTY => Self::UidProperty, 2572 + ffi::I_CAL_URL_PROPERTY => Self::UrlProperty, 2573 + ffi::I_CAL_VERSION_PROPERTY => Self::VersionProperty, 2574 + ffi::I_CAL_VOTER_PROPERTY => Self::VoterProperty, 2575 + ffi::I_CAL_X_PROPERTY => Self::XProperty, 2576 + ffi::I_CAL_XLICCLASS_PROPERTY => Self::XlicclassProperty, 2577 + ffi::I_CAL_XLICCLUSTERCOUNT_PROPERTY => Self::XlicclustercountProperty, 2578 + ffi::I_CAL_XLICERROR_PROPERTY => Self::XlicerrorProperty, 2579 + ffi::I_CAL_XLICMIMECHARSET_PROPERTY => Self::XlicmimecharsetProperty, 2580 + ffi::I_CAL_XLICMIMECID_PROPERTY => Self::XlicmimecidProperty, 2581 + ffi::I_CAL_XLICMIMECONTENTTYPE_PROPERTY => Self::XlicmimecontenttypeProperty, 2582 + ffi::I_CAL_XLICMIMEENCODING_PROPERTY => Self::XlicmimeencodingProperty, 2583 + ffi::I_CAL_XLICMIMEFILENAME_PROPERTY => Self::XlicmimefilenameProperty, 2584 + ffi::I_CAL_XLICMIMEOPTINFO_PROPERTY => Self::XlicmimeoptinfoProperty, 2585 + ffi::I_CAL_NO_PROPERTY => Self::NoProperty, 2586 + value => Self::__Unknown(value), 2587 + } 2588 + } 2589 + } 2590 + 2591 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2592 + #[derive(Clone, Copy)] 2593 + #[non_exhaustive] 2594 + #[doc(alias = "ICalPropertyMethod")] 2595 + pub enum PropertyMethod { 2596 + #[doc(alias = "I_CAL_METHOD_X")] 2597 + X, 2598 + #[doc(alias = "I_CAL_METHOD_PUBLISH")] 2599 + Publish, 2600 + #[doc(alias = "I_CAL_METHOD_REQUEST")] 2601 + Request, 2602 + #[doc(alias = "I_CAL_METHOD_REPLY")] 2603 + Reply, 2604 + #[doc(alias = "I_CAL_METHOD_ADD")] 2605 + Add, 2606 + #[doc(alias = "I_CAL_METHOD_CANCEL")] 2607 + Cancel, 2608 + #[doc(alias = "I_CAL_METHOD_REFRESH")] 2609 + Refresh, 2610 + #[doc(alias = "I_CAL_METHOD_COUNTER")] 2611 + Counter, 2612 + #[doc(alias = "I_CAL_METHOD_DECLINECOUNTER")] 2613 + Declinecounter, 2614 + #[doc(alias = "I_CAL_METHOD_CREATE")] 2615 + Create, 2616 + #[doc(alias = "I_CAL_METHOD_READ")] 2617 + Read, 2618 + #[doc(alias = "I_CAL_METHOD_RESPONSE")] 2619 + Response, 2620 + #[doc(alias = "I_CAL_METHOD_MOVE")] 2621 + Move, 2622 + #[doc(alias = "I_CAL_METHOD_MODIFY")] 2623 + Modify, 2624 + #[doc(alias = "I_CAL_METHOD_GENERATEUID")] 2625 + Generateuid, 2626 + #[doc(alias = "I_CAL_METHOD_DELETE")] 2627 + Delete, 2628 + #[doc(alias = "I_CAL_METHOD_NONE")] 2629 + None, 2630 + #[doc(hidden)] 2631 + __Unknown(i32), 2632 + } 2633 + 2634 + #[doc(hidden)] 2635 + impl IntoGlib for PropertyMethod { 2636 + type GlibType = ffi::ICalPropertyMethod; 2637 + 2638 + fn into_glib(self) -> ffi::ICalPropertyMethod { 2639 + match self { 2640 + Self::X => ffi::I_CAL_METHOD_X, 2641 + Self::Publish => ffi::I_CAL_METHOD_PUBLISH, 2642 + Self::Request => ffi::I_CAL_METHOD_REQUEST, 2643 + Self::Reply => ffi::I_CAL_METHOD_REPLY, 2644 + Self::Add => ffi::I_CAL_METHOD_ADD, 2645 + Self::Cancel => ffi::I_CAL_METHOD_CANCEL, 2646 + Self::Refresh => ffi::I_CAL_METHOD_REFRESH, 2647 + Self::Counter => ffi::I_CAL_METHOD_COUNTER, 2648 + Self::Declinecounter => ffi::I_CAL_METHOD_DECLINECOUNTER, 2649 + Self::Create => ffi::I_CAL_METHOD_CREATE, 2650 + Self::Read => ffi::I_CAL_METHOD_READ, 2651 + Self::Response => ffi::I_CAL_METHOD_RESPONSE, 2652 + Self::Move => ffi::I_CAL_METHOD_MOVE, 2653 + Self::Modify => ffi::I_CAL_METHOD_MODIFY, 2654 + Self::Generateuid => ffi::I_CAL_METHOD_GENERATEUID, 2655 + Self::Delete => ffi::I_CAL_METHOD_DELETE, 2656 + Self::None => ffi::I_CAL_METHOD_NONE, 2657 + Self::__Unknown(value) => value, 2658 + } 2659 + } 2660 + } 2661 + 2662 + #[doc(hidden)] 2663 + impl FromGlib<ffi::ICalPropertyMethod> for PropertyMethod { 2664 + unsafe fn from_glib(value: ffi::ICalPropertyMethod) -> Self { 2665 + skip_assert_initialized!(); 2666 + 2667 + match value { 2668 + ffi::I_CAL_METHOD_X => Self::X, 2669 + ffi::I_CAL_METHOD_PUBLISH => Self::Publish, 2670 + ffi::I_CAL_METHOD_REQUEST => Self::Request, 2671 + ffi::I_CAL_METHOD_REPLY => Self::Reply, 2672 + ffi::I_CAL_METHOD_ADD => Self::Add, 2673 + ffi::I_CAL_METHOD_CANCEL => Self::Cancel, 2674 + ffi::I_CAL_METHOD_REFRESH => Self::Refresh, 2675 + ffi::I_CAL_METHOD_COUNTER => Self::Counter, 2676 + ffi::I_CAL_METHOD_DECLINECOUNTER => Self::Declinecounter, 2677 + ffi::I_CAL_METHOD_CREATE => Self::Create, 2678 + ffi::I_CAL_METHOD_READ => Self::Read, 2679 + ffi::I_CAL_METHOD_RESPONSE => Self::Response, 2680 + ffi::I_CAL_METHOD_MOVE => Self::Move, 2681 + ffi::I_CAL_METHOD_MODIFY => Self::Modify, 2682 + ffi::I_CAL_METHOD_GENERATEUID => Self::Generateuid, 2683 + ffi::I_CAL_METHOD_DELETE => Self::Delete, 2684 + ffi::I_CAL_METHOD_NONE => Self::None, 2685 + value => Self::__Unknown(value), 2686 + } 2687 + } 2688 + } 2689 + 2690 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2691 + #[derive(Clone, Copy)] 2692 + #[non_exhaustive] 2693 + #[doc(alias = "ICalPropertyPollcompletion")] 2694 + pub enum PropertyPollcompletion { 2695 + #[doc(alias = "I_CAL_POLLCOMPLETION_X")] 2696 + X, 2697 + #[doc(alias = "I_CAL_POLLCOMPLETION_SERVER")] 2698 + Server, 2699 + #[doc(alias = "I_CAL_POLLCOMPLETION_SERVERSUBMIT")] 2700 + Serversubmit, 2701 + #[doc(alias = "I_CAL_POLLCOMPLETION_SERVERCHOICE")] 2702 + Serverchoice, 2703 + #[doc(alias = "I_CAL_POLLCOMPLETION_CLIENT")] 2704 + Client, 2705 + #[doc(alias = "I_CAL_POLLCOMPLETION_NONE")] 2706 + None, 2707 + #[doc(hidden)] 2708 + __Unknown(i32), 2709 + } 2710 + 2711 + #[doc(hidden)] 2712 + impl IntoGlib for PropertyPollcompletion { 2713 + type GlibType = ffi::ICalPropertyPollcompletion; 2714 + 2715 + #[inline] 2716 + fn into_glib(self) -> ffi::ICalPropertyPollcompletion { 2717 + match self { 2718 + Self::X => ffi::I_CAL_POLLCOMPLETION_X, 2719 + Self::Server => ffi::I_CAL_POLLCOMPLETION_SERVER, 2720 + Self::Serversubmit => ffi::I_CAL_POLLCOMPLETION_SERVERSUBMIT, 2721 + Self::Serverchoice => ffi::I_CAL_POLLCOMPLETION_SERVERCHOICE, 2722 + Self::Client => ffi::I_CAL_POLLCOMPLETION_CLIENT, 2723 + Self::None => ffi::I_CAL_POLLCOMPLETION_NONE, 2724 + Self::__Unknown(value) => value, 2725 + } 2726 + } 2727 + } 2728 + 2729 + #[doc(hidden)] 2730 + impl FromGlib<ffi::ICalPropertyPollcompletion> for PropertyPollcompletion { 2731 + #[inline] 2732 + unsafe fn from_glib(value: ffi::ICalPropertyPollcompletion) -> Self { 2733 + skip_assert_initialized!(); 2734 + 2735 + match value { 2736 + ffi::I_CAL_POLLCOMPLETION_X => Self::X, 2737 + ffi::I_CAL_POLLCOMPLETION_SERVER => Self::Server, 2738 + ffi::I_CAL_POLLCOMPLETION_SERVERSUBMIT => Self::Serversubmit, 2739 + ffi::I_CAL_POLLCOMPLETION_SERVERCHOICE => Self::Serverchoice, 2740 + ffi::I_CAL_POLLCOMPLETION_CLIENT => Self::Client, 2741 + ffi::I_CAL_POLLCOMPLETION_NONE => Self::None, 2742 + value => Self::__Unknown(value), 2743 + } 2744 + } 2745 + } 2746 + 2747 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2748 + #[derive(Clone, Copy)] 2749 + #[non_exhaustive] 2750 + #[doc(alias = "ICalPropertyPollmode")] 2751 + pub enum PropertyPollmode { 2752 + #[doc(alias = "I_CAL_POLLMODE_X")] 2753 + X, 2754 + #[doc(alias = "I_CAL_POLLMODE_BASIC")] 2755 + Basic, 2756 + #[doc(alias = "I_CAL_POLLMODE_NONE")] 2757 + None, 2758 + #[doc(hidden)] 2759 + __Unknown(i32), 2760 + } 2761 + 2762 + #[doc(hidden)] 2763 + impl IntoGlib for PropertyPollmode { 2764 + type GlibType = ffi::ICalPropertyPollmode; 2765 + 2766 + #[inline] 2767 + fn into_glib(self) -> ffi::ICalPropertyPollmode { 2768 + match self { 2769 + Self::X => ffi::I_CAL_POLLMODE_X, 2770 + Self::Basic => ffi::I_CAL_POLLMODE_BASIC, 2771 + Self::None => ffi::I_CAL_POLLMODE_NONE, 2772 + Self::__Unknown(value) => value, 2773 + } 2774 + } 2775 + } 2776 + 2777 + #[doc(hidden)] 2778 + impl FromGlib<ffi::ICalPropertyPollmode> for PropertyPollmode { 2779 + #[inline] 2780 + unsafe fn from_glib(value: ffi::ICalPropertyPollmode) -> Self { 2781 + skip_assert_initialized!(); 2782 + 2783 + match value { 2784 + ffi::I_CAL_POLLMODE_X => Self::X, 2785 + ffi::I_CAL_POLLMODE_BASIC => Self::Basic, 2786 + ffi::I_CAL_POLLMODE_NONE => Self::None, 2787 + value => Self::__Unknown(value), 2788 + } 2789 + } 2790 + } 2791 + 2792 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2793 + #[derive(Clone, Copy)] 2794 + #[non_exhaustive] 2795 + #[doc(alias = "ICalPropertyQuerylevel")] 2796 + pub enum PropertyQuerylevel { 2797 + #[doc(alias = "I_CAL_QUERYLEVEL_X")] 2798 + X, 2799 + #[doc(alias = "I_CAL_QUERYLEVEL_CALQL1")] 2800 + Calql1, 2801 + #[doc(alias = "I_CAL_QUERYLEVEL_CALQLNONE")] 2802 + Calqlnone, 2803 + #[doc(alias = "I_CAL_QUERYLEVEL_NONE")] 2804 + None, 2805 + #[doc(hidden)] 2806 + __Unknown(i32), 2807 + } 2808 + 2809 + #[doc(hidden)] 2810 + impl IntoGlib for PropertyQuerylevel { 2811 + type GlibType = ffi::ICalPropertyQuerylevel; 2812 + 2813 + #[inline] 2814 + fn into_glib(self) -> ffi::ICalPropertyQuerylevel { 2815 + match self { 2816 + Self::X => ffi::I_CAL_QUERYLEVEL_X, 2817 + Self::Calql1 => ffi::I_CAL_QUERYLEVEL_CALQL1, 2818 + Self::Calqlnone => ffi::I_CAL_QUERYLEVEL_CALQLNONE, 2819 + Self::None => ffi::I_CAL_QUERYLEVEL_NONE, 2820 + Self::__Unknown(value) => value, 2821 + } 2822 + } 2823 + } 2824 + 2825 + #[doc(hidden)] 2826 + impl FromGlib<ffi::ICalPropertyQuerylevel> for PropertyQuerylevel { 2827 + #[inline] 2828 + unsafe fn from_glib(value: ffi::ICalPropertyQuerylevel) -> Self { 2829 + skip_assert_initialized!(); 2830 + 2831 + match value { 2832 + ffi::I_CAL_QUERYLEVEL_X => Self::X, 2833 + ffi::I_CAL_QUERYLEVEL_CALQL1 => Self::Calql1, 2834 + ffi::I_CAL_QUERYLEVEL_CALQLNONE => Self::Calqlnone, 2835 + ffi::I_CAL_QUERYLEVEL_NONE => Self::None, 2836 + value => Self::__Unknown(value), 2837 + } 2838 + } 2839 + } 2840 + 2841 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2842 + #[derive(Clone, Copy)] 2843 + #[non_exhaustive] 2844 + #[doc(alias = "ICalPropertyStatus")] 2845 + pub enum PropertyStatus { 2846 + #[doc(alias = "I_CAL_STATUS_X")] 2847 + X, 2848 + #[doc(alias = "I_CAL_STATUS_TENTATIVE")] 2849 + Tentative, 2850 + #[doc(alias = "I_CAL_STATUS_CONFIRMED")] 2851 + Confirmed, 2852 + #[doc(alias = "I_CAL_STATUS_COMPLETED")] 2853 + Completed, 2854 + #[doc(alias = "I_CAL_STATUS_NEEDSACTION")] 2855 + Needsaction, 2856 + #[doc(alias = "I_CAL_STATUS_CANCELLED")] 2857 + Cancelled, 2858 + #[doc(alias = "I_CAL_STATUS_INPROCESS")] 2859 + Inprocess, 2860 + #[doc(alias = "I_CAL_STATUS_DRAFT")] 2861 + Draft, 2862 + #[doc(alias = "I_CAL_STATUS_FINAL")] 2863 + Final, 2864 + #[doc(alias = "I_CAL_STATUS_SUBMITTED")] 2865 + Submitted, 2866 + #[doc(alias = "I_CAL_STATUS_PENDING")] 2867 + Pending, 2868 + #[doc(alias = "I_CAL_STATUS_FAILED")] 2869 + Failed, 2870 + #[doc(alias = "I_CAL_STATUS_DELETED")] 2871 + Deleted, 2872 + #[doc(alias = "I_CAL_STATUS_NONE")] 2873 + None, 2874 + #[doc(hidden)] 2875 + __Unknown(i32), 2876 + } 2877 + 2878 + #[doc(hidden)] 2879 + impl IntoGlib for PropertyStatus { 2880 + type GlibType = ffi::ICalPropertyStatus; 2881 + 2882 + fn into_glib(self) -> ffi::ICalPropertyStatus { 2883 + match self { 2884 + Self::X => ffi::I_CAL_STATUS_X, 2885 + Self::Tentative => ffi::I_CAL_STATUS_TENTATIVE, 2886 + Self::Confirmed => ffi::I_CAL_STATUS_CONFIRMED, 2887 + Self::Completed => ffi::I_CAL_STATUS_COMPLETED, 2888 + Self::Needsaction => ffi::I_CAL_STATUS_NEEDSACTION, 2889 + Self::Cancelled => ffi::I_CAL_STATUS_CANCELLED, 2890 + Self::Inprocess => ffi::I_CAL_STATUS_INPROCESS, 2891 + Self::Draft => ffi::I_CAL_STATUS_DRAFT, 2892 + Self::Final => ffi::I_CAL_STATUS_FINAL, 2893 + Self::Submitted => ffi::I_CAL_STATUS_SUBMITTED, 2894 + Self::Pending => ffi::I_CAL_STATUS_PENDING, 2895 + Self::Failed => ffi::I_CAL_STATUS_FAILED, 2896 + Self::Deleted => ffi::I_CAL_STATUS_DELETED, 2897 + Self::None => ffi::I_CAL_STATUS_NONE, 2898 + Self::__Unknown(value) => value, 2899 + } 2900 + } 2901 + } 2902 + 2903 + #[doc(hidden)] 2904 + impl FromGlib<ffi::ICalPropertyStatus> for PropertyStatus { 2905 + unsafe fn from_glib(value: ffi::ICalPropertyStatus) -> Self { 2906 + skip_assert_initialized!(); 2907 + 2908 + match value { 2909 + ffi::I_CAL_STATUS_X => Self::X, 2910 + ffi::I_CAL_STATUS_TENTATIVE => Self::Tentative, 2911 + ffi::I_CAL_STATUS_CONFIRMED => Self::Confirmed, 2912 + ffi::I_CAL_STATUS_COMPLETED => Self::Completed, 2913 + ffi::I_CAL_STATUS_NEEDSACTION => Self::Needsaction, 2914 + ffi::I_CAL_STATUS_CANCELLED => Self::Cancelled, 2915 + ffi::I_CAL_STATUS_INPROCESS => Self::Inprocess, 2916 + ffi::I_CAL_STATUS_DRAFT => Self::Draft, 2917 + ffi::I_CAL_STATUS_FINAL => Self::Final, 2918 + ffi::I_CAL_STATUS_SUBMITTED => Self::Submitted, 2919 + ffi::I_CAL_STATUS_PENDING => Self::Pending, 2920 + ffi::I_CAL_STATUS_FAILED => Self::Failed, 2921 + ffi::I_CAL_STATUS_DELETED => Self::Deleted, 2922 + ffi::I_CAL_STATUS_NONE => Self::None, 2923 + value => Self::__Unknown(value), 2924 + } 2925 + } 2926 + } 2927 + 2928 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2929 + #[derive(Clone, Copy)] 2930 + #[non_exhaustive] 2931 + #[doc(alias = "ICalPropertyTaskmode")] 2932 + pub enum PropertyTaskmode { 2933 + #[doc(alias = "I_CAL_TASKMODE_X")] 2934 + X, 2935 + #[doc(alias = "I_CAL_TASKMODE_AUTOMATICCOMPLETION")] 2936 + Automaticcompletion, 2937 + #[doc(alias = "I_CAL_TASKMODE_AUTOMATICFAILURE")] 2938 + Automaticfailure, 2939 + #[doc(alias = "I_CAL_TASKMODE_AUTOMATICSTATUS")] 2940 + Automaticstatus, 2941 + #[doc(alias = "I_CAL_TASKMODE_NONE")] 2942 + None, 2943 + #[doc(hidden)] 2944 + __Unknown(i32), 2945 + } 2946 + 2947 + #[doc(hidden)] 2948 + impl IntoGlib for PropertyTaskmode { 2949 + type GlibType = ffi::ICalPropertyTaskmode; 2950 + 2951 + #[inline] 2952 + fn into_glib(self) -> ffi::ICalPropertyTaskmode { 2953 + match self { 2954 + Self::X => ffi::I_CAL_TASKMODE_X, 2955 + Self::Automaticcompletion => ffi::I_CAL_TASKMODE_AUTOMATICCOMPLETION, 2956 + Self::Automaticfailure => ffi::I_CAL_TASKMODE_AUTOMATICFAILURE, 2957 + Self::Automaticstatus => ffi::I_CAL_TASKMODE_AUTOMATICSTATUS, 2958 + Self::None => ffi::I_CAL_TASKMODE_NONE, 2959 + Self::__Unknown(value) => value, 2960 + } 2961 + } 2962 + } 2963 + 2964 + #[doc(hidden)] 2965 + impl FromGlib<ffi::ICalPropertyTaskmode> for PropertyTaskmode { 2966 + #[inline] 2967 + unsafe fn from_glib(value: ffi::ICalPropertyTaskmode) -> Self { 2968 + skip_assert_initialized!(); 2969 + 2970 + match value { 2971 + ffi::I_CAL_TASKMODE_X => Self::X, 2972 + ffi::I_CAL_TASKMODE_AUTOMATICCOMPLETION => Self::Automaticcompletion, 2973 + ffi::I_CAL_TASKMODE_AUTOMATICFAILURE => Self::Automaticfailure, 2974 + ffi::I_CAL_TASKMODE_AUTOMATICSTATUS => Self::Automaticstatus, 2975 + ffi::I_CAL_TASKMODE_NONE => Self::None, 2976 + value => Self::__Unknown(value), 2977 + } 2978 + } 2979 + } 2980 + 2981 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 2982 + #[derive(Clone, Copy)] 2983 + #[non_exhaustive] 2984 + #[doc(alias = "ICalPropertyTransp")] 2985 + pub enum PropertyTransp { 2986 + #[doc(alias = "I_CAL_TRANSP_X")] 2987 + X, 2988 + #[doc(alias = "I_CAL_TRANSP_OPAQUE")] 2989 + Opaque, 2990 + #[doc(alias = "I_CAL_TRANSP_OPAQUENOCONFLICT")] 2991 + Opaquenoconflict, 2992 + #[doc(alias = "I_CAL_TRANSP_TRANSPARENT")] 2993 + Transparent, 2994 + #[doc(alias = "I_CAL_TRANSP_TRANSPARENTNOCONFLICT")] 2995 + Transparentnoconflict, 2996 + #[doc(alias = "I_CAL_TRANSP_NONE")] 2997 + None, 2998 + #[doc(hidden)] 2999 + __Unknown(i32), 3000 + } 3001 + 3002 + #[doc(hidden)] 3003 + impl IntoGlib for PropertyTransp { 3004 + type GlibType = ffi::ICalPropertyTransp; 3005 + 3006 + #[inline] 3007 + fn into_glib(self) -> ffi::ICalPropertyTransp { 3008 + match self { 3009 + Self::X => ffi::I_CAL_TRANSP_X, 3010 + Self::Opaque => ffi::I_CAL_TRANSP_OPAQUE, 3011 + Self::Opaquenoconflict => ffi::I_CAL_TRANSP_OPAQUENOCONFLICT, 3012 + Self::Transparent => ffi::I_CAL_TRANSP_TRANSPARENT, 3013 + Self::Transparentnoconflict => ffi::I_CAL_TRANSP_TRANSPARENTNOCONFLICT, 3014 + Self::None => ffi::I_CAL_TRANSP_NONE, 3015 + Self::__Unknown(value) => value, 3016 + } 3017 + } 3018 + } 3019 + 3020 + #[doc(hidden)] 3021 + impl FromGlib<ffi::ICalPropertyTransp> for PropertyTransp { 3022 + #[inline] 3023 + unsafe fn from_glib(value: ffi::ICalPropertyTransp) -> Self { 3024 + skip_assert_initialized!(); 3025 + 3026 + match value { 3027 + ffi::I_CAL_TRANSP_X => Self::X, 3028 + ffi::I_CAL_TRANSP_OPAQUE => Self::Opaque, 3029 + ffi::I_CAL_TRANSP_OPAQUENOCONFLICT => Self::Opaquenoconflict, 3030 + ffi::I_CAL_TRANSP_TRANSPARENT => Self::Transparent, 3031 + ffi::I_CAL_TRANSP_TRANSPARENTNOCONFLICT => Self::Transparentnoconflict, 3032 + ffi::I_CAL_TRANSP_NONE => Self::None, 3033 + value => Self::__Unknown(value), 3034 + } 3035 + } 3036 + } 3037 + 3038 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3039 + #[derive(Clone, Copy)] 3040 + #[non_exhaustive] 3041 + #[doc(alias = "ICalPropertyXlicclass")] 3042 + pub enum PropertyXlicclass { 3043 + #[doc(alias = "I_CAL_XLICCLASS_X")] 3044 + X, 3045 + #[doc(alias = "I_CAL_XLICCLASS_PUBLISHNEW")] 3046 + Publishnew, 3047 + #[doc(alias = "I_CAL_XLICCLASS_PUBLISHUPDATE")] 3048 + Publishupdate, 3049 + #[doc(alias = "I_CAL_XLICCLASS_PUBLISHFREEBUSY")] 3050 + Publishfreebusy, 3051 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTNEW")] 3052 + Requestnew, 3053 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTUPDATE")] 3054 + Requestupdate, 3055 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTRESCHEDULE")] 3056 + Requestreschedule, 3057 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTDELEGATE")] 3058 + Requestdelegate, 3059 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTNEWORGANIZER")] 3060 + Requestneworganizer, 3061 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTFORWARD")] 3062 + Requestforward, 3063 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTSTATUS")] 3064 + Requeststatus, 3065 + #[doc(alias = "I_CAL_XLICCLASS_REQUESTFREEBUSY")] 3066 + Requestfreebusy, 3067 + #[doc(alias = "I_CAL_XLICCLASS_REPLYACCEPT")] 3068 + Replyaccept, 3069 + #[doc(alias = "I_CAL_XLICCLASS_REPLYDECLINE")] 3070 + Replydecline, 3071 + #[doc(alias = "I_CAL_XLICCLASS_REPLYDELEGATE")] 3072 + Replydelegate, 3073 + #[doc(alias = "I_CAL_XLICCLASS_REPLYCRASHERACCEPT")] 3074 + Replycrasheraccept, 3075 + #[doc(alias = "I_CAL_XLICCLASS_REPLYCRASHERDECLINE")] 3076 + Replycrasherdecline, 3077 + #[doc(alias = "I_CAL_XLICCLASS_ADDINSTANCE")] 3078 + Addinstance, 3079 + #[doc(alias = "I_CAL_XLICCLASS_CANCELEVENT")] 3080 + Cancelevent, 3081 + #[doc(alias = "I_CAL_XLICCLASS_CANCELINSTANCE")] 3082 + Cancelinstance, 3083 + #[doc(alias = "I_CAL_XLICCLASS_CANCELALL")] 3084 + Cancelall, 3085 + #[doc(alias = "I_CAL_XLICCLASS_REFRESH")] 3086 + Refresh, 3087 + #[doc(alias = "I_CAL_XLICCLASS_COUNTER")] 3088 + Counter, 3089 + #[doc(alias = "I_CAL_XLICCLASS_DECLINECOUNTER")] 3090 + Declinecounter, 3091 + #[doc(alias = "I_CAL_XLICCLASS_MALFORMED")] 3092 + Malformed, 3093 + #[doc(alias = "I_CAL_XLICCLASS_OBSOLETE")] 3094 + Obsolete, 3095 + #[doc(alias = "I_CAL_XLICCLASS_MISSEQUENCED")] 3096 + Missequenced, 3097 + #[doc(alias = "I_CAL_XLICCLASS_UNKNOWN")] 3098 + Unknown, 3099 + #[doc(alias = "I_CAL_XLICCLASS_NONE")] 3100 + None, 3101 + #[doc(hidden)] 3102 + __Unknown(i32), 3103 + } 3104 + 3105 + #[doc(hidden)] 3106 + impl IntoGlib for PropertyXlicclass { 3107 + type GlibType = ffi::ICalPropertyXlicclass; 3108 + 3109 + fn into_glib(self) -> ffi::ICalPropertyXlicclass { 3110 + match self { 3111 + Self::X => ffi::I_CAL_XLICCLASS_X, 3112 + Self::Publishnew => ffi::I_CAL_XLICCLASS_PUBLISHNEW, 3113 + Self::Publishupdate => ffi::I_CAL_XLICCLASS_PUBLISHUPDATE, 3114 + Self::Publishfreebusy => ffi::I_CAL_XLICCLASS_PUBLISHFREEBUSY, 3115 + Self::Requestnew => ffi::I_CAL_XLICCLASS_REQUESTNEW, 3116 + Self::Requestupdate => ffi::I_CAL_XLICCLASS_REQUESTUPDATE, 3117 + Self::Requestreschedule => ffi::I_CAL_XLICCLASS_REQUESTRESCHEDULE, 3118 + Self::Requestdelegate => ffi::I_CAL_XLICCLASS_REQUESTDELEGATE, 3119 + Self::Requestneworganizer => ffi::I_CAL_XLICCLASS_REQUESTNEWORGANIZER, 3120 + Self::Requestforward => ffi::I_CAL_XLICCLASS_REQUESTFORWARD, 3121 + Self::Requeststatus => ffi::I_CAL_XLICCLASS_REQUESTSTATUS, 3122 + Self::Requestfreebusy => ffi::I_CAL_XLICCLASS_REQUESTFREEBUSY, 3123 + Self::Replyaccept => ffi::I_CAL_XLICCLASS_REPLYACCEPT, 3124 + Self::Replydecline => ffi::I_CAL_XLICCLASS_REPLYDECLINE, 3125 + Self::Replydelegate => ffi::I_CAL_XLICCLASS_REPLYDELEGATE, 3126 + Self::Replycrasheraccept => ffi::I_CAL_XLICCLASS_REPLYCRASHERACCEPT, 3127 + Self::Replycrasherdecline => ffi::I_CAL_XLICCLASS_REPLYCRASHERDECLINE, 3128 + Self::Addinstance => ffi::I_CAL_XLICCLASS_ADDINSTANCE, 3129 + Self::Cancelevent => ffi::I_CAL_XLICCLASS_CANCELEVENT, 3130 + Self::Cancelinstance => ffi::I_CAL_XLICCLASS_CANCELINSTANCE, 3131 + Self::Cancelall => ffi::I_CAL_XLICCLASS_CANCELALL, 3132 + Self::Refresh => ffi::I_CAL_XLICCLASS_REFRESH, 3133 + Self::Counter => ffi::I_CAL_XLICCLASS_COUNTER, 3134 + Self::Declinecounter => ffi::I_CAL_XLICCLASS_DECLINECOUNTER, 3135 + Self::Malformed => ffi::I_CAL_XLICCLASS_MALFORMED, 3136 + Self::Obsolete => ffi::I_CAL_XLICCLASS_OBSOLETE, 3137 + Self::Missequenced => ffi::I_CAL_XLICCLASS_MISSEQUENCED, 3138 + Self::Unknown => ffi::I_CAL_XLICCLASS_UNKNOWN, 3139 + Self::None => ffi::I_CAL_XLICCLASS_NONE, 3140 + Self::__Unknown(value) => value, 3141 + } 3142 + } 3143 + } 3144 + 3145 + #[doc(hidden)] 3146 + impl FromGlib<ffi::ICalPropertyXlicclass> for PropertyXlicclass { 3147 + unsafe fn from_glib(value: ffi::ICalPropertyXlicclass) -> Self { 3148 + skip_assert_initialized!(); 3149 + 3150 + match value { 3151 + ffi::I_CAL_XLICCLASS_X => Self::X, 3152 + ffi::I_CAL_XLICCLASS_PUBLISHNEW => Self::Publishnew, 3153 + ffi::I_CAL_XLICCLASS_PUBLISHUPDATE => Self::Publishupdate, 3154 + ffi::I_CAL_XLICCLASS_PUBLISHFREEBUSY => Self::Publishfreebusy, 3155 + ffi::I_CAL_XLICCLASS_REQUESTNEW => Self::Requestnew, 3156 + ffi::I_CAL_XLICCLASS_REQUESTUPDATE => Self::Requestupdate, 3157 + ffi::I_CAL_XLICCLASS_REQUESTRESCHEDULE => Self::Requestreschedule, 3158 + ffi::I_CAL_XLICCLASS_REQUESTDELEGATE => Self::Requestdelegate, 3159 + ffi::I_CAL_XLICCLASS_REQUESTNEWORGANIZER => Self::Requestneworganizer, 3160 + ffi::I_CAL_XLICCLASS_REQUESTFORWARD => Self::Requestforward, 3161 + ffi::I_CAL_XLICCLASS_REQUESTSTATUS => Self::Requeststatus, 3162 + ffi::I_CAL_XLICCLASS_REQUESTFREEBUSY => Self::Requestfreebusy, 3163 + ffi::I_CAL_XLICCLASS_REPLYACCEPT => Self::Replyaccept, 3164 + ffi::I_CAL_XLICCLASS_REPLYDECLINE => Self::Replydecline, 3165 + ffi::I_CAL_XLICCLASS_REPLYDELEGATE => Self::Replydelegate, 3166 + ffi::I_CAL_XLICCLASS_REPLYCRASHERACCEPT => Self::Replycrasheraccept, 3167 + ffi::I_CAL_XLICCLASS_REPLYCRASHERDECLINE => Self::Replycrasherdecline, 3168 + ffi::I_CAL_XLICCLASS_ADDINSTANCE => Self::Addinstance, 3169 + ffi::I_CAL_XLICCLASS_CANCELEVENT => Self::Cancelevent, 3170 + ffi::I_CAL_XLICCLASS_CANCELINSTANCE => Self::Cancelinstance, 3171 + ffi::I_CAL_XLICCLASS_CANCELALL => Self::Cancelall, 3172 + ffi::I_CAL_XLICCLASS_REFRESH => Self::Refresh, 3173 + ffi::I_CAL_XLICCLASS_COUNTER => Self::Counter, 3174 + ffi::I_CAL_XLICCLASS_DECLINECOUNTER => Self::Declinecounter, 3175 + ffi::I_CAL_XLICCLASS_MALFORMED => Self::Malformed, 3176 + ffi::I_CAL_XLICCLASS_OBSOLETE => Self::Obsolete, 3177 + ffi::I_CAL_XLICCLASS_MISSEQUENCED => Self::Missequenced, 3178 + ffi::I_CAL_XLICCLASS_UNKNOWN => Self::Unknown, 3179 + ffi::I_CAL_XLICCLASS_NONE => Self::None, 3180 + value => Self::__Unknown(value), 3181 + } 3182 + } 3183 + } 3184 + 3185 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3186 + #[derive(Clone, Copy)] 3187 + #[non_exhaustive] 3188 + #[doc(alias = "ICalProperty_Class")] 3189 + pub enum Property_Class { 3190 + #[doc(alias = "I_CAL_CLASS_X")] 3191 + X, 3192 + #[doc(alias = "I_CAL_CLASS_PUBLIC")] 3193 + Public, 3194 + #[doc(alias = "I_CAL_CLASS_PRIVATE")] 3195 + Private, 3196 + #[doc(alias = "I_CAL_CLASS_CONFIDENTIAL")] 3197 + Confidential, 3198 + #[doc(alias = "I_CAL_CLASS_NONE")] 3199 + None, 3200 + #[doc(hidden)] 3201 + __Unknown(i32), 3202 + } 3203 + 3204 + #[doc(hidden)] 3205 + impl IntoGlib for Property_Class { 3206 + type GlibType = ffi::ICalProperty_Class; 3207 + 3208 + #[inline] 3209 + fn into_glib(self) -> ffi::ICalProperty_Class { 3210 + match self { 3211 + Self::X => ffi::I_CAL_CLASS_X, 3212 + Self::Public => ffi::I_CAL_CLASS_PUBLIC, 3213 + Self::Private => ffi::I_CAL_CLASS_PRIVATE, 3214 + Self::Confidential => ffi::I_CAL_CLASS_CONFIDENTIAL, 3215 + Self::None => ffi::I_CAL_CLASS_NONE, 3216 + Self::__Unknown(value) => value, 3217 + } 3218 + } 3219 + } 3220 + 3221 + #[doc(hidden)] 3222 + impl FromGlib<ffi::ICalProperty_Class> for Property_Class { 3223 + #[inline] 3224 + unsafe fn from_glib(value: ffi::ICalProperty_Class) -> Self { 3225 + skip_assert_initialized!(); 3226 + 3227 + match value { 3228 + ffi::I_CAL_CLASS_X => Self::X, 3229 + ffi::I_CAL_CLASS_PUBLIC => Self::Public, 3230 + ffi::I_CAL_CLASS_PRIVATE => Self::Private, 3231 + ffi::I_CAL_CLASS_CONFIDENTIAL => Self::Confidential, 3232 + ffi::I_CAL_CLASS_NONE => Self::None, 3233 + value => Self::__Unknown(value), 3234 + } 3235 + } 3236 + } 3237 + 3238 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3239 + #[derive(Clone, Copy)] 3240 + #[non_exhaustive] 3241 + #[doc(alias = "ICalRecurrenceArrayMaxValues")] 3242 + pub enum RecurrenceArrayMaxValues { 3243 + #[doc(alias = "I_CAL_RECURRENCE_ARRAY_MAX")] 3244 + RecurrenceArrayMax, 3245 + #[doc(hidden)] 3246 + __Unknown(i32), 3247 + } 3248 + 3249 + #[doc(hidden)] 3250 + impl IntoGlib for RecurrenceArrayMaxValues { 3251 + type GlibType = ffi::ICalRecurrenceArrayMaxValues; 3252 + 3253 + #[inline] 3254 + fn into_glib(self) -> ffi::ICalRecurrenceArrayMaxValues { 3255 + match self { 3256 + Self::RecurrenceArrayMax => ffi::I_CAL_RECURRENCE_ARRAY_MAX, 3257 + Self::__Unknown(value) => value, 3258 + } 3259 + } 3260 + } 3261 + 3262 + #[doc(hidden)] 3263 + impl FromGlib<ffi::ICalRecurrenceArrayMaxValues> for RecurrenceArrayMaxValues { 3264 + #[inline] 3265 + unsafe fn from_glib(value: ffi::ICalRecurrenceArrayMaxValues) -> Self { 3266 + skip_assert_initialized!(); 3267 + 3268 + match value { 3269 + ffi::I_CAL_RECURRENCE_ARRAY_MAX => Self::RecurrenceArrayMax, 3270 + value => Self::__Unknown(value), 3271 + } 3272 + } 3273 + } 3274 + 3275 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3276 + #[derive(Clone, Copy)] 3277 + #[non_exhaustive] 3278 + #[doc(alias = "ICalRecurrenceArraySizes")] 3279 + pub enum RecurrenceArraySizes { 3280 + #[doc(alias = "I_CAL_BY_SECOND_SIZE")] 3281 + SecondSize, 3282 + #[doc(alias = "I_CAL_BY_MINUTE_SIZE")] 3283 + MinuteSize, 3284 + #[doc(alias = "I_CAL_BY_HOUR_SIZE")] 3285 + HourSize, 3286 + #[doc(alias = "I_CAL_BY_MONTH_SIZE")] 3287 + MonthSize, 3288 + #[doc(alias = "I_CAL_BY_MONTHDAY_SIZE")] 3289 + MonthdaySize, 3290 + #[doc(alias = "I_CAL_BY_WEEKNO_SIZE")] 3291 + WeeknoSize, 3292 + #[doc(alias = "I_CAL_BY_YEARDAY_SIZE")] 3293 + YeardaySize, 3294 + #[doc(hidden)] 3295 + __Unknown(i32), 3296 + } 3297 + 3298 + #[doc(hidden)] 3299 + impl IntoGlib for RecurrenceArraySizes { 3300 + type GlibType = ffi::ICalRecurrenceArraySizes; 3301 + 3302 + #[inline] 3303 + fn into_glib(self) -> ffi::ICalRecurrenceArraySizes { 3304 + match self { 3305 + Self::SecondSize => ffi::I_CAL_BY_SECOND_SIZE, 3306 + Self::MinuteSize => ffi::I_CAL_BY_MINUTE_SIZE, 3307 + Self::HourSize => ffi::I_CAL_BY_HOUR_SIZE, 3308 + Self::MonthSize => ffi::I_CAL_BY_MONTH_SIZE, 3309 + Self::MonthdaySize => ffi::I_CAL_BY_MONTHDAY_SIZE, 3310 + Self::WeeknoSize => ffi::I_CAL_BY_WEEKNO_SIZE, 3311 + Self::YeardaySize => ffi::I_CAL_BY_YEARDAY_SIZE, 3312 + Self::__Unknown(value) => value, 3313 + } 3314 + } 3315 + } 3316 + 3317 + #[doc(hidden)] 3318 + impl FromGlib<ffi::ICalRecurrenceArraySizes> for RecurrenceArraySizes { 3319 + #[inline] 3320 + unsafe fn from_glib(value: ffi::ICalRecurrenceArraySizes) -> Self { 3321 + skip_assert_initialized!(); 3322 + 3323 + match value { 3324 + ffi::I_CAL_BY_SECOND_SIZE => Self::SecondSize, 3325 + ffi::I_CAL_BY_MINUTE_SIZE => Self::MinuteSize, 3326 + ffi::I_CAL_BY_HOUR_SIZE => Self::HourSize, 3327 + ffi::I_CAL_BY_MONTH_SIZE => Self::MonthSize, 3328 + ffi::I_CAL_BY_MONTHDAY_SIZE => Self::MonthdaySize, 3329 + ffi::I_CAL_BY_WEEKNO_SIZE => Self::WeeknoSize, 3330 + ffi::I_CAL_BY_YEARDAY_SIZE => Self::YeardaySize, 3331 + value => Self::__Unknown(value), 3332 + } 3333 + } 3334 + } 3335 + 3336 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3337 + #[derive(Clone, Copy)] 3338 + #[non_exhaustive] 3339 + #[doc(alias = "ICalRecurrenceFrequency")] 3340 + pub enum RecurrenceFrequency { 3341 + #[doc(alias = "I_CAL_SECONDLY_RECURRENCE")] 3342 + SecondlyRecurrence, 3343 + #[doc(alias = "I_CAL_MINUTELY_RECURRENCE")] 3344 + MinutelyRecurrence, 3345 + #[doc(alias = "I_CAL_HOURLY_RECURRENCE")] 3346 + HourlyRecurrence, 3347 + #[doc(alias = "I_CAL_DAILY_RECURRENCE")] 3348 + DailyRecurrence, 3349 + #[doc(alias = "I_CAL_WEEKLY_RECURRENCE")] 3350 + WeeklyRecurrence, 3351 + #[doc(alias = "I_CAL_MONTHLY_RECURRENCE")] 3352 + MonthlyRecurrence, 3353 + #[doc(alias = "I_CAL_YEARLY_RECURRENCE")] 3354 + YearlyRecurrence, 3355 + #[doc(alias = "I_CAL_NO_RECURRENCE")] 3356 + NoRecurrence, 3357 + #[doc(hidden)] 3358 + __Unknown(i32), 3359 + } 3360 + 3361 + #[doc(hidden)] 3362 + impl IntoGlib for RecurrenceFrequency { 3363 + type GlibType = ffi::ICalRecurrenceFrequency; 3364 + 3365 + #[inline] 3366 + fn into_glib(self) -> ffi::ICalRecurrenceFrequency { 3367 + match self { 3368 + Self::SecondlyRecurrence => ffi::I_CAL_SECONDLY_RECURRENCE, 3369 + Self::MinutelyRecurrence => ffi::I_CAL_MINUTELY_RECURRENCE, 3370 + Self::HourlyRecurrence => ffi::I_CAL_HOURLY_RECURRENCE, 3371 + Self::DailyRecurrence => ffi::I_CAL_DAILY_RECURRENCE, 3372 + Self::WeeklyRecurrence => ffi::I_CAL_WEEKLY_RECURRENCE, 3373 + Self::MonthlyRecurrence => ffi::I_CAL_MONTHLY_RECURRENCE, 3374 + Self::YearlyRecurrence => ffi::I_CAL_YEARLY_RECURRENCE, 3375 + Self::NoRecurrence => ffi::I_CAL_NO_RECURRENCE, 3376 + Self::__Unknown(value) => value, 3377 + } 3378 + } 3379 + } 3380 + 3381 + #[doc(hidden)] 3382 + impl FromGlib<ffi::ICalRecurrenceFrequency> for RecurrenceFrequency { 3383 + #[inline] 3384 + unsafe fn from_glib(value: ffi::ICalRecurrenceFrequency) -> Self { 3385 + skip_assert_initialized!(); 3386 + 3387 + match value { 3388 + ffi::I_CAL_SECONDLY_RECURRENCE => Self::SecondlyRecurrence, 3389 + ffi::I_CAL_MINUTELY_RECURRENCE => Self::MinutelyRecurrence, 3390 + ffi::I_CAL_HOURLY_RECURRENCE => Self::HourlyRecurrence, 3391 + ffi::I_CAL_DAILY_RECURRENCE => Self::DailyRecurrence, 3392 + ffi::I_CAL_WEEKLY_RECURRENCE => Self::WeeklyRecurrence, 3393 + ffi::I_CAL_MONTHLY_RECURRENCE => Self::MonthlyRecurrence, 3394 + ffi::I_CAL_YEARLY_RECURRENCE => Self::YearlyRecurrence, 3395 + ffi::I_CAL_NO_RECURRENCE => Self::NoRecurrence, 3396 + value => Self::__Unknown(value), 3397 + } 3398 + } 3399 + } 3400 + 3401 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3402 + #[derive(Clone, Copy)] 3403 + #[non_exhaustive] 3404 + #[doc(alias = "ICalRecurrenceSkip")] 3405 + pub enum RecurrenceSkip { 3406 + #[doc(alias = "I_CAL_SKIP_BACKWARD")] 3407 + Backward, 3408 + #[doc(alias = "I_CAL_SKIP_FORWARD")] 3409 + Forward, 3410 + #[doc(alias = "I_CAL_SKIP_OMIT")] 3411 + Omit, 3412 + #[doc(alias = "I_CAL_SKIP_UNDEFINED")] 3413 + Undefined, 3414 + #[doc(hidden)] 3415 + __Unknown(i32), 3416 + } 3417 + 3418 + #[doc(hidden)] 3419 + impl IntoGlib for RecurrenceSkip { 3420 + type GlibType = ffi::ICalRecurrenceSkip; 3421 + 3422 + #[inline] 3423 + fn into_glib(self) -> ffi::ICalRecurrenceSkip { 3424 + match self { 3425 + Self::Backward => ffi::I_CAL_SKIP_BACKWARD, 3426 + Self::Forward => ffi::I_CAL_SKIP_FORWARD, 3427 + Self::Omit => ffi::I_CAL_SKIP_OMIT, 3428 + Self::Undefined => ffi::I_CAL_SKIP_UNDEFINED, 3429 + Self::__Unknown(value) => value, 3430 + } 3431 + } 3432 + } 3433 + 3434 + #[doc(hidden)] 3435 + impl FromGlib<ffi::ICalRecurrenceSkip> for RecurrenceSkip { 3436 + #[inline] 3437 + unsafe fn from_glib(value: ffi::ICalRecurrenceSkip) -> Self { 3438 + skip_assert_initialized!(); 3439 + 3440 + match value { 3441 + ffi::I_CAL_SKIP_BACKWARD => Self::Backward, 3442 + ffi::I_CAL_SKIP_FORWARD => Self::Forward, 3443 + ffi::I_CAL_SKIP_OMIT => Self::Omit, 3444 + ffi::I_CAL_SKIP_UNDEFINED => Self::Undefined, 3445 + value => Self::__Unknown(value), 3446 + } 3447 + } 3448 + } 3449 + 3450 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3451 + #[derive(Clone, Copy)] 3452 + #[non_exhaustive] 3453 + #[doc(alias = "ICalRecurrenceWeekday")] 3454 + pub enum RecurrenceWeekday { 3455 + #[doc(alias = "I_CAL_NO_WEEKDAY")] 3456 + NoWeekday, 3457 + #[doc(alias = "I_CAL_SUNDAY_WEEKDAY")] 3458 + SundayWeekday, 3459 + #[doc(alias = "I_CAL_MONDAY_WEEKDAY")] 3460 + MondayWeekday, 3461 + #[doc(alias = "I_CAL_TUESDAY_WEEKDAY")] 3462 + TuesdayWeekday, 3463 + #[doc(alias = "I_CAL_WEDNESDAY_WEEKDAY")] 3464 + WednesdayWeekday, 3465 + #[doc(alias = "I_CAL_THURSDAY_WEEKDAY")] 3466 + ThursdayWeekday, 3467 + #[doc(alias = "I_CAL_FRIDAY_WEEKDAY")] 3468 + FridayWeekday, 3469 + #[doc(alias = "I_CAL_SATURDAY_WEEKDAY")] 3470 + SaturdayWeekday, 3471 + #[doc(hidden)] 3472 + __Unknown(i32), 3473 + } 3474 + 3475 + #[doc(hidden)] 3476 + impl IntoGlib for RecurrenceWeekday { 3477 + type GlibType = ffi::ICalRecurrenceWeekday; 3478 + 3479 + #[inline] 3480 + fn into_glib(self) -> ffi::ICalRecurrenceWeekday { 3481 + match self { 3482 + Self::NoWeekday => ffi::I_CAL_NO_WEEKDAY, 3483 + Self::SundayWeekday => ffi::I_CAL_SUNDAY_WEEKDAY, 3484 + Self::MondayWeekday => ffi::I_CAL_MONDAY_WEEKDAY, 3485 + Self::TuesdayWeekday => ffi::I_CAL_TUESDAY_WEEKDAY, 3486 + Self::WednesdayWeekday => ffi::I_CAL_WEDNESDAY_WEEKDAY, 3487 + Self::ThursdayWeekday => ffi::I_CAL_THURSDAY_WEEKDAY, 3488 + Self::FridayWeekday => ffi::I_CAL_FRIDAY_WEEKDAY, 3489 + Self::SaturdayWeekday => ffi::I_CAL_SATURDAY_WEEKDAY, 3490 + Self::__Unknown(value) => value, 3491 + } 3492 + } 3493 + } 3494 + 3495 + #[doc(hidden)] 3496 + impl FromGlib<ffi::ICalRecurrenceWeekday> for RecurrenceWeekday { 3497 + #[inline] 3498 + unsafe fn from_glib(value: ffi::ICalRecurrenceWeekday) -> Self { 3499 + skip_assert_initialized!(); 3500 + 3501 + match value { 3502 + ffi::I_CAL_NO_WEEKDAY => Self::NoWeekday, 3503 + ffi::I_CAL_SUNDAY_WEEKDAY => Self::SundayWeekday, 3504 + ffi::I_CAL_MONDAY_WEEKDAY => Self::MondayWeekday, 3505 + ffi::I_CAL_TUESDAY_WEEKDAY => Self::TuesdayWeekday, 3506 + ffi::I_CAL_WEDNESDAY_WEEKDAY => Self::WednesdayWeekday, 3507 + ffi::I_CAL_THURSDAY_WEEKDAY => Self::ThursdayWeekday, 3508 + ffi::I_CAL_FRIDAY_WEEKDAY => Self::FridayWeekday, 3509 + ffi::I_CAL_SATURDAY_WEEKDAY => Self::SaturdayWeekday, 3510 + value => Self::__Unknown(value), 3511 + } 3512 + } 3513 + } 3514 + 3515 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3516 + #[derive(Clone, Copy)] 3517 + #[non_exhaustive] 3518 + #[doc(alias = "ICalRequestStatus")] 3519 + pub enum RequestStatus { 3520 + #[doc(alias = "I_CAL_UNKNOWN_STATUS")] 3521 + UnknownStatus, 3522 + #[doc(alias = "I_CAL_2_0_SUCCESS_STATUS")] 3523 + _20SuccessStatus, 3524 + #[doc(alias = "I_CAL_2_1_FALLBACK_STATUS")] 3525 + _21FallbackStatus, 3526 + #[doc(alias = "I_CAL_2_2_IGPROP_STATUS")] 3527 + _22IgpropStatus, 3528 + #[doc(alias = "I_CAL_2_3_IGPARAM_STATUS")] 3529 + _23IgparamStatus, 3530 + #[doc(alias = "I_CAL_2_4_IGXPROP_STATUS")] 3531 + _24IgxpropStatus, 3532 + #[doc(alias = "I_CAL_2_5_IGXPARAM_STATUS")] 3533 + _25IgxparamStatus, 3534 + #[doc(alias = "I_CAL_2_6_IGCOMP_STATUS")] 3535 + _26IgcompStatus, 3536 + #[doc(alias = "I_CAL_2_7_FORWARD_STATUS")] 3537 + _27ForwardStatus, 3538 + #[doc(alias = "I_CAL_2_8_ONEEVENT_STATUS")] 3539 + _28OneeventStatus, 3540 + #[doc(alias = "I_CAL_2_9_TRUNC_STATUS")] 3541 + _29TruncStatus, 3542 + #[doc(alias = "I_CAL_2_10_ONETODO_STATUS")] 3543 + _210OnetodoStatus, 3544 + #[doc(alias = "I_CAL_2_11_TRUNCRRULE_STATUS")] 3545 + _211TruncrruleStatus, 3546 + #[doc(alias = "I_CAL_3_0_INVPROPNAME_STATUS")] 3547 + _30InvpropnameStatus, 3548 + #[doc(alias = "I_CAL_3_1_INVPROPVAL_STATUS")] 3549 + _31InvpropvalStatus, 3550 + #[doc(alias = "I_CAL_3_2_INVPARAM_STATUS")] 3551 + _32InvparamStatus, 3552 + #[doc(alias = "I_CAL_3_3_INVPARAMVAL_STATUS")] 3553 + _33InvparamvalStatus, 3554 + #[doc(alias = "I_CAL_3_4_INVCOMP_STATUS")] 3555 + _34InvcompStatus, 3556 + #[doc(alias = "I_CAL_3_5_INVTIME_STATUS")] 3557 + _35InvtimeStatus, 3558 + #[doc(alias = "I_CAL_3_6_INVRULE_STATUS")] 3559 + _36InvruleStatus, 3560 + #[doc(alias = "I_CAL_3_7_INVCU_STATUS")] 3561 + _37InvcuStatus, 3562 + #[doc(alias = "I_CAL_3_8_NOAUTH_STATUS")] 3563 + _38NoauthStatus, 3564 + #[doc(alias = "I_CAL_3_9_BADVERSION_STATUS")] 3565 + _39BadversionStatus, 3566 + #[doc(alias = "I_CAL_3_10_TOOBIG_STATUS")] 3567 + _310ToobigStatus, 3568 + #[doc(alias = "I_CAL_3_11_MISSREQCOMP_STATUS")] 3569 + _311MissreqcompStatus, 3570 + #[doc(alias = "I_CAL_3_12_UNKCOMP_STATUS")] 3571 + _312UnkcompStatus, 3572 + #[doc(alias = "I_CAL_3_13_BADCOMP_STATUS")] 3573 + _313BadcompStatus, 3574 + #[doc(alias = "I_CAL_3_14_NOCAP_STATUS")] 3575 + _314NocapStatus, 3576 + #[doc(alias = "I_CAL_3_15_INVCOMMAND")] 3577 + _315Invcommand, 3578 + #[doc(alias = "I_CAL_4_0_BUSY_STATUS")] 3579 + _40BusyStatus, 3580 + #[doc(alias = "I_CAL_4_1_STORE_ACCESS_DENIED")] 3581 + _41StoreAccessDenied, 3582 + #[doc(alias = "I_CAL_4_2_STORE_FAILED")] 3583 + _42StoreFailed, 3584 + #[doc(alias = "I_CAL_4_3_STORE_NOT_FOUND")] 3585 + _43StoreNotFound, 3586 + #[doc(alias = "I_CAL_5_0_MAYBE_STATUS")] 3587 + _50MaybeStatus, 3588 + #[doc(alias = "I_CAL_5_1_UNAVAIL_STATUS")] 3589 + _51UnavailStatus, 3590 + #[doc(alias = "I_CAL_5_2_NOSERVICE_STATUS")] 3591 + _52NoserviceStatus, 3592 + #[doc(alias = "I_CAL_5_3_NOSCHED_STATUS")] 3593 + _53NoschedStatus, 3594 + #[doc(alias = "I_CAL_6_1_CONTAINER_NOT_FOUND")] 3595 + _61ContainerNotFound, 3596 + #[doc(alias = "I_CAL_9_0_UNRECOGNIZED_COMMAND")] 3597 + _90UnrecognizedCommand, 3598 + #[doc(hidden)] 3599 + __Unknown(i32), 3600 + } 3601 + 3602 + #[doc(hidden)] 3603 + impl IntoGlib for RequestStatus { 3604 + type GlibType = ffi::ICalRequestStatus; 3605 + 3606 + fn into_glib(self) -> ffi::ICalRequestStatus { 3607 + match self { 3608 + Self::UnknownStatus => ffi::I_CAL_UNKNOWN_STATUS, 3609 + Self::_20SuccessStatus => ffi::I_CAL_2_0_SUCCESS_STATUS, 3610 + Self::_21FallbackStatus => ffi::I_CAL_2_1_FALLBACK_STATUS, 3611 + Self::_22IgpropStatus => ffi::I_CAL_2_2_IGPROP_STATUS, 3612 + Self::_23IgparamStatus => ffi::I_CAL_2_3_IGPARAM_STATUS, 3613 + Self::_24IgxpropStatus => ffi::I_CAL_2_4_IGXPROP_STATUS, 3614 + Self::_25IgxparamStatus => ffi::I_CAL_2_5_IGXPARAM_STATUS, 3615 + Self::_26IgcompStatus => ffi::I_CAL_2_6_IGCOMP_STATUS, 3616 + Self::_27ForwardStatus => ffi::I_CAL_2_7_FORWARD_STATUS, 3617 + Self::_28OneeventStatus => ffi::I_CAL_2_8_ONEEVENT_STATUS, 3618 + Self::_29TruncStatus => ffi::I_CAL_2_9_TRUNC_STATUS, 3619 + Self::_210OnetodoStatus => ffi::I_CAL_2_10_ONETODO_STATUS, 3620 + Self::_211TruncrruleStatus => ffi::I_CAL_2_11_TRUNCRRULE_STATUS, 3621 + Self::_30InvpropnameStatus => ffi::I_CAL_3_0_INVPROPNAME_STATUS, 3622 + Self::_31InvpropvalStatus => ffi::I_CAL_3_1_INVPROPVAL_STATUS, 3623 + Self::_32InvparamStatus => ffi::I_CAL_3_2_INVPARAM_STATUS, 3624 + Self::_33InvparamvalStatus => ffi::I_CAL_3_3_INVPARAMVAL_STATUS, 3625 + Self::_34InvcompStatus => ffi::I_CAL_3_4_INVCOMP_STATUS, 3626 + Self::_35InvtimeStatus => ffi::I_CAL_3_5_INVTIME_STATUS, 3627 + Self::_36InvruleStatus => ffi::I_CAL_3_6_INVRULE_STATUS, 3628 + Self::_37InvcuStatus => ffi::I_CAL_3_7_INVCU_STATUS, 3629 + Self::_38NoauthStatus => ffi::I_CAL_3_8_NOAUTH_STATUS, 3630 + Self::_39BadversionStatus => ffi::I_CAL_3_9_BADVERSION_STATUS, 3631 + Self::_310ToobigStatus => ffi::I_CAL_3_10_TOOBIG_STATUS, 3632 + Self::_311MissreqcompStatus => ffi::I_CAL_3_11_MISSREQCOMP_STATUS, 3633 + Self::_312UnkcompStatus => ffi::I_CAL_3_12_UNKCOMP_STATUS, 3634 + Self::_313BadcompStatus => ffi::I_CAL_3_13_BADCOMP_STATUS, 3635 + Self::_314NocapStatus => ffi::I_CAL_3_14_NOCAP_STATUS, 3636 + Self::_315Invcommand => ffi::I_CAL_3_15_INVCOMMAND, 3637 + Self::_40BusyStatus => ffi::I_CAL_4_0_BUSY_STATUS, 3638 + Self::_41StoreAccessDenied => ffi::I_CAL_4_1_STORE_ACCESS_DENIED, 3639 + Self::_42StoreFailed => ffi::I_CAL_4_2_STORE_FAILED, 3640 + Self::_43StoreNotFound => ffi::I_CAL_4_3_STORE_NOT_FOUND, 3641 + Self::_50MaybeStatus => ffi::I_CAL_5_0_MAYBE_STATUS, 3642 + Self::_51UnavailStatus => ffi::I_CAL_5_1_UNAVAIL_STATUS, 3643 + Self::_52NoserviceStatus => ffi::I_CAL_5_2_NOSERVICE_STATUS, 3644 + Self::_53NoschedStatus => ffi::I_CAL_5_3_NOSCHED_STATUS, 3645 + Self::_61ContainerNotFound => ffi::I_CAL_6_1_CONTAINER_NOT_FOUND, 3646 + Self::_90UnrecognizedCommand => ffi::I_CAL_9_0_UNRECOGNIZED_COMMAND, 3647 + Self::__Unknown(value) => value, 3648 + } 3649 + } 3650 + } 3651 + 3652 + #[doc(hidden)] 3653 + impl FromGlib<ffi::ICalRequestStatus> for RequestStatus { 3654 + unsafe fn from_glib(value: ffi::ICalRequestStatus) -> Self { 3655 + skip_assert_initialized!(); 3656 + 3657 + match value { 3658 + ffi::I_CAL_UNKNOWN_STATUS => Self::UnknownStatus, 3659 + ffi::I_CAL_2_0_SUCCESS_STATUS => Self::_20SuccessStatus, 3660 + ffi::I_CAL_2_1_FALLBACK_STATUS => Self::_21FallbackStatus, 3661 + ffi::I_CAL_2_2_IGPROP_STATUS => Self::_22IgpropStatus, 3662 + ffi::I_CAL_2_3_IGPARAM_STATUS => Self::_23IgparamStatus, 3663 + ffi::I_CAL_2_4_IGXPROP_STATUS => Self::_24IgxpropStatus, 3664 + ffi::I_CAL_2_5_IGXPARAM_STATUS => Self::_25IgxparamStatus, 3665 + ffi::I_CAL_2_6_IGCOMP_STATUS => Self::_26IgcompStatus, 3666 + ffi::I_CAL_2_7_FORWARD_STATUS => Self::_27ForwardStatus, 3667 + ffi::I_CAL_2_8_ONEEVENT_STATUS => Self::_28OneeventStatus, 3668 + ffi::I_CAL_2_9_TRUNC_STATUS => Self::_29TruncStatus, 3669 + ffi::I_CAL_2_10_ONETODO_STATUS => Self::_210OnetodoStatus, 3670 + ffi::I_CAL_2_11_TRUNCRRULE_STATUS => Self::_211TruncrruleStatus, 3671 + ffi::I_CAL_3_0_INVPROPNAME_STATUS => Self::_30InvpropnameStatus, 3672 + ffi::I_CAL_3_1_INVPROPVAL_STATUS => Self::_31InvpropvalStatus, 3673 + ffi::I_CAL_3_2_INVPARAM_STATUS => Self::_32InvparamStatus, 3674 + ffi::I_CAL_3_3_INVPARAMVAL_STATUS => Self::_33InvparamvalStatus, 3675 + ffi::I_CAL_3_4_INVCOMP_STATUS => Self::_34InvcompStatus, 3676 + ffi::I_CAL_3_5_INVTIME_STATUS => Self::_35InvtimeStatus, 3677 + ffi::I_CAL_3_6_INVRULE_STATUS => Self::_36InvruleStatus, 3678 + ffi::I_CAL_3_7_INVCU_STATUS => Self::_37InvcuStatus, 3679 + ffi::I_CAL_3_8_NOAUTH_STATUS => Self::_38NoauthStatus, 3680 + ffi::I_CAL_3_9_BADVERSION_STATUS => Self::_39BadversionStatus, 3681 + ffi::I_CAL_3_10_TOOBIG_STATUS => Self::_310ToobigStatus, 3682 + ffi::I_CAL_3_11_MISSREQCOMP_STATUS => Self::_311MissreqcompStatus, 3683 + ffi::I_CAL_3_12_UNKCOMP_STATUS => Self::_312UnkcompStatus, 3684 + ffi::I_CAL_3_13_BADCOMP_STATUS => Self::_313BadcompStatus, 3685 + ffi::I_CAL_3_14_NOCAP_STATUS => Self::_314NocapStatus, 3686 + ffi::I_CAL_3_15_INVCOMMAND => Self::_315Invcommand, 3687 + ffi::I_CAL_4_0_BUSY_STATUS => Self::_40BusyStatus, 3688 + ffi::I_CAL_4_1_STORE_ACCESS_DENIED => Self::_41StoreAccessDenied, 3689 + ffi::I_CAL_4_2_STORE_FAILED => Self::_42StoreFailed, 3690 + ffi::I_CAL_4_3_STORE_NOT_FOUND => Self::_43StoreNotFound, 3691 + ffi::I_CAL_5_0_MAYBE_STATUS => Self::_50MaybeStatus, 3692 + ffi::I_CAL_5_1_UNAVAIL_STATUS => Self::_51UnavailStatus, 3693 + ffi::I_CAL_5_2_NOSERVICE_STATUS => Self::_52NoserviceStatus, 3694 + ffi::I_CAL_5_3_NOSCHED_STATUS => Self::_53NoschedStatus, 3695 + ffi::I_CAL_6_1_CONTAINER_NOT_FOUND => Self::_61ContainerNotFound, 3696 + ffi::I_CAL_9_0_UNRECOGNIZED_COMMAND => Self::_90UnrecognizedCommand, 3697 + value => Self::__Unknown(value), 3698 + } 3699 + } 3700 + } 3701 + 3702 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3703 + #[derive(Clone, Copy)] 3704 + #[non_exhaustive] 3705 + #[doc(alias = "ICalRestrictionKind")] 3706 + pub enum RestrictionKind { 3707 + #[doc(alias = "I_CAL_RESTRICTION_NONE")] 3708 + None, 3709 + #[doc(alias = "I_CAL_RESTRICTION_ZERO")] 3710 + Zero, 3711 + #[doc(alias = "I_CAL_RESTRICTION_ONE")] 3712 + One, 3713 + #[doc(alias = "I_CAL_RESTRICTION_ZEROPLUS")] 3714 + Zeroplus, 3715 + #[doc(alias = "I_CAL_RESTRICTION_ONEPLUS")] 3716 + Oneplus, 3717 + #[doc(alias = "I_CAL_RESTRICTION_ZEROORONE")] 3718 + Zeroorone, 3719 + #[doc(alias = "I_CAL_RESTRICTION_ONEEXCLUSIVE")] 3720 + Oneexclusive, 3721 + #[doc(alias = "I_CAL_RESTRICTION_ONEMUTUAL")] 3722 + Onemutual, 3723 + #[doc(alias = "I_CAL_RESTRICTION_UNKNOWN")] 3724 + Unknown, 3725 + #[doc(hidden)] 3726 + __Unknown(i32), 3727 + } 3728 + 3729 + #[doc(hidden)] 3730 + impl IntoGlib for RestrictionKind { 3731 + type GlibType = ffi::ICalRestrictionKind; 3732 + 3733 + #[inline] 3734 + fn into_glib(self) -> ffi::ICalRestrictionKind { 3735 + match self { 3736 + Self::None => ffi::I_CAL_RESTRICTION_NONE, 3737 + Self::Zero => ffi::I_CAL_RESTRICTION_ZERO, 3738 + Self::One => ffi::I_CAL_RESTRICTION_ONE, 3739 + Self::Zeroplus => ffi::I_CAL_RESTRICTION_ZEROPLUS, 3740 + Self::Oneplus => ffi::I_CAL_RESTRICTION_ONEPLUS, 3741 + Self::Zeroorone => ffi::I_CAL_RESTRICTION_ZEROORONE, 3742 + Self::Oneexclusive => ffi::I_CAL_RESTRICTION_ONEEXCLUSIVE, 3743 + Self::Onemutual => ffi::I_CAL_RESTRICTION_ONEMUTUAL, 3744 + Self::Unknown => ffi::I_CAL_RESTRICTION_UNKNOWN, 3745 + Self::__Unknown(value) => value, 3746 + } 3747 + } 3748 + } 3749 + 3750 + #[doc(hidden)] 3751 + impl FromGlib<ffi::ICalRestrictionKind> for RestrictionKind { 3752 + #[inline] 3753 + unsafe fn from_glib(value: ffi::ICalRestrictionKind) -> Self { 3754 + skip_assert_initialized!(); 3755 + 3756 + match value { 3757 + ffi::I_CAL_RESTRICTION_NONE => Self::None, 3758 + ffi::I_CAL_RESTRICTION_ZERO => Self::Zero, 3759 + ffi::I_CAL_RESTRICTION_ONE => Self::One, 3760 + ffi::I_CAL_RESTRICTION_ZEROPLUS => Self::Zeroplus, 3761 + ffi::I_CAL_RESTRICTION_ONEPLUS => Self::Oneplus, 3762 + ffi::I_CAL_RESTRICTION_ZEROORONE => Self::Zeroorone, 3763 + ffi::I_CAL_RESTRICTION_ONEEXCLUSIVE => Self::Oneexclusive, 3764 + ffi::I_CAL_RESTRICTION_ONEMUTUAL => Self::Onemutual, 3765 + ffi::I_CAL_RESTRICTION_UNKNOWN => Self::Unknown, 3766 + value => Self::__Unknown(value), 3767 + } 3768 + } 3769 + } 3770 + 3771 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3772 + #[derive(Clone, Copy)] 3773 + #[non_exhaustive] 3774 + #[doc(alias = "ICalUnknowntokenhandling")] 3775 + pub enum Unknowntokenhandling { 3776 + #[doc(alias = "I_CAL_ASSUME_IANA_TOKEN")] 3777 + AssumeIanaToken, 3778 + #[doc(alias = "I_CAL_DISCARD_TOKEN")] 3779 + DiscardToken, 3780 + #[doc(alias = "I_CAL_TREAT_AS_ERROR")] 3781 + TreatAsError, 3782 + #[doc(hidden)] 3783 + __Unknown(i32), 3784 + } 3785 + 3786 + #[doc(hidden)] 3787 + impl IntoGlib for Unknowntokenhandling { 3788 + type GlibType = ffi::ICalUnknowntokenhandling; 3789 + 3790 + #[inline] 3791 + fn into_glib(self) -> ffi::ICalUnknowntokenhandling { 3792 + match self { 3793 + Self::AssumeIanaToken => ffi::I_CAL_ASSUME_IANA_TOKEN, 3794 + Self::DiscardToken => ffi::I_CAL_DISCARD_TOKEN, 3795 + Self::TreatAsError => ffi::I_CAL_TREAT_AS_ERROR, 3796 + Self::__Unknown(value) => value, 3797 + } 3798 + } 3799 + } 3800 + 3801 + #[doc(hidden)] 3802 + impl FromGlib<ffi::ICalUnknowntokenhandling> for Unknowntokenhandling { 3803 + #[inline] 3804 + unsafe fn from_glib(value: ffi::ICalUnknowntokenhandling) -> Self { 3805 + skip_assert_initialized!(); 3806 + 3807 + match value { 3808 + ffi::I_CAL_ASSUME_IANA_TOKEN => Self::AssumeIanaToken, 3809 + ffi::I_CAL_DISCARD_TOKEN => Self::DiscardToken, 3810 + ffi::I_CAL_TREAT_AS_ERROR => Self::TreatAsError, 3811 + value => Self::__Unknown(value), 3812 + } 3813 + } 3814 + } 3815 + 3816 + #[derive(Debug, Eq, PartialEq, Ord, PartialOrd, Hash)] 3817 + #[derive(Clone, Copy)] 3818 + #[non_exhaustive] 3819 + #[doc(alias = "ICalValueKind")] 3820 + pub enum ValueKind { 3821 + #[doc(alias = "I_CAL_ANY_VALUE")] 3822 + AnyValue, 3823 + #[doc(alias = "I_CAL_ACTION_VALUE")] 3824 + ActionValue, 3825 + #[doc(alias = "I_CAL_ATTACH_VALUE")] 3826 + AttachValue, 3827 + #[doc(alias = "I_CAL_BINARY_VALUE")] 3828 + BinaryValue, 3829 + #[doc(alias = "I_CAL_BOOLEAN_VALUE")] 3830 + BooleanValue, 3831 + #[doc(alias = "I_CAL_BUSYTYPE_VALUE")] 3832 + BusytypeValue, 3833 + #[doc(alias = "I_CAL_CALADDRESS_VALUE")] 3834 + CaladdressValue, 3835 + #[doc(alias = "I_CAL_CARLEVEL_VALUE")] 3836 + CarlevelValue, 3837 + #[doc(alias = "I_CAL_CLASS_VALUE")] 3838 + ClassValue, 3839 + #[doc(alias = "I_CAL_CMD_VALUE")] 3840 + CmdValue, 3841 + #[doc(alias = "I_CAL_DATE_VALUE")] 3842 + DateValue, 3843 + #[doc(alias = "I_CAL_DATETIME_VALUE")] 3844 + DatetimeValue, 3845 + #[doc(alias = "I_CAL_DATETIMEDATE_VALUE")] 3846 + DatetimedateValue, 3847 + #[doc(alias = "I_CAL_DATETIMEPERIOD_VALUE")] 3848 + DatetimeperiodValue, 3849 + #[doc(alias = "I_CAL_DURATION_VALUE")] 3850 + DurationValue, 3851 + #[doc(alias = "I_CAL_FLOAT_VALUE")] 3852 + FloatValue, 3853 + #[doc(alias = "I_CAL_GEO_VALUE")] 3854 + GeoValue, 3855 + #[doc(alias = "I_CAL_INTEGER_VALUE")] 3856 + IntegerValue, 3857 + #[doc(alias = "I_CAL_METHOD_VALUE")] 3858 + MethodValue, 3859 + #[doc(alias = "I_CAL_PERIOD_VALUE")] 3860 + PeriodValue, 3861 + #[doc(alias = "I_CAL_POLLCOMPLETION_VALUE")] 3862 + PollcompletionValue, 3863 + #[doc(alias = "I_CAL_POLLMODE_VALUE")] 3864 + PollmodeValue, 3865 + #[doc(alias = "I_CAL_QUERY_VALUE")] 3866 + QueryValue, 3867 + #[doc(alias = "I_CAL_QUERYLEVEL_VALUE")] 3868 + QuerylevelValue, 3869 + #[doc(alias = "I_CAL_RECUR_VALUE")] 3870 + RecurValue, 3871 + #[doc(alias = "I_CAL_REQUESTSTATUS_VALUE")] 3872 + RequeststatusValue, 3873 + #[doc(alias = "I_CAL_STATUS_VALUE")] 3874 + StatusValue, 3875 + #[doc(alias = "I_CAL_STRING_VALUE")] 3876 + StringValue, 3877 + #[doc(alias = "I_CAL_TASKMODE_VALUE")] 3878 + TaskmodeValue, 3879 + #[doc(alias = "I_CAL_TEXT_VALUE")] 3880 + TextValue, 3881 + #[doc(alias = "I_CAL_TRANSP_VALUE")] 3882 + TranspValue, 3883 + #[doc(alias = "I_CAL_TRIGGER_VALUE")] 3884 + TriggerValue, 3885 + #[doc(alias = "I_CAL_URI_VALUE")] 3886 + UriValue, 3887 + #[doc(alias = "I_CAL_UTCOFFSET_VALUE")] 3888 + UtcoffsetValue, 3889 + #[doc(alias = "I_CAL_X_VALUE")] 3890 + XValue, 3891 + #[doc(alias = "I_CAL_XLICCLASS_VALUE")] 3892 + XlicclassValue, 3893 + #[doc(alias = "I_CAL_NO_VALUE")] 3894 + NoValue, 3895 + #[doc(hidden)] 3896 + __Unknown(i32), 3897 + } 3898 + 3899 + #[doc(hidden)] 3900 + impl IntoGlib for ValueKind { 3901 + type GlibType = ffi::ICalValueKind; 3902 + 3903 + fn into_glib(self) -> ffi::ICalValueKind { 3904 + match self { 3905 + Self::AnyValue => ffi::I_CAL_ANY_VALUE, 3906 + Self::ActionValue => ffi::I_CAL_ACTION_VALUE, 3907 + Self::AttachValue => ffi::I_CAL_ATTACH_VALUE, 3908 + Self::BinaryValue => ffi::I_CAL_BINARY_VALUE, 3909 + Self::BooleanValue => ffi::I_CAL_BOOLEAN_VALUE, 3910 + Self::BusytypeValue => ffi::I_CAL_BUSYTYPE_VALUE, 3911 + Self::CaladdressValue => ffi::I_CAL_CALADDRESS_VALUE, 3912 + Self::CarlevelValue => ffi::I_CAL_CARLEVEL_VALUE, 3913 + Self::ClassValue => ffi::I_CAL_CLASS_VALUE, 3914 + Self::CmdValue => ffi::I_CAL_CMD_VALUE, 3915 + Self::DateValue => ffi::I_CAL_DATE_VALUE, 3916 + Self::DatetimeValue => ffi::I_CAL_DATETIME_VALUE, 3917 + Self::DatetimedateValue => ffi::I_CAL_DATETIMEDATE_VALUE, 3918 + Self::DatetimeperiodValue => ffi::I_CAL_DATETIMEPERIOD_VALUE, 3919 + Self::DurationValue => ffi::I_CAL_DURATION_VALUE, 3920 + Self::FloatValue => ffi::I_CAL_FLOAT_VALUE, 3921 + Self::GeoValue => ffi::I_CAL_GEO_VALUE, 3922 + Self::IntegerValue => ffi::I_CAL_INTEGER_VALUE, 3923 + Self::MethodValue => ffi::I_CAL_METHOD_VALUE, 3924 + Self::PeriodValue => ffi::I_CAL_PERIOD_VALUE, 3925 + Self::PollcompletionValue => ffi::I_CAL_POLLCOMPLETION_VALUE, 3926 + Self::PollmodeValue => ffi::I_CAL_POLLMODE_VALUE, 3927 + Self::QueryValue => ffi::I_CAL_QUERY_VALUE, 3928 + Self::QuerylevelValue => ffi::I_CAL_QUERYLEVEL_VALUE, 3929 + Self::RecurValue => ffi::I_CAL_RECUR_VALUE, 3930 + Self::RequeststatusValue => ffi::I_CAL_REQUESTSTATUS_VALUE, 3931 + Self::StatusValue => ffi::I_CAL_STATUS_VALUE, 3932 + Self::StringValue => ffi::I_CAL_STRING_VALUE, 3933 + Self::TaskmodeValue => ffi::I_CAL_TASKMODE_VALUE, 3934 + Self::TextValue => ffi::I_CAL_TEXT_VALUE, 3935 + Self::TranspValue => ffi::I_CAL_TRANSP_VALUE, 3936 + Self::TriggerValue => ffi::I_CAL_TRIGGER_VALUE, 3937 + Self::UriValue => ffi::I_CAL_URI_VALUE, 3938 + Self::UtcoffsetValue => ffi::I_CAL_UTCOFFSET_VALUE, 3939 + Self::XValue => ffi::I_CAL_X_VALUE, 3940 + Self::XlicclassValue => ffi::I_CAL_XLICCLASS_VALUE, 3941 + Self::NoValue => ffi::I_CAL_NO_VALUE, 3942 + Self::__Unknown(value) => value, 3943 + } 3944 + } 3945 + } 3946 + 3947 + #[doc(hidden)] 3948 + impl FromGlib<ffi::ICalValueKind> for ValueKind { 3949 + unsafe fn from_glib(value: ffi::ICalValueKind) -> Self { 3950 + skip_assert_initialized!(); 3951 + 3952 + match value { 3953 + ffi::I_CAL_ANY_VALUE => Self::AnyValue, 3954 + ffi::I_CAL_ACTION_VALUE => Self::ActionValue, 3955 + ffi::I_CAL_ATTACH_VALUE => Self::AttachValue, 3956 + ffi::I_CAL_BINARY_VALUE => Self::BinaryValue, 3957 + ffi::I_CAL_BOOLEAN_VALUE => Self::BooleanValue, 3958 + ffi::I_CAL_BUSYTYPE_VALUE => Self::BusytypeValue, 3959 + ffi::I_CAL_CALADDRESS_VALUE => Self::CaladdressValue, 3960 + ffi::I_CAL_CARLEVEL_VALUE => Self::CarlevelValue, 3961 + ffi::I_CAL_CLASS_VALUE => Self::ClassValue, 3962 + ffi::I_CAL_CMD_VALUE => Self::CmdValue, 3963 + ffi::I_CAL_DATE_VALUE => Self::DateValue, 3964 + ffi::I_CAL_DATETIME_VALUE => Self::DatetimeValue, 3965 + ffi::I_CAL_DATETIMEDATE_VALUE => Self::DatetimedateValue, 3966 + ffi::I_CAL_DATETIMEPERIOD_VALUE => Self::DatetimeperiodValue, 3967 + ffi::I_CAL_DURATION_VALUE => Self::DurationValue, 3968 + ffi::I_CAL_FLOAT_VALUE => Self::FloatValue, 3969 + ffi::I_CAL_GEO_VALUE => Self::GeoValue, 3970 + ffi::I_CAL_INTEGER_VALUE => Self::IntegerValue, 3971 + ffi::I_CAL_METHOD_VALUE => Self::MethodValue, 3972 + ffi::I_CAL_PERIOD_VALUE => Self::PeriodValue, 3973 + ffi::I_CAL_POLLCOMPLETION_VALUE => Self::PollcompletionValue, 3974 + ffi::I_CAL_POLLMODE_VALUE => Self::PollmodeValue, 3975 + ffi::I_CAL_QUERY_VALUE => Self::QueryValue, 3976 + ffi::I_CAL_QUERYLEVEL_VALUE => Self::QuerylevelValue, 3977 + ffi::I_CAL_RECUR_VALUE => Self::RecurValue, 3978 + ffi::I_CAL_REQUESTSTATUS_VALUE => Self::RequeststatusValue, 3979 + ffi::I_CAL_STATUS_VALUE => Self::StatusValue, 3980 + ffi::I_CAL_STRING_VALUE => Self::StringValue, 3981 + ffi::I_CAL_TASKMODE_VALUE => Self::TaskmodeValue, 3982 + ffi::I_CAL_TEXT_VALUE => Self::TextValue, 3983 + ffi::I_CAL_TRANSP_VALUE => Self::TranspValue, 3984 + ffi::I_CAL_TRIGGER_VALUE => Self::TriggerValue, 3985 + ffi::I_CAL_URI_VALUE => Self::UriValue, 3986 + ffi::I_CAL_UTCOFFSET_VALUE => Self::UtcoffsetValue, 3987 + ffi::I_CAL_X_VALUE => Self::XValue, 3988 + ffi::I_CAL_XLICCLASS_VALUE => Self::XlicclassValue, 3989 + ffi::I_CAL_NO_VALUE => Self::NoValue, 3990 + value => Self::__Unknown(value), 3991 + } 3992 + } 3993 + } 3994 +
+74
ical-glib/src/auto/geo.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalGeo")] 11 + pub struct Geo(Object<ffi::ICalGeo, ffi::ICalGeoClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_geo_get_type(), 15 + } 16 + } 17 + 18 + impl Geo { 19 + #[doc(alias = "i_cal_geo_new")] 20 + pub fn new(lat: f64, lon: f64) -> Geo { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_geo_new(lat, lon)) 24 + } 25 + } 26 + 27 + //#[doc(alias = "i_cal_geo_new_full")] 28 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Geo { 29 + // unsafe { TODO: call ffi:i_cal_geo_new_full() } 30 + //} 31 + 32 + #[doc(alias = "i_cal_geo_clone")] 33 + #[must_use] 34 + pub fn clone(&self) -> Option<Geo> { 35 + unsafe { 36 + from_glib_full(ffi::i_cal_geo_clone(self.to_glib_none().0)) 37 + } 38 + } 39 + 40 + #[doc(alias = "i_cal_geo_get_lat")] 41 + #[doc(alias = "get_lat")] 42 + pub fn lat(&self) -> f64 { 43 + unsafe { 44 + ffi::i_cal_geo_get_lat(self.to_glib_none().0) 45 + } 46 + } 47 + 48 + #[doc(alias = "i_cal_geo_get_lon")] 49 + #[doc(alias = "get_lon")] 50 + pub fn lon(&self) -> f64 { 51 + unsafe { 52 + ffi::i_cal_geo_get_lon(self.to_glib_none().0) 53 + } 54 + } 55 + 56 + #[doc(alias = "i_cal_geo_set_lat")] 57 + pub fn set_lat(&self, lat: f64) { 58 + unsafe { 59 + ffi::i_cal_geo_set_lat(self.to_glib_none().0, lat); 60 + } 61 + } 62 + 63 + #[doc(alias = "i_cal_geo_set_lon")] 64 + pub fn set_lon(&self, lon: f64) { 65 + unsafe { 66 + ffi::i_cal_geo_set_lon(self.to_glib_none().0, lon); 67 + } 68 + } 69 + 70 + //#[doc(alias = "i_cal_geo_new_default")] 71 + //pub fn new_default() -> /*Unimplemented*/Option<Basic: Pointer> { 72 + // unsafe { TODO: call ffi:i_cal_geo_new_default() } 73 + //} 74 + }
+103
ical-glib/src/auto/mod.rs
··· 3 3 // from gir-files 4 4 // DO NOT EDIT 5 5 6 + mod array; 7 + pub use self::array::Array; 8 + 9 + mod comp_iter; 10 + pub use self::comp_iter::CompIter; 11 + 12 + mod component; 13 + pub use self::component::Component; 14 + 15 + mod datetimeperiod; 16 + pub use self::datetimeperiod::Datetimeperiod; 17 + 18 + mod duration; 19 + pub use self::duration::Duration; 20 + 21 + mod geo; 22 + pub use self::geo::Geo; 23 + 24 + mod parameter; 25 + pub use self::parameter::Parameter; 26 + 27 + mod period; 28 + pub use self::period::Period; 29 + 30 + mod property; 31 + pub use self::property::Property; 32 + 33 + mod recur_iterator; 34 + pub use self::recur_iterator::RecurIterator; 35 + 36 + mod recurrence; 37 + pub use self::recurrence::Recurrence; 38 + 39 + mod reqstat; 40 + pub use self::reqstat::Reqstat; 41 + 42 + mod time; 43 + pub use self::time::Time; 44 + 45 + mod time_span; 46 + pub use self::time_span::TimeSpan; 47 + 48 + mod timezone; 49 + pub use self::timezone::Timezone; 50 + 51 + mod trigger; 52 + pub use self::trigger::Trigger; 53 + 54 + mod value; 55 + pub use self::value::Value; 56 + 57 + mod enums; 58 + pub use self::enums::ComponentKind; 59 + pub use self::enums::ErrorEnum; 60 + pub use self::enums::ErrorState; 61 + pub use self::enums::ParameterAction; 62 + pub use self::enums::ParameterDisplay; 63 + pub use self::enums::ParameterEnable; 64 + pub use self::enums::ParameterEncoding; 65 + pub use self::enums::ParameterFbtype; 66 + pub use self::enums::ParameterFeature; 67 + pub use self::enums::ParameterKind; 68 + pub use self::enums::ParameterLocal; 69 + pub use self::enums::ParameterPartstat; 70 + pub use self::enums::ParameterPatchaction; 71 + pub use self::enums::ParameterRange; 72 + pub use self::enums::ParameterRelated; 73 + pub use self::enums::ParameterReltype; 74 + pub use self::enums::ParameterRequired; 75 + pub use self::enums::ParameterRole; 76 + pub use self::enums::ParameterRsvp; 77 + pub use self::enums::ParameterScheduleagent; 78 + pub use self::enums::ParameterScheduleforcesend; 79 + pub use self::enums::ParameterStayinformed; 80 + pub use self::enums::ParameterSubstate; 81 + pub use self::enums::ParameterValue; 82 + pub use self::enums::ParameterXliccomparetype; 83 + pub use self::enums::ParameterXlicerrortype; 84 + pub use self::enums::ParserState; 85 + pub use self::enums::PropertyAction; 86 + pub use self::enums::PropertyBusytype; 87 + pub use self::enums::PropertyCarlevel; 88 + pub use self::enums::PropertyCmd; 89 + pub use self::enums::PropertyKind; 90 + pub use self::enums::PropertyMethod; 91 + pub use self::enums::PropertyPollcompletion; 92 + pub use self::enums::PropertyPollmode; 93 + pub use self::enums::PropertyQuerylevel; 94 + pub use self::enums::PropertyStatus; 95 + pub use self::enums::PropertyTaskmode; 96 + pub use self::enums::PropertyTransp; 97 + pub use self::enums::PropertyXlicclass; 98 + pub use self::enums::Property_Class; 99 + pub use self::enums::RecurrenceArrayMaxValues; 100 + pub use self::enums::RecurrenceArraySizes; 101 + pub use self::enums::RecurrenceFrequency; 102 + pub use self::enums::RecurrenceSkip; 103 + pub use self::enums::RecurrenceWeekday; 104 + pub use self::enums::RequestStatus; 105 + pub use self::enums::RestrictionKind; 106 + pub use self::enums::Unknowntokenhandling; 107 + pub use self::enums::ValueKind; 108 +
+1370
ical-glib/src/auto/parameter.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,ParameterAction,ParameterEnable,ParameterEncoding,ParameterFbtype,ParameterKind,ParameterLocal,ParameterPartstat,ParameterRange,ParameterRelated,ParameterReltype,ParameterRequired,ParameterRole,ParameterRsvp,ParameterScheduleagent,ParameterScheduleforcesend,ParameterStayinformed,ParameterSubstate,ParameterValue,ParameterXliccomparetype,ParameterXlicerrortype,Property,ValueKind}; 7 + #[cfg(feature = "v3_0_15")] 8 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 9 + use crate::{ParameterDisplay,ParameterFeature,ParameterPatchaction}; 10 + use glib::{translate::*}; 11 + 12 + glib::wrapper! { 13 + #[doc(alias = "ICalParameter")] 14 + pub struct Parameter(Object<ffi::ICalParameter, ffi::ICalParameterClass>); 15 + 16 + match fn { 17 + type_ => || ffi::i_cal_parameter_get_type(), 18 + } 19 + } 20 + 21 + impl Parameter { 22 + #[doc(alias = "i_cal_parameter_new")] 23 + pub fn new(v: ParameterKind) -> Parameter { 24 + assert_initialized_main_thread!(); 25 + unsafe { 26 + from_glib_full(ffi::i_cal_parameter_new(v.into_glib())) 27 + } 28 + } 29 + 30 + #[doc(alias = "i_cal_parameter_new_actionparam")] 31 + pub fn new_actionparam(v: ParameterAction) -> Parameter { 32 + assert_initialized_main_thread!(); 33 + unsafe { 34 + from_glib_full(ffi::i_cal_parameter_new_actionparam(v.into_glib())) 35 + } 36 + } 37 + 38 + #[doc(alias = "i_cal_parameter_new_altrep")] 39 + pub fn new_altrep(v: &str) -> Parameter { 40 + assert_initialized_main_thread!(); 41 + unsafe { 42 + from_glib_full(ffi::i_cal_parameter_new_altrep(v.to_glib_none().0)) 43 + } 44 + } 45 + 46 + #[doc(alias = "i_cal_parameter_new_charset")] 47 + pub fn new_charset(v: &str) -> Parameter { 48 + assert_initialized_main_thread!(); 49 + unsafe { 50 + from_glib_full(ffi::i_cal_parameter_new_charset(v.to_glib_none().0)) 51 + } 52 + } 53 + 54 + #[doc(alias = "i_cal_parameter_new_cn")] 55 + pub fn new_cn(v: &str) -> Parameter { 56 + assert_initialized_main_thread!(); 57 + unsafe { 58 + from_glib_full(ffi::i_cal_parameter_new_cn(v.to_glib_none().0)) 59 + } 60 + } 61 + 62 + //#[doc(alias = "i_cal_parameter_new_cutype")] 63 + //pub fn new_cutype(v: /*Ignored*/ParameterCutype) -> Parameter { 64 + // unsafe { TODO: call ffi:i_cal_parameter_new_cutype() } 65 + //} 66 + 67 + #[doc(alias = "i_cal_parameter_new_delegatedfrom")] 68 + pub fn new_delegatedfrom(v: &str) -> Parameter { 69 + assert_initialized_main_thread!(); 70 + unsafe { 71 + from_glib_full(ffi::i_cal_parameter_new_delegatedfrom(v.to_glib_none().0)) 72 + } 73 + } 74 + 75 + #[doc(alias = "i_cal_parameter_new_delegatedto")] 76 + pub fn new_delegatedto(v: &str) -> Parameter { 77 + assert_initialized_main_thread!(); 78 + unsafe { 79 + from_glib_full(ffi::i_cal_parameter_new_delegatedto(v.to_glib_none().0)) 80 + } 81 + } 82 + 83 + #[doc(alias = "i_cal_parameter_new_dir")] 84 + pub fn new_dir(v: &str) -> Parameter { 85 + assert_initialized_main_thread!(); 86 + unsafe { 87 + from_glib_full(ffi::i_cal_parameter_new_dir(v.to_glib_none().0)) 88 + } 89 + } 90 + 91 + #[cfg(feature = "v3_0_15")] 92 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 93 + #[doc(alias = "i_cal_parameter_new_display")] 94 + pub fn new_display(value: ParameterDisplay) -> Parameter { 95 + assert_initialized_main_thread!(); 96 + unsafe { 97 + from_glib_full(ffi::i_cal_parameter_new_display(value.into_glib())) 98 + } 99 + } 100 + 101 + #[cfg(feature = "v3_0_15")] 102 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 103 + #[doc(alias = "i_cal_parameter_new_email")] 104 + pub fn new_email(value: &str) -> Parameter { 105 + assert_initialized_main_thread!(); 106 + unsafe { 107 + from_glib_full(ffi::i_cal_parameter_new_email(value.to_glib_none().0)) 108 + } 109 + } 110 + 111 + #[doc(alias = "i_cal_parameter_new_enable")] 112 + pub fn new_enable(v: ParameterEnable) -> Parameter { 113 + assert_initialized_main_thread!(); 114 + unsafe { 115 + from_glib_full(ffi::i_cal_parameter_new_enable(v.into_glib())) 116 + } 117 + } 118 + 119 + #[doc(alias = "i_cal_parameter_new_encoding")] 120 + pub fn new_encoding(v: ParameterEncoding) -> Parameter { 121 + assert_initialized_main_thread!(); 122 + unsafe { 123 + from_glib_full(ffi::i_cal_parameter_new_encoding(v.into_glib())) 124 + } 125 + } 126 + 127 + #[doc(alias = "i_cal_parameter_new_fbtype")] 128 + pub fn new_fbtype(v: ParameterFbtype) -> Parameter { 129 + assert_initialized_main_thread!(); 130 + unsafe { 131 + from_glib_full(ffi::i_cal_parameter_new_fbtype(v.into_glib())) 132 + } 133 + } 134 + 135 + #[cfg(feature = "v3_0_15")] 136 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 137 + #[doc(alias = "i_cal_parameter_new_feature")] 138 + pub fn new_feature(value: ParameterFeature) -> Parameter { 139 + assert_initialized_main_thread!(); 140 + unsafe { 141 + from_glib_full(ffi::i_cal_parameter_new_feature(value.into_glib())) 142 + } 143 + } 144 + 145 + #[doc(alias = "i_cal_parameter_new_filename")] 146 + pub fn new_filename(v: &str) -> Parameter { 147 + assert_initialized_main_thread!(); 148 + unsafe { 149 + from_glib_full(ffi::i_cal_parameter_new_filename(v.to_glib_none().0)) 150 + } 151 + } 152 + 153 + #[doc(alias = "i_cal_parameter_new_fmttype")] 154 + pub fn new_fmttype(v: &str) -> Parameter { 155 + assert_initialized_main_thread!(); 156 + unsafe { 157 + from_glib_full(ffi::i_cal_parameter_new_fmttype(v.to_glib_none().0)) 158 + } 159 + } 160 + 161 + #[doc(alias = "i_cal_parameter_new_from_string")] 162 + #[doc(alias = "new_from_string")] 163 + pub fn from_string(value: &str) -> Parameter { 164 + assert_initialized_main_thread!(); 165 + unsafe { 166 + from_glib_full(ffi::i_cal_parameter_new_from_string(value.to_glib_none().0)) 167 + } 168 + } 169 + 170 + #[doc(alias = "i_cal_parameter_new_from_value_string")] 171 + #[doc(alias = "new_from_value_string")] 172 + pub fn from_value_string(kind: ParameterKind, value: &str) -> Parameter { 173 + assert_initialized_main_thread!(); 174 + unsafe { 175 + from_glib_full(ffi::i_cal_parameter_new_from_value_string(kind.into_glib(), value.to_glib_none().0)) 176 + } 177 + } 178 + 179 + //#[doc(alias = "i_cal_parameter_new_full")] 180 + //pub fn new_full(native: /*Ignored*/&mut icalparameter, owner: &impl IsA<glib::Object>) -> Parameter { 181 + // unsafe { TODO: call ffi:i_cal_parameter_new_full() } 182 + //} 183 + 184 + #[doc(alias = "i_cal_parameter_new_iana")] 185 + pub fn new_iana(v: &str) -> Parameter { 186 + assert_initialized_main_thread!(); 187 + unsafe { 188 + from_glib_full(ffi::i_cal_parameter_new_iana(v.to_glib_none().0)) 189 + } 190 + } 191 + 192 + #[doc(alias = "i_cal_parameter_new_id")] 193 + pub fn new_id(v: &str) -> Parameter { 194 + assert_initialized_main_thread!(); 195 + unsafe { 196 + from_glib_full(ffi::i_cal_parameter_new_id(v.to_glib_none().0)) 197 + } 198 + } 199 + 200 + #[cfg(feature = "v3_0_15")] 201 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 202 + #[doc(alias = "i_cal_parameter_new_label")] 203 + pub fn new_label(value: &str) -> Parameter { 204 + assert_initialized_main_thread!(); 205 + unsafe { 206 + from_glib_full(ffi::i_cal_parameter_new_label(value.to_glib_none().0)) 207 + } 208 + } 209 + 210 + #[doc(alias = "i_cal_parameter_new_language")] 211 + pub fn new_language(v: &str) -> Parameter { 212 + assert_initialized_main_thread!(); 213 + unsafe { 214 + from_glib_full(ffi::i_cal_parameter_new_language(v.to_glib_none().0)) 215 + } 216 + } 217 + 218 + #[doc(alias = "i_cal_parameter_new_latency")] 219 + pub fn new_latency(v: &str) -> Parameter { 220 + assert_initialized_main_thread!(); 221 + unsafe { 222 + from_glib_full(ffi::i_cal_parameter_new_latency(v.to_glib_none().0)) 223 + } 224 + } 225 + 226 + #[doc(alias = "i_cal_parameter_new_local")] 227 + pub fn new_local(v: ParameterLocal) -> Parameter { 228 + assert_initialized_main_thread!(); 229 + unsafe { 230 + from_glib_full(ffi::i_cal_parameter_new_local(v.into_glib())) 231 + } 232 + } 233 + 234 + #[doc(alias = "i_cal_parameter_new_localize")] 235 + pub fn new_localize(v: &str) -> Parameter { 236 + assert_initialized_main_thread!(); 237 + unsafe { 238 + from_glib_full(ffi::i_cal_parameter_new_localize(v.to_glib_none().0)) 239 + } 240 + } 241 + 242 + #[doc(alias = "i_cal_parameter_new_managedid")] 243 + pub fn new_managedid(v: &str) -> Parameter { 244 + assert_initialized_main_thread!(); 245 + unsafe { 246 + from_glib_full(ffi::i_cal_parameter_new_managedid(v.to_glib_none().0)) 247 + } 248 + } 249 + 250 + #[doc(alias = "i_cal_parameter_new_member")] 251 + pub fn new_member(v: &str) -> Parameter { 252 + assert_initialized_main_thread!(); 253 + unsafe { 254 + from_glib_full(ffi::i_cal_parameter_new_member(v.to_glib_none().0)) 255 + } 256 + } 257 + 258 + #[doc(alias = "i_cal_parameter_new_modified")] 259 + pub fn new_modified(v: &str) -> Parameter { 260 + assert_initialized_main_thread!(); 261 + unsafe { 262 + from_glib_full(ffi::i_cal_parameter_new_modified(v.to_glib_none().0)) 263 + } 264 + } 265 + 266 + #[doc(alias = "i_cal_parameter_new_options")] 267 + pub fn new_options(v: &str) -> Parameter { 268 + assert_initialized_main_thread!(); 269 + unsafe { 270 + from_glib_full(ffi::i_cal_parameter_new_options(v.to_glib_none().0)) 271 + } 272 + } 273 + 274 + #[doc(alias = "i_cal_parameter_new_partstat")] 275 + pub fn new_partstat(v: ParameterPartstat) -> Parameter { 276 + assert_initialized_main_thread!(); 277 + unsafe { 278 + from_glib_full(ffi::i_cal_parameter_new_partstat(v.into_glib())) 279 + } 280 + } 281 + 282 + #[cfg(feature = "v3_0_15")] 283 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 284 + #[doc(alias = "i_cal_parameter_new_patchaction")] 285 + pub fn new_patchaction(value: ParameterPatchaction) -> Parameter { 286 + assert_initialized_main_thread!(); 287 + unsafe { 288 + from_glib_full(ffi::i_cal_parameter_new_patchaction(value.into_glib())) 289 + } 290 + } 291 + 292 + #[doc(alias = "i_cal_parameter_new_publiccomment")] 293 + pub fn new_publiccomment(v: &str) -> Parameter { 294 + assert_initialized_main_thread!(); 295 + unsafe { 296 + from_glib_full(ffi::i_cal_parameter_new_publiccomment(v.to_glib_none().0)) 297 + } 298 + } 299 + 300 + #[doc(alias = "i_cal_parameter_new_range")] 301 + pub fn new_range(v: ParameterRange) -> Parameter { 302 + assert_initialized_main_thread!(); 303 + unsafe { 304 + from_glib_full(ffi::i_cal_parameter_new_range(v.into_glib())) 305 + } 306 + } 307 + 308 + #[doc(alias = "i_cal_parameter_new_reason")] 309 + pub fn new_reason(v: &str) -> Parameter { 310 + assert_initialized_main_thread!(); 311 + unsafe { 312 + from_glib_full(ffi::i_cal_parameter_new_reason(v.to_glib_none().0)) 313 + } 314 + } 315 + 316 + #[doc(alias = "i_cal_parameter_new_related")] 317 + pub fn new_related(v: ParameterRelated) -> Parameter { 318 + assert_initialized_main_thread!(); 319 + unsafe { 320 + from_glib_full(ffi::i_cal_parameter_new_related(v.into_glib())) 321 + } 322 + } 323 + 324 + #[doc(alias = "i_cal_parameter_new_reltype")] 325 + pub fn new_reltype(v: ParameterReltype) -> Parameter { 326 + assert_initialized_main_thread!(); 327 + unsafe { 328 + from_glib_full(ffi::i_cal_parameter_new_reltype(v.into_glib())) 329 + } 330 + } 331 + 332 + #[doc(alias = "i_cal_parameter_new_required")] 333 + pub fn new_required(v: ParameterRequired) -> Parameter { 334 + assert_initialized_main_thread!(); 335 + unsafe { 336 + from_glib_full(ffi::i_cal_parameter_new_required(v.into_glib())) 337 + } 338 + } 339 + 340 + #[doc(alias = "i_cal_parameter_new_response")] 341 + pub fn new_response(v: i32) -> Parameter { 342 + assert_initialized_main_thread!(); 343 + unsafe { 344 + from_glib_full(ffi::i_cal_parameter_new_response(v)) 345 + } 346 + } 347 + 348 + #[doc(alias = "i_cal_parameter_new_role")] 349 + pub fn new_role(v: ParameterRole) -> Parameter { 350 + assert_initialized_main_thread!(); 351 + unsafe { 352 + from_glib_full(ffi::i_cal_parameter_new_role(v.into_glib())) 353 + } 354 + } 355 + 356 + #[doc(alias = "i_cal_parameter_new_rsvp")] 357 + pub fn new_rsvp(v: ParameterRsvp) -> Parameter { 358 + assert_initialized_main_thread!(); 359 + unsafe { 360 + from_glib_full(ffi::i_cal_parameter_new_rsvp(v.into_glib())) 361 + } 362 + } 363 + 364 + #[doc(alias = "i_cal_parameter_new_scheduleagent")] 365 + pub fn new_scheduleagent(v: ParameterScheduleagent) -> Parameter { 366 + assert_initialized_main_thread!(); 367 + unsafe { 368 + from_glib_full(ffi::i_cal_parameter_new_scheduleagent(v.into_glib())) 369 + } 370 + } 371 + 372 + #[doc(alias = "i_cal_parameter_new_scheduleforcesend")] 373 + pub fn new_scheduleforcesend(v: ParameterScheduleforcesend) -> Parameter { 374 + assert_initialized_main_thread!(); 375 + unsafe { 376 + from_glib_full(ffi::i_cal_parameter_new_scheduleforcesend(v.into_glib())) 377 + } 378 + } 379 + 380 + #[doc(alias = "i_cal_parameter_new_schedulestatus")] 381 + pub fn new_schedulestatus(v: &str) -> Parameter { 382 + assert_initialized_main_thread!(); 383 + unsafe { 384 + from_glib_full(ffi::i_cal_parameter_new_schedulestatus(v.to_glib_none().0)) 385 + } 386 + } 387 + 388 + #[doc(alias = "i_cal_parameter_new_sentby")] 389 + pub fn new_sentby(v: &str) -> Parameter { 390 + assert_initialized_main_thread!(); 391 + unsafe { 392 + from_glib_full(ffi::i_cal_parameter_new_sentby(v.to_glib_none().0)) 393 + } 394 + } 395 + 396 + #[doc(alias = "i_cal_parameter_new_size")] 397 + pub fn new_size(v: &str) -> Parameter { 398 + assert_initialized_main_thread!(); 399 + unsafe { 400 + from_glib_full(ffi::i_cal_parameter_new_size(v.to_glib_none().0)) 401 + } 402 + } 403 + 404 + #[doc(alias = "i_cal_parameter_new_stayinformed")] 405 + pub fn new_stayinformed(v: ParameterStayinformed) -> Parameter { 406 + assert_initialized_main_thread!(); 407 + unsafe { 408 + from_glib_full(ffi::i_cal_parameter_new_stayinformed(v.into_glib())) 409 + } 410 + } 411 + 412 + #[doc(alias = "i_cal_parameter_new_substate")] 413 + pub fn new_substate(v: ParameterSubstate) -> Parameter { 414 + assert_initialized_main_thread!(); 415 + unsafe { 416 + from_glib_full(ffi::i_cal_parameter_new_substate(v.into_glib())) 417 + } 418 + } 419 + 420 + #[doc(alias = "i_cal_parameter_new_tzid")] 421 + pub fn new_tzid(v: &str) -> Parameter { 422 + assert_initialized_main_thread!(); 423 + unsafe { 424 + from_glib_full(ffi::i_cal_parameter_new_tzid(v.to_glib_none().0)) 425 + } 426 + } 427 + 428 + #[doc(alias = "i_cal_parameter_new_value")] 429 + pub fn new_value(v: ParameterValue) -> Parameter { 430 + assert_initialized_main_thread!(); 431 + unsafe { 432 + from_glib_full(ffi::i_cal_parameter_new_value(v.into_glib())) 433 + } 434 + } 435 + 436 + #[doc(alias = "i_cal_parameter_new_x")] 437 + pub fn new_x(v: &str) -> Parameter { 438 + assert_initialized_main_thread!(); 439 + unsafe { 440 + from_glib_full(ffi::i_cal_parameter_new_x(v.to_glib_none().0)) 441 + } 442 + } 443 + 444 + #[doc(alias = "i_cal_parameter_new_xliccomparetype")] 445 + pub fn new_xliccomparetype(v: ParameterXliccomparetype) -> Parameter { 446 + assert_initialized_main_thread!(); 447 + unsafe { 448 + from_glib_full(ffi::i_cal_parameter_new_xliccomparetype(v.into_glib())) 449 + } 450 + } 451 + 452 + #[doc(alias = "i_cal_parameter_new_xlicerrortype")] 453 + pub fn new_xlicerrortype(v: ParameterXlicerrortype) -> Parameter { 454 + assert_initialized_main_thread!(); 455 + unsafe { 456 + from_glib_full(ffi::i_cal_parameter_new_xlicerrortype(v.into_glib())) 457 + } 458 + } 459 + 460 + #[doc(alias = "i_cal_parameter_as_ical_string")] 461 + pub fn as_ical_string(&self) -> Option<glib::GString> { 462 + unsafe { 463 + from_glib_full(ffi::i_cal_parameter_as_ical_string(self.to_glib_none().0)) 464 + } 465 + } 466 + 467 + #[doc(alias = "i_cal_parameter_clone")] 468 + #[must_use] 469 + pub fn clone(&self) -> Option<Parameter> { 470 + unsafe { 471 + from_glib_full(ffi::i_cal_parameter_clone(self.to_glib_none().0)) 472 + } 473 + } 474 + 475 + #[doc(alias = "i_cal_parameter_get_actionparam")] 476 + #[doc(alias = "get_actionparam")] 477 + pub fn actionparam(&self) -> ParameterAction { 478 + unsafe { 479 + from_glib(ffi::i_cal_parameter_get_actionparam(self.to_glib_none().0)) 480 + } 481 + } 482 + 483 + #[doc(alias = "i_cal_parameter_get_altrep")] 484 + #[doc(alias = "get_altrep")] 485 + pub fn altrep(&self) -> Option<glib::GString> { 486 + unsafe { 487 + from_glib_none(ffi::i_cal_parameter_get_altrep(self.to_glib_none().0)) 488 + } 489 + } 490 + 491 + #[doc(alias = "i_cal_parameter_get_charset")] 492 + #[doc(alias = "get_charset")] 493 + pub fn charset(&self) -> Option<glib::GString> { 494 + unsafe { 495 + from_glib_none(ffi::i_cal_parameter_get_charset(self.to_glib_none().0)) 496 + } 497 + } 498 + 499 + #[doc(alias = "i_cal_parameter_get_cn")] 500 + #[doc(alias = "get_cn")] 501 + pub fn cn(&self) -> Option<glib::GString> { 502 + unsafe { 503 + from_glib_none(ffi::i_cal_parameter_get_cn(self.to_glib_none().0)) 504 + } 505 + } 506 + 507 + //#[doc(alias = "i_cal_parameter_get_cutype")] 508 + //#[doc(alias = "get_cutype")] 509 + //pub fn cutype(&self) -> /*Ignored*/Option<ParameterCutype> { 510 + // unsafe { TODO: call ffi:i_cal_parameter_get_cutype() } 511 + //} 512 + 513 + #[doc(alias = "i_cal_parameter_get_delegatedfrom")] 514 + #[doc(alias = "get_delegatedfrom")] 515 + pub fn delegatedfrom(&self) -> Option<glib::GString> { 516 + unsafe { 517 + from_glib_none(ffi::i_cal_parameter_get_delegatedfrom(self.to_glib_none().0)) 518 + } 519 + } 520 + 521 + #[doc(alias = "i_cal_parameter_get_delegatedto")] 522 + #[doc(alias = "get_delegatedto")] 523 + pub fn delegatedto(&self) -> Option<glib::GString> { 524 + unsafe { 525 + from_glib_none(ffi::i_cal_parameter_get_delegatedto(self.to_glib_none().0)) 526 + } 527 + } 528 + 529 + #[doc(alias = "i_cal_parameter_get_dir")] 530 + #[doc(alias = "get_dir")] 531 + pub fn dir(&self) -> Option<glib::GString> { 532 + unsafe { 533 + from_glib_none(ffi::i_cal_parameter_get_dir(self.to_glib_none().0)) 534 + } 535 + } 536 + 537 + #[cfg(feature = "v3_0_15")] 538 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 539 + #[doc(alias = "i_cal_parameter_get_display")] 540 + #[doc(alias = "get_display")] 541 + pub fn display(&self) -> ParameterDisplay { 542 + unsafe { 543 + from_glib(ffi::i_cal_parameter_get_display(self.to_glib_none().0)) 544 + } 545 + } 546 + 547 + #[cfg(feature = "v3_0_15")] 548 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 549 + #[doc(alias = "i_cal_parameter_get_email")] 550 + #[doc(alias = "get_email")] 551 + pub fn email(&self) -> Option<glib::GString> { 552 + unsafe { 553 + from_glib_none(ffi::i_cal_parameter_get_email(self.to_glib_none().0)) 554 + } 555 + } 556 + 557 + #[doc(alias = "i_cal_parameter_get_enable")] 558 + #[doc(alias = "get_enable")] 559 + pub fn enable(&self) -> ParameterEnable { 560 + unsafe { 561 + from_glib(ffi::i_cal_parameter_get_enable(self.to_glib_none().0)) 562 + } 563 + } 564 + 565 + #[doc(alias = "i_cal_parameter_get_encoding")] 566 + #[doc(alias = "get_encoding")] 567 + pub fn encoding(&self) -> ParameterEncoding { 568 + unsafe { 569 + from_glib(ffi::i_cal_parameter_get_encoding(self.to_glib_none().0)) 570 + } 571 + } 572 + 573 + #[doc(alias = "i_cal_parameter_get_fbtype")] 574 + #[doc(alias = "get_fbtype")] 575 + pub fn fbtype(&self) -> ParameterFbtype { 576 + unsafe { 577 + from_glib(ffi::i_cal_parameter_get_fbtype(self.to_glib_none().0)) 578 + } 579 + } 580 + 581 + #[cfg(feature = "v3_0_15")] 582 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 583 + #[doc(alias = "i_cal_parameter_get_feature")] 584 + #[doc(alias = "get_feature")] 585 + pub fn feature(&self) -> ParameterFeature { 586 + unsafe { 587 + from_glib(ffi::i_cal_parameter_get_feature(self.to_glib_none().0)) 588 + } 589 + } 590 + 591 + #[doc(alias = "i_cal_parameter_get_filename")] 592 + #[doc(alias = "get_filename")] 593 + pub fn filename(&self) -> Option<glib::GString> { 594 + unsafe { 595 + from_glib_none(ffi::i_cal_parameter_get_filename(self.to_glib_none().0)) 596 + } 597 + } 598 + 599 + #[doc(alias = "i_cal_parameter_get_fmttype")] 600 + #[doc(alias = "get_fmttype")] 601 + pub fn fmttype(&self) -> Option<glib::GString> { 602 + unsafe { 603 + from_glib_none(ffi::i_cal_parameter_get_fmttype(self.to_glib_none().0)) 604 + } 605 + } 606 + 607 + #[doc(alias = "i_cal_parameter_get_iana")] 608 + #[doc(alias = "get_iana")] 609 + pub fn iana(&self) -> Option<glib::GString> { 610 + unsafe { 611 + from_glib_none(ffi::i_cal_parameter_get_iana(self.to_glib_none().0)) 612 + } 613 + } 614 + 615 + #[doc(alias = "i_cal_parameter_get_iana_name")] 616 + #[doc(alias = "get_iana_name")] 617 + pub fn iana_name(&self) -> Option<glib::GString> { 618 + unsafe { 619 + from_glib_none(ffi::i_cal_parameter_get_iana_name(self.to_glib_none().0)) 620 + } 621 + } 622 + 623 + #[doc(alias = "i_cal_parameter_get_iana_value")] 624 + #[doc(alias = "get_iana_value")] 625 + pub fn iana_value(&self) -> Option<glib::GString> { 626 + unsafe { 627 + from_glib_none(ffi::i_cal_parameter_get_iana_value(self.to_glib_none().0)) 628 + } 629 + } 630 + 631 + #[doc(alias = "i_cal_parameter_get_id")] 632 + #[doc(alias = "get_id")] 633 + pub fn id(&self) -> Option<glib::GString> { 634 + unsafe { 635 + from_glib_none(ffi::i_cal_parameter_get_id(self.to_glib_none().0)) 636 + } 637 + } 638 + 639 + #[cfg(feature = "v3_0_15")] 640 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 641 + #[doc(alias = "i_cal_parameter_get_label")] 642 + #[doc(alias = "get_label")] 643 + pub fn label(&self) -> Option<glib::GString> { 644 + unsafe { 645 + from_glib_none(ffi::i_cal_parameter_get_label(self.to_glib_none().0)) 646 + } 647 + } 648 + 649 + #[doc(alias = "i_cal_parameter_get_language")] 650 + #[doc(alias = "get_language")] 651 + pub fn language(&self) -> Option<glib::GString> { 652 + unsafe { 653 + from_glib_none(ffi::i_cal_parameter_get_language(self.to_glib_none().0)) 654 + } 655 + } 656 + 657 + #[doc(alias = "i_cal_parameter_get_latency")] 658 + #[doc(alias = "get_latency")] 659 + pub fn latency(&self) -> Option<glib::GString> { 660 + unsafe { 661 + from_glib_none(ffi::i_cal_parameter_get_latency(self.to_glib_none().0)) 662 + } 663 + } 664 + 665 + #[doc(alias = "i_cal_parameter_get_local")] 666 + #[doc(alias = "get_local")] 667 + pub fn local(&self) -> ParameterLocal { 668 + unsafe { 669 + from_glib(ffi::i_cal_parameter_get_local(self.to_glib_none().0)) 670 + } 671 + } 672 + 673 + #[doc(alias = "i_cal_parameter_get_localize")] 674 + #[doc(alias = "get_localize")] 675 + pub fn localize(&self) -> Option<glib::GString> { 676 + unsafe { 677 + from_glib_none(ffi::i_cal_parameter_get_localize(self.to_glib_none().0)) 678 + } 679 + } 680 + 681 + #[doc(alias = "i_cal_parameter_get_managedid")] 682 + #[doc(alias = "get_managedid")] 683 + pub fn managedid(&self) -> Option<glib::GString> { 684 + unsafe { 685 + from_glib_none(ffi::i_cal_parameter_get_managedid(self.to_glib_none().0)) 686 + } 687 + } 688 + 689 + #[doc(alias = "i_cal_parameter_get_member")] 690 + #[doc(alias = "get_member")] 691 + pub fn member(&self) -> Option<glib::GString> { 692 + unsafe { 693 + from_glib_none(ffi::i_cal_parameter_get_member(self.to_glib_none().0)) 694 + } 695 + } 696 + 697 + #[doc(alias = "i_cal_parameter_get_modified")] 698 + #[doc(alias = "get_modified")] 699 + pub fn modified(&self) -> Option<glib::GString> { 700 + unsafe { 701 + from_glib_none(ffi::i_cal_parameter_get_modified(self.to_glib_none().0)) 702 + } 703 + } 704 + 705 + #[doc(alias = "i_cal_parameter_get_options")] 706 + #[doc(alias = "get_options")] 707 + pub fn options(&self) -> Option<glib::GString> { 708 + unsafe { 709 + from_glib_none(ffi::i_cal_parameter_get_options(self.to_glib_none().0)) 710 + } 711 + } 712 + 713 + #[doc(alias = "i_cal_parameter_get_parent")] 714 + #[doc(alias = "get_parent")] 715 + pub fn parent(&self) -> Option<Property> { 716 + unsafe { 717 + from_glib_full(ffi::i_cal_parameter_get_parent(self.to_glib_none().0)) 718 + } 719 + } 720 + 721 + #[doc(alias = "i_cal_parameter_get_partstat")] 722 + #[doc(alias = "get_partstat")] 723 + pub fn partstat(&self) -> ParameterPartstat { 724 + unsafe { 725 + from_glib(ffi::i_cal_parameter_get_partstat(self.to_glib_none().0)) 726 + } 727 + } 728 + 729 + #[cfg(feature = "v3_0_15")] 730 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 731 + #[doc(alias = "i_cal_parameter_get_patchaction")] 732 + #[doc(alias = "get_patchaction")] 733 + pub fn patchaction(&self) -> ParameterPatchaction { 734 + unsafe { 735 + from_glib(ffi::i_cal_parameter_get_patchaction(self.to_glib_none().0)) 736 + } 737 + } 738 + 739 + #[doc(alias = "i_cal_parameter_get_publiccomment")] 740 + #[doc(alias = "get_publiccomment")] 741 + pub fn publiccomment(&self) -> Option<glib::GString> { 742 + unsafe { 743 + from_glib_none(ffi::i_cal_parameter_get_publiccomment(self.to_glib_none().0)) 744 + } 745 + } 746 + 747 + #[doc(alias = "i_cal_parameter_get_range")] 748 + #[doc(alias = "get_range")] 749 + pub fn range(&self) -> ParameterRange { 750 + unsafe { 751 + from_glib(ffi::i_cal_parameter_get_range(self.to_glib_none().0)) 752 + } 753 + } 754 + 755 + #[doc(alias = "i_cal_parameter_get_reason")] 756 + #[doc(alias = "get_reason")] 757 + pub fn reason(&self) -> Option<glib::GString> { 758 + unsafe { 759 + from_glib_none(ffi::i_cal_parameter_get_reason(self.to_glib_none().0)) 760 + } 761 + } 762 + 763 + #[doc(alias = "i_cal_parameter_get_related")] 764 + #[doc(alias = "get_related")] 765 + pub fn related(&self) -> ParameterRelated { 766 + unsafe { 767 + from_glib(ffi::i_cal_parameter_get_related(self.to_glib_none().0)) 768 + } 769 + } 770 + 771 + #[doc(alias = "i_cal_parameter_get_reltype")] 772 + #[doc(alias = "get_reltype")] 773 + pub fn reltype(&self) -> ParameterReltype { 774 + unsafe { 775 + from_glib(ffi::i_cal_parameter_get_reltype(self.to_glib_none().0)) 776 + } 777 + } 778 + 779 + #[doc(alias = "i_cal_parameter_get_required")] 780 + #[doc(alias = "get_required")] 781 + pub fn required(&self) -> ParameterRequired { 782 + unsafe { 783 + from_glib(ffi::i_cal_parameter_get_required(self.to_glib_none().0)) 784 + } 785 + } 786 + 787 + #[doc(alias = "i_cal_parameter_get_response")] 788 + #[doc(alias = "get_response")] 789 + pub fn response(&self) -> i32 { 790 + unsafe { 791 + ffi::i_cal_parameter_get_response(self.to_glib_none().0) 792 + } 793 + } 794 + 795 + #[doc(alias = "i_cal_parameter_get_role")] 796 + #[doc(alias = "get_role")] 797 + pub fn role(&self) -> ParameterRole { 798 + unsafe { 799 + from_glib(ffi::i_cal_parameter_get_role(self.to_glib_none().0)) 800 + } 801 + } 802 + 803 + #[doc(alias = "i_cal_parameter_get_rsvp")] 804 + #[doc(alias = "get_rsvp")] 805 + pub fn rsvp(&self) -> ParameterRsvp { 806 + unsafe { 807 + from_glib(ffi::i_cal_parameter_get_rsvp(self.to_glib_none().0)) 808 + } 809 + } 810 + 811 + #[doc(alias = "i_cal_parameter_get_scheduleagent")] 812 + #[doc(alias = "get_scheduleagent")] 813 + pub fn scheduleagent(&self) -> ParameterScheduleagent { 814 + unsafe { 815 + from_glib(ffi::i_cal_parameter_get_scheduleagent(self.to_glib_none().0)) 816 + } 817 + } 818 + 819 + #[doc(alias = "i_cal_parameter_get_scheduleforcesend")] 820 + #[doc(alias = "get_scheduleforcesend")] 821 + pub fn scheduleforcesend(&self) -> ParameterScheduleforcesend { 822 + unsafe { 823 + from_glib(ffi::i_cal_parameter_get_scheduleforcesend(self.to_glib_none().0)) 824 + } 825 + } 826 + 827 + #[doc(alias = "i_cal_parameter_get_schedulestatus")] 828 + #[doc(alias = "get_schedulestatus")] 829 + pub fn schedulestatus(&self) -> Option<glib::GString> { 830 + unsafe { 831 + from_glib_none(ffi::i_cal_parameter_get_schedulestatus(self.to_glib_none().0)) 832 + } 833 + } 834 + 835 + #[doc(alias = "i_cal_parameter_get_sentby")] 836 + #[doc(alias = "get_sentby")] 837 + pub fn sentby(&self) -> Option<glib::GString> { 838 + unsafe { 839 + from_glib_none(ffi::i_cal_parameter_get_sentby(self.to_glib_none().0)) 840 + } 841 + } 842 + 843 + #[doc(alias = "i_cal_parameter_get_size")] 844 + #[doc(alias = "get_size")] 845 + pub fn size(&self) -> Option<glib::GString> { 846 + unsafe { 847 + from_glib_none(ffi::i_cal_parameter_get_size(self.to_glib_none().0)) 848 + } 849 + } 850 + 851 + #[doc(alias = "i_cal_parameter_get_stayinformed")] 852 + #[doc(alias = "get_stayinformed")] 853 + pub fn stayinformed(&self) -> ParameterStayinformed { 854 + unsafe { 855 + from_glib(ffi::i_cal_parameter_get_stayinformed(self.to_glib_none().0)) 856 + } 857 + } 858 + 859 + #[doc(alias = "i_cal_parameter_get_substate")] 860 + #[doc(alias = "get_substate")] 861 + pub fn substate(&self) -> ParameterSubstate { 862 + unsafe { 863 + from_glib(ffi::i_cal_parameter_get_substate(self.to_glib_none().0)) 864 + } 865 + } 866 + 867 + #[doc(alias = "i_cal_parameter_get_tzid")] 868 + #[doc(alias = "get_tzid")] 869 + pub fn tzid(&self) -> Option<glib::GString> { 870 + unsafe { 871 + from_glib_none(ffi::i_cal_parameter_get_tzid(self.to_glib_none().0)) 872 + } 873 + } 874 + 875 + #[doc(alias = "i_cal_parameter_get_value")] 876 + #[doc(alias = "get_value")] 877 + pub fn value(&self) -> ParameterValue { 878 + unsafe { 879 + from_glib(ffi::i_cal_parameter_get_value(self.to_glib_none().0)) 880 + } 881 + } 882 + 883 + #[doc(alias = "i_cal_parameter_get_x")] 884 + #[doc(alias = "get_x")] 885 + pub fn x(&self) -> Option<glib::GString> { 886 + unsafe { 887 + from_glib_none(ffi::i_cal_parameter_get_x(self.to_glib_none().0)) 888 + } 889 + } 890 + 891 + #[doc(alias = "i_cal_parameter_get_xliccomparetype")] 892 + #[doc(alias = "get_xliccomparetype")] 893 + pub fn xliccomparetype(&self) -> ParameterXliccomparetype { 894 + unsafe { 895 + from_glib(ffi::i_cal_parameter_get_xliccomparetype(self.to_glib_none().0)) 896 + } 897 + } 898 + 899 + #[doc(alias = "i_cal_parameter_get_xlicerrortype")] 900 + #[doc(alias = "get_xlicerrortype")] 901 + pub fn xlicerrortype(&self) -> ParameterXlicerrortype { 902 + unsafe { 903 + from_glib(ffi::i_cal_parameter_get_xlicerrortype(self.to_glib_none().0)) 904 + } 905 + } 906 + 907 + #[doc(alias = "i_cal_parameter_get_xname")] 908 + #[doc(alias = "get_xname")] 909 + pub fn xname(&self) -> Option<glib::GString> { 910 + unsafe { 911 + from_glib_none(ffi::i_cal_parameter_get_xname(self.to_glib_none().0)) 912 + } 913 + } 914 + 915 + #[doc(alias = "i_cal_parameter_get_xvalue")] 916 + #[doc(alias = "get_xvalue")] 917 + pub fn xvalue(&self) -> Option<glib::GString> { 918 + unsafe { 919 + from_glib_none(ffi::i_cal_parameter_get_xvalue(self.to_glib_none().0)) 920 + } 921 + } 922 + 923 + #[doc(alias = "i_cal_parameter_has_same_name")] 924 + pub fn has_same_name(&self, param2: &Parameter) -> i32 { 925 + unsafe { 926 + ffi::i_cal_parameter_has_same_name(self.to_glib_none().0, param2.to_glib_none().0) 927 + } 928 + } 929 + 930 + #[doc(alias = "i_cal_parameter_isa")] 931 + pub fn isa(&self) -> ParameterKind { 932 + unsafe { 933 + from_glib(ffi::i_cal_parameter_isa(self.to_glib_none().0)) 934 + } 935 + } 936 + 937 + #[doc(alias = "i_cal_parameter_isa_parameter")] 938 + pub fn isa_parameter(&self) -> i32 { 939 + unsafe { 940 + ffi::i_cal_parameter_isa_parameter(self.to_glib_none().0) 941 + } 942 + } 943 + 944 + #[doc(alias = "i_cal_parameter_set_actionparam")] 945 + pub fn set_actionparam(&self, v: ParameterAction) { 946 + unsafe { 947 + ffi::i_cal_parameter_set_actionparam(self.to_glib_none().0, v.into_glib()); 948 + } 949 + } 950 + 951 + #[doc(alias = "i_cal_parameter_set_altrep")] 952 + pub fn set_altrep(&self, v: &str) { 953 + unsafe { 954 + ffi::i_cal_parameter_set_altrep(self.to_glib_none().0, v.to_glib_none().0); 955 + } 956 + } 957 + 958 + #[doc(alias = "i_cal_parameter_set_charset")] 959 + pub fn set_charset(&self, v: &str) { 960 + unsafe { 961 + ffi::i_cal_parameter_set_charset(self.to_glib_none().0, v.to_glib_none().0); 962 + } 963 + } 964 + 965 + #[doc(alias = "i_cal_parameter_set_cn")] 966 + pub fn set_cn(&self, v: &str) { 967 + unsafe { 968 + ffi::i_cal_parameter_set_cn(self.to_glib_none().0, v.to_glib_none().0); 969 + } 970 + } 971 + 972 + //#[doc(alias = "i_cal_parameter_set_cutype")] 973 + //pub fn set_cutype(&self, v: /*Ignored*/ParameterCutype) { 974 + // unsafe { TODO: call ffi:i_cal_parameter_set_cutype() } 975 + //} 976 + 977 + #[doc(alias = "i_cal_parameter_set_delegatedfrom")] 978 + pub fn set_delegatedfrom(&self, v: &str) { 979 + unsafe { 980 + ffi::i_cal_parameter_set_delegatedfrom(self.to_glib_none().0, v.to_glib_none().0); 981 + } 982 + } 983 + 984 + #[doc(alias = "i_cal_parameter_set_delegatedto")] 985 + pub fn set_delegatedto(&self, v: &str) { 986 + unsafe { 987 + ffi::i_cal_parameter_set_delegatedto(self.to_glib_none().0, v.to_glib_none().0); 988 + } 989 + } 990 + 991 + #[doc(alias = "i_cal_parameter_set_dir")] 992 + pub fn set_dir(&self, v: &str) { 993 + unsafe { 994 + ffi::i_cal_parameter_set_dir(self.to_glib_none().0, v.to_glib_none().0); 995 + } 996 + } 997 + 998 + #[cfg(feature = "v3_0_15")] 999 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 1000 + #[doc(alias = "i_cal_parameter_set_display")] 1001 + pub fn set_display(&self, value: ParameterDisplay) { 1002 + unsafe { 1003 + ffi::i_cal_parameter_set_display(self.to_glib_none().0, value.into_glib()); 1004 + } 1005 + } 1006 + 1007 + #[cfg(feature = "v3_0_15")] 1008 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 1009 + #[doc(alias = "i_cal_parameter_set_email")] 1010 + pub fn set_email(&self, value: &str) { 1011 + unsafe { 1012 + ffi::i_cal_parameter_set_email(self.to_glib_none().0, value.to_glib_none().0); 1013 + } 1014 + } 1015 + 1016 + #[doc(alias = "i_cal_parameter_set_enable")] 1017 + pub fn set_enable(&self, v: ParameterEnable) { 1018 + unsafe { 1019 + ffi::i_cal_parameter_set_enable(self.to_glib_none().0, v.into_glib()); 1020 + } 1021 + } 1022 + 1023 + #[doc(alias = "i_cal_parameter_set_encoding")] 1024 + pub fn set_encoding(&self, v: ParameterEncoding) { 1025 + unsafe { 1026 + ffi::i_cal_parameter_set_encoding(self.to_glib_none().0, v.into_glib()); 1027 + } 1028 + } 1029 + 1030 + #[doc(alias = "i_cal_parameter_set_fbtype")] 1031 + pub fn set_fbtype(&self, v: ParameterFbtype) { 1032 + unsafe { 1033 + ffi::i_cal_parameter_set_fbtype(self.to_glib_none().0, v.into_glib()); 1034 + } 1035 + } 1036 + 1037 + #[cfg(feature = "v3_0_15")] 1038 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 1039 + #[doc(alias = "i_cal_parameter_set_feature")] 1040 + pub fn set_feature(&self, value: ParameterFeature) { 1041 + unsafe { 1042 + ffi::i_cal_parameter_set_feature(self.to_glib_none().0, value.into_glib()); 1043 + } 1044 + } 1045 + 1046 + #[doc(alias = "i_cal_parameter_set_filename")] 1047 + pub fn set_filename(&self, v: &str) { 1048 + unsafe { 1049 + ffi::i_cal_parameter_set_filename(self.to_glib_none().0, v.to_glib_none().0); 1050 + } 1051 + } 1052 + 1053 + #[doc(alias = "i_cal_parameter_set_fmttype")] 1054 + pub fn set_fmttype(&self, v: &str) { 1055 + unsafe { 1056 + ffi::i_cal_parameter_set_fmttype(self.to_glib_none().0, v.to_glib_none().0); 1057 + } 1058 + } 1059 + 1060 + #[doc(alias = "i_cal_parameter_set_iana")] 1061 + pub fn set_iana(&self, v: &str) { 1062 + unsafe { 1063 + ffi::i_cal_parameter_set_iana(self.to_glib_none().0, v.to_glib_none().0); 1064 + } 1065 + } 1066 + 1067 + #[doc(alias = "i_cal_parameter_set_iana_name")] 1068 + pub fn set_iana_name(&self, v: &str) { 1069 + unsafe { 1070 + ffi::i_cal_parameter_set_iana_name(self.to_glib_none().0, v.to_glib_none().0); 1071 + } 1072 + } 1073 + 1074 + #[doc(alias = "i_cal_parameter_set_iana_value")] 1075 + pub fn set_iana_value(&self, v: &str) { 1076 + unsafe { 1077 + ffi::i_cal_parameter_set_iana_value(self.to_glib_none().0, v.to_glib_none().0); 1078 + } 1079 + } 1080 + 1081 + #[doc(alias = "i_cal_parameter_set_id")] 1082 + pub fn set_id(&self, v: &str) { 1083 + unsafe { 1084 + ffi::i_cal_parameter_set_id(self.to_glib_none().0, v.to_glib_none().0); 1085 + } 1086 + } 1087 + 1088 + #[cfg(feature = "v3_0_15")] 1089 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 1090 + #[doc(alias = "i_cal_parameter_set_label")] 1091 + pub fn set_label(&self, value: &str) { 1092 + unsafe { 1093 + ffi::i_cal_parameter_set_label(self.to_glib_none().0, value.to_glib_none().0); 1094 + } 1095 + } 1096 + 1097 + #[doc(alias = "i_cal_parameter_set_language")] 1098 + pub fn set_language(&self, v: &str) { 1099 + unsafe { 1100 + ffi::i_cal_parameter_set_language(self.to_glib_none().0, v.to_glib_none().0); 1101 + } 1102 + } 1103 + 1104 + #[doc(alias = "i_cal_parameter_set_latency")] 1105 + pub fn set_latency(&self, v: &str) { 1106 + unsafe { 1107 + ffi::i_cal_parameter_set_latency(self.to_glib_none().0, v.to_glib_none().0); 1108 + } 1109 + } 1110 + 1111 + #[doc(alias = "i_cal_parameter_set_local")] 1112 + pub fn set_local(&self, v: ParameterLocal) { 1113 + unsafe { 1114 + ffi::i_cal_parameter_set_local(self.to_glib_none().0, v.into_glib()); 1115 + } 1116 + } 1117 + 1118 + #[doc(alias = "i_cal_parameter_set_localize")] 1119 + pub fn set_localize(&self, v: &str) { 1120 + unsafe { 1121 + ffi::i_cal_parameter_set_localize(self.to_glib_none().0, v.to_glib_none().0); 1122 + } 1123 + } 1124 + 1125 + #[doc(alias = "i_cal_parameter_set_managedid")] 1126 + pub fn set_managedid(&self, v: &str) { 1127 + unsafe { 1128 + ffi::i_cal_parameter_set_managedid(self.to_glib_none().0, v.to_glib_none().0); 1129 + } 1130 + } 1131 + 1132 + #[doc(alias = "i_cal_parameter_set_member")] 1133 + pub fn set_member(&self, v: &str) { 1134 + unsafe { 1135 + ffi::i_cal_parameter_set_member(self.to_glib_none().0, v.to_glib_none().0); 1136 + } 1137 + } 1138 + 1139 + #[doc(alias = "i_cal_parameter_set_modified")] 1140 + pub fn set_modified(&self, v: &str) { 1141 + unsafe { 1142 + ffi::i_cal_parameter_set_modified(self.to_glib_none().0, v.to_glib_none().0); 1143 + } 1144 + } 1145 + 1146 + #[doc(alias = "i_cal_parameter_set_options")] 1147 + pub fn set_options(&self, v: &str) { 1148 + unsafe { 1149 + ffi::i_cal_parameter_set_options(self.to_glib_none().0, v.to_glib_none().0); 1150 + } 1151 + } 1152 + 1153 + #[doc(alias = "i_cal_parameter_set_parent")] 1154 + pub fn set_parent(&self, property: Option<&Property>) { 1155 + unsafe { 1156 + ffi::i_cal_parameter_set_parent(self.to_glib_none().0, property.to_glib_none().0); 1157 + } 1158 + } 1159 + 1160 + #[doc(alias = "i_cal_parameter_set_partstat")] 1161 + pub fn set_partstat(&self, v: ParameterPartstat) { 1162 + unsafe { 1163 + ffi::i_cal_parameter_set_partstat(self.to_glib_none().0, v.into_glib()); 1164 + } 1165 + } 1166 + 1167 + #[cfg(feature = "v3_0_15")] 1168 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_15")))] 1169 + #[doc(alias = "i_cal_parameter_set_patchaction")] 1170 + pub fn set_patchaction(&self, value: ParameterPatchaction) { 1171 + unsafe { 1172 + ffi::i_cal_parameter_set_patchaction(self.to_glib_none().0, value.into_glib()); 1173 + } 1174 + } 1175 + 1176 + #[doc(alias = "i_cal_parameter_set_publiccomment")] 1177 + pub fn set_publiccomment(&self, v: &str) { 1178 + unsafe { 1179 + ffi::i_cal_parameter_set_publiccomment(self.to_glib_none().0, v.to_glib_none().0); 1180 + } 1181 + } 1182 + 1183 + #[doc(alias = "i_cal_parameter_set_range")] 1184 + pub fn set_range(&self, v: ParameterRange) { 1185 + unsafe { 1186 + ffi::i_cal_parameter_set_range(self.to_glib_none().0, v.into_glib()); 1187 + } 1188 + } 1189 + 1190 + #[doc(alias = "i_cal_parameter_set_reason")] 1191 + pub fn set_reason(&self, v: &str) { 1192 + unsafe { 1193 + ffi::i_cal_parameter_set_reason(self.to_glib_none().0, v.to_glib_none().0); 1194 + } 1195 + } 1196 + 1197 + #[doc(alias = "i_cal_parameter_set_related")] 1198 + pub fn set_related(&self, v: ParameterRelated) { 1199 + unsafe { 1200 + ffi::i_cal_parameter_set_related(self.to_glib_none().0, v.into_glib()); 1201 + } 1202 + } 1203 + 1204 + #[doc(alias = "i_cal_parameter_set_reltype")] 1205 + pub fn set_reltype(&self, v: ParameterReltype) { 1206 + unsafe { 1207 + ffi::i_cal_parameter_set_reltype(self.to_glib_none().0, v.into_glib()); 1208 + } 1209 + } 1210 + 1211 + #[doc(alias = "i_cal_parameter_set_required")] 1212 + pub fn set_required(&self, v: ParameterRequired) { 1213 + unsafe { 1214 + ffi::i_cal_parameter_set_required(self.to_glib_none().0, v.into_glib()); 1215 + } 1216 + } 1217 + 1218 + #[doc(alias = "i_cal_parameter_set_response")] 1219 + pub fn set_response(&self, v: i32) { 1220 + unsafe { 1221 + ffi::i_cal_parameter_set_response(self.to_glib_none().0, v); 1222 + } 1223 + } 1224 + 1225 + #[doc(alias = "i_cal_parameter_set_role")] 1226 + pub fn set_role(&self, v: ParameterRole) { 1227 + unsafe { 1228 + ffi::i_cal_parameter_set_role(self.to_glib_none().0, v.into_glib()); 1229 + } 1230 + } 1231 + 1232 + #[doc(alias = "i_cal_parameter_set_rsvp")] 1233 + pub fn set_rsvp(&self, v: ParameterRsvp) { 1234 + unsafe { 1235 + ffi::i_cal_parameter_set_rsvp(self.to_glib_none().0, v.into_glib()); 1236 + } 1237 + } 1238 + 1239 + #[doc(alias = "i_cal_parameter_set_scheduleagent")] 1240 + pub fn set_scheduleagent(&self, v: ParameterScheduleagent) { 1241 + unsafe { 1242 + ffi::i_cal_parameter_set_scheduleagent(self.to_glib_none().0, v.into_glib()); 1243 + } 1244 + } 1245 + 1246 + #[doc(alias = "i_cal_parameter_set_scheduleforcesend")] 1247 + pub fn set_scheduleforcesend(&self, v: ParameterScheduleforcesend) { 1248 + unsafe { 1249 + ffi::i_cal_parameter_set_scheduleforcesend(self.to_glib_none().0, v.into_glib()); 1250 + } 1251 + } 1252 + 1253 + #[doc(alias = "i_cal_parameter_set_schedulestatus")] 1254 + pub fn set_schedulestatus(&self, v: &str) { 1255 + unsafe { 1256 + ffi::i_cal_parameter_set_schedulestatus(self.to_glib_none().0, v.to_glib_none().0); 1257 + } 1258 + } 1259 + 1260 + #[doc(alias = "i_cal_parameter_set_sentby")] 1261 + pub fn set_sentby(&self, v: &str) { 1262 + unsafe { 1263 + ffi::i_cal_parameter_set_sentby(self.to_glib_none().0, v.to_glib_none().0); 1264 + } 1265 + } 1266 + 1267 + #[doc(alias = "i_cal_parameter_set_size")] 1268 + pub fn set_size(&self, v: &str) { 1269 + unsafe { 1270 + ffi::i_cal_parameter_set_size(self.to_glib_none().0, v.to_glib_none().0); 1271 + } 1272 + } 1273 + 1274 + #[doc(alias = "i_cal_parameter_set_stayinformed")] 1275 + pub fn set_stayinformed(&self, v: ParameterStayinformed) { 1276 + unsafe { 1277 + ffi::i_cal_parameter_set_stayinformed(self.to_glib_none().0, v.into_glib()); 1278 + } 1279 + } 1280 + 1281 + #[doc(alias = "i_cal_parameter_set_substate")] 1282 + pub fn set_substate(&self, v: ParameterSubstate) { 1283 + unsafe { 1284 + ffi::i_cal_parameter_set_substate(self.to_glib_none().0, v.into_glib()); 1285 + } 1286 + } 1287 + 1288 + #[doc(alias = "i_cal_parameter_set_tzid")] 1289 + pub fn set_tzid(&self, v: &str) { 1290 + unsafe { 1291 + ffi::i_cal_parameter_set_tzid(self.to_glib_none().0, v.to_glib_none().0); 1292 + } 1293 + } 1294 + 1295 + #[doc(alias = "i_cal_parameter_set_value")] 1296 + pub fn set_value(&self, v: ParameterValue) { 1297 + unsafe { 1298 + ffi::i_cal_parameter_set_value(self.to_glib_none().0, v.into_glib()); 1299 + } 1300 + } 1301 + 1302 + #[doc(alias = "i_cal_parameter_set_x")] 1303 + pub fn set_x(&self, v: &str) { 1304 + unsafe { 1305 + ffi::i_cal_parameter_set_x(self.to_glib_none().0, v.to_glib_none().0); 1306 + } 1307 + } 1308 + 1309 + #[doc(alias = "i_cal_parameter_set_xliccomparetype")] 1310 + pub fn set_xliccomparetype(&self, v: ParameterXliccomparetype) { 1311 + unsafe { 1312 + ffi::i_cal_parameter_set_xliccomparetype(self.to_glib_none().0, v.into_glib()); 1313 + } 1314 + } 1315 + 1316 + #[doc(alias = "i_cal_parameter_set_xlicerrortype")] 1317 + pub fn set_xlicerrortype(&self, v: ParameterXlicerrortype) { 1318 + unsafe { 1319 + ffi::i_cal_parameter_set_xlicerrortype(self.to_glib_none().0, v.into_glib()); 1320 + } 1321 + } 1322 + 1323 + #[doc(alias = "i_cal_parameter_set_xname")] 1324 + pub fn set_xname(&self, v: &str) { 1325 + unsafe { 1326 + ffi::i_cal_parameter_set_xname(self.to_glib_none().0, v.to_glib_none().0); 1327 + } 1328 + } 1329 + 1330 + #[doc(alias = "i_cal_parameter_set_xvalue")] 1331 + pub fn set_xvalue(&self, v: &str) { 1332 + unsafe { 1333 + ffi::i_cal_parameter_set_xvalue(self.to_glib_none().0, v.to_glib_none().0); 1334 + } 1335 + } 1336 + 1337 + #[doc(alias = "i_cal_parameter_kind_from_string")] 1338 + pub fn kind_from_string(string: &str) -> ParameterKind { 1339 + assert_initialized_main_thread!(); 1340 + unsafe { 1341 + from_glib(ffi::i_cal_parameter_kind_from_string(string.to_glib_none().0)) 1342 + } 1343 + } 1344 + 1345 + #[cfg(feature = "v3_0_5")] 1346 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 1347 + #[doc(alias = "i_cal_parameter_kind_is_valid")] 1348 + pub fn kind_is_valid(kind: ParameterKind) -> bool { 1349 + assert_initialized_main_thread!(); 1350 + unsafe { 1351 + from_glib(ffi::i_cal_parameter_kind_is_valid(kind.into_glib())) 1352 + } 1353 + } 1354 + 1355 + #[doc(alias = "i_cal_parameter_kind_to_string")] 1356 + pub fn kind_to_string(kind: ParameterKind) -> Option<glib::GString> { 1357 + assert_initialized_main_thread!(); 1358 + unsafe { 1359 + from_glib_none(ffi::i_cal_parameter_kind_to_string(kind.into_glib())) 1360 + } 1361 + } 1362 + 1363 + #[doc(alias = "i_cal_parameter_value_to_value_kind")] 1364 + pub fn value_to_value_kind(value: ParameterValue) -> ValueKind { 1365 + assert_initialized_main_thread!(); 1366 + unsafe { 1367 + from_glib(ffi::i_cal_parameter_value_to_value_kind(value.into_glib())) 1368 + } 1369 + } 1370 + }
+106
ical-glib/src/auto/period.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Duration,Time}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalPeriod")] 11 + pub struct Period(Object<ffi::ICalPeriod, ffi::ICalPeriodClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_period_get_type(), 15 + } 16 + } 17 + 18 + impl Period { 19 + #[doc(alias = "i_cal_period_new_from_string")] 20 + #[doc(alias = "new_from_string")] 21 + pub fn from_string(str: &str) -> Period { 22 + assert_initialized_main_thread!(); 23 + unsafe { 24 + from_glib_full(ffi::i_cal_period_new_from_string(str.to_glib_none().0)) 25 + } 26 + } 27 + 28 + //#[doc(alias = "i_cal_period_new_full")] 29 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Period { 30 + // unsafe { TODO: call ffi:i_cal_period_new_full() } 31 + //} 32 + 33 + #[doc(alias = "i_cal_period_new_null_period")] 34 + pub fn new_null_period() -> Period { 35 + assert_initialized_main_thread!(); 36 + unsafe { 37 + from_glib_full(ffi::i_cal_period_new_null_period()) 38 + } 39 + } 40 + 41 + #[doc(alias = "i_cal_period_as_ical_string")] 42 + pub fn as_ical_string(&self) -> Option<glib::GString> { 43 + unsafe { 44 + from_glib_full(ffi::i_cal_period_as_ical_string(self.to_glib_none().0)) 45 + } 46 + } 47 + 48 + #[doc(alias = "i_cal_period_get_duration")] 49 + #[doc(alias = "get_duration")] 50 + pub fn duration(&self) -> Option<Duration> { 51 + unsafe { 52 + from_glib_full(ffi::i_cal_period_get_duration(self.to_glib_none().0)) 53 + } 54 + } 55 + 56 + #[doc(alias = "i_cal_period_get_end")] 57 + #[doc(alias = "get_end")] 58 + pub fn end(&self) -> Option<Time> { 59 + unsafe { 60 + from_glib_full(ffi::i_cal_period_get_end(self.to_glib_none().0)) 61 + } 62 + } 63 + 64 + #[doc(alias = "i_cal_period_get_start")] 65 + #[doc(alias = "get_start")] 66 + pub fn start(&self) -> Option<Time> { 67 + unsafe { 68 + from_glib_full(ffi::i_cal_period_get_start(self.to_glib_none().0)) 69 + } 70 + } 71 + 72 + #[doc(alias = "i_cal_period_is_null_period")] 73 + pub fn is_null_period(&self) -> bool { 74 + unsafe { 75 + from_glib(ffi::i_cal_period_is_null_period(self.to_glib_none().0)) 76 + } 77 + } 78 + 79 + #[doc(alias = "i_cal_period_is_valid_period")] 80 + pub fn is_valid_period(&self) -> bool { 81 + unsafe { 82 + from_glib(ffi::i_cal_period_is_valid_period(self.to_glib_none().0)) 83 + } 84 + } 85 + 86 + #[doc(alias = "i_cal_period_set_duration")] 87 + pub fn set_duration(&self, duration: &Duration) { 88 + unsafe { 89 + ffi::i_cal_period_set_duration(self.to_glib_none().0, duration.to_glib_none().0); 90 + } 91 + } 92 + 93 + #[doc(alias = "i_cal_period_set_end")] 94 + pub fn set_end(&self, end: &Time) { 95 + unsafe { 96 + ffi::i_cal_period_set_end(self.to_glib_none().0, end.to_glib_none().0); 97 + } 98 + } 99 + 100 + #[doc(alias = "i_cal_period_set_start")] 101 + pub fn set_start(&self, start: &Time) { 102 + unsafe { 103 + ffi::i_cal_period_set_start(self.to_glib_none().0, start.to_glib_none().0); 104 + } 105 + } 106 + }
+2947
ical-glib/src/auto/property.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Component,Datetimeperiod,Duration,Geo,Parameter,ParameterKind,Period,PropertyAction,PropertyBusytype,PropertyCarlevel,PropertyCmd,PropertyKind,PropertyMethod,PropertyPollcompletion,PropertyPollmode,PropertyQuerylevel,PropertyStatus,PropertyTaskmode,PropertyTransp,PropertyXlicclass,Property_Class,Recurrence,Reqstat,Time,Trigger,Value,ValueKind}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalProperty")] 11 + pub struct Property(Object<ffi::ICalProperty, ffi::ICalPropertyClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_property_get_type(), 15 + } 16 + } 17 + 18 + impl Property { 19 + #[doc(alias = "i_cal_property_new")] 20 + pub fn new(kind: PropertyKind) -> Property { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_property_new(kind.into_glib())) 24 + } 25 + } 26 + 27 + #[doc(alias = "i_cal_property_new_acceptresponse")] 28 + pub fn new_acceptresponse(v: &str) -> Property { 29 + assert_initialized_main_thread!(); 30 + unsafe { 31 + from_glib_full(ffi::i_cal_property_new_acceptresponse(v.to_glib_none().0)) 32 + } 33 + } 34 + 35 + #[doc(alias = "i_cal_property_new_acknowledged")] 36 + pub fn new_acknowledged(v: &Time) -> Property { 37 + skip_assert_initialized!(); 38 + unsafe { 39 + from_glib_full(ffi::i_cal_property_new_acknowledged(v.to_glib_none().0)) 40 + } 41 + } 42 + 43 + #[doc(alias = "i_cal_property_new_action")] 44 + pub fn new_action(v: PropertyAction) -> Property { 45 + assert_initialized_main_thread!(); 46 + unsafe { 47 + from_glib_full(ffi::i_cal_property_new_action(v.into_glib())) 48 + } 49 + } 50 + 51 + #[doc(alias = "i_cal_property_new_allowconflict")] 52 + pub fn new_allowconflict(v: &str) -> Property { 53 + assert_initialized_main_thread!(); 54 + unsafe { 55 + from_glib_full(ffi::i_cal_property_new_allowconflict(v.to_glib_none().0)) 56 + } 57 + } 58 + 59 + //#[doc(alias = "i_cal_property_new_attach")] 60 + //pub fn new_attach(v: /*Ignored*/&Attach) -> Property { 61 + // unsafe { TODO: call ffi:i_cal_property_new_attach() } 62 + //} 63 + 64 + #[doc(alias = "i_cal_property_new_attendee")] 65 + pub fn new_attendee(v: &str) -> Property { 66 + assert_initialized_main_thread!(); 67 + unsafe { 68 + from_glib_full(ffi::i_cal_property_new_attendee(v.to_glib_none().0)) 69 + } 70 + } 71 + 72 + #[doc(alias = "i_cal_property_new_busytype")] 73 + pub fn new_busytype(v: PropertyBusytype) -> Property { 74 + assert_initialized_main_thread!(); 75 + unsafe { 76 + from_glib_full(ffi::i_cal_property_new_busytype(v.into_glib())) 77 + } 78 + } 79 + 80 + #[doc(alias = "i_cal_property_new_calid")] 81 + pub fn new_calid(v: &str) -> Property { 82 + assert_initialized_main_thread!(); 83 + unsafe { 84 + from_glib_full(ffi::i_cal_property_new_calid(v.to_glib_none().0)) 85 + } 86 + } 87 + 88 + #[doc(alias = "i_cal_property_new_calmaster")] 89 + pub fn new_calmaster(v: &str) -> Property { 90 + assert_initialized_main_thread!(); 91 + unsafe { 92 + from_glib_full(ffi::i_cal_property_new_calmaster(v.to_glib_none().0)) 93 + } 94 + } 95 + 96 + #[doc(alias = "i_cal_property_new_calscale")] 97 + pub fn new_calscale(v: &str) -> Property { 98 + assert_initialized_main_thread!(); 99 + unsafe { 100 + from_glib_full(ffi::i_cal_property_new_calscale(v.to_glib_none().0)) 101 + } 102 + } 103 + 104 + #[doc(alias = "i_cal_property_new_capversion")] 105 + pub fn new_capversion(v: &str) -> Property { 106 + assert_initialized_main_thread!(); 107 + unsafe { 108 + from_glib_full(ffi::i_cal_property_new_capversion(v.to_glib_none().0)) 109 + } 110 + } 111 + 112 + #[doc(alias = "i_cal_property_new_carid")] 113 + pub fn new_carid(v: &str) -> Property { 114 + assert_initialized_main_thread!(); 115 + unsafe { 116 + from_glib_full(ffi::i_cal_property_new_carid(v.to_glib_none().0)) 117 + } 118 + } 119 + 120 + #[doc(alias = "i_cal_property_new_carlevel")] 121 + pub fn new_carlevel(v: PropertyCarlevel) -> Property { 122 + assert_initialized_main_thread!(); 123 + unsafe { 124 + from_glib_full(ffi::i_cal_property_new_carlevel(v.into_glib())) 125 + } 126 + } 127 + 128 + #[doc(alias = "i_cal_property_new_categories")] 129 + pub fn new_categories(v: &str) -> Property { 130 + assert_initialized_main_thread!(); 131 + unsafe { 132 + from_glib_full(ffi::i_cal_property_new_categories(v.to_glib_none().0)) 133 + } 134 + } 135 + 136 + #[doc(alias = "i_cal_property_new_class")] 137 + pub fn new_class(v: Property_Class) -> Property { 138 + assert_initialized_main_thread!(); 139 + unsafe { 140 + from_glib_full(ffi::i_cal_property_new_class(v.into_glib())) 141 + } 142 + } 143 + 144 + #[doc(alias = "i_cal_property_new_cmd")] 145 + pub fn new_cmd(v: PropertyCmd) -> Property { 146 + assert_initialized_main_thread!(); 147 + unsafe { 148 + from_glib_full(ffi::i_cal_property_new_cmd(v.into_glib())) 149 + } 150 + } 151 + 152 + #[doc(alias = "i_cal_property_new_color")] 153 + pub fn new_color(v: &str) -> Property { 154 + assert_initialized_main_thread!(); 155 + unsafe { 156 + from_glib_full(ffi::i_cal_property_new_color(v.to_glib_none().0)) 157 + } 158 + } 159 + 160 + #[doc(alias = "i_cal_property_new_comment")] 161 + pub fn new_comment(v: &str) -> Property { 162 + assert_initialized_main_thread!(); 163 + unsafe { 164 + from_glib_full(ffi::i_cal_property_new_comment(v.to_glib_none().0)) 165 + } 166 + } 167 + 168 + #[doc(alias = "i_cal_property_new_completed")] 169 + pub fn new_completed(v: &Time) -> Property { 170 + skip_assert_initialized!(); 171 + unsafe { 172 + from_glib_full(ffi::i_cal_property_new_completed(v.to_glib_none().0)) 173 + } 174 + } 175 + 176 + #[doc(alias = "i_cal_property_new_components")] 177 + pub fn new_components(v: &str) -> Property { 178 + assert_initialized_main_thread!(); 179 + unsafe { 180 + from_glib_full(ffi::i_cal_property_new_components(v.to_glib_none().0)) 181 + } 182 + } 183 + 184 + #[doc(alias = "i_cal_property_new_contact")] 185 + pub fn new_contact(v: &str) -> Property { 186 + assert_initialized_main_thread!(); 187 + unsafe { 188 + from_glib_full(ffi::i_cal_property_new_contact(v.to_glib_none().0)) 189 + } 190 + } 191 + 192 + #[doc(alias = "i_cal_property_new_created")] 193 + pub fn new_created(v: &Time) -> Property { 194 + skip_assert_initialized!(); 195 + unsafe { 196 + from_glib_full(ffi::i_cal_property_new_created(v.to_glib_none().0)) 197 + } 198 + } 199 + 200 + #[doc(alias = "i_cal_property_new_csid")] 201 + pub fn new_csid(v: &str) -> Property { 202 + assert_initialized_main_thread!(); 203 + unsafe { 204 + from_glib_full(ffi::i_cal_property_new_csid(v.to_glib_none().0)) 205 + } 206 + } 207 + 208 + #[doc(alias = "i_cal_property_new_datemax")] 209 + pub fn new_datemax(v: &Time) -> Property { 210 + skip_assert_initialized!(); 211 + unsafe { 212 + from_glib_full(ffi::i_cal_property_new_datemax(v.to_glib_none().0)) 213 + } 214 + } 215 + 216 + #[doc(alias = "i_cal_property_new_datemin")] 217 + pub fn new_datemin(v: &Time) -> Property { 218 + skip_assert_initialized!(); 219 + unsafe { 220 + from_glib_full(ffi::i_cal_property_new_datemin(v.to_glib_none().0)) 221 + } 222 + } 223 + 224 + #[doc(alias = "i_cal_property_new_decreed")] 225 + pub fn new_decreed(v: &str) -> Property { 226 + assert_initialized_main_thread!(); 227 + unsafe { 228 + from_glib_full(ffi::i_cal_property_new_decreed(v.to_glib_none().0)) 229 + } 230 + } 231 + 232 + #[doc(alias = "i_cal_property_new_defaultcharset")] 233 + pub fn new_defaultcharset(v: &str) -> Property { 234 + assert_initialized_main_thread!(); 235 + unsafe { 236 + from_glib_full(ffi::i_cal_property_new_defaultcharset(v.to_glib_none().0)) 237 + } 238 + } 239 + 240 + #[doc(alias = "i_cal_property_new_defaultlocale")] 241 + pub fn new_defaultlocale(v: &str) -> Property { 242 + assert_initialized_main_thread!(); 243 + unsafe { 244 + from_glib_full(ffi::i_cal_property_new_defaultlocale(v.to_glib_none().0)) 245 + } 246 + } 247 + 248 + #[doc(alias = "i_cal_property_new_defaulttzid")] 249 + pub fn new_defaulttzid(v: &str) -> Property { 250 + assert_initialized_main_thread!(); 251 + unsafe { 252 + from_glib_full(ffi::i_cal_property_new_defaulttzid(v.to_glib_none().0)) 253 + } 254 + } 255 + 256 + #[doc(alias = "i_cal_property_new_defaultvcars")] 257 + pub fn new_defaultvcars(v: &str) -> Property { 258 + assert_initialized_main_thread!(); 259 + unsafe { 260 + from_glib_full(ffi::i_cal_property_new_defaultvcars(v.to_glib_none().0)) 261 + } 262 + } 263 + 264 + #[doc(alias = "i_cal_property_new_deny")] 265 + pub fn new_deny(v: &str) -> Property { 266 + assert_initialized_main_thread!(); 267 + unsafe { 268 + from_glib_full(ffi::i_cal_property_new_deny(v.to_glib_none().0)) 269 + } 270 + } 271 + 272 + #[doc(alias = "i_cal_property_new_description")] 273 + pub fn new_description(v: &str) -> Property { 274 + assert_initialized_main_thread!(); 275 + unsafe { 276 + from_glib_full(ffi::i_cal_property_new_description(v.to_glib_none().0)) 277 + } 278 + } 279 + 280 + #[doc(alias = "i_cal_property_new_dtend")] 281 + pub fn new_dtend(v: &Time) -> Property { 282 + skip_assert_initialized!(); 283 + unsafe { 284 + from_glib_full(ffi::i_cal_property_new_dtend(v.to_glib_none().0)) 285 + } 286 + } 287 + 288 + #[doc(alias = "i_cal_property_new_dtstamp")] 289 + pub fn new_dtstamp(v: &Time) -> Property { 290 + skip_assert_initialized!(); 291 + unsafe { 292 + from_glib_full(ffi::i_cal_property_new_dtstamp(v.to_glib_none().0)) 293 + } 294 + } 295 + 296 + #[doc(alias = "i_cal_property_new_dtstart")] 297 + pub fn new_dtstart(v: &Time) -> Property { 298 + skip_assert_initialized!(); 299 + unsafe { 300 + from_glib_full(ffi::i_cal_property_new_dtstart(v.to_glib_none().0)) 301 + } 302 + } 303 + 304 + #[doc(alias = "i_cal_property_new_due")] 305 + pub fn new_due(v: &Time) -> Property { 306 + skip_assert_initialized!(); 307 + unsafe { 308 + from_glib_full(ffi::i_cal_property_new_due(v.to_glib_none().0)) 309 + } 310 + } 311 + 312 + #[doc(alias = "i_cal_property_new_duration")] 313 + pub fn new_duration(v: &Duration) -> Property { 314 + skip_assert_initialized!(); 315 + unsafe { 316 + from_glib_full(ffi::i_cal_property_new_duration(v.to_glib_none().0)) 317 + } 318 + } 319 + 320 + #[doc(alias = "i_cal_property_new_estimatedduration")] 321 + pub fn new_estimatedduration(v: &Duration) -> Property { 322 + skip_assert_initialized!(); 323 + unsafe { 324 + from_glib_full(ffi::i_cal_property_new_estimatedduration(v.to_glib_none().0)) 325 + } 326 + } 327 + 328 + #[doc(alias = "i_cal_property_new_exdate")] 329 + pub fn new_exdate(v: &Time) -> Property { 330 + skip_assert_initialized!(); 331 + unsafe { 332 + from_glib_full(ffi::i_cal_property_new_exdate(v.to_glib_none().0)) 333 + } 334 + } 335 + 336 + #[doc(alias = "i_cal_property_new_expand")] 337 + pub fn new_expand(v: i32) -> Property { 338 + assert_initialized_main_thread!(); 339 + unsafe { 340 + from_glib_full(ffi::i_cal_property_new_expand(v)) 341 + } 342 + } 343 + 344 + #[doc(alias = "i_cal_property_new_exrule")] 345 + pub fn new_exrule(v: &Recurrence) -> Property { 346 + skip_assert_initialized!(); 347 + unsafe { 348 + from_glib_full(ffi::i_cal_property_new_exrule(v.to_glib_none().0)) 349 + } 350 + } 351 + 352 + #[doc(alias = "i_cal_property_new_freebusy")] 353 + pub fn new_freebusy(v: &Period) -> Property { 354 + skip_assert_initialized!(); 355 + unsafe { 356 + from_glib_full(ffi::i_cal_property_new_freebusy(v.to_glib_none().0)) 357 + } 358 + } 359 + 360 + #[doc(alias = "i_cal_property_new_from_string")] 361 + #[doc(alias = "new_from_string")] 362 + pub fn from_string(str: &str) -> Property { 363 + assert_initialized_main_thread!(); 364 + unsafe { 365 + from_glib_full(ffi::i_cal_property_new_from_string(str.to_glib_none().0)) 366 + } 367 + } 368 + 369 + //#[doc(alias = "i_cal_property_new_full")] 370 + //pub fn new_full(native: /*Ignored*/&mut icalproperty, owner: &impl IsA<glib::Object>) -> Property { 371 + // unsafe { TODO: call ffi:i_cal_property_new_full() } 372 + //} 373 + 374 + #[doc(alias = "i_cal_property_new_geo")] 375 + pub fn new_geo(v: &Geo) -> Property { 376 + skip_assert_initialized!(); 377 + unsafe { 378 + from_glib_full(ffi::i_cal_property_new_geo(v.to_glib_none().0)) 379 + } 380 + } 381 + 382 + #[doc(alias = "i_cal_property_new_grant")] 383 + pub fn new_grant(v: &str) -> Property { 384 + assert_initialized_main_thread!(); 385 + unsafe { 386 + from_glib_full(ffi::i_cal_property_new_grant(v.to_glib_none().0)) 387 + } 388 + } 389 + 390 + #[doc(alias = "i_cal_property_new_itipversion")] 391 + pub fn new_itipversion(v: &str) -> Property { 392 + assert_initialized_main_thread!(); 393 + unsafe { 394 + from_glib_full(ffi::i_cal_property_new_itipversion(v.to_glib_none().0)) 395 + } 396 + } 397 + 398 + #[doc(alias = "i_cal_property_new_lastmodified")] 399 + pub fn new_lastmodified(v: &Time) -> Property { 400 + skip_assert_initialized!(); 401 + unsafe { 402 + from_glib_full(ffi::i_cal_property_new_lastmodified(v.to_glib_none().0)) 403 + } 404 + } 405 + 406 + #[doc(alias = "i_cal_property_new_location")] 407 + pub fn new_location(v: &str) -> Property { 408 + assert_initialized_main_thread!(); 409 + unsafe { 410 + from_glib_full(ffi::i_cal_property_new_location(v.to_glib_none().0)) 411 + } 412 + } 413 + 414 + #[doc(alias = "i_cal_property_new_maxcomponentsize")] 415 + pub fn new_maxcomponentsize(v: i32) -> Property { 416 + assert_initialized_main_thread!(); 417 + unsafe { 418 + from_glib_full(ffi::i_cal_property_new_maxcomponentsize(v)) 419 + } 420 + } 421 + 422 + #[doc(alias = "i_cal_property_new_maxdate")] 423 + pub fn new_maxdate(v: &Time) -> Property { 424 + skip_assert_initialized!(); 425 + unsafe { 426 + from_glib_full(ffi::i_cal_property_new_maxdate(v.to_glib_none().0)) 427 + } 428 + } 429 + 430 + #[doc(alias = "i_cal_property_new_maxresults")] 431 + pub fn new_maxresults(v: i32) -> Property { 432 + assert_initialized_main_thread!(); 433 + unsafe { 434 + from_glib_full(ffi::i_cal_property_new_maxresults(v)) 435 + } 436 + } 437 + 438 + #[doc(alias = "i_cal_property_new_maxresultssize")] 439 + pub fn new_maxresultssize(v: i32) -> Property { 440 + assert_initialized_main_thread!(); 441 + unsafe { 442 + from_glib_full(ffi::i_cal_property_new_maxresultssize(v)) 443 + } 444 + } 445 + 446 + #[doc(alias = "i_cal_property_new_method")] 447 + pub fn new_method(v: PropertyMethod) -> Property { 448 + assert_initialized_main_thread!(); 449 + unsafe { 450 + from_glib_full(ffi::i_cal_property_new_method(v.into_glib())) 451 + } 452 + } 453 + 454 + #[doc(alias = "i_cal_property_new_mindate")] 455 + pub fn new_mindate(v: &Time) -> Property { 456 + skip_assert_initialized!(); 457 + unsafe { 458 + from_glib_full(ffi::i_cal_property_new_mindate(v.to_glib_none().0)) 459 + } 460 + } 461 + 462 + #[doc(alias = "i_cal_property_new_multipart")] 463 + pub fn new_multipart(v: &str) -> Property { 464 + assert_initialized_main_thread!(); 465 + unsafe { 466 + from_glib_full(ffi::i_cal_property_new_multipart(v.to_glib_none().0)) 467 + } 468 + } 469 + 470 + #[doc(alias = "i_cal_property_new_name")] 471 + pub fn new_name(v: &str) -> Property { 472 + assert_initialized_main_thread!(); 473 + unsafe { 474 + from_glib_full(ffi::i_cal_property_new_name(v.to_glib_none().0)) 475 + } 476 + } 477 + 478 + #[doc(alias = "i_cal_property_new_organizer")] 479 + pub fn new_organizer(v: &str) -> Property { 480 + assert_initialized_main_thread!(); 481 + unsafe { 482 + from_glib_full(ffi::i_cal_property_new_organizer(v.to_glib_none().0)) 483 + } 484 + } 485 + 486 + #[doc(alias = "i_cal_property_new_owner")] 487 + pub fn new_owner(v: &str) -> Property { 488 + assert_initialized_main_thread!(); 489 + unsafe { 490 + from_glib_full(ffi::i_cal_property_new_owner(v.to_glib_none().0)) 491 + } 492 + } 493 + 494 + #[doc(alias = "i_cal_property_new_percentcomplete")] 495 + pub fn new_percentcomplete(v: i32) -> Property { 496 + assert_initialized_main_thread!(); 497 + unsafe { 498 + from_glib_full(ffi::i_cal_property_new_percentcomplete(v)) 499 + } 500 + } 501 + 502 + #[doc(alias = "i_cal_property_new_permission")] 503 + pub fn new_permission(v: &str) -> Property { 504 + assert_initialized_main_thread!(); 505 + unsafe { 506 + from_glib_full(ffi::i_cal_property_new_permission(v.to_glib_none().0)) 507 + } 508 + } 509 + 510 + #[doc(alias = "i_cal_property_new_pollcompletion")] 511 + pub fn new_pollcompletion(v: PropertyPollcompletion) -> Property { 512 + assert_initialized_main_thread!(); 513 + unsafe { 514 + from_glib_full(ffi::i_cal_property_new_pollcompletion(v.into_glib())) 515 + } 516 + } 517 + 518 + #[doc(alias = "i_cal_property_new_pollitemid")] 519 + pub fn new_pollitemid(v: i32) -> Property { 520 + assert_initialized_main_thread!(); 521 + unsafe { 522 + from_glib_full(ffi::i_cal_property_new_pollitemid(v)) 523 + } 524 + } 525 + 526 + #[doc(alias = "i_cal_property_new_pollmode")] 527 + pub fn new_pollmode(v: PropertyPollmode) -> Property { 528 + assert_initialized_main_thread!(); 529 + unsafe { 530 + from_glib_full(ffi::i_cal_property_new_pollmode(v.into_glib())) 531 + } 532 + } 533 + 534 + #[doc(alias = "i_cal_property_new_pollproperties")] 535 + pub fn new_pollproperties(v: &str) -> Property { 536 + assert_initialized_main_thread!(); 537 + unsafe { 538 + from_glib_full(ffi::i_cal_property_new_pollproperties(v.to_glib_none().0)) 539 + } 540 + } 541 + 542 + #[doc(alias = "i_cal_property_new_pollwinner")] 543 + pub fn new_pollwinner(v: i32) -> Property { 544 + assert_initialized_main_thread!(); 545 + unsafe { 546 + from_glib_full(ffi::i_cal_property_new_pollwinner(v)) 547 + } 548 + } 549 + 550 + #[doc(alias = "i_cal_property_new_priority")] 551 + pub fn new_priority(v: i32) -> Property { 552 + assert_initialized_main_thread!(); 553 + unsafe { 554 + from_glib_full(ffi::i_cal_property_new_priority(v)) 555 + } 556 + } 557 + 558 + #[doc(alias = "i_cal_property_new_prodid")] 559 + pub fn new_prodid(v: &str) -> Property { 560 + assert_initialized_main_thread!(); 561 + unsafe { 562 + from_glib_full(ffi::i_cal_property_new_prodid(v.to_glib_none().0)) 563 + } 564 + } 565 + 566 + #[doc(alias = "i_cal_property_new_query")] 567 + pub fn new_query(v: &str) -> Property { 568 + assert_initialized_main_thread!(); 569 + unsafe { 570 + from_glib_full(ffi::i_cal_property_new_query(v.to_glib_none().0)) 571 + } 572 + } 573 + 574 + #[doc(alias = "i_cal_property_new_queryid")] 575 + pub fn new_queryid(v: &str) -> Property { 576 + assert_initialized_main_thread!(); 577 + unsafe { 578 + from_glib_full(ffi::i_cal_property_new_queryid(v.to_glib_none().0)) 579 + } 580 + } 581 + 582 + #[doc(alias = "i_cal_property_new_querylevel")] 583 + pub fn new_querylevel(v: PropertyQuerylevel) -> Property { 584 + assert_initialized_main_thread!(); 585 + unsafe { 586 + from_glib_full(ffi::i_cal_property_new_querylevel(v.into_glib())) 587 + } 588 + } 589 + 590 + #[doc(alias = "i_cal_property_new_queryname")] 591 + pub fn new_queryname(v: &str) -> Property { 592 + assert_initialized_main_thread!(); 593 + unsafe { 594 + from_glib_full(ffi::i_cal_property_new_queryname(v.to_glib_none().0)) 595 + } 596 + } 597 + 598 + #[doc(alias = "i_cal_property_new_rdate")] 599 + pub fn new_rdate(v: &Datetimeperiod) -> Property { 600 + skip_assert_initialized!(); 601 + unsafe { 602 + from_glib_full(ffi::i_cal_property_new_rdate(v.to_glib_none().0)) 603 + } 604 + } 605 + 606 + #[doc(alias = "i_cal_property_new_recuraccepted")] 607 + pub fn new_recuraccepted(v: &str) -> Property { 608 + assert_initialized_main_thread!(); 609 + unsafe { 610 + from_glib_full(ffi::i_cal_property_new_recuraccepted(v.to_glib_none().0)) 611 + } 612 + } 613 + 614 + #[doc(alias = "i_cal_property_new_recurexpand")] 615 + pub fn new_recurexpand(v: &str) -> Property { 616 + assert_initialized_main_thread!(); 617 + unsafe { 618 + from_glib_full(ffi::i_cal_property_new_recurexpand(v.to_glib_none().0)) 619 + } 620 + } 621 + 622 + #[doc(alias = "i_cal_property_new_recurlimit")] 623 + pub fn new_recurlimit(v: &str) -> Property { 624 + assert_initialized_main_thread!(); 625 + unsafe { 626 + from_glib_full(ffi::i_cal_property_new_recurlimit(v.to_glib_none().0)) 627 + } 628 + } 629 + 630 + #[doc(alias = "i_cal_property_new_recurrenceid")] 631 + pub fn new_recurrenceid(v: &Time) -> Property { 632 + skip_assert_initialized!(); 633 + unsafe { 634 + from_glib_full(ffi::i_cal_property_new_recurrenceid(v.to_glib_none().0)) 635 + } 636 + } 637 + 638 + #[doc(alias = "i_cal_property_new_relatedto")] 639 + pub fn new_relatedto(v: &str) -> Property { 640 + assert_initialized_main_thread!(); 641 + unsafe { 642 + from_glib_full(ffi::i_cal_property_new_relatedto(v.to_glib_none().0)) 643 + } 644 + } 645 + 646 + #[doc(alias = "i_cal_property_new_relcalid")] 647 + pub fn new_relcalid(v: &str) -> Property { 648 + assert_initialized_main_thread!(); 649 + unsafe { 650 + from_glib_full(ffi::i_cal_property_new_relcalid(v.to_glib_none().0)) 651 + } 652 + } 653 + 654 + #[doc(alias = "i_cal_property_new_repeat")] 655 + pub fn new_repeat(v: i32) -> Property { 656 + assert_initialized_main_thread!(); 657 + unsafe { 658 + from_glib_full(ffi::i_cal_property_new_repeat(v)) 659 + } 660 + } 661 + 662 + #[doc(alias = "i_cal_property_new_replyurl")] 663 + pub fn new_replyurl(v: &str) -> Property { 664 + assert_initialized_main_thread!(); 665 + unsafe { 666 + from_glib_full(ffi::i_cal_property_new_replyurl(v.to_glib_none().0)) 667 + } 668 + } 669 + 670 + #[doc(alias = "i_cal_property_new_requeststatus")] 671 + pub fn new_requeststatus(v: &Reqstat) -> Property { 672 + skip_assert_initialized!(); 673 + unsafe { 674 + from_glib_full(ffi::i_cal_property_new_requeststatus(v.to_glib_none().0)) 675 + } 676 + } 677 + 678 + #[doc(alias = "i_cal_property_new_resources")] 679 + pub fn new_resources(v: &str) -> Property { 680 + assert_initialized_main_thread!(); 681 + unsafe { 682 + from_glib_full(ffi::i_cal_property_new_resources(v.to_glib_none().0)) 683 + } 684 + } 685 + 686 + #[doc(alias = "i_cal_property_new_response")] 687 + pub fn new_response(v: i32) -> Property { 688 + assert_initialized_main_thread!(); 689 + unsafe { 690 + from_glib_full(ffi::i_cal_property_new_response(v)) 691 + } 692 + } 693 + 694 + #[doc(alias = "i_cal_property_new_restriction")] 695 + pub fn new_restriction(v: &str) -> Property { 696 + assert_initialized_main_thread!(); 697 + unsafe { 698 + from_glib_full(ffi::i_cal_property_new_restriction(v.to_glib_none().0)) 699 + } 700 + } 701 + 702 + #[doc(alias = "i_cal_property_new_rrule")] 703 + pub fn new_rrule(v: &Recurrence) -> Property { 704 + skip_assert_initialized!(); 705 + unsafe { 706 + from_glib_full(ffi::i_cal_property_new_rrule(v.to_glib_none().0)) 707 + } 708 + } 709 + 710 + #[doc(alias = "i_cal_property_new_scope")] 711 + pub fn new_scope(v: &str) -> Property { 712 + assert_initialized_main_thread!(); 713 + unsafe { 714 + from_glib_full(ffi::i_cal_property_new_scope(v.to_glib_none().0)) 715 + } 716 + } 717 + 718 + #[doc(alias = "i_cal_property_new_sequence")] 719 + pub fn new_sequence(v: i32) -> Property { 720 + assert_initialized_main_thread!(); 721 + unsafe { 722 + from_glib_full(ffi::i_cal_property_new_sequence(v)) 723 + } 724 + } 725 + 726 + #[doc(alias = "i_cal_property_new_status")] 727 + pub fn new_status(v: PropertyStatus) -> Property { 728 + assert_initialized_main_thread!(); 729 + unsafe { 730 + from_glib_full(ffi::i_cal_property_new_status(v.into_glib())) 731 + } 732 + } 733 + 734 + #[doc(alias = "i_cal_property_new_storesexpanded")] 735 + pub fn new_storesexpanded(v: &str) -> Property { 736 + assert_initialized_main_thread!(); 737 + unsafe { 738 + from_glib_full(ffi::i_cal_property_new_storesexpanded(v.to_glib_none().0)) 739 + } 740 + } 741 + 742 + #[doc(alias = "i_cal_property_new_summary")] 743 + pub fn new_summary(v: &str) -> Property { 744 + assert_initialized_main_thread!(); 745 + unsafe { 746 + from_glib_full(ffi::i_cal_property_new_summary(v.to_glib_none().0)) 747 + } 748 + } 749 + 750 + #[doc(alias = "i_cal_property_new_target")] 751 + pub fn new_target(v: &str) -> Property { 752 + assert_initialized_main_thread!(); 753 + unsafe { 754 + from_glib_full(ffi::i_cal_property_new_target(v.to_glib_none().0)) 755 + } 756 + } 757 + 758 + #[doc(alias = "i_cal_property_new_taskmode")] 759 + pub fn new_taskmode(v: PropertyTaskmode) -> Property { 760 + assert_initialized_main_thread!(); 761 + unsafe { 762 + from_glib_full(ffi::i_cal_property_new_taskmode(v.into_glib())) 763 + } 764 + } 765 + 766 + #[doc(alias = "i_cal_property_new_transp")] 767 + pub fn new_transp(v: PropertyTransp) -> Property { 768 + assert_initialized_main_thread!(); 769 + unsafe { 770 + from_glib_full(ffi::i_cal_property_new_transp(v.into_glib())) 771 + } 772 + } 773 + 774 + #[doc(alias = "i_cal_property_new_trigger")] 775 + pub fn new_trigger(v: &Trigger) -> Property { 776 + skip_assert_initialized!(); 777 + unsafe { 778 + from_glib_full(ffi::i_cal_property_new_trigger(v.to_glib_none().0)) 779 + } 780 + } 781 + 782 + #[doc(alias = "i_cal_property_new_tzid")] 783 + pub fn new_tzid(v: &str) -> Property { 784 + assert_initialized_main_thread!(); 785 + unsafe { 786 + from_glib_full(ffi::i_cal_property_new_tzid(v.to_glib_none().0)) 787 + } 788 + } 789 + 790 + #[doc(alias = "i_cal_property_new_tzidaliasof")] 791 + pub fn new_tzidaliasof(v: &str) -> Property { 792 + assert_initialized_main_thread!(); 793 + unsafe { 794 + from_glib_full(ffi::i_cal_property_new_tzidaliasof(v.to_glib_none().0)) 795 + } 796 + } 797 + 798 + #[doc(alias = "i_cal_property_new_tzname")] 799 + pub fn new_tzname(v: &str) -> Property { 800 + assert_initialized_main_thread!(); 801 + unsafe { 802 + from_glib_full(ffi::i_cal_property_new_tzname(v.to_glib_none().0)) 803 + } 804 + } 805 + 806 + #[doc(alias = "i_cal_property_new_tzoffsetfrom")] 807 + pub fn new_tzoffsetfrom(v: i32) -> Property { 808 + assert_initialized_main_thread!(); 809 + unsafe { 810 + from_glib_full(ffi::i_cal_property_new_tzoffsetfrom(v)) 811 + } 812 + } 813 + 814 + #[doc(alias = "i_cal_property_new_tzoffsetto")] 815 + pub fn new_tzoffsetto(v: i32) -> Property { 816 + assert_initialized_main_thread!(); 817 + unsafe { 818 + from_glib_full(ffi::i_cal_property_new_tzoffsetto(v)) 819 + } 820 + } 821 + 822 + #[doc(alias = "i_cal_property_new_tzuntil")] 823 + pub fn new_tzuntil(v: &Time) -> Property { 824 + skip_assert_initialized!(); 825 + unsafe { 826 + from_glib_full(ffi::i_cal_property_new_tzuntil(v.to_glib_none().0)) 827 + } 828 + } 829 + 830 + #[doc(alias = "i_cal_property_new_tzurl")] 831 + pub fn new_tzurl(v: &str) -> Property { 832 + assert_initialized_main_thread!(); 833 + unsafe { 834 + from_glib_full(ffi::i_cal_property_new_tzurl(v.to_glib_none().0)) 835 + } 836 + } 837 + 838 + #[doc(alias = "i_cal_property_new_uid")] 839 + pub fn new_uid(v: &str) -> Property { 840 + assert_initialized_main_thread!(); 841 + unsafe { 842 + from_glib_full(ffi::i_cal_property_new_uid(v.to_glib_none().0)) 843 + } 844 + } 845 + 846 + #[doc(alias = "i_cal_property_new_url")] 847 + pub fn new_url(v: &str) -> Property { 848 + assert_initialized_main_thread!(); 849 + unsafe { 850 + from_glib_full(ffi::i_cal_property_new_url(v.to_glib_none().0)) 851 + } 852 + } 853 + 854 + #[doc(alias = "i_cal_property_new_version")] 855 + pub fn new_version(v: &str) -> Property { 856 + assert_initialized_main_thread!(); 857 + unsafe { 858 + from_glib_full(ffi::i_cal_property_new_version(v.to_glib_none().0)) 859 + } 860 + } 861 + 862 + #[doc(alias = "i_cal_property_new_voter")] 863 + pub fn new_voter(v: &str) -> Property { 864 + assert_initialized_main_thread!(); 865 + unsafe { 866 + from_glib_full(ffi::i_cal_property_new_voter(v.to_glib_none().0)) 867 + } 868 + } 869 + 870 + #[doc(alias = "i_cal_property_new_x")] 871 + pub fn new_x(v: &str) -> Property { 872 + assert_initialized_main_thread!(); 873 + unsafe { 874 + from_glib_full(ffi::i_cal_property_new_x(v.to_glib_none().0)) 875 + } 876 + } 877 + 878 + #[doc(alias = "i_cal_property_new_xlicclass")] 879 + pub fn new_xlicclass(v: PropertyXlicclass) -> Property { 880 + assert_initialized_main_thread!(); 881 + unsafe { 882 + from_glib_full(ffi::i_cal_property_new_xlicclass(v.into_glib())) 883 + } 884 + } 885 + 886 + #[doc(alias = "i_cal_property_new_xlicclustercount")] 887 + pub fn new_xlicclustercount(v: &str) -> Property { 888 + assert_initialized_main_thread!(); 889 + unsafe { 890 + from_glib_full(ffi::i_cal_property_new_xlicclustercount(v.to_glib_none().0)) 891 + } 892 + } 893 + 894 + #[doc(alias = "i_cal_property_new_xlicerror")] 895 + pub fn new_xlicerror(v: &str) -> Property { 896 + assert_initialized_main_thread!(); 897 + unsafe { 898 + from_glib_full(ffi::i_cal_property_new_xlicerror(v.to_glib_none().0)) 899 + } 900 + } 901 + 902 + #[doc(alias = "i_cal_property_new_xlicmimecharset")] 903 + pub fn new_xlicmimecharset(v: &str) -> Property { 904 + assert_initialized_main_thread!(); 905 + unsafe { 906 + from_glib_full(ffi::i_cal_property_new_xlicmimecharset(v.to_glib_none().0)) 907 + } 908 + } 909 + 910 + #[doc(alias = "i_cal_property_new_xlicmimecid")] 911 + pub fn new_xlicmimecid(v: &str) -> Property { 912 + assert_initialized_main_thread!(); 913 + unsafe { 914 + from_glib_full(ffi::i_cal_property_new_xlicmimecid(v.to_glib_none().0)) 915 + } 916 + } 917 + 918 + #[doc(alias = "i_cal_property_new_xlicmimecontenttype")] 919 + pub fn new_xlicmimecontenttype(v: &str) -> Property { 920 + assert_initialized_main_thread!(); 921 + unsafe { 922 + from_glib_full(ffi::i_cal_property_new_xlicmimecontenttype(v.to_glib_none().0)) 923 + } 924 + } 925 + 926 + #[doc(alias = "i_cal_property_new_xlicmimeencoding")] 927 + pub fn new_xlicmimeencoding(v: &str) -> Property { 928 + assert_initialized_main_thread!(); 929 + unsafe { 930 + from_glib_full(ffi::i_cal_property_new_xlicmimeencoding(v.to_glib_none().0)) 931 + } 932 + } 933 + 934 + #[doc(alias = "i_cal_property_new_xlicmimefilename")] 935 + pub fn new_xlicmimefilename(v: &str) -> Property { 936 + assert_initialized_main_thread!(); 937 + unsafe { 938 + from_glib_full(ffi::i_cal_property_new_xlicmimefilename(v.to_glib_none().0)) 939 + } 940 + } 941 + 942 + #[doc(alias = "i_cal_property_new_xlicmimeoptinfo")] 943 + pub fn new_xlicmimeoptinfo(v: &str) -> Property { 944 + assert_initialized_main_thread!(); 945 + unsafe { 946 + from_glib_full(ffi::i_cal_property_new_xlicmimeoptinfo(v.to_glib_none().0)) 947 + } 948 + } 949 + 950 + #[doc(alias = "i_cal_property_add_parameter")] 951 + pub fn add_parameter(&self, parameter: &Parameter) { 952 + unsafe { 953 + ffi::i_cal_property_add_parameter(self.to_glib_none().0, parameter.to_glib_none().0); 954 + } 955 + } 956 + 957 + #[doc(alias = "i_cal_property_as_ical_string")] 958 + pub fn as_ical_string(&self) -> Option<glib::GString> { 959 + unsafe { 960 + from_glib_full(ffi::i_cal_property_as_ical_string(self.to_glib_none().0)) 961 + } 962 + } 963 + 964 + #[doc(alias = "i_cal_property_clone")] 965 + #[must_use] 966 + pub fn clone(&self) -> Option<Property> { 967 + unsafe { 968 + from_glib_full(ffi::i_cal_property_clone(self.to_glib_none().0)) 969 + } 970 + } 971 + 972 + #[doc(alias = "i_cal_property_count_parameters")] 973 + pub fn count_parameters(&self) -> i32 { 974 + unsafe { 975 + ffi::i_cal_property_count_parameters(self.to_glib_none().0) 976 + } 977 + } 978 + 979 + #[doc(alias = "i_cal_property_get_acceptresponse")] 980 + #[doc(alias = "get_acceptresponse")] 981 + pub fn acceptresponse(&self) -> Option<glib::GString> { 982 + unsafe { 983 + from_glib_none(ffi::i_cal_property_get_acceptresponse(self.to_glib_none().0)) 984 + } 985 + } 986 + 987 + #[doc(alias = "i_cal_property_get_acknowledged")] 988 + #[doc(alias = "get_acknowledged")] 989 + pub fn acknowledged(&self) -> Option<Time> { 990 + unsafe { 991 + from_glib_full(ffi::i_cal_property_get_acknowledged(self.to_glib_none().0)) 992 + } 993 + } 994 + 995 + #[doc(alias = "i_cal_property_get_action")] 996 + #[doc(alias = "get_action")] 997 + pub fn action(&self) -> PropertyAction { 998 + unsafe { 999 + from_glib(ffi::i_cal_property_get_action(self.to_glib_none().0)) 1000 + } 1001 + } 1002 + 1003 + #[doc(alias = "i_cal_property_get_allowconflict")] 1004 + #[doc(alias = "get_allowconflict")] 1005 + pub fn allowconflict(&self) -> Option<glib::GString> { 1006 + unsafe { 1007 + from_glib_none(ffi::i_cal_property_get_allowconflict(self.to_glib_none().0)) 1008 + } 1009 + } 1010 + 1011 + //#[doc(alias = "i_cal_property_get_attach")] 1012 + //#[doc(alias = "get_attach")] 1013 + //pub fn attach(&self) -> /*Ignored*/Option<Attach> { 1014 + // unsafe { TODO: call ffi:i_cal_property_get_attach() } 1015 + //} 1016 + 1017 + #[doc(alias = "i_cal_property_get_attendee")] 1018 + #[doc(alias = "get_attendee")] 1019 + pub fn attendee(&self) -> Option<glib::GString> { 1020 + unsafe { 1021 + from_glib_none(ffi::i_cal_property_get_attendee(self.to_glib_none().0)) 1022 + } 1023 + } 1024 + 1025 + #[doc(alias = "i_cal_property_get_busytype")] 1026 + #[doc(alias = "get_busytype")] 1027 + pub fn busytype(&self) -> PropertyBusytype { 1028 + unsafe { 1029 + from_glib(ffi::i_cal_property_get_busytype(self.to_glib_none().0)) 1030 + } 1031 + } 1032 + 1033 + #[doc(alias = "i_cal_property_get_calid")] 1034 + #[doc(alias = "get_calid")] 1035 + pub fn calid(&self) -> Option<glib::GString> { 1036 + unsafe { 1037 + from_glib_none(ffi::i_cal_property_get_calid(self.to_glib_none().0)) 1038 + } 1039 + } 1040 + 1041 + #[doc(alias = "i_cal_property_get_calmaster")] 1042 + #[doc(alias = "get_calmaster")] 1043 + pub fn calmaster(&self) -> Option<glib::GString> { 1044 + unsafe { 1045 + from_glib_none(ffi::i_cal_property_get_calmaster(self.to_glib_none().0)) 1046 + } 1047 + } 1048 + 1049 + #[doc(alias = "i_cal_property_get_calscale")] 1050 + #[doc(alias = "get_calscale")] 1051 + pub fn calscale(&self) -> Option<glib::GString> { 1052 + unsafe { 1053 + from_glib_none(ffi::i_cal_property_get_calscale(self.to_glib_none().0)) 1054 + } 1055 + } 1056 + 1057 + #[doc(alias = "i_cal_property_get_capversion")] 1058 + #[doc(alias = "get_capversion")] 1059 + pub fn capversion(&self) -> Option<glib::GString> { 1060 + unsafe { 1061 + from_glib_none(ffi::i_cal_property_get_capversion(self.to_glib_none().0)) 1062 + } 1063 + } 1064 + 1065 + #[doc(alias = "i_cal_property_get_carid")] 1066 + #[doc(alias = "get_carid")] 1067 + pub fn carid(&self) -> Option<glib::GString> { 1068 + unsafe { 1069 + from_glib_none(ffi::i_cal_property_get_carid(self.to_glib_none().0)) 1070 + } 1071 + } 1072 + 1073 + #[doc(alias = "i_cal_property_get_carlevel")] 1074 + #[doc(alias = "get_carlevel")] 1075 + pub fn carlevel(&self) -> PropertyCarlevel { 1076 + unsafe { 1077 + from_glib(ffi::i_cal_property_get_carlevel(self.to_glib_none().0)) 1078 + } 1079 + } 1080 + 1081 + #[doc(alias = "i_cal_property_get_categories")] 1082 + #[doc(alias = "get_categories")] 1083 + pub fn categories(&self) -> Option<glib::GString> { 1084 + unsafe { 1085 + from_glib_none(ffi::i_cal_property_get_categories(self.to_glib_none().0)) 1086 + } 1087 + } 1088 + 1089 + #[doc(alias = "i_cal_property_get_class")] 1090 + #[doc(alias = "get_class")] 1091 + pub fn class(&self) -> Property_Class { 1092 + unsafe { 1093 + from_glib(ffi::i_cal_property_get_class(self.to_glib_none().0)) 1094 + } 1095 + } 1096 + 1097 + #[doc(alias = "i_cal_property_get_cmd")] 1098 + #[doc(alias = "get_cmd")] 1099 + pub fn cmd(&self) -> PropertyCmd { 1100 + unsafe { 1101 + from_glib(ffi::i_cal_property_get_cmd(self.to_glib_none().0)) 1102 + } 1103 + } 1104 + 1105 + #[cfg(feature = "v3_0_5")] 1106 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 1107 + #[doc(alias = "i_cal_property_get_color")] 1108 + #[doc(alias = "get_color")] 1109 + pub fn color(&self) -> Option<glib::GString> { 1110 + unsafe { 1111 + from_glib_none(ffi::i_cal_property_get_color(self.to_glib_none().0)) 1112 + } 1113 + } 1114 + 1115 + #[doc(alias = "i_cal_property_get_comment")] 1116 + #[doc(alias = "get_comment")] 1117 + pub fn comment(&self) -> Option<glib::GString> { 1118 + unsafe { 1119 + from_glib_none(ffi::i_cal_property_get_comment(self.to_glib_none().0)) 1120 + } 1121 + } 1122 + 1123 + #[doc(alias = "i_cal_property_get_completed")] 1124 + #[doc(alias = "get_completed")] 1125 + pub fn completed(&self) -> Option<Time> { 1126 + unsafe { 1127 + from_glib_full(ffi::i_cal_property_get_completed(self.to_glib_none().0)) 1128 + } 1129 + } 1130 + 1131 + #[doc(alias = "i_cal_property_get_components")] 1132 + #[doc(alias = "get_components")] 1133 + pub fn components(&self) -> Option<glib::GString> { 1134 + unsafe { 1135 + from_glib_none(ffi::i_cal_property_get_components(self.to_glib_none().0)) 1136 + } 1137 + } 1138 + 1139 + #[doc(alias = "i_cal_property_get_contact")] 1140 + #[doc(alias = "get_contact")] 1141 + pub fn contact(&self) -> Option<glib::GString> { 1142 + unsafe { 1143 + from_glib_none(ffi::i_cal_property_get_contact(self.to_glib_none().0)) 1144 + } 1145 + } 1146 + 1147 + #[doc(alias = "i_cal_property_get_created")] 1148 + #[doc(alias = "get_created")] 1149 + pub fn created(&self) -> Option<Time> { 1150 + unsafe { 1151 + from_glib_full(ffi::i_cal_property_get_created(self.to_glib_none().0)) 1152 + } 1153 + } 1154 + 1155 + #[doc(alias = "i_cal_property_get_csid")] 1156 + #[doc(alias = "get_csid")] 1157 + pub fn csid(&self) -> Option<glib::GString> { 1158 + unsafe { 1159 + from_glib_none(ffi::i_cal_property_get_csid(self.to_glib_none().0)) 1160 + } 1161 + } 1162 + 1163 + #[doc(alias = "i_cal_property_get_datemax")] 1164 + #[doc(alias = "get_datemax")] 1165 + pub fn datemax(&self) -> Option<Time> { 1166 + unsafe { 1167 + from_glib_full(ffi::i_cal_property_get_datemax(self.to_glib_none().0)) 1168 + } 1169 + } 1170 + 1171 + #[doc(alias = "i_cal_property_get_datemin")] 1172 + #[doc(alias = "get_datemin")] 1173 + pub fn datemin(&self) -> Option<Time> { 1174 + unsafe { 1175 + from_glib_full(ffi::i_cal_property_get_datemin(self.to_glib_none().0)) 1176 + } 1177 + } 1178 + 1179 + #[cfg(feature = "v3_0_5")] 1180 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 1181 + #[doc(alias = "i_cal_property_get_datetime_with_component")] 1182 + #[doc(alias = "get_datetime_with_component")] 1183 + pub fn datetime_with_component(&self, comp: Option<&Component>) -> Option<Time> { 1184 + unsafe { 1185 + from_glib_full(ffi::i_cal_property_get_datetime_with_component(self.to_glib_none().0, comp.to_glib_none().0)) 1186 + } 1187 + } 1188 + 1189 + #[doc(alias = "i_cal_property_get_decreed")] 1190 + #[doc(alias = "get_decreed")] 1191 + pub fn decreed(&self) -> Option<glib::GString> { 1192 + unsafe { 1193 + from_glib_none(ffi::i_cal_property_get_decreed(self.to_glib_none().0)) 1194 + } 1195 + } 1196 + 1197 + #[doc(alias = "i_cal_property_get_defaultcharset")] 1198 + #[doc(alias = "get_defaultcharset")] 1199 + pub fn defaultcharset(&self) -> Option<glib::GString> { 1200 + unsafe { 1201 + from_glib_none(ffi::i_cal_property_get_defaultcharset(self.to_glib_none().0)) 1202 + } 1203 + } 1204 + 1205 + #[doc(alias = "i_cal_property_get_defaultlocale")] 1206 + #[doc(alias = "get_defaultlocale")] 1207 + pub fn defaultlocale(&self) -> Option<glib::GString> { 1208 + unsafe { 1209 + from_glib_none(ffi::i_cal_property_get_defaultlocale(self.to_glib_none().0)) 1210 + } 1211 + } 1212 + 1213 + #[doc(alias = "i_cal_property_get_defaulttzid")] 1214 + #[doc(alias = "get_defaulttzid")] 1215 + pub fn defaulttzid(&self) -> Option<glib::GString> { 1216 + unsafe { 1217 + from_glib_none(ffi::i_cal_property_get_defaulttzid(self.to_glib_none().0)) 1218 + } 1219 + } 1220 + 1221 + #[doc(alias = "i_cal_property_get_defaultvcars")] 1222 + #[doc(alias = "get_defaultvcars")] 1223 + pub fn defaultvcars(&self) -> Option<glib::GString> { 1224 + unsafe { 1225 + from_glib_none(ffi::i_cal_property_get_defaultvcars(self.to_glib_none().0)) 1226 + } 1227 + } 1228 + 1229 + #[doc(alias = "i_cal_property_get_deny")] 1230 + #[doc(alias = "get_deny")] 1231 + pub fn deny(&self) -> Option<glib::GString> { 1232 + unsafe { 1233 + from_glib_none(ffi::i_cal_property_get_deny(self.to_glib_none().0)) 1234 + } 1235 + } 1236 + 1237 + #[doc(alias = "i_cal_property_get_description")] 1238 + #[doc(alias = "get_description")] 1239 + pub fn description(&self) -> Option<glib::GString> { 1240 + unsafe { 1241 + from_glib_none(ffi::i_cal_property_get_description(self.to_glib_none().0)) 1242 + } 1243 + } 1244 + 1245 + #[doc(alias = "i_cal_property_get_dtend")] 1246 + #[doc(alias = "get_dtend")] 1247 + pub fn dtend(&self) -> Option<Time> { 1248 + unsafe { 1249 + from_glib_full(ffi::i_cal_property_get_dtend(self.to_glib_none().0)) 1250 + } 1251 + } 1252 + 1253 + #[doc(alias = "i_cal_property_get_dtstamp")] 1254 + #[doc(alias = "get_dtstamp")] 1255 + pub fn dtstamp(&self) -> Option<Time> { 1256 + unsafe { 1257 + from_glib_full(ffi::i_cal_property_get_dtstamp(self.to_glib_none().0)) 1258 + } 1259 + } 1260 + 1261 + #[doc(alias = "i_cal_property_get_dtstart")] 1262 + #[doc(alias = "get_dtstart")] 1263 + pub fn dtstart(&self) -> Option<Time> { 1264 + unsafe { 1265 + from_glib_full(ffi::i_cal_property_get_dtstart(self.to_glib_none().0)) 1266 + } 1267 + } 1268 + 1269 + #[doc(alias = "i_cal_property_get_due")] 1270 + #[doc(alias = "get_due")] 1271 + pub fn due(&self) -> Option<Time> { 1272 + unsafe { 1273 + from_glib_full(ffi::i_cal_property_get_due(self.to_glib_none().0)) 1274 + } 1275 + } 1276 + 1277 + #[doc(alias = "i_cal_property_get_duration")] 1278 + #[doc(alias = "get_duration")] 1279 + pub fn duration(&self) -> Option<Duration> { 1280 + unsafe { 1281 + from_glib_full(ffi::i_cal_property_get_duration(self.to_glib_none().0)) 1282 + } 1283 + } 1284 + 1285 + #[doc(alias = "i_cal_property_get_estimatedduration")] 1286 + #[doc(alias = "get_estimatedduration")] 1287 + pub fn estimatedduration(&self) -> Option<Duration> { 1288 + unsafe { 1289 + from_glib_full(ffi::i_cal_property_get_estimatedduration(self.to_glib_none().0)) 1290 + } 1291 + } 1292 + 1293 + #[doc(alias = "i_cal_property_get_exdate")] 1294 + #[doc(alias = "get_exdate")] 1295 + pub fn exdate(&self) -> Option<Time> { 1296 + unsafe { 1297 + from_glib_full(ffi::i_cal_property_get_exdate(self.to_glib_none().0)) 1298 + } 1299 + } 1300 + 1301 + #[doc(alias = "i_cal_property_get_expand")] 1302 + #[doc(alias = "get_expand")] 1303 + pub fn expand(&self) -> i32 { 1304 + unsafe { 1305 + ffi::i_cal_property_get_expand(self.to_glib_none().0) 1306 + } 1307 + } 1308 + 1309 + #[doc(alias = "i_cal_property_get_exrule")] 1310 + #[doc(alias = "get_exrule")] 1311 + pub fn exrule(&self) -> Option<Recurrence> { 1312 + unsafe { 1313 + from_glib_full(ffi::i_cal_property_get_exrule(self.to_glib_none().0)) 1314 + } 1315 + } 1316 + 1317 + #[doc(alias = "i_cal_property_get_first_parameter")] 1318 + #[doc(alias = "get_first_parameter")] 1319 + pub fn first_parameter(&self, kind: ParameterKind) -> Option<Parameter> { 1320 + unsafe { 1321 + from_glib_full(ffi::i_cal_property_get_first_parameter(self.to_glib_none().0, kind.into_glib())) 1322 + } 1323 + } 1324 + 1325 + #[doc(alias = "i_cal_property_get_freebusy")] 1326 + #[doc(alias = "get_freebusy")] 1327 + pub fn freebusy(&self) -> Option<Period> { 1328 + unsafe { 1329 + from_glib_full(ffi::i_cal_property_get_freebusy(self.to_glib_none().0)) 1330 + } 1331 + } 1332 + 1333 + #[doc(alias = "i_cal_property_get_geo")] 1334 + #[doc(alias = "get_geo")] 1335 + pub fn geo(&self) -> Option<Geo> { 1336 + unsafe { 1337 + from_glib_full(ffi::i_cal_property_get_geo(self.to_glib_none().0)) 1338 + } 1339 + } 1340 + 1341 + #[doc(alias = "i_cal_property_get_grant")] 1342 + #[doc(alias = "get_grant")] 1343 + pub fn grant(&self) -> Option<glib::GString> { 1344 + unsafe { 1345 + from_glib_none(ffi::i_cal_property_get_grant(self.to_glib_none().0)) 1346 + } 1347 + } 1348 + 1349 + #[doc(alias = "i_cal_property_get_itipversion")] 1350 + #[doc(alias = "get_itipversion")] 1351 + pub fn itipversion(&self) -> Option<glib::GString> { 1352 + unsafe { 1353 + from_glib_none(ffi::i_cal_property_get_itipversion(self.to_glib_none().0)) 1354 + } 1355 + } 1356 + 1357 + #[doc(alias = "i_cal_property_get_lastmodified")] 1358 + #[doc(alias = "get_lastmodified")] 1359 + pub fn lastmodified(&self) -> Option<Time> { 1360 + unsafe { 1361 + from_glib_full(ffi::i_cal_property_get_lastmodified(self.to_glib_none().0)) 1362 + } 1363 + } 1364 + 1365 + #[doc(alias = "i_cal_property_get_location")] 1366 + #[doc(alias = "get_location")] 1367 + pub fn location(&self) -> Option<glib::GString> { 1368 + unsafe { 1369 + from_glib_none(ffi::i_cal_property_get_location(self.to_glib_none().0)) 1370 + } 1371 + } 1372 + 1373 + #[doc(alias = "i_cal_property_get_maxcomponentsize")] 1374 + #[doc(alias = "get_maxcomponentsize")] 1375 + pub fn maxcomponentsize(&self) -> i32 { 1376 + unsafe { 1377 + ffi::i_cal_property_get_maxcomponentsize(self.to_glib_none().0) 1378 + } 1379 + } 1380 + 1381 + #[doc(alias = "i_cal_property_get_maxdate")] 1382 + #[doc(alias = "get_maxdate")] 1383 + pub fn maxdate(&self) -> Option<Time> { 1384 + unsafe { 1385 + from_glib_full(ffi::i_cal_property_get_maxdate(self.to_glib_none().0)) 1386 + } 1387 + } 1388 + 1389 + #[doc(alias = "i_cal_property_get_maxresults")] 1390 + #[doc(alias = "get_maxresults")] 1391 + pub fn maxresults(&self) -> i32 { 1392 + unsafe { 1393 + ffi::i_cal_property_get_maxresults(self.to_glib_none().0) 1394 + } 1395 + } 1396 + 1397 + #[doc(alias = "i_cal_property_get_maxresultssize")] 1398 + #[doc(alias = "get_maxresultssize")] 1399 + pub fn maxresultssize(&self) -> i32 { 1400 + unsafe { 1401 + ffi::i_cal_property_get_maxresultssize(self.to_glib_none().0) 1402 + } 1403 + } 1404 + 1405 + #[doc(alias = "i_cal_property_get_method")] 1406 + #[doc(alias = "get_method")] 1407 + pub fn method(&self) -> PropertyMethod { 1408 + unsafe { 1409 + from_glib(ffi::i_cal_property_get_method(self.to_glib_none().0)) 1410 + } 1411 + } 1412 + 1413 + #[doc(alias = "i_cal_property_get_mindate")] 1414 + #[doc(alias = "get_mindate")] 1415 + pub fn mindate(&self) -> Option<Time> { 1416 + unsafe { 1417 + from_glib_full(ffi::i_cal_property_get_mindate(self.to_glib_none().0)) 1418 + } 1419 + } 1420 + 1421 + #[doc(alias = "i_cal_property_get_multipart")] 1422 + #[doc(alias = "get_multipart")] 1423 + pub fn multipart(&self) -> Option<glib::GString> { 1424 + unsafe { 1425 + from_glib_none(ffi::i_cal_property_get_multipart(self.to_glib_none().0)) 1426 + } 1427 + } 1428 + 1429 + #[doc(alias = "i_cal_property_get_name")] 1430 + #[doc(alias = "get_name")] 1431 + pub fn name(&self) -> Option<glib::GString> { 1432 + unsafe { 1433 + from_glib_none(ffi::i_cal_property_get_name(self.to_glib_none().0)) 1434 + } 1435 + } 1436 + 1437 + #[doc(alias = "i_cal_property_get_next_parameter")] 1438 + #[doc(alias = "get_next_parameter")] 1439 + pub fn next_parameter(&self, kind: ParameterKind) -> Option<Parameter> { 1440 + unsafe { 1441 + from_glib_full(ffi::i_cal_property_get_next_parameter(self.to_glib_none().0, kind.into_glib())) 1442 + } 1443 + } 1444 + 1445 + #[doc(alias = "i_cal_property_get_organizer")] 1446 + #[doc(alias = "get_organizer")] 1447 + pub fn organizer(&self) -> Option<glib::GString> { 1448 + unsafe { 1449 + from_glib_none(ffi::i_cal_property_get_organizer(self.to_glib_none().0)) 1450 + } 1451 + } 1452 + 1453 + #[doc(alias = "i_cal_property_get_owner")] 1454 + #[doc(alias = "get_owner")] 1455 + pub fn owner(&self) -> Option<glib::GString> { 1456 + unsafe { 1457 + from_glib_none(ffi::i_cal_property_get_owner(self.to_glib_none().0)) 1458 + } 1459 + } 1460 + 1461 + #[doc(alias = "i_cal_property_get_parameter_as_string")] 1462 + #[doc(alias = "get_parameter_as_string")] 1463 + pub fn parameter_as_string(&self, name: &str) -> Option<glib::GString> { 1464 + unsafe { 1465 + from_glib_full(ffi::i_cal_property_get_parameter_as_string(self.to_glib_none().0, name.to_glib_none().0)) 1466 + } 1467 + } 1468 + 1469 + #[doc(alias = "i_cal_property_get_parent")] 1470 + #[doc(alias = "get_parent")] 1471 + pub fn parent(&self) -> Option<Component> { 1472 + unsafe { 1473 + from_glib_full(ffi::i_cal_property_get_parent(self.to_glib_none().0)) 1474 + } 1475 + } 1476 + 1477 + #[doc(alias = "i_cal_property_get_percentcomplete")] 1478 + #[doc(alias = "get_percentcomplete")] 1479 + pub fn percentcomplete(&self) -> i32 { 1480 + unsafe { 1481 + ffi::i_cal_property_get_percentcomplete(self.to_glib_none().0) 1482 + } 1483 + } 1484 + 1485 + #[doc(alias = "i_cal_property_get_permission")] 1486 + #[doc(alias = "get_permission")] 1487 + pub fn permission(&self) -> Option<glib::GString> { 1488 + unsafe { 1489 + from_glib_none(ffi::i_cal_property_get_permission(self.to_glib_none().0)) 1490 + } 1491 + } 1492 + 1493 + #[doc(alias = "i_cal_property_get_pollcompletion")] 1494 + #[doc(alias = "get_pollcompletion")] 1495 + pub fn pollcompletion(&self) -> PropertyPollcompletion { 1496 + unsafe { 1497 + from_glib(ffi::i_cal_property_get_pollcompletion(self.to_glib_none().0)) 1498 + } 1499 + } 1500 + 1501 + #[doc(alias = "i_cal_property_get_pollitemid")] 1502 + #[doc(alias = "get_pollitemid")] 1503 + pub fn pollitemid(&self) -> i32 { 1504 + unsafe { 1505 + ffi::i_cal_property_get_pollitemid(self.to_glib_none().0) 1506 + } 1507 + } 1508 + 1509 + #[doc(alias = "i_cal_property_get_pollmode")] 1510 + #[doc(alias = "get_pollmode")] 1511 + pub fn pollmode(&self) -> PropertyPollmode { 1512 + unsafe { 1513 + from_glib(ffi::i_cal_property_get_pollmode(self.to_glib_none().0)) 1514 + } 1515 + } 1516 + 1517 + #[doc(alias = "i_cal_property_get_pollproperties")] 1518 + #[doc(alias = "get_pollproperties")] 1519 + pub fn pollproperties(&self) -> Option<glib::GString> { 1520 + unsafe { 1521 + from_glib_none(ffi::i_cal_property_get_pollproperties(self.to_glib_none().0)) 1522 + } 1523 + } 1524 + 1525 + #[doc(alias = "i_cal_property_get_pollwinner")] 1526 + #[doc(alias = "get_pollwinner")] 1527 + pub fn pollwinner(&self) -> i32 { 1528 + unsafe { 1529 + ffi::i_cal_property_get_pollwinner(self.to_glib_none().0) 1530 + } 1531 + } 1532 + 1533 + #[doc(alias = "i_cal_property_get_priority")] 1534 + #[doc(alias = "get_priority")] 1535 + pub fn priority(&self) -> i32 { 1536 + unsafe { 1537 + ffi::i_cal_property_get_priority(self.to_glib_none().0) 1538 + } 1539 + } 1540 + 1541 + #[doc(alias = "i_cal_property_get_prodid")] 1542 + #[doc(alias = "get_prodid")] 1543 + pub fn prodid(&self) -> Option<glib::GString> { 1544 + unsafe { 1545 + from_glib_none(ffi::i_cal_property_get_prodid(self.to_glib_none().0)) 1546 + } 1547 + } 1548 + 1549 + #[doc(alias = "i_cal_property_get_property_name")] 1550 + #[doc(alias = "get_property_name")] 1551 + pub fn property_name(&self) -> Option<glib::GString> { 1552 + unsafe { 1553 + from_glib_full(ffi::i_cal_property_get_property_name(self.to_glib_none().0)) 1554 + } 1555 + } 1556 + 1557 + #[doc(alias = "i_cal_property_get_query")] 1558 + #[doc(alias = "get_query")] 1559 + pub fn query(&self) -> Option<glib::GString> { 1560 + unsafe { 1561 + from_glib_none(ffi::i_cal_property_get_query(self.to_glib_none().0)) 1562 + } 1563 + } 1564 + 1565 + #[doc(alias = "i_cal_property_get_queryid")] 1566 + #[doc(alias = "get_queryid")] 1567 + pub fn queryid(&self) -> Option<glib::GString> { 1568 + unsafe { 1569 + from_glib_none(ffi::i_cal_property_get_queryid(self.to_glib_none().0)) 1570 + } 1571 + } 1572 + 1573 + #[doc(alias = "i_cal_property_get_querylevel")] 1574 + #[doc(alias = "get_querylevel")] 1575 + pub fn querylevel(&self) -> PropertyQuerylevel { 1576 + unsafe { 1577 + from_glib(ffi::i_cal_property_get_querylevel(self.to_glib_none().0)) 1578 + } 1579 + } 1580 + 1581 + #[doc(alias = "i_cal_property_get_queryname")] 1582 + #[doc(alias = "get_queryname")] 1583 + pub fn queryname(&self) -> Option<glib::GString> { 1584 + unsafe { 1585 + from_glib_none(ffi::i_cal_property_get_queryname(self.to_glib_none().0)) 1586 + } 1587 + } 1588 + 1589 + #[doc(alias = "i_cal_property_get_rdate")] 1590 + #[doc(alias = "get_rdate")] 1591 + pub fn rdate(&self) -> Option<Datetimeperiod> { 1592 + unsafe { 1593 + from_glib_full(ffi::i_cal_property_get_rdate(self.to_glib_none().0)) 1594 + } 1595 + } 1596 + 1597 + #[doc(alias = "i_cal_property_get_recuraccepted")] 1598 + #[doc(alias = "get_recuraccepted")] 1599 + pub fn recuraccepted(&self) -> Option<glib::GString> { 1600 + unsafe { 1601 + from_glib_none(ffi::i_cal_property_get_recuraccepted(self.to_glib_none().0)) 1602 + } 1603 + } 1604 + 1605 + #[doc(alias = "i_cal_property_get_recurexpand")] 1606 + #[doc(alias = "get_recurexpand")] 1607 + pub fn recurexpand(&self) -> Option<glib::GString> { 1608 + unsafe { 1609 + from_glib_none(ffi::i_cal_property_get_recurexpand(self.to_glib_none().0)) 1610 + } 1611 + } 1612 + 1613 + #[doc(alias = "i_cal_property_get_recurlimit")] 1614 + #[doc(alias = "get_recurlimit")] 1615 + pub fn recurlimit(&self) -> Option<glib::GString> { 1616 + unsafe { 1617 + from_glib_none(ffi::i_cal_property_get_recurlimit(self.to_glib_none().0)) 1618 + } 1619 + } 1620 + 1621 + #[doc(alias = "i_cal_property_get_recurrenceid")] 1622 + #[doc(alias = "get_recurrenceid")] 1623 + pub fn recurrenceid(&self) -> Option<Time> { 1624 + unsafe { 1625 + from_glib_full(ffi::i_cal_property_get_recurrenceid(self.to_glib_none().0)) 1626 + } 1627 + } 1628 + 1629 + #[doc(alias = "i_cal_property_get_relatedto")] 1630 + #[doc(alias = "get_relatedto")] 1631 + pub fn relatedto(&self) -> Option<glib::GString> { 1632 + unsafe { 1633 + from_glib_none(ffi::i_cal_property_get_relatedto(self.to_glib_none().0)) 1634 + } 1635 + } 1636 + 1637 + #[doc(alias = "i_cal_property_get_relcalid")] 1638 + #[doc(alias = "get_relcalid")] 1639 + pub fn relcalid(&self) -> Option<glib::GString> { 1640 + unsafe { 1641 + from_glib_none(ffi::i_cal_property_get_relcalid(self.to_glib_none().0)) 1642 + } 1643 + } 1644 + 1645 + #[doc(alias = "i_cal_property_get_repeat")] 1646 + #[doc(alias = "get_repeat")] 1647 + pub fn repeat(&self) -> i32 { 1648 + unsafe { 1649 + ffi::i_cal_property_get_repeat(self.to_glib_none().0) 1650 + } 1651 + } 1652 + 1653 + #[doc(alias = "i_cal_property_get_replyurl")] 1654 + #[doc(alias = "get_replyurl")] 1655 + pub fn replyurl(&self) -> Option<glib::GString> { 1656 + unsafe { 1657 + from_glib_none(ffi::i_cal_property_get_replyurl(self.to_glib_none().0)) 1658 + } 1659 + } 1660 + 1661 + #[doc(alias = "i_cal_property_get_requeststatus")] 1662 + #[doc(alias = "get_requeststatus")] 1663 + pub fn requeststatus(&self) -> Option<Reqstat> { 1664 + unsafe { 1665 + from_glib_full(ffi::i_cal_property_get_requeststatus(self.to_glib_none().0)) 1666 + } 1667 + } 1668 + 1669 + #[doc(alias = "i_cal_property_get_resources")] 1670 + #[doc(alias = "get_resources")] 1671 + pub fn resources(&self) -> Option<glib::GString> { 1672 + unsafe { 1673 + from_glib_none(ffi::i_cal_property_get_resources(self.to_glib_none().0)) 1674 + } 1675 + } 1676 + 1677 + #[doc(alias = "i_cal_property_get_response")] 1678 + #[doc(alias = "get_response")] 1679 + pub fn response(&self) -> i32 { 1680 + unsafe { 1681 + ffi::i_cal_property_get_response(self.to_glib_none().0) 1682 + } 1683 + } 1684 + 1685 + #[doc(alias = "i_cal_property_get_restriction")] 1686 + #[doc(alias = "get_restriction")] 1687 + pub fn restriction(&self) -> Option<glib::GString> { 1688 + unsafe { 1689 + from_glib_none(ffi::i_cal_property_get_restriction(self.to_glib_none().0)) 1690 + } 1691 + } 1692 + 1693 + #[doc(alias = "i_cal_property_get_rrule")] 1694 + #[doc(alias = "get_rrule")] 1695 + pub fn rrule(&self) -> Option<Recurrence> { 1696 + unsafe { 1697 + from_glib_full(ffi::i_cal_property_get_rrule(self.to_glib_none().0)) 1698 + } 1699 + } 1700 + 1701 + #[doc(alias = "i_cal_property_get_scope")] 1702 + #[doc(alias = "get_scope")] 1703 + pub fn scope(&self) -> Option<glib::GString> { 1704 + unsafe { 1705 + from_glib_none(ffi::i_cal_property_get_scope(self.to_glib_none().0)) 1706 + } 1707 + } 1708 + 1709 + #[doc(alias = "i_cal_property_get_sequence")] 1710 + #[doc(alias = "get_sequence")] 1711 + pub fn sequence(&self) -> i32 { 1712 + unsafe { 1713 + ffi::i_cal_property_get_sequence(self.to_glib_none().0) 1714 + } 1715 + } 1716 + 1717 + #[doc(alias = "i_cal_property_get_status")] 1718 + #[doc(alias = "get_status")] 1719 + pub fn status(&self) -> PropertyStatus { 1720 + unsafe { 1721 + from_glib(ffi::i_cal_property_get_status(self.to_glib_none().0)) 1722 + } 1723 + } 1724 + 1725 + #[doc(alias = "i_cal_property_get_storesexpanded")] 1726 + #[doc(alias = "get_storesexpanded")] 1727 + pub fn storesexpanded(&self) -> Option<glib::GString> { 1728 + unsafe { 1729 + from_glib_none(ffi::i_cal_property_get_storesexpanded(self.to_glib_none().0)) 1730 + } 1731 + } 1732 + 1733 + #[doc(alias = "i_cal_property_get_summary")] 1734 + #[doc(alias = "get_summary")] 1735 + pub fn summary(&self) -> Option<glib::GString> { 1736 + unsafe { 1737 + from_glib_none(ffi::i_cal_property_get_summary(self.to_glib_none().0)) 1738 + } 1739 + } 1740 + 1741 + #[doc(alias = "i_cal_property_get_target")] 1742 + #[doc(alias = "get_target")] 1743 + pub fn target(&self) -> Option<glib::GString> { 1744 + unsafe { 1745 + from_glib_none(ffi::i_cal_property_get_target(self.to_glib_none().0)) 1746 + } 1747 + } 1748 + 1749 + #[doc(alias = "i_cal_property_get_taskmode")] 1750 + #[doc(alias = "get_taskmode")] 1751 + pub fn taskmode(&self) -> PropertyTaskmode { 1752 + unsafe { 1753 + from_glib(ffi::i_cal_property_get_taskmode(self.to_glib_none().0)) 1754 + } 1755 + } 1756 + 1757 + #[doc(alias = "i_cal_property_get_transp")] 1758 + #[doc(alias = "get_transp")] 1759 + pub fn transp(&self) -> PropertyTransp { 1760 + unsafe { 1761 + from_glib(ffi::i_cal_property_get_transp(self.to_glib_none().0)) 1762 + } 1763 + } 1764 + 1765 + #[doc(alias = "i_cal_property_get_trigger")] 1766 + #[doc(alias = "get_trigger")] 1767 + pub fn trigger(&self) -> Option<Trigger> { 1768 + unsafe { 1769 + from_glib_full(ffi::i_cal_property_get_trigger(self.to_glib_none().0)) 1770 + } 1771 + } 1772 + 1773 + #[doc(alias = "i_cal_property_get_tzid")] 1774 + #[doc(alias = "get_tzid")] 1775 + pub fn tzid(&self) -> Option<glib::GString> { 1776 + unsafe { 1777 + from_glib_none(ffi::i_cal_property_get_tzid(self.to_glib_none().0)) 1778 + } 1779 + } 1780 + 1781 + #[doc(alias = "i_cal_property_get_tzidaliasof")] 1782 + #[doc(alias = "get_tzidaliasof")] 1783 + pub fn tzidaliasof(&self) -> Option<glib::GString> { 1784 + unsafe { 1785 + from_glib_none(ffi::i_cal_property_get_tzidaliasof(self.to_glib_none().0)) 1786 + } 1787 + } 1788 + 1789 + #[doc(alias = "i_cal_property_get_tzname")] 1790 + #[doc(alias = "get_tzname")] 1791 + pub fn tzname(&self) -> Option<glib::GString> { 1792 + unsafe { 1793 + from_glib_none(ffi::i_cal_property_get_tzname(self.to_glib_none().0)) 1794 + } 1795 + } 1796 + 1797 + #[doc(alias = "i_cal_property_get_tzoffsetfrom")] 1798 + #[doc(alias = "get_tzoffsetfrom")] 1799 + pub fn tzoffsetfrom(&self) -> i32 { 1800 + unsafe { 1801 + ffi::i_cal_property_get_tzoffsetfrom(self.to_glib_none().0) 1802 + } 1803 + } 1804 + 1805 + #[doc(alias = "i_cal_property_get_tzoffsetto")] 1806 + #[doc(alias = "get_tzoffsetto")] 1807 + pub fn tzoffsetto(&self) -> i32 { 1808 + unsafe { 1809 + ffi::i_cal_property_get_tzoffsetto(self.to_glib_none().0) 1810 + } 1811 + } 1812 + 1813 + #[doc(alias = "i_cal_property_get_tzuntil")] 1814 + #[doc(alias = "get_tzuntil")] 1815 + pub fn tzuntil(&self) -> Option<Time> { 1816 + unsafe { 1817 + from_glib_full(ffi::i_cal_property_get_tzuntil(self.to_glib_none().0)) 1818 + } 1819 + } 1820 + 1821 + #[doc(alias = "i_cal_property_get_tzurl")] 1822 + #[doc(alias = "get_tzurl")] 1823 + pub fn tzurl(&self) -> Option<glib::GString> { 1824 + unsafe { 1825 + from_glib_none(ffi::i_cal_property_get_tzurl(self.to_glib_none().0)) 1826 + } 1827 + } 1828 + 1829 + #[doc(alias = "i_cal_property_get_uid")] 1830 + #[doc(alias = "get_uid")] 1831 + pub fn uid(&self) -> Option<glib::GString> { 1832 + unsafe { 1833 + from_glib_none(ffi::i_cal_property_get_uid(self.to_glib_none().0)) 1834 + } 1835 + } 1836 + 1837 + #[doc(alias = "i_cal_property_get_url")] 1838 + #[doc(alias = "get_url")] 1839 + pub fn url(&self) -> Option<glib::GString> { 1840 + unsafe { 1841 + from_glib_none(ffi::i_cal_property_get_url(self.to_glib_none().0)) 1842 + } 1843 + } 1844 + 1845 + #[doc(alias = "i_cal_property_get_value")] 1846 + #[doc(alias = "get_value")] 1847 + pub fn value(&self) -> Option<Value> { 1848 + unsafe { 1849 + from_glib_full(ffi::i_cal_property_get_value(self.to_glib_none().0)) 1850 + } 1851 + } 1852 + 1853 + #[doc(alias = "i_cal_property_get_value_as_string")] 1854 + #[doc(alias = "get_value_as_string")] 1855 + pub fn value_as_string(&self) -> Option<glib::GString> { 1856 + unsafe { 1857 + from_glib_full(ffi::i_cal_property_get_value_as_string(self.to_glib_none().0)) 1858 + } 1859 + } 1860 + 1861 + #[doc(alias = "i_cal_property_get_version")] 1862 + #[doc(alias = "get_version")] 1863 + pub fn version(&self) -> Option<glib::GString> { 1864 + unsafe { 1865 + from_glib_none(ffi::i_cal_property_get_version(self.to_glib_none().0)) 1866 + } 1867 + } 1868 + 1869 + #[doc(alias = "i_cal_property_get_voter")] 1870 + #[doc(alias = "get_voter")] 1871 + pub fn voter(&self) -> Option<glib::GString> { 1872 + unsafe { 1873 + from_glib_none(ffi::i_cal_property_get_voter(self.to_glib_none().0)) 1874 + } 1875 + } 1876 + 1877 + #[doc(alias = "i_cal_property_get_x")] 1878 + #[doc(alias = "get_x")] 1879 + pub fn x(&self) -> Option<glib::GString> { 1880 + unsafe { 1881 + from_glib_none(ffi::i_cal_property_get_x(self.to_glib_none().0)) 1882 + } 1883 + } 1884 + 1885 + #[doc(alias = "i_cal_property_get_x_name")] 1886 + #[doc(alias = "get_x_name")] 1887 + pub fn x_name(&self) -> Option<glib::GString> { 1888 + unsafe { 1889 + from_glib_none(ffi::i_cal_property_get_x_name(self.to_glib_none().0)) 1890 + } 1891 + } 1892 + 1893 + #[doc(alias = "i_cal_property_get_xlicclass")] 1894 + #[doc(alias = "get_xlicclass")] 1895 + pub fn xlicclass(&self) -> PropertyXlicclass { 1896 + unsafe { 1897 + from_glib(ffi::i_cal_property_get_xlicclass(self.to_glib_none().0)) 1898 + } 1899 + } 1900 + 1901 + #[doc(alias = "i_cal_property_get_xlicclustercount")] 1902 + #[doc(alias = "get_xlicclustercount")] 1903 + pub fn xlicclustercount(&self) -> Option<glib::GString> { 1904 + unsafe { 1905 + from_glib_none(ffi::i_cal_property_get_xlicclustercount(self.to_glib_none().0)) 1906 + } 1907 + } 1908 + 1909 + #[doc(alias = "i_cal_property_get_xlicerror")] 1910 + #[doc(alias = "get_xlicerror")] 1911 + pub fn xlicerror(&self) -> Option<glib::GString> { 1912 + unsafe { 1913 + from_glib_none(ffi::i_cal_property_get_xlicerror(self.to_glib_none().0)) 1914 + } 1915 + } 1916 + 1917 + #[doc(alias = "i_cal_property_get_xlicmimecharset")] 1918 + #[doc(alias = "get_xlicmimecharset")] 1919 + pub fn xlicmimecharset(&self) -> Option<glib::GString> { 1920 + unsafe { 1921 + from_glib_none(ffi::i_cal_property_get_xlicmimecharset(self.to_glib_none().0)) 1922 + } 1923 + } 1924 + 1925 + #[doc(alias = "i_cal_property_get_xlicmimecid")] 1926 + #[doc(alias = "get_xlicmimecid")] 1927 + pub fn xlicmimecid(&self) -> Option<glib::GString> { 1928 + unsafe { 1929 + from_glib_none(ffi::i_cal_property_get_xlicmimecid(self.to_glib_none().0)) 1930 + } 1931 + } 1932 + 1933 + #[doc(alias = "i_cal_property_get_xlicmimecontenttype")] 1934 + #[doc(alias = "get_xlicmimecontenttype")] 1935 + pub fn xlicmimecontenttype(&self) -> Option<glib::GString> { 1936 + unsafe { 1937 + from_glib_none(ffi::i_cal_property_get_xlicmimecontenttype(self.to_glib_none().0)) 1938 + } 1939 + } 1940 + 1941 + #[doc(alias = "i_cal_property_get_xlicmimeencoding")] 1942 + #[doc(alias = "get_xlicmimeencoding")] 1943 + pub fn xlicmimeencoding(&self) -> Option<glib::GString> { 1944 + unsafe { 1945 + from_glib_none(ffi::i_cal_property_get_xlicmimeencoding(self.to_glib_none().0)) 1946 + } 1947 + } 1948 + 1949 + #[doc(alias = "i_cal_property_get_xlicmimefilename")] 1950 + #[doc(alias = "get_xlicmimefilename")] 1951 + pub fn xlicmimefilename(&self) -> Option<glib::GString> { 1952 + unsafe { 1953 + from_glib_none(ffi::i_cal_property_get_xlicmimefilename(self.to_glib_none().0)) 1954 + } 1955 + } 1956 + 1957 + #[doc(alias = "i_cal_property_get_xlicmimeoptinfo")] 1958 + #[doc(alias = "get_xlicmimeoptinfo")] 1959 + pub fn xlicmimeoptinfo(&self) -> Option<glib::GString> { 1960 + unsafe { 1961 + from_glib_none(ffi::i_cal_property_get_xlicmimeoptinfo(self.to_glib_none().0)) 1962 + } 1963 + } 1964 + 1965 + #[doc(alias = "i_cal_property_isa")] 1966 + pub fn isa(&self) -> PropertyKind { 1967 + unsafe { 1968 + from_glib(ffi::i_cal_property_isa(self.to_glib_none().0)) 1969 + } 1970 + } 1971 + 1972 + #[doc(alias = "i_cal_property_isa_property")] 1973 + pub fn isa_property(&self) -> i32 { 1974 + unsafe { 1975 + ffi::i_cal_property_isa_property(self.to_glib_none().0) 1976 + } 1977 + } 1978 + 1979 + #[doc(alias = "i_cal_property_remove_parameter_by_kind")] 1980 + pub fn remove_parameter_by_kind(&self, kind: ParameterKind) { 1981 + unsafe { 1982 + ffi::i_cal_property_remove_parameter_by_kind(self.to_glib_none().0, kind.into_glib()); 1983 + } 1984 + } 1985 + 1986 + #[doc(alias = "i_cal_property_remove_parameter_by_name")] 1987 + pub fn remove_parameter_by_name(&self, name: &str) { 1988 + unsafe { 1989 + ffi::i_cal_property_remove_parameter_by_name(self.to_glib_none().0, name.to_glib_none().0); 1990 + } 1991 + } 1992 + 1993 + #[doc(alias = "i_cal_property_remove_parameter_by_ref")] 1994 + pub fn remove_parameter_by_ref(&self, param: &Parameter) { 1995 + unsafe { 1996 + ffi::i_cal_property_remove_parameter_by_ref(self.to_glib_none().0, param.to_glib_none().0); 1997 + } 1998 + } 1999 + 2000 + #[doc(alias = "i_cal_property_set_acceptresponse")] 2001 + pub fn set_acceptresponse(&self, v: &str) { 2002 + unsafe { 2003 + ffi::i_cal_property_set_acceptresponse(self.to_glib_none().0, v.to_glib_none().0); 2004 + } 2005 + } 2006 + 2007 + #[doc(alias = "i_cal_property_set_acknowledged")] 2008 + pub fn set_acknowledged(&self, v: &Time) { 2009 + unsafe { 2010 + ffi::i_cal_property_set_acknowledged(self.to_glib_none().0, v.to_glib_none().0); 2011 + } 2012 + } 2013 + 2014 + #[doc(alias = "i_cal_property_set_action")] 2015 + pub fn set_action(&self, v: PropertyAction) { 2016 + unsafe { 2017 + ffi::i_cal_property_set_action(self.to_glib_none().0, v.into_glib()); 2018 + } 2019 + } 2020 + 2021 + #[doc(alias = "i_cal_property_set_allowconflict")] 2022 + pub fn set_allowconflict(&self, v: &str) { 2023 + unsafe { 2024 + ffi::i_cal_property_set_allowconflict(self.to_glib_none().0, v.to_glib_none().0); 2025 + } 2026 + } 2027 + 2028 + //#[doc(alias = "i_cal_property_set_attach")] 2029 + //pub fn set_attach(&self, v: /*Ignored*/&Attach) { 2030 + // unsafe { TODO: call ffi:i_cal_property_set_attach() } 2031 + //} 2032 + 2033 + #[doc(alias = "i_cal_property_set_attendee")] 2034 + pub fn set_attendee(&self, v: &str) { 2035 + unsafe { 2036 + ffi::i_cal_property_set_attendee(self.to_glib_none().0, v.to_glib_none().0); 2037 + } 2038 + } 2039 + 2040 + #[doc(alias = "i_cal_property_set_busytype")] 2041 + pub fn set_busytype(&self, v: PropertyBusytype) { 2042 + unsafe { 2043 + ffi::i_cal_property_set_busytype(self.to_glib_none().0, v.into_glib()); 2044 + } 2045 + } 2046 + 2047 + #[doc(alias = "i_cal_property_set_calid")] 2048 + pub fn set_calid(&self, v: &str) { 2049 + unsafe { 2050 + ffi::i_cal_property_set_calid(self.to_glib_none().0, v.to_glib_none().0); 2051 + } 2052 + } 2053 + 2054 + #[doc(alias = "i_cal_property_set_calmaster")] 2055 + pub fn set_calmaster(&self, v: &str) { 2056 + unsafe { 2057 + ffi::i_cal_property_set_calmaster(self.to_glib_none().0, v.to_glib_none().0); 2058 + } 2059 + } 2060 + 2061 + #[doc(alias = "i_cal_property_set_calscale")] 2062 + pub fn set_calscale(&self, v: &str) { 2063 + unsafe { 2064 + ffi::i_cal_property_set_calscale(self.to_glib_none().0, v.to_glib_none().0); 2065 + } 2066 + } 2067 + 2068 + #[doc(alias = "i_cal_property_set_capversion")] 2069 + pub fn set_capversion(&self, v: &str) { 2070 + unsafe { 2071 + ffi::i_cal_property_set_capversion(self.to_glib_none().0, v.to_glib_none().0); 2072 + } 2073 + } 2074 + 2075 + #[doc(alias = "i_cal_property_set_carid")] 2076 + pub fn set_carid(&self, v: &str) { 2077 + unsafe { 2078 + ffi::i_cal_property_set_carid(self.to_glib_none().0, v.to_glib_none().0); 2079 + } 2080 + } 2081 + 2082 + #[doc(alias = "i_cal_property_set_carlevel")] 2083 + pub fn set_carlevel(&self, v: PropertyCarlevel) { 2084 + unsafe { 2085 + ffi::i_cal_property_set_carlevel(self.to_glib_none().0, v.into_glib()); 2086 + } 2087 + } 2088 + 2089 + #[doc(alias = "i_cal_property_set_categories")] 2090 + pub fn set_categories(&self, v: &str) { 2091 + unsafe { 2092 + ffi::i_cal_property_set_categories(self.to_glib_none().0, v.to_glib_none().0); 2093 + } 2094 + } 2095 + 2096 + #[doc(alias = "i_cal_property_set_class")] 2097 + pub fn set_class(&self, v: Property_Class) { 2098 + unsafe { 2099 + ffi::i_cal_property_set_class(self.to_glib_none().0, v.into_glib()); 2100 + } 2101 + } 2102 + 2103 + #[doc(alias = "i_cal_property_set_cmd")] 2104 + pub fn set_cmd(&self, v: PropertyCmd) { 2105 + unsafe { 2106 + ffi::i_cal_property_set_cmd(self.to_glib_none().0, v.into_glib()); 2107 + } 2108 + } 2109 + 2110 + #[doc(alias = "i_cal_property_set_color")] 2111 + pub fn set_color(&self, v: &str) { 2112 + unsafe { 2113 + ffi::i_cal_property_set_color(self.to_glib_none().0, v.to_glib_none().0); 2114 + } 2115 + } 2116 + 2117 + #[doc(alias = "i_cal_property_set_comment")] 2118 + pub fn set_comment(&self, v: &str) { 2119 + unsafe { 2120 + ffi::i_cal_property_set_comment(self.to_glib_none().0, v.to_glib_none().0); 2121 + } 2122 + } 2123 + 2124 + #[doc(alias = "i_cal_property_set_completed")] 2125 + pub fn set_completed(&self, v: &Time) { 2126 + unsafe { 2127 + ffi::i_cal_property_set_completed(self.to_glib_none().0, v.to_glib_none().0); 2128 + } 2129 + } 2130 + 2131 + #[doc(alias = "i_cal_property_set_components")] 2132 + pub fn set_components(&self, v: &str) { 2133 + unsafe { 2134 + ffi::i_cal_property_set_components(self.to_glib_none().0, v.to_glib_none().0); 2135 + } 2136 + } 2137 + 2138 + #[doc(alias = "i_cal_property_set_contact")] 2139 + pub fn set_contact(&self, v: &str) { 2140 + unsafe { 2141 + ffi::i_cal_property_set_contact(self.to_glib_none().0, v.to_glib_none().0); 2142 + } 2143 + } 2144 + 2145 + #[doc(alias = "i_cal_property_set_created")] 2146 + pub fn set_created(&self, v: &Time) { 2147 + unsafe { 2148 + ffi::i_cal_property_set_created(self.to_glib_none().0, v.to_glib_none().0); 2149 + } 2150 + } 2151 + 2152 + #[doc(alias = "i_cal_property_set_csid")] 2153 + pub fn set_csid(&self, v: &str) { 2154 + unsafe { 2155 + ffi::i_cal_property_set_csid(self.to_glib_none().0, v.to_glib_none().0); 2156 + } 2157 + } 2158 + 2159 + #[doc(alias = "i_cal_property_set_datemax")] 2160 + pub fn set_datemax(&self, v: &Time) { 2161 + unsafe { 2162 + ffi::i_cal_property_set_datemax(self.to_glib_none().0, v.to_glib_none().0); 2163 + } 2164 + } 2165 + 2166 + #[doc(alias = "i_cal_property_set_datemin")] 2167 + pub fn set_datemin(&self, v: &Time) { 2168 + unsafe { 2169 + ffi::i_cal_property_set_datemin(self.to_glib_none().0, v.to_glib_none().0); 2170 + } 2171 + } 2172 + 2173 + #[doc(alias = "i_cal_property_set_decreed")] 2174 + pub fn set_decreed(&self, v: &str) { 2175 + unsafe { 2176 + ffi::i_cal_property_set_decreed(self.to_glib_none().0, v.to_glib_none().0); 2177 + } 2178 + } 2179 + 2180 + #[doc(alias = "i_cal_property_set_defaultcharset")] 2181 + pub fn set_defaultcharset(&self, v: &str) { 2182 + unsafe { 2183 + ffi::i_cal_property_set_defaultcharset(self.to_glib_none().0, v.to_glib_none().0); 2184 + } 2185 + } 2186 + 2187 + #[doc(alias = "i_cal_property_set_defaultlocale")] 2188 + pub fn set_defaultlocale(&self, v: &str) { 2189 + unsafe { 2190 + ffi::i_cal_property_set_defaultlocale(self.to_glib_none().0, v.to_glib_none().0); 2191 + } 2192 + } 2193 + 2194 + #[doc(alias = "i_cal_property_set_defaulttzid")] 2195 + pub fn set_defaulttzid(&self, v: &str) { 2196 + unsafe { 2197 + ffi::i_cal_property_set_defaulttzid(self.to_glib_none().0, v.to_glib_none().0); 2198 + } 2199 + } 2200 + 2201 + #[doc(alias = "i_cal_property_set_defaultvcars")] 2202 + pub fn set_defaultvcars(&self, v: &str) { 2203 + unsafe { 2204 + ffi::i_cal_property_set_defaultvcars(self.to_glib_none().0, v.to_glib_none().0); 2205 + } 2206 + } 2207 + 2208 + #[doc(alias = "i_cal_property_set_deny")] 2209 + pub fn set_deny(&self, v: &str) { 2210 + unsafe { 2211 + ffi::i_cal_property_set_deny(self.to_glib_none().0, v.to_glib_none().0); 2212 + } 2213 + } 2214 + 2215 + #[doc(alias = "i_cal_property_set_description")] 2216 + pub fn set_description(&self, v: &str) { 2217 + unsafe { 2218 + ffi::i_cal_property_set_description(self.to_glib_none().0, v.to_glib_none().0); 2219 + } 2220 + } 2221 + 2222 + #[doc(alias = "i_cal_property_set_dtend")] 2223 + pub fn set_dtend(&self, v: &Time) { 2224 + unsafe { 2225 + ffi::i_cal_property_set_dtend(self.to_glib_none().0, v.to_glib_none().0); 2226 + } 2227 + } 2228 + 2229 + #[doc(alias = "i_cal_property_set_dtstamp")] 2230 + pub fn set_dtstamp(&self, v: &Time) { 2231 + unsafe { 2232 + ffi::i_cal_property_set_dtstamp(self.to_glib_none().0, v.to_glib_none().0); 2233 + } 2234 + } 2235 + 2236 + #[doc(alias = "i_cal_property_set_dtstart")] 2237 + pub fn set_dtstart(&self, v: &Time) { 2238 + unsafe { 2239 + ffi::i_cal_property_set_dtstart(self.to_glib_none().0, v.to_glib_none().0); 2240 + } 2241 + } 2242 + 2243 + #[doc(alias = "i_cal_property_set_due")] 2244 + pub fn set_due(&self, v: &Time) { 2245 + unsafe { 2246 + ffi::i_cal_property_set_due(self.to_glib_none().0, v.to_glib_none().0); 2247 + } 2248 + } 2249 + 2250 + #[doc(alias = "i_cal_property_set_duration")] 2251 + pub fn set_duration(&self, v: &Duration) { 2252 + unsafe { 2253 + ffi::i_cal_property_set_duration(self.to_glib_none().0, v.to_glib_none().0); 2254 + } 2255 + } 2256 + 2257 + #[doc(alias = "i_cal_property_set_estimatedduration")] 2258 + pub fn set_estimatedduration(&self, v: &Duration) { 2259 + unsafe { 2260 + ffi::i_cal_property_set_estimatedduration(self.to_glib_none().0, v.to_glib_none().0); 2261 + } 2262 + } 2263 + 2264 + #[doc(alias = "i_cal_property_set_exdate")] 2265 + pub fn set_exdate(&self, v: &Time) { 2266 + unsafe { 2267 + ffi::i_cal_property_set_exdate(self.to_glib_none().0, v.to_glib_none().0); 2268 + } 2269 + } 2270 + 2271 + #[doc(alias = "i_cal_property_set_expand")] 2272 + pub fn set_expand(&self, v: i32) { 2273 + unsafe { 2274 + ffi::i_cal_property_set_expand(self.to_glib_none().0, v); 2275 + } 2276 + } 2277 + 2278 + #[doc(alias = "i_cal_property_set_exrule")] 2279 + pub fn set_exrule(&self, v: &Recurrence) { 2280 + unsafe { 2281 + ffi::i_cal_property_set_exrule(self.to_glib_none().0, v.to_glib_none().0); 2282 + } 2283 + } 2284 + 2285 + #[doc(alias = "i_cal_property_set_freebusy")] 2286 + pub fn set_freebusy(&self, v: &Period) { 2287 + unsafe { 2288 + ffi::i_cal_property_set_freebusy(self.to_glib_none().0, v.to_glib_none().0); 2289 + } 2290 + } 2291 + 2292 + #[doc(alias = "i_cal_property_set_geo")] 2293 + pub fn set_geo(&self, v: &Geo) { 2294 + unsafe { 2295 + ffi::i_cal_property_set_geo(self.to_glib_none().0, v.to_glib_none().0); 2296 + } 2297 + } 2298 + 2299 + #[doc(alias = "i_cal_property_set_grant")] 2300 + pub fn set_grant(&self, v: &str) { 2301 + unsafe { 2302 + ffi::i_cal_property_set_grant(self.to_glib_none().0, v.to_glib_none().0); 2303 + } 2304 + } 2305 + 2306 + #[doc(alias = "i_cal_property_set_itipversion")] 2307 + pub fn set_itipversion(&self, v: &str) { 2308 + unsafe { 2309 + ffi::i_cal_property_set_itipversion(self.to_glib_none().0, v.to_glib_none().0); 2310 + } 2311 + } 2312 + 2313 + #[doc(alias = "i_cal_property_set_lastmodified")] 2314 + pub fn set_lastmodified(&self, v: &Time) { 2315 + unsafe { 2316 + ffi::i_cal_property_set_lastmodified(self.to_glib_none().0, v.to_glib_none().0); 2317 + } 2318 + } 2319 + 2320 + #[doc(alias = "i_cal_property_set_location")] 2321 + pub fn set_location(&self, v: &str) { 2322 + unsafe { 2323 + ffi::i_cal_property_set_location(self.to_glib_none().0, v.to_glib_none().0); 2324 + } 2325 + } 2326 + 2327 + #[doc(alias = "i_cal_property_set_maxcomponentsize")] 2328 + pub fn set_maxcomponentsize(&self, v: i32) { 2329 + unsafe { 2330 + ffi::i_cal_property_set_maxcomponentsize(self.to_glib_none().0, v); 2331 + } 2332 + } 2333 + 2334 + #[doc(alias = "i_cal_property_set_maxdate")] 2335 + pub fn set_maxdate(&self, v: &Time) { 2336 + unsafe { 2337 + ffi::i_cal_property_set_maxdate(self.to_glib_none().0, v.to_glib_none().0); 2338 + } 2339 + } 2340 + 2341 + #[doc(alias = "i_cal_property_set_maxresults")] 2342 + pub fn set_maxresults(&self, v: i32) { 2343 + unsafe { 2344 + ffi::i_cal_property_set_maxresults(self.to_glib_none().0, v); 2345 + } 2346 + } 2347 + 2348 + #[doc(alias = "i_cal_property_set_maxresultssize")] 2349 + pub fn set_maxresultssize(&self, v: i32) { 2350 + unsafe { 2351 + ffi::i_cal_property_set_maxresultssize(self.to_glib_none().0, v); 2352 + } 2353 + } 2354 + 2355 + #[doc(alias = "i_cal_property_set_method")] 2356 + pub fn set_method(&self, v: PropertyMethod) { 2357 + unsafe { 2358 + ffi::i_cal_property_set_method(self.to_glib_none().0, v.into_glib()); 2359 + } 2360 + } 2361 + 2362 + #[doc(alias = "i_cal_property_set_mindate")] 2363 + pub fn set_mindate(&self, v: &Time) { 2364 + unsafe { 2365 + ffi::i_cal_property_set_mindate(self.to_glib_none().0, v.to_glib_none().0); 2366 + } 2367 + } 2368 + 2369 + #[doc(alias = "i_cal_property_set_multipart")] 2370 + pub fn set_multipart(&self, v: &str) { 2371 + unsafe { 2372 + ffi::i_cal_property_set_multipart(self.to_glib_none().0, v.to_glib_none().0); 2373 + } 2374 + } 2375 + 2376 + #[doc(alias = "i_cal_property_set_name")] 2377 + pub fn set_name(&self, v: &str) { 2378 + unsafe { 2379 + ffi::i_cal_property_set_name(self.to_glib_none().0, v.to_glib_none().0); 2380 + } 2381 + } 2382 + 2383 + #[doc(alias = "i_cal_property_set_organizer")] 2384 + pub fn set_organizer(&self, v: &str) { 2385 + unsafe { 2386 + ffi::i_cal_property_set_organizer(self.to_glib_none().0, v.to_glib_none().0); 2387 + } 2388 + } 2389 + 2390 + #[doc(alias = "i_cal_property_set_owner")] 2391 + pub fn set_owner(&self, v: &str) { 2392 + unsafe { 2393 + ffi::i_cal_property_set_owner(self.to_glib_none().0, v.to_glib_none().0); 2394 + } 2395 + } 2396 + 2397 + #[doc(alias = "i_cal_property_set_parameter")] 2398 + pub fn set_parameter(&self, parameter: &Parameter) { 2399 + unsafe { 2400 + ffi::i_cal_property_set_parameter(self.to_glib_none().0, parameter.to_glib_none().0); 2401 + } 2402 + } 2403 + 2404 + #[doc(alias = "i_cal_property_set_parameter_from_string")] 2405 + pub fn set_parameter_from_string(&self, name: &str, value: &str) { 2406 + unsafe { 2407 + ffi::i_cal_property_set_parameter_from_string(self.to_glib_none().0, name.to_glib_none().0, value.to_glib_none().0); 2408 + } 2409 + } 2410 + 2411 + #[doc(alias = "i_cal_property_set_parent")] 2412 + pub fn set_parent(&self, component: Option<&Component>) { 2413 + unsafe { 2414 + ffi::i_cal_property_set_parent(self.to_glib_none().0, component.to_glib_none().0); 2415 + } 2416 + } 2417 + 2418 + #[doc(alias = "i_cal_property_set_percentcomplete")] 2419 + pub fn set_percentcomplete(&self, v: i32) { 2420 + unsafe { 2421 + ffi::i_cal_property_set_percentcomplete(self.to_glib_none().0, v); 2422 + } 2423 + } 2424 + 2425 + #[doc(alias = "i_cal_property_set_permission")] 2426 + pub fn set_permission(&self, v: &str) { 2427 + unsafe { 2428 + ffi::i_cal_property_set_permission(self.to_glib_none().0, v.to_glib_none().0); 2429 + } 2430 + } 2431 + 2432 + #[doc(alias = "i_cal_property_set_pollcompletion")] 2433 + pub fn set_pollcompletion(&self, v: PropertyPollcompletion) { 2434 + unsafe { 2435 + ffi::i_cal_property_set_pollcompletion(self.to_glib_none().0, v.into_glib()); 2436 + } 2437 + } 2438 + 2439 + #[doc(alias = "i_cal_property_set_pollitemid")] 2440 + pub fn set_pollitemid(&self, v: i32) { 2441 + unsafe { 2442 + ffi::i_cal_property_set_pollitemid(self.to_glib_none().0, v); 2443 + } 2444 + } 2445 + 2446 + #[doc(alias = "i_cal_property_set_pollmode")] 2447 + pub fn set_pollmode(&self, v: PropertyPollmode) { 2448 + unsafe { 2449 + ffi::i_cal_property_set_pollmode(self.to_glib_none().0, v.into_glib()); 2450 + } 2451 + } 2452 + 2453 + #[doc(alias = "i_cal_property_set_pollproperties")] 2454 + pub fn set_pollproperties(&self, v: &str) { 2455 + unsafe { 2456 + ffi::i_cal_property_set_pollproperties(self.to_glib_none().0, v.to_glib_none().0); 2457 + } 2458 + } 2459 + 2460 + #[doc(alias = "i_cal_property_set_pollwinner")] 2461 + pub fn set_pollwinner(&self, v: i32) { 2462 + unsafe { 2463 + ffi::i_cal_property_set_pollwinner(self.to_glib_none().0, v); 2464 + } 2465 + } 2466 + 2467 + #[doc(alias = "i_cal_property_set_priority")] 2468 + pub fn set_priority(&self, v: i32) { 2469 + unsafe { 2470 + ffi::i_cal_property_set_priority(self.to_glib_none().0, v); 2471 + } 2472 + } 2473 + 2474 + #[doc(alias = "i_cal_property_set_prodid")] 2475 + pub fn set_prodid(&self, v: &str) { 2476 + unsafe { 2477 + ffi::i_cal_property_set_prodid(self.to_glib_none().0, v.to_glib_none().0); 2478 + } 2479 + } 2480 + 2481 + #[doc(alias = "i_cal_property_set_query")] 2482 + pub fn set_query(&self, v: &str) { 2483 + unsafe { 2484 + ffi::i_cal_property_set_query(self.to_glib_none().0, v.to_glib_none().0); 2485 + } 2486 + } 2487 + 2488 + #[doc(alias = "i_cal_property_set_queryid")] 2489 + pub fn set_queryid(&self, v: &str) { 2490 + unsafe { 2491 + ffi::i_cal_property_set_queryid(self.to_glib_none().0, v.to_glib_none().0); 2492 + } 2493 + } 2494 + 2495 + #[doc(alias = "i_cal_property_set_querylevel")] 2496 + pub fn set_querylevel(&self, v: PropertyQuerylevel) { 2497 + unsafe { 2498 + ffi::i_cal_property_set_querylevel(self.to_glib_none().0, v.into_glib()); 2499 + } 2500 + } 2501 + 2502 + #[doc(alias = "i_cal_property_set_queryname")] 2503 + pub fn set_queryname(&self, v: &str) { 2504 + unsafe { 2505 + ffi::i_cal_property_set_queryname(self.to_glib_none().0, v.to_glib_none().0); 2506 + } 2507 + } 2508 + 2509 + #[doc(alias = "i_cal_property_set_rdate")] 2510 + pub fn set_rdate(&self, v: &Datetimeperiod) { 2511 + unsafe { 2512 + ffi::i_cal_property_set_rdate(self.to_glib_none().0, v.to_glib_none().0); 2513 + } 2514 + } 2515 + 2516 + #[doc(alias = "i_cal_property_set_recuraccepted")] 2517 + pub fn set_recuraccepted(&self, v: &str) { 2518 + unsafe { 2519 + ffi::i_cal_property_set_recuraccepted(self.to_glib_none().0, v.to_glib_none().0); 2520 + } 2521 + } 2522 + 2523 + #[doc(alias = "i_cal_property_set_recurexpand")] 2524 + pub fn set_recurexpand(&self, v: &str) { 2525 + unsafe { 2526 + ffi::i_cal_property_set_recurexpand(self.to_glib_none().0, v.to_glib_none().0); 2527 + } 2528 + } 2529 + 2530 + #[doc(alias = "i_cal_property_set_recurlimit")] 2531 + pub fn set_recurlimit(&self, v: &str) { 2532 + unsafe { 2533 + ffi::i_cal_property_set_recurlimit(self.to_glib_none().0, v.to_glib_none().0); 2534 + } 2535 + } 2536 + 2537 + #[doc(alias = "i_cal_property_set_recurrenceid")] 2538 + pub fn set_recurrenceid(&self, v: &Time) { 2539 + unsafe { 2540 + ffi::i_cal_property_set_recurrenceid(self.to_glib_none().0, v.to_glib_none().0); 2541 + } 2542 + } 2543 + 2544 + #[doc(alias = "i_cal_property_set_relatedto")] 2545 + pub fn set_relatedto(&self, v: &str) { 2546 + unsafe { 2547 + ffi::i_cal_property_set_relatedto(self.to_glib_none().0, v.to_glib_none().0); 2548 + } 2549 + } 2550 + 2551 + #[doc(alias = "i_cal_property_set_relcalid")] 2552 + pub fn set_relcalid(&self, v: &str) { 2553 + unsafe { 2554 + ffi::i_cal_property_set_relcalid(self.to_glib_none().0, v.to_glib_none().0); 2555 + } 2556 + } 2557 + 2558 + #[doc(alias = "i_cal_property_set_repeat")] 2559 + pub fn set_repeat(&self, v: i32) { 2560 + unsafe { 2561 + ffi::i_cal_property_set_repeat(self.to_glib_none().0, v); 2562 + } 2563 + } 2564 + 2565 + #[doc(alias = "i_cal_property_set_replyurl")] 2566 + pub fn set_replyurl(&self, v: &str) { 2567 + unsafe { 2568 + ffi::i_cal_property_set_replyurl(self.to_glib_none().0, v.to_glib_none().0); 2569 + } 2570 + } 2571 + 2572 + #[doc(alias = "i_cal_property_set_requeststatus")] 2573 + pub fn set_requeststatus(&self, v: &Reqstat) { 2574 + unsafe { 2575 + ffi::i_cal_property_set_requeststatus(self.to_glib_none().0, v.to_glib_none().0); 2576 + } 2577 + } 2578 + 2579 + #[doc(alias = "i_cal_property_set_resources")] 2580 + pub fn set_resources(&self, v: &str) { 2581 + unsafe { 2582 + ffi::i_cal_property_set_resources(self.to_glib_none().0, v.to_glib_none().0); 2583 + } 2584 + } 2585 + 2586 + #[doc(alias = "i_cal_property_set_response")] 2587 + pub fn set_response(&self, v: i32) { 2588 + unsafe { 2589 + ffi::i_cal_property_set_response(self.to_glib_none().0, v); 2590 + } 2591 + } 2592 + 2593 + #[doc(alias = "i_cal_property_set_restriction")] 2594 + pub fn set_restriction(&self, v: &str) { 2595 + unsafe { 2596 + ffi::i_cal_property_set_restriction(self.to_glib_none().0, v.to_glib_none().0); 2597 + } 2598 + } 2599 + 2600 + #[doc(alias = "i_cal_property_set_rrule")] 2601 + pub fn set_rrule(&self, v: &Recurrence) { 2602 + unsafe { 2603 + ffi::i_cal_property_set_rrule(self.to_glib_none().0, v.to_glib_none().0); 2604 + } 2605 + } 2606 + 2607 + #[doc(alias = "i_cal_property_set_scope")] 2608 + pub fn set_scope(&self, v: &str) { 2609 + unsafe { 2610 + ffi::i_cal_property_set_scope(self.to_glib_none().0, v.to_glib_none().0); 2611 + } 2612 + } 2613 + 2614 + #[doc(alias = "i_cal_property_set_sequence")] 2615 + pub fn set_sequence(&self, v: i32) { 2616 + unsafe { 2617 + ffi::i_cal_property_set_sequence(self.to_glib_none().0, v); 2618 + } 2619 + } 2620 + 2621 + #[doc(alias = "i_cal_property_set_status")] 2622 + pub fn set_status(&self, v: PropertyStatus) { 2623 + unsafe { 2624 + ffi::i_cal_property_set_status(self.to_glib_none().0, v.into_glib()); 2625 + } 2626 + } 2627 + 2628 + #[doc(alias = "i_cal_property_set_storesexpanded")] 2629 + pub fn set_storesexpanded(&self, v: &str) { 2630 + unsafe { 2631 + ffi::i_cal_property_set_storesexpanded(self.to_glib_none().0, v.to_glib_none().0); 2632 + } 2633 + } 2634 + 2635 + #[doc(alias = "i_cal_property_set_summary")] 2636 + pub fn set_summary(&self, v: &str) { 2637 + unsafe { 2638 + ffi::i_cal_property_set_summary(self.to_glib_none().0, v.to_glib_none().0); 2639 + } 2640 + } 2641 + 2642 + #[doc(alias = "i_cal_property_set_target")] 2643 + pub fn set_target(&self, v: &str) { 2644 + unsafe { 2645 + ffi::i_cal_property_set_target(self.to_glib_none().0, v.to_glib_none().0); 2646 + } 2647 + } 2648 + 2649 + #[doc(alias = "i_cal_property_set_taskmode")] 2650 + pub fn set_taskmode(&self, v: PropertyTaskmode) { 2651 + unsafe { 2652 + ffi::i_cal_property_set_taskmode(self.to_glib_none().0, v.into_glib()); 2653 + } 2654 + } 2655 + 2656 + #[doc(alias = "i_cal_property_set_transp")] 2657 + pub fn set_transp(&self, v: PropertyTransp) { 2658 + unsafe { 2659 + ffi::i_cal_property_set_transp(self.to_glib_none().0, v.into_glib()); 2660 + } 2661 + } 2662 + 2663 + #[doc(alias = "i_cal_property_set_trigger")] 2664 + pub fn set_trigger(&self, v: &Trigger) { 2665 + unsafe { 2666 + ffi::i_cal_property_set_trigger(self.to_glib_none().0, v.to_glib_none().0); 2667 + } 2668 + } 2669 + 2670 + #[doc(alias = "i_cal_property_set_tzid")] 2671 + pub fn set_tzid(&self, v: &str) { 2672 + unsafe { 2673 + ffi::i_cal_property_set_tzid(self.to_glib_none().0, v.to_glib_none().0); 2674 + } 2675 + } 2676 + 2677 + #[doc(alias = "i_cal_property_set_tzidaliasof")] 2678 + pub fn set_tzidaliasof(&self, v: &str) { 2679 + unsafe { 2680 + ffi::i_cal_property_set_tzidaliasof(self.to_glib_none().0, v.to_glib_none().0); 2681 + } 2682 + } 2683 + 2684 + #[doc(alias = "i_cal_property_set_tzname")] 2685 + pub fn set_tzname(&self, v: &str) { 2686 + unsafe { 2687 + ffi::i_cal_property_set_tzname(self.to_glib_none().0, v.to_glib_none().0); 2688 + } 2689 + } 2690 + 2691 + #[doc(alias = "i_cal_property_set_tzoffsetfrom")] 2692 + pub fn set_tzoffsetfrom(&self, v: i32) { 2693 + unsafe { 2694 + ffi::i_cal_property_set_tzoffsetfrom(self.to_glib_none().0, v); 2695 + } 2696 + } 2697 + 2698 + #[doc(alias = "i_cal_property_set_tzoffsetto")] 2699 + pub fn set_tzoffsetto(&self, v: i32) { 2700 + unsafe { 2701 + ffi::i_cal_property_set_tzoffsetto(self.to_glib_none().0, v); 2702 + } 2703 + } 2704 + 2705 + #[doc(alias = "i_cal_property_set_tzuntil")] 2706 + pub fn set_tzuntil(&self, v: &Time) { 2707 + unsafe { 2708 + ffi::i_cal_property_set_tzuntil(self.to_glib_none().0, v.to_glib_none().0); 2709 + } 2710 + } 2711 + 2712 + #[doc(alias = "i_cal_property_set_tzurl")] 2713 + pub fn set_tzurl(&self, v: &str) { 2714 + unsafe { 2715 + ffi::i_cal_property_set_tzurl(self.to_glib_none().0, v.to_glib_none().0); 2716 + } 2717 + } 2718 + 2719 + #[doc(alias = "i_cal_property_set_uid")] 2720 + pub fn set_uid(&self, v: &str) { 2721 + unsafe { 2722 + ffi::i_cal_property_set_uid(self.to_glib_none().0, v.to_glib_none().0); 2723 + } 2724 + } 2725 + 2726 + #[doc(alias = "i_cal_property_set_url")] 2727 + pub fn set_url(&self, v: &str) { 2728 + unsafe { 2729 + ffi::i_cal_property_set_url(self.to_glib_none().0, v.to_glib_none().0); 2730 + } 2731 + } 2732 + 2733 + #[doc(alias = "i_cal_property_set_value")] 2734 + pub fn set_value(&self, value: &Value) { 2735 + unsafe { 2736 + ffi::i_cal_property_set_value(self.to_glib_none().0, value.to_glib_none().0); 2737 + } 2738 + } 2739 + 2740 + #[doc(alias = "i_cal_property_set_value_from_string")] 2741 + pub fn set_value_from_string(&self, value: &str, kind: &str) { 2742 + unsafe { 2743 + ffi::i_cal_property_set_value_from_string(self.to_glib_none().0, value.to_glib_none().0, kind.to_glib_none().0); 2744 + } 2745 + } 2746 + 2747 + #[doc(alias = "i_cal_property_set_version")] 2748 + pub fn set_version(&self, v: &str) { 2749 + unsafe { 2750 + ffi::i_cal_property_set_version(self.to_glib_none().0, v.to_glib_none().0); 2751 + } 2752 + } 2753 + 2754 + #[doc(alias = "i_cal_property_set_voter")] 2755 + pub fn set_voter(&self, v: &str) { 2756 + unsafe { 2757 + ffi::i_cal_property_set_voter(self.to_glib_none().0, v.to_glib_none().0); 2758 + } 2759 + } 2760 + 2761 + #[doc(alias = "i_cal_property_set_x")] 2762 + pub fn set_x(&self, v: &str) { 2763 + unsafe { 2764 + ffi::i_cal_property_set_x(self.to_glib_none().0, v.to_glib_none().0); 2765 + } 2766 + } 2767 + 2768 + #[doc(alias = "i_cal_property_set_x_name")] 2769 + pub fn set_x_name(&self, name: &str) { 2770 + unsafe { 2771 + ffi::i_cal_property_set_x_name(self.to_glib_none().0, name.to_glib_none().0); 2772 + } 2773 + } 2774 + 2775 + #[doc(alias = "i_cal_property_set_xlicclass")] 2776 + pub fn set_xlicclass(&self, v: PropertyXlicclass) { 2777 + unsafe { 2778 + ffi::i_cal_property_set_xlicclass(self.to_glib_none().0, v.into_glib()); 2779 + } 2780 + } 2781 + 2782 + #[doc(alias = "i_cal_property_set_xlicclustercount")] 2783 + pub fn set_xlicclustercount(&self, v: &str) { 2784 + unsafe { 2785 + ffi::i_cal_property_set_xlicclustercount(self.to_glib_none().0, v.to_glib_none().0); 2786 + } 2787 + } 2788 + 2789 + #[doc(alias = "i_cal_property_set_xlicerror")] 2790 + pub fn set_xlicerror(&self, v: &str) { 2791 + unsafe { 2792 + ffi::i_cal_property_set_xlicerror(self.to_glib_none().0, v.to_glib_none().0); 2793 + } 2794 + } 2795 + 2796 + #[doc(alias = "i_cal_property_set_xlicmimecharset")] 2797 + pub fn set_xlicmimecharset(&self, v: &str) { 2798 + unsafe { 2799 + ffi::i_cal_property_set_xlicmimecharset(self.to_glib_none().0, v.to_glib_none().0); 2800 + } 2801 + } 2802 + 2803 + #[doc(alias = "i_cal_property_set_xlicmimecid")] 2804 + pub fn set_xlicmimecid(&self, v: &str) { 2805 + unsafe { 2806 + ffi::i_cal_property_set_xlicmimecid(self.to_glib_none().0, v.to_glib_none().0); 2807 + } 2808 + } 2809 + 2810 + #[doc(alias = "i_cal_property_set_xlicmimecontenttype")] 2811 + pub fn set_xlicmimecontenttype(&self, v: &str) { 2812 + unsafe { 2813 + ffi::i_cal_property_set_xlicmimecontenttype(self.to_glib_none().0, v.to_glib_none().0); 2814 + } 2815 + } 2816 + 2817 + #[doc(alias = "i_cal_property_set_xlicmimeencoding")] 2818 + pub fn set_xlicmimeencoding(&self, v: &str) { 2819 + unsafe { 2820 + ffi::i_cal_property_set_xlicmimeencoding(self.to_glib_none().0, v.to_glib_none().0); 2821 + } 2822 + } 2823 + 2824 + #[doc(alias = "i_cal_property_set_xlicmimefilename")] 2825 + pub fn set_xlicmimefilename(&self, v: &str) { 2826 + unsafe { 2827 + ffi::i_cal_property_set_xlicmimefilename(self.to_glib_none().0, v.to_glib_none().0); 2828 + } 2829 + } 2830 + 2831 + #[doc(alias = "i_cal_property_set_xlicmimeoptinfo")] 2832 + pub fn set_xlicmimeoptinfo(&self, v: &str) { 2833 + unsafe { 2834 + ffi::i_cal_property_set_xlicmimeoptinfo(self.to_glib_none().0, v.to_glib_none().0); 2835 + } 2836 + } 2837 + 2838 + #[doc(alias = "i_cal_property_take_parameter")] 2839 + pub fn take_parameter(&self, parameter: Parameter) { 2840 + unsafe { 2841 + ffi::i_cal_property_take_parameter(self.to_glib_none().0, parameter.into_glib_ptr()); 2842 + } 2843 + } 2844 + 2845 + #[doc(alias = "i_cal_property_take_value")] 2846 + pub fn take_value(&self, value: Value) { 2847 + unsafe { 2848 + ffi::i_cal_property_take_value(self.to_glib_none().0, value.into_glib_ptr()); 2849 + } 2850 + } 2851 + 2852 + #[doc(alias = "i_cal_property_enum_to_string")] 2853 + pub fn enum_to_string(e: i32) -> Option<glib::GString> { 2854 + assert_initialized_main_thread!(); 2855 + unsafe { 2856 + from_glib_full(ffi::i_cal_property_enum_to_string(e)) 2857 + } 2858 + } 2859 + 2860 + #[doc(alias = "i_cal_property_kind_and_string_to_enum")] 2861 + pub fn kind_and_string_to_enum(kind: i32, str: &str) -> i32 { 2862 + assert_initialized_main_thread!(); 2863 + unsafe { 2864 + ffi::i_cal_property_kind_and_string_to_enum(kind, str.to_glib_none().0) 2865 + } 2866 + } 2867 + 2868 + #[doc(alias = "i_cal_property_kind_from_string")] 2869 + pub fn kind_from_string(string: &str) -> PropertyKind { 2870 + assert_initialized_main_thread!(); 2871 + unsafe { 2872 + from_glib(ffi::i_cal_property_kind_from_string(string.to_glib_none().0)) 2873 + } 2874 + } 2875 + 2876 + #[doc(alias = "i_cal_property_kind_has_property")] 2877 + pub fn kind_has_property(kind: PropertyKind, e: i32) -> i32 { 2878 + assert_initialized_main_thread!(); 2879 + unsafe { 2880 + ffi::i_cal_property_kind_has_property(kind.into_glib(), e) 2881 + } 2882 + } 2883 + 2884 + #[doc(alias = "i_cal_property_kind_is_valid")] 2885 + pub fn kind_is_valid(kind: PropertyKind) -> bool { 2886 + assert_initialized_main_thread!(); 2887 + unsafe { 2888 + from_glib(ffi::i_cal_property_kind_is_valid(kind.into_glib())) 2889 + } 2890 + } 2891 + 2892 + #[doc(alias = "i_cal_property_kind_to_string")] 2893 + pub fn kind_to_string(kind: PropertyKind) -> Option<glib::GString> { 2894 + assert_initialized_main_thread!(); 2895 + unsafe { 2896 + from_glib_none(ffi::i_cal_property_kind_to_string(kind.into_glib())) 2897 + } 2898 + } 2899 + 2900 + #[doc(alias = "i_cal_property_kind_to_value_kind")] 2901 + pub fn kind_to_value_kind(kind: PropertyKind) -> ValueKind { 2902 + assert_initialized_main_thread!(); 2903 + unsafe { 2904 + from_glib(ffi::i_cal_property_kind_to_value_kind(kind.into_glib())) 2905 + } 2906 + } 2907 + 2908 + #[doc(alias = "i_cal_property_method_from_string")] 2909 + pub fn method_from_string(str: &str) -> PropertyMethod { 2910 + assert_initialized_main_thread!(); 2911 + unsafe { 2912 + from_glib(ffi::i_cal_property_method_from_string(str.to_glib_none().0)) 2913 + } 2914 + } 2915 + 2916 + #[doc(alias = "i_cal_property_method_to_string")] 2917 + pub fn method_to_string(method: PropertyMethod) -> Option<glib::GString> { 2918 + assert_initialized_main_thread!(); 2919 + unsafe { 2920 + from_glib_none(ffi::i_cal_property_method_to_string(method.into_glib())) 2921 + } 2922 + } 2923 + 2924 + #[doc(alias = "i_cal_property_recurrence_is_excluded")] 2925 + pub fn recurrence_is_excluded(comp: &Component, dtstart: &Time, recurtime: &Time) -> bool { 2926 + skip_assert_initialized!(); 2927 + unsafe { 2928 + from_glib(ffi::i_cal_property_recurrence_is_excluded(comp.to_glib_none().0, dtstart.to_glib_none().0, recurtime.to_glib_none().0)) 2929 + } 2930 + } 2931 + 2932 + #[doc(alias = "i_cal_property_status_from_string")] 2933 + pub fn status_from_string(str: &str) -> PropertyStatus { 2934 + assert_initialized_main_thread!(); 2935 + unsafe { 2936 + from_glib(ffi::i_cal_property_status_from_string(str.to_glib_none().0)) 2937 + } 2938 + } 2939 + 2940 + #[doc(alias = "i_cal_property_status_to_string")] 2941 + pub fn status_to_string(method: PropertyStatus) -> Option<glib::GString> { 2942 + assert_initialized_main_thread!(); 2943 + unsafe { 2944 + from_glib_none(ffi::i_cal_property_status_to_string(method.into_glib())) 2945 + } 2946 + } 2947 + }
+45
ical-glib/src/auto/recur_iterator.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Recurrence,Time}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalRecurIterator")] 11 + pub struct RecurIterator(Object<ffi::ICalRecurIterator, ffi::ICalRecurIteratorClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_recur_iterator_get_type(), 15 + } 16 + } 17 + 18 + impl RecurIterator { 19 + #[doc(alias = "i_cal_recur_iterator_new")] 20 + pub fn new(rule: &Recurrence, dtstart: &Time) -> RecurIterator { 21 + skip_assert_initialized!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_recur_iterator_new(rule.to_glib_none().0, dtstart.to_glib_none().0)) 24 + } 25 + } 26 + 27 + //#[doc(alias = "i_cal_recur_iterator_new_full")] 28 + //pub fn new_full(native: /*Ignored*/&mut icalrecur_iterator, owner: &impl IsA<glib::Object>) -> RecurIterator { 29 + // unsafe { TODO: call ffi:i_cal_recur_iterator_new_full() } 30 + //} 31 + 32 + #[doc(alias = "i_cal_recur_iterator_next")] 33 + pub fn next(&self) -> Option<Time> { 34 + unsafe { 35 + from_glib_full(ffi::i_cal_recur_iterator_next(self.to_glib_none().0)) 36 + } 37 + } 38 + 39 + #[doc(alias = "i_cal_recur_iterator_set_start")] 40 + pub fn set_start(&self, start: &Time) -> i32 { 41 + unsafe { 42 + ffi::i_cal_recur_iterator_set_start(self.to_glib_none().0, start.to_glib_none().0) 43 + } 44 + } 45 + }
+478
ical-glib/src/auto/recurrence.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Array,RecurrenceFrequency,RecurrenceSkip,RecurrenceWeekday,Time}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalRecurrence")] 11 + pub struct Recurrence(Object<ffi::ICalRecurrence, ffi::ICalRecurrenceClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_recurrence_get_type(), 15 + } 16 + } 17 + 18 + impl Recurrence { 19 + #[doc(alias = "i_cal_recurrence_new")] 20 + pub fn new() -> Recurrence { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_recurrence_new()) 24 + } 25 + } 26 + 27 + #[doc(alias = "i_cal_recurrence_new_from_string")] 28 + #[doc(alias = "new_from_string")] 29 + pub fn from_string(str: &str) -> Recurrence { 30 + assert_initialized_main_thread!(); 31 + unsafe { 32 + from_glib_full(ffi::i_cal_recurrence_new_from_string(str.to_glib_none().0)) 33 + } 34 + } 35 + 36 + //#[doc(alias = "i_cal_recurrence_new_full")] 37 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Recurrence { 38 + // unsafe { TODO: call ffi:i_cal_recurrence_new_full() } 39 + //} 40 + 41 + #[doc(alias = "i_cal_recurrence_clear")] 42 + pub fn clear(&self) { 43 + unsafe { 44 + ffi::i_cal_recurrence_clear(self.to_glib_none().0); 45 + } 46 + } 47 + 48 + #[doc(alias = "i_cal_recurrence_get_by_day")] 49 + #[doc(alias = "get_by_day")] 50 + pub fn by_day(&self, index: u32) -> libc::c_short { 51 + unsafe { 52 + ffi::i_cal_recurrence_get_by_day(self.to_glib_none().0, index) 53 + } 54 + } 55 + 56 + //#[doc(alias = "i_cal_recurrence_get_by_day_array")] 57 + //#[doc(alias = "get_by_day_array")] 58 + //pub fn by_day_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 59 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_day_array() } 60 + //} 61 + 62 + #[doc(alias = "i_cal_recurrence_get_by_hour")] 63 + #[doc(alias = "get_by_hour")] 64 + pub fn by_hour(&self, index: u32) -> libc::c_short { 65 + unsafe { 66 + ffi::i_cal_recurrence_get_by_hour(self.to_glib_none().0, index) 67 + } 68 + } 69 + 70 + //#[doc(alias = "i_cal_recurrence_get_by_hour_array")] 71 + //#[doc(alias = "get_by_hour_array")] 72 + //pub fn by_hour_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 73 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_hour_array() } 74 + //} 75 + 76 + #[doc(alias = "i_cal_recurrence_get_by_minute")] 77 + #[doc(alias = "get_by_minute")] 78 + pub fn by_minute(&self, index: u32) -> libc::c_short { 79 + unsafe { 80 + ffi::i_cal_recurrence_get_by_minute(self.to_glib_none().0, index) 81 + } 82 + } 83 + 84 + //#[doc(alias = "i_cal_recurrence_get_by_minute_array")] 85 + //#[doc(alias = "get_by_minute_array")] 86 + //pub fn by_minute_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 87 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_minute_array() } 88 + //} 89 + 90 + #[doc(alias = "i_cal_recurrence_get_by_month")] 91 + #[doc(alias = "get_by_month")] 92 + pub fn by_month(&self, index: u32) -> libc::c_short { 93 + unsafe { 94 + ffi::i_cal_recurrence_get_by_month(self.to_glib_none().0, index) 95 + } 96 + } 97 + 98 + //#[doc(alias = "i_cal_recurrence_get_by_month_array")] 99 + //#[doc(alias = "get_by_month_array")] 100 + //pub fn by_month_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 101 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_month_array() } 102 + //} 103 + 104 + #[doc(alias = "i_cal_recurrence_get_by_month_day")] 105 + #[doc(alias = "get_by_month_day")] 106 + pub fn by_month_day(&self, index: u32) -> libc::c_short { 107 + unsafe { 108 + ffi::i_cal_recurrence_get_by_month_day(self.to_glib_none().0, index) 109 + } 110 + } 111 + 112 + //#[doc(alias = "i_cal_recurrence_get_by_month_day_array")] 113 + //#[doc(alias = "get_by_month_day_array")] 114 + //pub fn by_month_day_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 115 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_month_day_array() } 116 + //} 117 + 118 + #[doc(alias = "i_cal_recurrence_get_by_second")] 119 + #[doc(alias = "get_by_second")] 120 + pub fn by_second(&self, index: u32) -> libc::c_short { 121 + unsafe { 122 + ffi::i_cal_recurrence_get_by_second(self.to_glib_none().0, index) 123 + } 124 + } 125 + 126 + //#[doc(alias = "i_cal_recurrence_get_by_second_array")] 127 + //#[doc(alias = "get_by_second_array")] 128 + //pub fn by_second_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 129 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_second_array() } 130 + //} 131 + 132 + #[doc(alias = "i_cal_recurrence_get_by_set_pos")] 133 + #[doc(alias = "get_by_set_pos")] 134 + pub fn by_set_pos(&self, index: u32) -> libc::c_short { 135 + unsafe { 136 + ffi::i_cal_recurrence_get_by_set_pos(self.to_glib_none().0, index) 137 + } 138 + } 139 + 140 + //#[doc(alias = "i_cal_recurrence_get_by_set_pos_array")] 141 + //#[doc(alias = "get_by_set_pos_array")] 142 + //pub fn by_set_pos_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 143 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_set_pos_array() } 144 + //} 145 + 146 + #[doc(alias = "i_cal_recurrence_get_by_week_no")] 147 + #[doc(alias = "get_by_week_no")] 148 + pub fn by_week_no(&self, index: u32) -> libc::c_short { 149 + unsafe { 150 + ffi::i_cal_recurrence_get_by_week_no(self.to_glib_none().0, index) 151 + } 152 + } 153 + 154 + //#[doc(alias = "i_cal_recurrence_get_by_week_no_array")] 155 + //#[doc(alias = "get_by_week_no_array")] 156 + //pub fn by_week_no_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 157 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_week_no_array() } 158 + //} 159 + 160 + #[doc(alias = "i_cal_recurrence_get_by_year_day")] 161 + #[doc(alias = "get_by_year_day")] 162 + pub fn by_year_day(&self, index: u32) -> libc::c_short { 163 + unsafe { 164 + ffi::i_cal_recurrence_get_by_year_day(self.to_glib_none().0, index) 165 + } 166 + } 167 + 168 + //#[doc(alias = "i_cal_recurrence_get_by_year_day_array")] 169 + //#[doc(alias = "get_by_year_day_array")] 170 + //pub fn by_year_day_array(&self) -> /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 } { 171 + // unsafe { TODO: call ffi:i_cal_recurrence_get_by_year_day_array() } 172 + //} 173 + 174 + #[doc(alias = "i_cal_recurrence_get_count")] 175 + #[doc(alias = "get_count")] 176 + pub fn count(&self) -> i32 { 177 + unsafe { 178 + ffi::i_cal_recurrence_get_count(self.to_glib_none().0) 179 + } 180 + } 181 + 182 + #[doc(alias = "i_cal_recurrence_get_freq")] 183 + #[doc(alias = "get_freq")] 184 + pub fn freq(&self) -> RecurrenceFrequency { 185 + unsafe { 186 + from_glib(ffi::i_cal_recurrence_get_freq(self.to_glib_none().0)) 187 + } 188 + } 189 + 190 + #[doc(alias = "i_cal_recurrence_get_interval")] 191 + #[doc(alias = "get_interval")] 192 + pub fn interval(&self) -> libc::c_short { 193 + unsafe { 194 + ffi::i_cal_recurrence_get_interval(self.to_glib_none().0) 195 + } 196 + } 197 + 198 + #[doc(alias = "i_cal_recurrence_get_until")] 199 + #[doc(alias = "get_until")] 200 + pub fn until(&self) -> Option<Time> { 201 + unsafe { 202 + from_glib_full(ffi::i_cal_recurrence_get_until(self.to_glib_none().0)) 203 + } 204 + } 205 + 206 + #[doc(alias = "i_cal_recurrence_get_week_start")] 207 + #[doc(alias = "get_week_start")] 208 + pub fn week_start(&self) -> RecurrenceWeekday { 209 + unsafe { 210 + from_glib(ffi::i_cal_recurrence_get_week_start(self.to_glib_none().0)) 211 + } 212 + } 213 + 214 + #[doc(alias = "i_cal_recurrence_set_by_day")] 215 + pub fn set_by_day(&self, index: u32, value: libc::c_short) { 216 + unsafe { 217 + ffi::i_cal_recurrence_set_by_day(self.to_glib_none().0, index, value); 218 + } 219 + } 220 + 221 + //#[doc(alias = "i_cal_recurrence_set_by_day_array")] 222 + //pub fn set_by_day_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 223 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_day_array() } 224 + //} 225 + 226 + #[doc(alias = "i_cal_recurrence_set_by_hour")] 227 + pub fn set_by_hour(&self, index: u32, value: libc::c_short) { 228 + unsafe { 229 + ffi::i_cal_recurrence_set_by_hour(self.to_glib_none().0, index, value); 230 + } 231 + } 232 + 233 + //#[doc(alias = "i_cal_recurrence_set_by_hour_array")] 234 + //pub fn set_by_hour_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 235 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_hour_array() } 236 + //} 237 + 238 + #[doc(alias = "i_cal_recurrence_set_by_minute")] 239 + pub fn set_by_minute(&self, index: u32, value: libc::c_short) { 240 + unsafe { 241 + ffi::i_cal_recurrence_set_by_minute(self.to_glib_none().0, index, value); 242 + } 243 + } 244 + 245 + //#[doc(alias = "i_cal_recurrence_set_by_minute_array")] 246 + //pub fn set_by_minute_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 247 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_minute_array() } 248 + //} 249 + 250 + #[doc(alias = "i_cal_recurrence_set_by_month")] 251 + pub fn set_by_month(&self, index: u32, value: libc::c_short) { 252 + unsafe { 253 + ffi::i_cal_recurrence_set_by_month(self.to_glib_none().0, index, value); 254 + } 255 + } 256 + 257 + //#[doc(alias = "i_cal_recurrence_set_by_month_array")] 258 + //pub fn set_by_month_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 259 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_month_array() } 260 + //} 261 + 262 + #[doc(alias = "i_cal_recurrence_set_by_month_day")] 263 + pub fn set_by_month_day(&self, index: u32, value: libc::c_short) { 264 + unsafe { 265 + ffi::i_cal_recurrence_set_by_month_day(self.to_glib_none().0, index, value); 266 + } 267 + } 268 + 269 + //#[doc(alias = "i_cal_recurrence_set_by_month_day_array")] 270 + //pub fn set_by_month_day_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 271 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_month_day_array() } 272 + //} 273 + 274 + #[doc(alias = "i_cal_recurrence_set_by_second")] 275 + pub fn set_by_second(&self, index: u32, value: libc::c_short) { 276 + unsafe { 277 + ffi::i_cal_recurrence_set_by_second(self.to_glib_none().0, index, value); 278 + } 279 + } 280 + 281 + //#[doc(alias = "i_cal_recurrence_set_by_second_array")] 282 + //pub fn set_by_second_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 283 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_second_array() } 284 + //} 285 + 286 + #[doc(alias = "i_cal_recurrence_set_by_set_pos")] 287 + pub fn set_by_set_pos(&self, index: u32, value: libc::c_short) { 288 + unsafe { 289 + ffi::i_cal_recurrence_set_by_set_pos(self.to_glib_none().0, index, value); 290 + } 291 + } 292 + 293 + //#[doc(alias = "i_cal_recurrence_set_by_set_pos_array")] 294 + //pub fn set_by_set_pos_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 295 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_set_pos_array() } 296 + //} 297 + 298 + #[doc(alias = "i_cal_recurrence_set_by_week_no")] 299 + pub fn set_by_week_no(&self, index: u32, value: libc::c_short) { 300 + unsafe { 301 + ffi::i_cal_recurrence_set_by_week_no(self.to_glib_none().0, index, value); 302 + } 303 + } 304 + 305 + //#[doc(alias = "i_cal_recurrence_set_by_week_no_array")] 306 + //pub fn set_by_week_no_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 307 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_week_no_array() } 308 + //} 309 + 310 + #[doc(alias = "i_cal_recurrence_set_by_year_day")] 311 + pub fn set_by_year_day(&self, index: u32, value: libc::c_short) { 312 + unsafe { 313 + ffi::i_cal_recurrence_set_by_year_day(self.to_glib_none().0, index, value); 314 + } 315 + } 316 + 317 + //#[doc(alias = "i_cal_recurrence_set_by_year_day_array")] 318 + //pub fn set_by_year_day_array(&self, values: /*Unknown conversion*//*Unimplemented*/Array TypeId { ns_id: 0, id: 12 }) { 319 + // unsafe { TODO: call ffi:i_cal_recurrence_set_by_year_day_array() } 320 + //} 321 + 322 + #[doc(alias = "i_cal_recurrence_set_count")] 323 + pub fn set_count(&self, count: i32) { 324 + unsafe { 325 + ffi::i_cal_recurrence_set_count(self.to_glib_none().0, count); 326 + } 327 + } 328 + 329 + #[doc(alias = "i_cal_recurrence_set_freq")] 330 + pub fn set_freq(&self, freq: RecurrenceFrequency) { 331 + unsafe { 332 + ffi::i_cal_recurrence_set_freq(self.to_glib_none().0, freq.into_glib()); 333 + } 334 + } 335 + 336 + #[doc(alias = "i_cal_recurrence_set_interval")] 337 + pub fn set_interval(&self, interval: libc::c_short) { 338 + unsafe { 339 + ffi::i_cal_recurrence_set_interval(self.to_glib_none().0, interval); 340 + } 341 + } 342 + 343 + #[doc(alias = "i_cal_recurrence_set_until")] 344 + pub fn set_until(&self, until: &Time) { 345 + unsafe { 346 + ffi::i_cal_recurrence_set_until(self.to_glib_none().0, until.to_glib_none().0); 347 + } 348 + } 349 + 350 + #[doc(alias = "i_cal_recurrence_set_week_start")] 351 + pub fn set_week_start(&self, week_start: RecurrenceWeekday) { 352 + unsafe { 353 + ffi::i_cal_recurrence_set_week_start(self.to_glib_none().0, week_start.into_glib()); 354 + } 355 + } 356 + 357 + #[doc(alias = "i_cal_recurrence_to_string")] 358 + #[doc(alias = "to_string")] 359 + pub fn to_str(&self) -> glib::GString { 360 + unsafe { 361 + from_glib_full(ffi::i_cal_recurrence_to_string(self.to_glib_none().0)) 362 + } 363 + } 364 + 365 + #[doc(alias = "i_cal_recurrence_day_day_of_week")] 366 + pub fn day_day_of_week(day: libc::c_short) -> RecurrenceWeekday { 367 + assert_initialized_main_thread!(); 368 + unsafe { 369 + from_glib(ffi::i_cal_recurrence_day_day_of_week(day)) 370 + } 371 + } 372 + 373 + #[doc(alias = "i_cal_recurrence_day_position")] 374 + pub fn day_position(day: libc::c_short) -> i32 { 375 + assert_initialized_main_thread!(); 376 + unsafe { 377 + ffi::i_cal_recurrence_day_position(day) 378 + } 379 + } 380 + 381 + #[doc(alias = "i_cal_recurrence_frequency_from_string")] 382 + pub fn frequency_from_string(str: &str) -> RecurrenceFrequency { 383 + assert_initialized_main_thread!(); 384 + unsafe { 385 + from_glib(ffi::i_cal_recurrence_frequency_from_string(str.to_glib_none().0)) 386 + } 387 + } 388 + 389 + #[doc(alias = "i_cal_recurrence_frequency_to_string")] 390 + pub fn frequency_to_string(kind: RecurrenceFrequency) -> Option<glib::GString> { 391 + assert_initialized_main_thread!(); 392 + unsafe { 393 + from_glib_none(ffi::i_cal_recurrence_frequency_to_string(kind.into_glib())) 394 + } 395 + } 396 + 397 + #[doc(alias = "i_cal_recurrence_month_is_leap")] 398 + pub fn month_is_leap(month: libc::c_short) -> bool { 399 + assert_initialized_main_thread!(); 400 + unsafe { 401 + from_glib(ffi::i_cal_recurrence_month_is_leap(month)) 402 + } 403 + } 404 + 405 + #[doc(alias = "i_cal_recurrence_month_month")] 406 + pub fn month_month(month: libc::c_short) -> i32 { 407 + assert_initialized_main_thread!(); 408 + unsafe { 409 + ffi::i_cal_recurrence_month_month(month) 410 + } 411 + } 412 + 413 + //#[doc(alias = "i_cal_recurrence_new_default")] 414 + //pub fn new_default() -> /*Unimplemented*/Option<Basic: Pointer> { 415 + // unsafe { TODO: call ffi:i_cal_recurrence_new_default() } 416 + //} 417 + 418 + #[doc(alias = "i_cal_recurrence_rscale_is_supported")] 419 + pub fn rscale_is_supported() -> bool { 420 + assert_initialized_main_thread!(); 421 + unsafe { 422 + from_glib(ffi::i_cal_recurrence_rscale_is_supported()) 423 + } 424 + } 425 + 426 + #[doc(alias = "i_cal_recurrence_rscale_supported_calendars")] 427 + pub fn rscale_supported_calendars() -> Option<Array> { 428 + assert_initialized_main_thread!(); 429 + unsafe { 430 + from_glib_full(ffi::i_cal_recurrence_rscale_supported_calendars()) 431 + } 432 + } 433 + 434 + #[doc(alias = "i_cal_recurrence_skip_from_string")] 435 + pub fn skip_from_string(str: &str) -> RecurrenceSkip { 436 + assert_initialized_main_thread!(); 437 + unsafe { 438 + from_glib(ffi::i_cal_recurrence_skip_from_string(str.to_glib_none().0)) 439 + } 440 + } 441 + 442 + #[doc(alias = "i_cal_recurrence_skip_to_string")] 443 + pub fn skip_to_string(kind: RecurrenceSkip) -> Option<glib::GString> { 444 + assert_initialized_main_thread!(); 445 + unsafe { 446 + from_glib_none(ffi::i_cal_recurrence_skip_to_string(kind.into_glib())) 447 + } 448 + } 449 + 450 + #[doc(alias = "i_cal_recurrence_weekday_from_string")] 451 + pub fn weekday_from_string(str: &str) -> RecurrenceWeekday { 452 + assert_initialized_main_thread!(); 453 + unsafe { 454 + from_glib(ffi::i_cal_recurrence_weekday_from_string(str.to_glib_none().0)) 455 + } 456 + } 457 + 458 + #[doc(alias = "i_cal_recurrence_weekday_to_string")] 459 + pub fn weekday_to_string(kind: RecurrenceWeekday) -> Option<glib::GString> { 460 + assert_initialized_main_thread!(); 461 + unsafe { 462 + from_glib_none(ffi::i_cal_recurrence_weekday_to_string(kind.into_glib())) 463 + } 464 + } 465 + } 466 + 467 + impl Default for Recurrence { 468 + fn default() -> Self { 469 + Self::new() 470 + } 471 + } 472 + 473 + impl std::fmt::Display for Recurrence { 474 + #[inline] 475 + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { 476 + f.write_str(&self.to_str()) 477 + } 478 + }
+83
ical-glib/src/auto/reqstat.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,RequestStatus}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalReqstat")] 11 + pub struct Reqstat(Object<ffi::ICalReqstat, ffi::ICalReqstatClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_reqstat_get_type(), 15 + } 16 + } 17 + 18 + impl Reqstat { 19 + #[doc(alias = "i_cal_reqstat_new_from_string")] 20 + #[doc(alias = "new_from_string")] 21 + pub fn from_string(str: &str) -> Reqstat { 22 + assert_initialized_main_thread!(); 23 + unsafe { 24 + from_glib_full(ffi::i_cal_reqstat_new_from_string(str.to_glib_none().0)) 25 + } 26 + } 27 + 28 + //#[doc(alias = "i_cal_reqstat_new_full")] 29 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Reqstat { 30 + // unsafe { TODO: call ffi:i_cal_reqstat_new_full() } 31 + //} 32 + 33 + #[doc(alias = "i_cal_reqstat_get_code")] 34 + #[doc(alias = "get_code")] 35 + pub fn code(&self) -> RequestStatus { 36 + unsafe { 37 + from_glib(ffi::i_cal_reqstat_get_code(self.to_glib_none().0)) 38 + } 39 + } 40 + 41 + #[doc(alias = "i_cal_reqstat_get_debug")] 42 + #[doc(alias = "get_debug")] 43 + pub fn debug(&self) -> Option<glib::GString> { 44 + unsafe { 45 + from_glib_none(ffi::i_cal_reqstat_get_debug(self.to_glib_none().0)) 46 + } 47 + } 48 + 49 + #[doc(alias = "i_cal_reqstat_get_desc")] 50 + #[doc(alias = "get_desc")] 51 + pub fn desc(&self) -> Option<glib::GString> { 52 + unsafe { 53 + from_glib_none(ffi::i_cal_reqstat_get_desc(self.to_glib_none().0)) 54 + } 55 + } 56 + 57 + #[doc(alias = "i_cal_reqstat_set_code")] 58 + pub fn set_code(&self, code: RequestStatus) { 59 + unsafe { 60 + ffi::i_cal_reqstat_set_code(self.to_glib_none().0, code.into_glib()); 61 + } 62 + } 63 + 64 + #[doc(alias = "i_cal_reqstat_to_string")] 65 + #[doc(alias = "to_string")] 66 + pub fn to_str(&self) -> glib::GString { 67 + unsafe { 68 + from_glib_full(ffi::i_cal_reqstat_to_string(self.to_glib_none().0)) 69 + } 70 + } 71 + 72 + //#[doc(alias = "i_cal_reqstat_new_default")] 73 + //pub fn new_default() -> /*Unimplemented*/Option<Basic: Pointer> { 74 + // unsafe { TODO: call ffi:i_cal_reqstat_new_default() } 75 + //} 76 + } 77 + 78 + impl std::fmt::Display for Reqstat { 79 + #[inline] 80 + fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { 81 + f.write_str(&self.to_str()) 82 + } 83 + }
+469
ical-glib/src/auto/time.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Array,Component,Duration,Timezone}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalTime")] 11 + pub struct Time(Object<ffi::ICalTime, ffi::ICalTimeClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_time_get_type(), 15 + } 16 + } 17 + 18 + impl Time { 19 + #[doc(alias = "i_cal_time_new")] 20 + pub fn new() -> Time { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_time_new()) 24 + } 25 + } 26 + 27 + #[doc(alias = "i_cal_time_new_current_with_zone")] 28 + pub fn new_current_with_zone(zone: Option<&Timezone>) -> Time { 29 + assert_initialized_main_thread!(); 30 + unsafe { 31 + from_glib_full(ffi::i_cal_time_new_current_with_zone(zone.to_glib_none().0)) 32 + } 33 + } 34 + 35 + #[doc(alias = "i_cal_time_new_from_day_of_year")] 36 + #[doc(alias = "new_from_day_of_year")] 37 + pub fn from_day_of_year(day: i32, year: i32) -> Time { 38 + assert_initialized_main_thread!(); 39 + unsafe { 40 + from_glib_full(ffi::i_cal_time_new_from_day_of_year(day, year)) 41 + } 42 + } 43 + 44 + #[doc(alias = "i_cal_time_new_from_string")] 45 + #[doc(alias = "new_from_string")] 46 + pub fn from_string(str: &str) -> Time { 47 + assert_initialized_main_thread!(); 48 + unsafe { 49 + from_glib_full(ffi::i_cal_time_new_from_string(str.to_glib_none().0)) 50 + } 51 + } 52 + 53 + #[doc(alias = "i_cal_time_new_from_timet_with_zone")] 54 + #[doc(alias = "new_from_timet_with_zone")] 55 + pub fn from_timet_with_zone(v: libc::time_t, is_date: i32, zone: Option<&Timezone>) -> Time { 56 + assert_initialized_main_thread!(); 57 + unsafe { 58 + from_glib_full(ffi::i_cal_time_new_from_timet_with_zone(v, is_date, zone.to_glib_none().0)) 59 + } 60 + } 61 + 62 + //#[doc(alias = "i_cal_time_new_full")] 63 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Time { 64 + // unsafe { TODO: call ffi:i_cal_time_new_full() } 65 + //} 66 + 67 + #[doc(alias = "i_cal_time_new_null_date")] 68 + pub fn new_null_date() -> Time { 69 + assert_initialized_main_thread!(); 70 + unsafe { 71 + from_glib_full(ffi::i_cal_time_new_null_date()) 72 + } 73 + } 74 + 75 + #[doc(alias = "i_cal_time_new_null_time")] 76 + pub fn new_null_time() -> Time { 77 + assert_initialized_main_thread!(); 78 + unsafe { 79 + from_glib_full(ffi::i_cal_time_new_null_time()) 80 + } 81 + } 82 + 83 + #[doc(alias = "i_cal_time_new_today")] 84 + pub fn new_today() -> Time { 85 + assert_initialized_main_thread!(); 86 + unsafe { 87 + from_glib_full(ffi::i_cal_time_new_today()) 88 + } 89 + } 90 + 91 + #[doc(alias = "i_cal_time_add")] 92 + #[must_use] 93 + pub fn add(&self, d: &Duration) -> Option<Time> { 94 + unsafe { 95 + from_glib_full(ffi::i_cal_time_add(self.to_glib_none().0, d.to_glib_none().0)) 96 + } 97 + } 98 + 99 + #[doc(alias = "i_cal_time_adjust")] 100 + pub fn adjust(&self, days: i32, hours: i32, minutes: i32, seconds: i32) { 101 + unsafe { 102 + ffi::i_cal_time_adjust(self.to_glib_none().0, days, hours, minutes, seconds); 103 + } 104 + } 105 + 106 + #[doc(alias = "i_cal_time_as_ical_string")] 107 + pub fn as_ical_string(&self) -> Option<glib::GString> { 108 + unsafe { 109 + from_glib_full(ffi::i_cal_time_as_ical_string(self.to_glib_none().0)) 110 + } 111 + } 112 + 113 + #[doc(alias = "i_cal_time_as_timet")] 114 + pub fn as_timet(&self) -> libc::time_t { 115 + unsafe { 116 + ffi::i_cal_time_as_timet(self.to_glib_none().0) 117 + } 118 + } 119 + 120 + #[doc(alias = "i_cal_time_as_timet_with_zone")] 121 + pub fn as_timet_with_zone(&self, zone: Option<&Timezone>) -> libc::time_t { 122 + unsafe { 123 + ffi::i_cal_time_as_timet_with_zone(self.to_glib_none().0, zone.to_glib_none().0) 124 + } 125 + } 126 + 127 + #[doc(alias = "i_cal_time_clone")] 128 + #[must_use] 129 + pub fn clone(&self) -> Option<Time> { 130 + unsafe { 131 + from_glib_full(ffi::i_cal_time_clone(self.to_glib_none().0)) 132 + } 133 + } 134 + 135 + #[doc(alias = "i_cal_time_compare")] 136 + pub fn compare(&self, b: &Time) -> i32 { 137 + unsafe { 138 + ffi::i_cal_time_compare(self.to_glib_none().0, b.to_glib_none().0) 139 + } 140 + } 141 + 142 + #[doc(alias = "i_cal_time_compare_date_only")] 143 + pub fn compare_date_only(&self, b: &Time) -> i32 { 144 + unsafe { 145 + ffi::i_cal_time_compare_date_only(self.to_glib_none().0, b.to_glib_none().0) 146 + } 147 + } 148 + 149 + #[doc(alias = "i_cal_time_compare_date_only_tz")] 150 + pub fn compare_date_only_tz(&self, b: &Time, zone: Option<&Timezone>) -> i32 { 151 + unsafe { 152 + ffi::i_cal_time_compare_date_only_tz(self.to_glib_none().0, b.to_glib_none().0, zone.to_glib_none().0) 153 + } 154 + } 155 + 156 + #[doc(alias = "i_cal_time_convert_timezone")] 157 + pub fn convert_timezone(&self, from_zone: Option<&Timezone>, to_zone: Option<&Timezone>) { 158 + unsafe { 159 + ffi::i_cal_time_convert_timezone(self.to_glib_none().0, from_zone.to_glib_none().0, to_zone.to_glib_none().0); 160 + } 161 + } 162 + 163 + #[doc(alias = "i_cal_time_convert_to_zone")] 164 + #[must_use] 165 + pub fn convert_to_zone(&self, zone: Option<&Timezone>) -> Option<Time> { 166 + unsafe { 167 + from_glib_full(ffi::i_cal_time_convert_to_zone(self.to_glib_none().0, zone.to_glib_none().0)) 168 + } 169 + } 170 + 171 + #[cfg(feature = "v3_0_5")] 172 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 173 + #[doc(alias = "i_cal_time_convert_to_zone_inplace")] 174 + pub fn convert_to_zone_inplace(&self, zone: Option<&Timezone>) { 175 + unsafe { 176 + ffi::i_cal_time_convert_to_zone_inplace(self.to_glib_none().0, zone.to_glib_none().0); 177 + } 178 + } 179 + 180 + #[doc(alias = "i_cal_time_day_of_week")] 181 + pub fn day_of_week(&self) -> i32 { 182 + unsafe { 183 + ffi::i_cal_time_day_of_week(self.to_glib_none().0) 184 + } 185 + } 186 + 187 + #[doc(alias = "i_cal_time_day_of_year")] 188 + pub fn day_of_year(&self) -> i32 { 189 + unsafe { 190 + ffi::i_cal_time_day_of_year(self.to_glib_none().0) 191 + } 192 + } 193 + 194 + #[doc(alias = "i_cal_time_get_date")] 195 + #[doc(alias = "get_date")] 196 + pub fn date(&self) -> (i32, i32, i32) { 197 + unsafe { 198 + let mut year = std::mem::MaybeUninit::uninit(); 199 + let mut month = std::mem::MaybeUninit::uninit(); 200 + let mut day = std::mem::MaybeUninit::uninit(); 201 + ffi::i_cal_time_get_date(self.to_glib_none().0, year.as_mut_ptr(), month.as_mut_ptr(), day.as_mut_ptr()); 202 + (year.assume_init(), month.assume_init(), day.assume_init()) 203 + } 204 + } 205 + 206 + #[doc(alias = "i_cal_time_get_day")] 207 + #[doc(alias = "get_day")] 208 + pub fn day(&self) -> i32 { 209 + unsafe { 210 + ffi::i_cal_time_get_day(self.to_glib_none().0) 211 + } 212 + } 213 + 214 + #[doc(alias = "i_cal_time_get_hour")] 215 + #[doc(alias = "get_hour")] 216 + pub fn hour(&self) -> i32 { 217 + unsafe { 218 + ffi::i_cal_time_get_hour(self.to_glib_none().0) 219 + } 220 + } 221 + 222 + #[doc(alias = "i_cal_time_get_minute")] 223 + #[doc(alias = "get_minute")] 224 + pub fn minute(&self) -> i32 { 225 + unsafe { 226 + ffi::i_cal_time_get_minute(self.to_glib_none().0) 227 + } 228 + } 229 + 230 + #[doc(alias = "i_cal_time_get_month")] 231 + #[doc(alias = "get_month")] 232 + pub fn month(&self) -> i32 { 233 + unsafe { 234 + ffi::i_cal_time_get_month(self.to_glib_none().0) 235 + } 236 + } 237 + 238 + #[doc(alias = "i_cal_time_get_second")] 239 + #[doc(alias = "get_second")] 240 + pub fn second(&self) -> i32 { 241 + unsafe { 242 + ffi::i_cal_time_get_second(self.to_glib_none().0) 243 + } 244 + } 245 + 246 + #[doc(alias = "i_cal_time_get_time")] 247 + #[doc(alias = "get_time")] 248 + pub fn time(&self) -> (i32, i32, i32) { 249 + unsafe { 250 + let mut hour = std::mem::MaybeUninit::uninit(); 251 + let mut minute = std::mem::MaybeUninit::uninit(); 252 + let mut second = std::mem::MaybeUninit::uninit(); 253 + ffi::i_cal_time_get_time(self.to_glib_none().0, hour.as_mut_ptr(), minute.as_mut_ptr(), second.as_mut_ptr()); 254 + (hour.assume_init(), minute.assume_init(), second.assume_init()) 255 + } 256 + } 257 + 258 + #[doc(alias = "i_cal_time_get_timezone")] 259 + #[doc(alias = "get_timezone")] 260 + pub fn timezone(&self) -> Option<Timezone> { 261 + unsafe { 262 + from_glib_none(ffi::i_cal_time_get_timezone(self.to_glib_none().0)) 263 + } 264 + } 265 + 266 + #[doc(alias = "i_cal_time_get_tzid")] 267 + #[doc(alias = "get_tzid")] 268 + pub fn tzid(&self) -> Option<glib::GString> { 269 + unsafe { 270 + from_glib_none(ffi::i_cal_time_get_tzid(self.to_glib_none().0)) 271 + } 272 + } 273 + 274 + #[doc(alias = "i_cal_time_get_year")] 275 + #[doc(alias = "get_year")] 276 + pub fn year(&self) -> i32 { 277 + unsafe { 278 + ffi::i_cal_time_get_year(self.to_glib_none().0) 279 + } 280 + } 281 + 282 + #[doc(alias = "i_cal_time_is_date")] 283 + pub fn is_date(&self) -> bool { 284 + unsafe { 285 + from_glib(ffi::i_cal_time_is_date(self.to_glib_none().0)) 286 + } 287 + } 288 + 289 + #[doc(alias = "i_cal_time_is_daylight")] 290 + pub fn is_daylight(&self) -> bool { 291 + unsafe { 292 + from_glib(ffi::i_cal_time_is_daylight(self.to_glib_none().0)) 293 + } 294 + } 295 + 296 + #[doc(alias = "i_cal_time_is_null_time")] 297 + pub fn is_null_time(&self) -> bool { 298 + unsafe { 299 + from_glib(ffi::i_cal_time_is_null_time(self.to_glib_none().0)) 300 + } 301 + } 302 + 303 + #[doc(alias = "i_cal_time_is_utc")] 304 + pub fn is_utc(&self) -> bool { 305 + unsafe { 306 + from_glib(ffi::i_cal_time_is_utc(self.to_glib_none().0)) 307 + } 308 + } 309 + 310 + #[doc(alias = "i_cal_time_is_valid_time")] 311 + pub fn is_valid_time(&self) -> bool { 312 + unsafe { 313 + from_glib(ffi::i_cal_time_is_valid_time(self.to_glib_none().0)) 314 + } 315 + } 316 + 317 + #[doc(alias = "i_cal_time_normalize")] 318 + #[must_use] 319 + pub fn normalize(&self) -> Option<Time> { 320 + unsafe { 321 + from_glib_full(ffi::i_cal_time_normalize(self.to_glib_none().0)) 322 + } 323 + } 324 + 325 + #[cfg(feature = "v3_0_5")] 326 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 327 + #[doc(alias = "i_cal_time_normalize_inplace")] 328 + pub fn normalize_inplace(&self) { 329 + unsafe { 330 + ffi::i_cal_time_normalize_inplace(self.to_glib_none().0); 331 + } 332 + } 333 + 334 + #[doc(alias = "i_cal_time_set_date")] 335 + pub fn set_date(&self, year: i32, month: i32, day: i32) { 336 + unsafe { 337 + ffi::i_cal_time_set_date(self.to_glib_none().0, year, month, day); 338 + } 339 + } 340 + 341 + #[doc(alias = "i_cal_time_set_day")] 342 + pub fn set_day(&self, day: i32) { 343 + unsafe { 344 + ffi::i_cal_time_set_day(self.to_glib_none().0, day); 345 + } 346 + } 347 + 348 + #[doc(alias = "i_cal_time_set_hour")] 349 + pub fn set_hour(&self, hour: i32) { 350 + unsafe { 351 + ffi::i_cal_time_set_hour(self.to_glib_none().0, hour); 352 + } 353 + } 354 + 355 + #[doc(alias = "i_cal_time_set_is_date")] 356 + pub fn set_is_date(&self, is_date: bool) { 357 + unsafe { 358 + ffi::i_cal_time_set_is_date(self.to_glib_none().0, is_date.into_glib()); 359 + } 360 + } 361 + 362 + #[doc(alias = "i_cal_time_set_is_daylight")] 363 + pub fn set_is_daylight(&self, is_daylight: bool) { 364 + unsafe { 365 + ffi::i_cal_time_set_is_daylight(self.to_glib_none().0, is_daylight.into_glib()); 366 + } 367 + } 368 + 369 + #[doc(alias = "i_cal_time_set_minute")] 370 + pub fn set_minute(&self, minute: i32) { 371 + unsafe { 372 + ffi::i_cal_time_set_minute(self.to_glib_none().0, minute); 373 + } 374 + } 375 + 376 + #[doc(alias = "i_cal_time_set_month")] 377 + pub fn set_month(&self, month: i32) { 378 + unsafe { 379 + ffi::i_cal_time_set_month(self.to_glib_none().0, month); 380 + } 381 + } 382 + 383 + #[doc(alias = "i_cal_time_set_second")] 384 + pub fn set_second(&self, second: i32) { 385 + unsafe { 386 + ffi::i_cal_time_set_second(self.to_glib_none().0, second); 387 + } 388 + } 389 + 390 + #[doc(alias = "i_cal_time_set_time")] 391 + pub fn set_time(&self, hour: i32, minute: i32, second: i32) { 392 + unsafe { 393 + ffi::i_cal_time_set_time(self.to_glib_none().0, hour, minute, second); 394 + } 395 + } 396 + 397 + #[doc(alias = "i_cal_time_set_timezone")] 398 + pub fn set_timezone(&self, zone: Option<&Timezone>) { 399 + unsafe { 400 + ffi::i_cal_time_set_timezone(self.to_glib_none().0, zone.to_glib_none().0); 401 + } 402 + } 403 + 404 + #[doc(alias = "i_cal_time_set_year")] 405 + pub fn set_year(&self, year: i32) { 406 + unsafe { 407 + ffi::i_cal_time_set_year(self.to_glib_none().0, year); 408 + } 409 + } 410 + 411 + #[doc(alias = "i_cal_time_start_doy_week")] 412 + pub fn start_doy_week(&self, fdow: i32) -> i32 { 413 + unsafe { 414 + ffi::i_cal_time_start_doy_week(self.to_glib_none().0, fdow) 415 + } 416 + } 417 + 418 + #[doc(alias = "i_cal_time_subtract")] 419 + pub fn subtract(&self, t2: &Time) -> Option<Duration> { 420 + unsafe { 421 + from_glib_full(ffi::i_cal_time_subtract(self.to_glib_none().0, t2.to_glib_none().0)) 422 + } 423 + } 424 + 425 + #[doc(alias = "i_cal_time_week_number")] 426 + pub fn week_number(&self) -> i32 { 427 + unsafe { 428 + ffi::i_cal_time_week_number(self.to_glib_none().0) 429 + } 430 + } 431 + 432 + #[doc(alias = "i_cal_time_days_in_month")] 433 + pub fn days_in_month(month: i32, year: i32) -> i32 { 434 + assert_initialized_main_thread!(); 435 + unsafe { 436 + ffi::i_cal_time_days_in_month(month, year) 437 + } 438 + } 439 + 440 + #[doc(alias = "i_cal_time_days_in_year")] 441 + pub fn days_in_year(year: i32) -> i32 { 442 + assert_initialized_main_thread!(); 443 + unsafe { 444 + ffi::i_cal_time_days_in_year(year) 445 + } 446 + } 447 + 448 + #[doc(alias = "i_cal_time_days_is_leap_year")] 449 + pub fn days_is_leap_year(year: i32) -> bool { 450 + assert_initialized_main_thread!(); 451 + unsafe { 452 + from_glib(ffi::i_cal_time_days_is_leap_year(year)) 453 + } 454 + } 455 + 456 + #[doc(alias = "i_cal_time_timezone_expand_vtimezone")] 457 + pub fn timezone_expand_vtimezone(comp: &Component, end_year: i32, changes: &Array) { 458 + skip_assert_initialized!(); 459 + unsafe { 460 + ffi::i_cal_time_timezone_expand_vtimezone(comp.to_glib_none().0, end_year, changes.to_glib_none().0); 461 + } 462 + } 463 + } 464 + 465 + impl Default for Time { 466 + fn default() -> Self { 467 + Self::new() 468 + } 469 + }
+110
ical-glib/src/auto/time_span.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Time}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalTimeSpan")] 11 + pub struct TimeSpan(Object<ffi::ICalTimeSpan, ffi::ICalTimeSpanClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_time_span_get_type(), 15 + } 16 + } 17 + 18 + impl TimeSpan { 19 + #[doc(alias = "i_cal_time_span_new")] 20 + pub fn new(dtstart: &Time, dtend: &Time, is_busy: i32) -> TimeSpan { 21 + skip_assert_initialized!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_time_span_new(dtstart.to_glib_none().0, dtend.to_glib_none().0, is_busy)) 24 + } 25 + } 26 + 27 + //#[doc(alias = "i_cal_time_span_new_full")] 28 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> TimeSpan { 29 + // unsafe { TODO: call ffi:i_cal_time_span_new_full() } 30 + //} 31 + 32 + #[cfg(feature = "v3_0_5")] 33 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 34 + #[doc(alias = "i_cal_time_span_new_timet")] 35 + pub fn new_timet(start: libc::time_t, end: libc::time_t, is_busy: bool) -> TimeSpan { 36 + assert_initialized_main_thread!(); 37 + unsafe { 38 + from_glib_full(ffi::i_cal_time_span_new_timet(start, end, is_busy.into_glib())) 39 + } 40 + } 41 + 42 + #[cfg(feature = "v3_0_5")] 43 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_5")))] 44 + #[doc(alias = "i_cal_time_span_clone")] 45 + #[must_use] 46 + pub fn clone(&self) -> Option<TimeSpan> { 47 + unsafe { 48 + from_glib_full(ffi::i_cal_time_span_clone(self.to_glib_none().0)) 49 + } 50 + } 51 + 52 + #[doc(alias = "i_cal_time_span_contains")] 53 + pub fn contains(&self, container: &TimeSpan) -> i32 { 54 + unsafe { 55 + ffi::i_cal_time_span_contains(self.to_glib_none().0, container.to_glib_none().0) 56 + } 57 + } 58 + 59 + #[doc(alias = "i_cal_time_span_get_end")] 60 + #[doc(alias = "get_end")] 61 + pub fn end(&self) -> libc::time_t { 62 + unsafe { 63 + ffi::i_cal_time_span_get_end(self.to_glib_none().0) 64 + } 65 + } 66 + 67 + #[doc(alias = "i_cal_time_span_get_is_busy")] 68 + #[doc(alias = "get_is_busy")] 69 + pub fn is_busy(&self) -> bool { 70 + unsafe { 71 + from_glib(ffi::i_cal_time_span_get_is_busy(self.to_glib_none().0)) 72 + } 73 + } 74 + 75 + #[doc(alias = "i_cal_time_span_get_start")] 76 + #[doc(alias = "get_start")] 77 + pub fn start(&self) -> libc::time_t { 78 + unsafe { 79 + ffi::i_cal_time_span_get_start(self.to_glib_none().0) 80 + } 81 + } 82 + 83 + #[doc(alias = "i_cal_time_span_overlaps")] 84 + pub fn overlaps(&self, s2: &TimeSpan) -> i32 { 85 + unsafe { 86 + ffi::i_cal_time_span_overlaps(self.to_glib_none().0, s2.to_glib_none().0) 87 + } 88 + } 89 + 90 + #[doc(alias = "i_cal_time_span_set_end")] 91 + pub fn set_end(&self, end: libc::time_t) { 92 + unsafe { 93 + ffi::i_cal_time_span_set_end(self.to_glib_none().0, end); 94 + } 95 + } 96 + 97 + #[doc(alias = "i_cal_time_span_set_is_busy")] 98 + pub fn set_is_busy(&self, is_busy: bool) { 99 + unsafe { 100 + ffi::i_cal_time_span_set_is_busy(self.to_glib_none().0, is_busy.into_glib()); 101 + } 102 + } 103 + 104 + #[doc(alias = "i_cal_time_span_set_start")] 105 + pub fn set_start(&self, start: libc::time_t) { 106 + unsafe { 107 + ffi::i_cal_time_span_set_start(self.to_glib_none().0, start); 108 + } 109 + } 110 + }
+300
ical-glib/src/auto/timezone.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Array,Component,Time}; 7 + use glib::{prelude::*,translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalTimezone")] 11 + pub struct Timezone(Object<ffi::ICalTimezone, ffi::ICalTimezoneClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_timezone_get_type(), 15 + } 16 + } 17 + 18 + impl Timezone { 19 + #[doc(alias = "i_cal_timezone_array_new")] 20 + pub fn array_new() -> Timezone { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + Array::from_glib_full(ffi::i_cal_timezone_array_new()).unsafe_cast() 24 + } 25 + } 26 + 27 + #[doc(alias = "i_cal_timezone_new")] 28 + pub fn new() -> Option<Timezone> { 29 + assert_initialized_main_thread!(); 30 + unsafe { 31 + from_glib_full(ffi::i_cal_timezone_new()) 32 + } 33 + } 34 + 35 + //#[doc(alias = "i_cal_timezone_new_full")] 36 + //pub fn new_full(native: /*Ignored*/&mut icaltimezone, owner: &impl IsA<glib::Object>, is_global_memory: bool) -> Timezone { 37 + // unsafe { TODO: call ffi:i_cal_timezone_new_full() } 38 + //} 39 + 40 + #[doc(alias = "i_cal_timezone_copy")] 41 + #[must_use] 42 + pub fn copy(&self) -> Option<Timezone> { 43 + unsafe { 44 + from_glib_full(ffi::i_cal_timezone_copy(self.to_glib_none().0)) 45 + } 46 + } 47 + 48 + //#[doc(alias = "i_cal_timezone_dump_changes")] 49 + //pub fn dump_changes(&self, max_year: i32, fp: /*Unimplemented*/Option<Basic: Pointer>) -> i32 { 50 + // unsafe { TODO: call ffi:i_cal_timezone_dump_changes() } 51 + //} 52 + 53 + #[doc(alias = "i_cal_timezone_get_component")] 54 + #[doc(alias = "get_component")] 55 + pub fn component(&self) -> Option<Component> { 56 + unsafe { 57 + from_glib_full(ffi::i_cal_timezone_get_component(self.to_glib_none().0)) 58 + } 59 + } 60 + 61 + #[doc(alias = "i_cal_timezone_get_display_name")] 62 + #[doc(alias = "get_display_name")] 63 + pub fn display_name(&self) -> Option<glib::GString> { 64 + unsafe { 65 + from_glib_none(ffi::i_cal_timezone_get_display_name(self.to_glib_none().0)) 66 + } 67 + } 68 + 69 + #[doc(alias = "i_cal_timezone_get_latitude")] 70 + #[doc(alias = "get_latitude")] 71 + pub fn latitude(&self) -> f64 { 72 + unsafe { 73 + ffi::i_cal_timezone_get_latitude(self.to_glib_none().0) 74 + } 75 + } 76 + 77 + #[doc(alias = "i_cal_timezone_get_location")] 78 + #[doc(alias = "get_location")] 79 + pub fn location(&self) -> Option<glib::GString> { 80 + unsafe { 81 + from_glib_none(ffi::i_cal_timezone_get_location(self.to_glib_none().0)) 82 + } 83 + } 84 + 85 + #[doc(alias = "i_cal_timezone_get_longitude")] 86 + #[doc(alias = "get_longitude")] 87 + pub fn longitude(&self) -> f64 { 88 + unsafe { 89 + ffi::i_cal_timezone_get_longitude(self.to_glib_none().0) 90 + } 91 + } 92 + 93 + #[doc(alias = "i_cal_timezone_get_tzid")] 94 + #[doc(alias = "get_tzid")] 95 + pub fn tzid(&self) -> Option<glib::GString> { 96 + unsafe { 97 + from_glib_none(ffi::i_cal_timezone_get_tzid(self.to_glib_none().0)) 98 + } 99 + } 100 + 101 + #[doc(alias = "i_cal_timezone_get_tznames")] 102 + #[doc(alias = "get_tznames")] 103 + pub fn tznames(&self) -> Option<glib::GString> { 104 + unsafe { 105 + from_glib_none(ffi::i_cal_timezone_get_tznames(self.to_glib_none().0)) 106 + } 107 + } 108 + 109 + #[doc(alias = "i_cal_timezone_get_utc_offset")] 110 + #[doc(alias = "get_utc_offset")] 111 + pub fn utc_offset(&self, tt: Option<&Time>) -> (i32, i32) { 112 + unsafe { 113 + let mut is_daylight = std::mem::MaybeUninit::uninit(); 114 + let ret = ffi::i_cal_timezone_get_utc_offset(self.to_glib_none().0, tt.to_glib_none().0, is_daylight.as_mut_ptr()); 115 + (ret, is_daylight.assume_init()) 116 + } 117 + } 118 + 119 + #[doc(alias = "i_cal_timezone_get_utc_offset_of_utc_time")] 120 + #[doc(alias = "get_utc_offset_of_utc_time")] 121 + pub fn utc_offset_of_utc_time(&self, tt: &Time) -> (i32, i32) { 122 + unsafe { 123 + let mut is_daylight = std::mem::MaybeUninit::uninit(); 124 + let ret = ffi::i_cal_timezone_get_utc_offset_of_utc_time(self.to_glib_none().0, tt.to_glib_none().0, is_daylight.as_mut_ptr()); 125 + (ret, is_daylight.assume_init()) 126 + } 127 + } 128 + 129 + #[doc(alias = "i_cal_timezone_set_component")] 130 + pub fn set_component(&self, comp: &Component) -> i32 { 131 + unsafe { 132 + ffi::i_cal_timezone_set_component(self.to_glib_none().0, comp.to_glib_none().0) 133 + } 134 + } 135 + 136 + #[doc(alias = "i_cal_timezone_array_append_from_vtimezone")] 137 + pub fn array_append_from_vtimezone(timezones: &Array, child: &Component) { 138 + skip_assert_initialized!(); 139 + unsafe { 140 + ffi::i_cal_timezone_array_append_from_vtimezone(timezones.to_glib_none().0, child.to_glib_none().0); 141 + } 142 + } 143 + 144 + //#[doc(alias = "i_cal_timezone_array_destroy")] 145 + //pub fn array_destroy(zones_array: /*Ignored*/Option<&mut icalarray>) { 146 + // unsafe { TODO: call ffi:i_cal_timezone_array_destroy() } 147 + //} 148 + 149 + #[doc(alias = "i_cal_timezone_array_element_at")] 150 + pub fn array_element_at(timezones: &Array, index: u32) -> Option<Timezone> { 151 + skip_assert_initialized!(); 152 + unsafe { 153 + from_glib_full(ffi::i_cal_timezone_array_element_at(timezones.to_glib_none().0, index)) 154 + } 155 + } 156 + 157 + #[doc(alias = "i_cal_timezone_array_free")] 158 + pub fn array_free(timezones: &Array) { 159 + skip_assert_initialized!(); 160 + unsafe { 161 + ffi::i_cal_timezone_array_free(timezones.to_glib_none().0); 162 + } 163 + } 164 + 165 + //#[doc(alias = "i_cal_timezone_destroy")] 166 + //pub fn destroy(zone: /*Ignored*/&mut icaltimezone) { 167 + // unsafe { TODO: call ffi:i_cal_timezone_destroy() } 168 + //} 169 + 170 + #[doc(alias = "i_cal_timezone_free_builtin_timezones")] 171 + pub fn free_builtin_timezones() { 172 + assert_initialized_main_thread!(); 173 + unsafe { 174 + ffi::i_cal_timezone_free_builtin_timezones(); 175 + } 176 + } 177 + 178 + #[doc(alias = "i_cal_timezone_free_zone_directory")] 179 + pub fn free_zone_directory() { 180 + assert_initialized_main_thread!(); 181 + unsafe { 182 + ffi::i_cal_timezone_free_zone_directory(); 183 + } 184 + } 185 + 186 + #[doc(alias = "i_cal_timezone_get_builtin_timezone")] 187 + #[doc(alias = "get_builtin_timezone")] 188 + pub fn builtin_timezone(location: Option<&str>) -> Option<Timezone> { 189 + assert_initialized_main_thread!(); 190 + unsafe { 191 + from_glib_none(ffi::i_cal_timezone_get_builtin_timezone(location.to_glib_none().0)) 192 + } 193 + } 194 + 195 + #[doc(alias = "i_cal_timezone_get_builtin_timezone_from_offset")] 196 + #[doc(alias = "get_builtin_timezone_from_offset")] 197 + pub fn builtin_timezone_from_offset(offset: i32, tzname: Option<&str>) -> Option<Timezone> { 198 + assert_initialized_main_thread!(); 199 + unsafe { 200 + from_glib_none(ffi::i_cal_timezone_get_builtin_timezone_from_offset(offset, tzname.to_glib_none().0)) 201 + } 202 + } 203 + 204 + #[doc(alias = "i_cal_timezone_get_builtin_timezone_from_tzid")] 205 + #[doc(alias = "get_builtin_timezone_from_tzid")] 206 + pub fn builtin_timezone_from_tzid(tzid: Option<&str>) -> Option<Timezone> { 207 + assert_initialized_main_thread!(); 208 + unsafe { 209 + from_glib_none(ffi::i_cal_timezone_get_builtin_timezone_from_tzid(tzid.to_glib_none().0)) 210 + } 211 + } 212 + 213 + #[doc(alias = "i_cal_timezone_get_builtin_timezones")] 214 + #[doc(alias = "get_builtin_timezones")] 215 + pub fn builtin_timezones() -> Option<Array> { 216 + assert_initialized_main_thread!(); 217 + unsafe { 218 + from_glib_none(ffi::i_cal_timezone_get_builtin_timezones()) 219 + } 220 + } 221 + 222 + #[doc(alias = "i_cal_timezone_get_builtin_tzdata")] 223 + #[doc(alias = "get_builtin_tzdata")] 224 + pub fn is_builtin_tzdata() -> bool { 225 + assert_initialized_main_thread!(); 226 + unsafe { 227 + from_glib(ffi::i_cal_timezone_get_builtin_tzdata()) 228 + } 229 + } 230 + 231 + #[doc(alias = "i_cal_timezone_get_location_from_vtimezone")] 232 + #[doc(alias = "get_location_from_vtimezone")] 233 + pub fn location_from_vtimezone(component: &Component) -> Option<glib::GString> { 234 + skip_assert_initialized!(); 235 + unsafe { 236 + from_glib_full(ffi::i_cal_timezone_get_location_from_vtimezone(component.to_glib_none().0)) 237 + } 238 + } 239 + 240 + #[doc(alias = "i_cal_timezone_get_tznames_from_vtimezone")] 241 + #[doc(alias = "get_tznames_from_vtimezone")] 242 + pub fn tznames_from_vtimezone(component: &Component) -> Option<glib::GString> { 243 + skip_assert_initialized!(); 244 + unsafe { 245 + from_glib_full(ffi::i_cal_timezone_get_tznames_from_vtimezone(component.to_glib_none().0)) 246 + } 247 + } 248 + 249 + #[doc(alias = "i_cal_timezone_get_utc_timezone")] 250 + #[doc(alias = "get_utc_timezone")] 251 + pub fn utc_timezone() -> Option<Timezone> { 252 + assert_initialized_main_thread!(); 253 + unsafe { 254 + from_glib_none(ffi::i_cal_timezone_get_utc_timezone()) 255 + } 256 + } 257 + 258 + #[cfg(feature = "v3_0_17")] 259 + #[cfg_attr(docsrs, doc(cfg(feature = "v3_0_17")))] 260 + #[doc(alias = "i_cal_timezone_get_zone_directory")] 261 + #[doc(alias = "get_zone_directory")] 262 + pub fn zone_directory() -> Option<glib::GString> { 263 + assert_initialized_main_thread!(); 264 + unsafe { 265 + from_glib_none(ffi::i_cal_timezone_get_zone_directory()) 266 + } 267 + } 268 + 269 + #[doc(alias = "i_cal_timezone_release_zone_tab")] 270 + pub fn release_zone_tab() { 271 + assert_initialized_main_thread!(); 272 + unsafe { 273 + ffi::i_cal_timezone_release_zone_tab(); 274 + } 275 + } 276 + 277 + #[doc(alias = "i_cal_timezone_set_builtin_tzdata")] 278 + pub fn set_builtin_tzdata(set: bool) { 279 + assert_initialized_main_thread!(); 280 + unsafe { 281 + ffi::i_cal_timezone_set_builtin_tzdata(set.into_glib()); 282 + } 283 + } 284 + 285 + #[doc(alias = "i_cal_timezone_set_tzid_prefix")] 286 + pub fn set_tzid_prefix(new_prefix: &str) { 287 + assert_initialized_main_thread!(); 288 + unsafe { 289 + ffi::i_cal_timezone_set_tzid_prefix(new_prefix.to_glib_none().0); 290 + } 291 + } 292 + 293 + #[doc(alias = "i_cal_timezone_set_zone_directory")] 294 + pub fn set_zone_directory(path: &str) { 295 + assert_initialized_main_thread!(); 296 + unsafe { 297 + ffi::i_cal_timezone_set_zone_directory(path.to_glib_none().0); 298 + } 299 + } 300 + }
+85
ical-glib/src/auto/trigger.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Duration,Time}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalTrigger")] 11 + pub struct Trigger(Object<ffi::ICalTrigger, ffi::ICalTriggerClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_trigger_get_type(), 15 + } 16 + } 17 + 18 + impl Trigger { 19 + #[doc(alias = "i_cal_trigger_new_from_int")] 20 + #[doc(alias = "new_from_int")] 21 + pub fn from_int(reltime: i32) -> Trigger { 22 + assert_initialized_main_thread!(); 23 + unsafe { 24 + from_glib_full(ffi::i_cal_trigger_new_from_int(reltime)) 25 + } 26 + } 27 + 28 + #[doc(alias = "i_cal_trigger_new_from_string")] 29 + #[doc(alias = "new_from_string")] 30 + pub fn from_string(str: &str) -> Trigger { 31 + assert_initialized_main_thread!(); 32 + unsafe { 33 + from_glib_full(ffi::i_cal_trigger_new_from_string(str.to_glib_none().0)) 34 + } 35 + } 36 + 37 + //#[doc(alias = "i_cal_trigger_new_full")] 38 + //pub fn new_full(native: /*Unimplemented*/Option<Basic: Pointer>) -> Trigger { 39 + // unsafe { TODO: call ffi:i_cal_trigger_new_full() } 40 + //} 41 + 42 + #[doc(alias = "i_cal_trigger_get_duration")] 43 + #[doc(alias = "get_duration")] 44 + pub fn duration(&self) -> Option<Duration> { 45 + unsafe { 46 + from_glib_full(ffi::i_cal_trigger_get_duration(self.to_glib_none().0)) 47 + } 48 + } 49 + 50 + #[doc(alias = "i_cal_trigger_get_time")] 51 + #[doc(alias = "get_time")] 52 + pub fn time(&self) -> Option<Time> { 53 + unsafe { 54 + from_glib_full(ffi::i_cal_trigger_get_time(self.to_glib_none().0)) 55 + } 56 + } 57 + 58 + #[doc(alias = "i_cal_trigger_is_bad_trigger")] 59 + pub fn is_bad_trigger(&self) -> bool { 60 + unsafe { 61 + from_glib(ffi::i_cal_trigger_is_bad_trigger(self.to_glib_none().0)) 62 + } 63 + } 64 + 65 + #[doc(alias = "i_cal_trigger_is_null_trigger")] 66 + pub fn is_null_trigger(&self) -> bool { 67 + unsafe { 68 + from_glib(ffi::i_cal_trigger_is_null_trigger(self.to_glib_none().0)) 69 + } 70 + } 71 + 72 + #[doc(alias = "i_cal_trigger_set_duration")] 73 + pub fn set_duration(&self, duration: &Duration) { 74 + unsafe { 75 + ffi::i_cal_trigger_set_duration(self.to_glib_none().0, duration.to_glib_none().0); 76 + } 77 + } 78 + 79 + #[doc(alias = "i_cal_trigger_set_time")] 80 + pub fn set_time(&self, time: &Time) { 81 + unsafe { 82 + ffi::i_cal_trigger_set_time(self.to_glib_none().0, time.to_glib_none().0); 83 + } 84 + } 85 + }
+951
ical-glib/src/auto/value.rs
··· 1 + // This file was generated by gir (https://github.com/gtk-rs/gir) 2 + // from ../gir-files 3 + // from gir-files 4 + // DO NOT EDIT 5 + 6 + use crate::{ffi,Datetimeperiod,Duration,Geo,ParameterXliccomparetype,Period,Property,PropertyAction,PropertyBusytype,PropertyCarlevel,PropertyCmd,PropertyKind,PropertyMethod,PropertyPollcompletion,PropertyPollmode,PropertyQuerylevel,PropertyStatus,PropertyTaskmode,PropertyTransp,PropertyXlicclass,Property_Class,Recurrence,Reqstat,Time,Trigger,ValueKind}; 7 + use glib::{translate::*}; 8 + 9 + glib::wrapper! { 10 + #[doc(alias = "ICalValue")] 11 + pub struct Value(Object<ffi::ICalValue, ffi::ICalValueClass>); 12 + 13 + match fn { 14 + type_ => || ffi::i_cal_value_get_type(), 15 + } 16 + } 17 + 18 + impl Value { 19 + #[doc(alias = "i_cal_value_new")] 20 + pub fn new(kind: ValueKind) -> Value { 21 + assert_initialized_main_thread!(); 22 + unsafe { 23 + from_glib_full(ffi::i_cal_value_new(kind.into_glib())) 24 + } 25 + } 26 + 27 + #[doc(alias = "i_cal_value_new_action")] 28 + pub fn new_action(v: PropertyAction) -> Value { 29 + assert_initialized_main_thread!(); 30 + unsafe { 31 + from_glib_full(ffi::i_cal_value_new_action(v.into_glib())) 32 + } 33 + } 34 + 35 + //#[doc(alias = "i_cal_value_new_attach")] 36 + //pub fn new_attach(v: /*Ignored*/&Attach) -> Value { 37 + // unsafe { TODO: call ffi:i_cal_value_new_attach() } 38 + //} 39 + 40 + #[doc(alias = "i_cal_value_new_binary")] 41 + pub fn new_binary(v: &str) -> Value { 42 + assert_initialized_main_thread!(); 43 + unsafe { 44 + from_glib_full(ffi::i_cal_value_new_binary(v.to_glib_none().0)) 45 + } 46 + } 47 + 48 + #[doc(alias = "i_cal_value_new_boolean")] 49 + pub fn new_boolean(v: i32) -> Value { 50 + assert_initialized_main_thread!(); 51 + unsafe { 52 + from_glib_full(ffi::i_cal_value_new_boolean(v)) 53 + } 54 + } 55 + 56 + #[doc(alias = "i_cal_value_new_busytype")] 57 + pub fn new_busytype(v: PropertyBusytype) -> Value { 58 + assert_initialized_main_thread!(); 59 + unsafe { 60 + from_glib_full(ffi::i_cal_value_new_busytype(v.into_glib())) 61 + } 62 + } 63 + 64 + #[doc(alias = "i_cal_value_new_caladdress")] 65 + pub fn new_caladdress(v: &str) -> Value { 66 + assert_initialized_main_thread!(); 67 + unsafe { 68 + from_glib_full(ffi::i_cal_value_new_caladdress(v.to_glib_none().0)) 69 + } 70 + } 71 + 72 + #[doc(alias = "i_cal_value_new_carlevel")] 73 + pub fn new_carlevel(v: PropertyCarlevel) -> Value { 74 + assert_initialized_main_thread!(); 75 + unsafe { 76 + from_glib_full(ffi::i_cal_value_new_carlevel(v.into_glib())) 77 + } 78 + } 79 + 80 + #[doc(alias = "i_cal_value_new_class")] 81 + pub fn new_class(v: Property_Class) -> Value { 82 + assert_initialized_main_thread!(); 83 + unsafe { 84 + from_glib_full(ffi::i_cal_value_new_class(v.into_glib())) 85 + } 86 + } 87 + 88 + #[doc(alias = "i_cal_value_new_cmd")] 89 + pub fn new_cmd(v: PropertyCmd) -> Value { 90 + assert_initialized_main_thread!(); 91 + unsafe { 92 + from_glib_full(ffi::i_cal_value_new_cmd(v.into_glib())) 93 + } 94 + } 95 + 96 + #[doc(alias = "i_cal_value_new_date")] 97 + pub fn new_date(v: &Time) -> Value { 98 + skip_assert_initialized!(); 99 + unsafe { 100 + from_glib_full(ffi::i_cal_value_new_date(v.to_glib_none().0)) 101 + } 102 + } 103 + 104 + #[doc(alias = "i_cal_value_new_datetime")] 105 + pub fn new_datetime(v: &Time) -> Value { 106 + skip_assert_initialized!(); 107 + unsafe { 108 + from_glib_full(ffi::i_cal_value_new_datetime(v.to_glib_none().0)) 109 + } 110 + } 111 + 112 + #[doc(alias = "i_cal_value_new_datetimedate")] 113 + pub fn new_datetimedate(v: &Time) -> Value { 114 + skip_assert_initialized!(); 115 + unsafe { 116 + from_glib_full(ffi::i_cal_value_new_datetimedate(v.to_glib_none().0)) 117 + } 118 + } 119 + 120 + #[doc(alias = "i_cal_value_new_datetimeperiod")] 121 + pub fn new_datetimeperiod(v: &Datetimeperiod) -> Value { 122 + skip_assert_initialized!(); 123 + unsafe { 124 + from_glib_full(ffi::i_cal_value_new_datetimeperiod(v.to_glib_none().0)) 125 + } 126 + } 127 + 128 + #[doc(alias = "i_cal_value_new_duration")] 129 + pub fn new_duration(v: &Duration) -> Value { 130 + skip_assert_initialized!(); 131 + unsafe { 132 + from_glib_full(ffi::i_cal_value_new_duration(v.to_glib_none().0)) 133 + } 134 + } 135 + 136 + #[doc(alias = "i_cal_value_new_float")] 137 + pub fn new_float(v: f64) -> Value { 138 + assert_initialized_main_thread!(); 139 + unsafe { 140 + from_glib_full(ffi::i_cal_value_new_float(v)) 141 + } 142 + } 143 + 144 + #[doc(alias = "i_cal_value_new_from_string")] 145 + #[doc(alias = "new_from_string")] 146 + pub fn from_string(kind: ValueKind, str: &str) -> Value { 147 + assert_initialized_main_thread!(); 148 + unsafe { 149 + from_glib_full(ffi::i_cal_value_new_from_string(kind.into_glib(), str.to_glib_none().0)) 150 + } 151 + } 152 + 153 + //#[doc(alias = "i_cal_value_new_full")] 154 + //pub fn new_full(native: /*Ignored*/&mut icalvalue, owner: &impl IsA<glib::Object>) -> Value { 155 + // unsafe { TODO: call ffi:i_cal_value_new_full() } 156 + //} 157 + 158 + #[doc(alias = "i_cal_value_new_geo")] 159 + pub fn new_geo(v: &Geo) -> Value { 160 + skip_assert_initialized!(); 161 + unsafe { 162 + from_glib_full(ffi::i_cal_value_new_geo(v.to_glib_none().0)) 163 + } 164 + } 165 + 166 + #[doc(alias = "i_cal_value_new_integer")] 167 + pub fn new_integer(v: i32) -> Value { 168 + assert_initialized_main_thread!(); 169 + unsafe { 170 + from_glib_full(ffi::i_cal_value_new_integer(v)) 171 + } 172 + } 173 + 174 + #[doc(alias = "i_cal_value_new_method")] 175 + pub fn new_method(v: PropertyMethod) -> Value { 176 + assert_initialized_main_thread!(); 177 + unsafe { 178 + from_glib_full(ffi::i_cal_value_new_method(v.into_glib())) 179 + } 180 + } 181 + 182 + #[doc(alias = "i_cal_value_new_period")] 183 + pub fn new_period(v: &Period) -> Value { 184 + skip_assert_initialized!(); 185 + unsafe { 186 + from_glib_full(ffi::i_cal_value_new_period(v.to_glib_none().0)) 187 + } 188 + } 189 + 190 + #[doc(alias = "i_cal_value_new_pollcompletion")] 191 + pub fn new_pollcompletion(v: PropertyPollcompletion) -> Value { 192 + assert_initialized_main_thread!(); 193 + unsafe { 194 + from_glib_full(ffi::i_cal_value_new_pollcompletion(v.into_glib())) 195 + } 196 + } 197 + 198 + #[doc(alias = "i_cal_value_new_pollmode")] 199 + pub fn new_pollmode(v: PropertyPollmode) -> Value { 200 + assert_initialized_main_thread!(); 201 + unsafe { 202 + from_glib_full(ffi::i_cal_value_new_pollmode(v.into_glib())) 203 + } 204 + } 205 + 206 + #[doc(alias = "i_cal_value_new_query")] 207 + pub fn new_query(v: &str) -> Value { 208 + assert_initialized_main_thread!(); 209 + unsafe { 210 + from_glib_full(ffi::i_cal_value_new_query(v.to_glib_none().0)) 211 + } 212 + } 213 + 214 + #[doc(alias = "i_cal_value_new_querylevel")] 215 + pub fn new_querylevel(v: PropertyQuerylevel) -> Value { 216 + assert_initialized_main_thread!(); 217 + unsafe { 218 + from_glib_full(ffi::i_cal_value_new_querylevel(v.into_glib())) 219 + } 220 + } 221 + 222 + #[doc(alias = "i_cal_value_new_recur")] 223 + pub fn new_recur(v: &Recurrence) -> Value { 224 + skip_assert_initialized!(); 225 + unsafe { 226 + from_glib_full(ffi::i_cal_value_new_recur(v.to_glib_none().0)) 227 + } 228 + } 229 + 230 + #[doc(alias = "i_cal_value_new_requeststatus")] 231 + pub fn new_requeststatus(v: &Reqstat) -> Value { 232 + skip_assert_initialized!(); 233 + unsafe { 234 + from_glib_full(ffi::i_cal_value_new_requeststatus(v.to_glib_none().0)) 235 + } 236 + } 237 + 238 + #[doc(alias = "i_cal_value_new_status")] 239 + pub fn new_status(v: PropertyStatus) -> Value { 240 + assert_initialized_main_thread!(); 241 + unsafe { 242 + from_glib_full(ffi::i_cal_value_new_status(v.into_glib())) 243 + } 244 + } 245 + 246 + #[doc(alias = "i_cal_value_new_string")] 247 + pub fn new_string(v: &str) -> Value { 248 + assert_initialized_main_thread!(); 249 + unsafe { 250 + from_glib_full(ffi::i_cal_value_new_string(v.to_glib_none().0)) 251 + } 252 + } 253 + 254 + #[doc(alias = "i_cal_value_new_taskmode")] 255 + pub fn new_taskmode(v: PropertyTaskmode) -> Value { 256 + assert_initialized_main_thread!(); 257 + unsafe { 258 + from_glib_full(ffi::i_cal_value_new_taskmode(v.into_glib())) 259 + } 260 + } 261 + 262 + #[doc(alias = "i_cal_value_new_text")] 263 + pub fn new_text(v: &str) -> Value { 264 + assert_initialized_main_thread!(); 265 + unsafe { 266 + from_glib_full(ffi::i_cal_value_new_text(v.to_glib_none().0)) 267 + } 268 + } 269 + 270 + #[doc(alias = "i_cal_value_new_transp")] 271 + pub fn new_transp(v: PropertyTransp) -> Value { 272 + assert_initialized_main_thread!(); 273 + unsafe { 274 + from_glib_full(ffi::i_cal_value_new_transp(v.into_glib())) 275 + } 276 + } 277 + 278 + #[doc(alias = "i_cal_value_new_trigger")] 279 + pub fn new_trigger(v: &Trigger) -> Value { 280 + skip_assert_initialized!(); 281 + unsafe { 282 + from_glib_full(ffi::i_cal_value_new_trigger(v.to_glib_none().0)) 283 + } 284 + } 285 + 286 + #[doc(alias = "i_cal_value_new_uri")] 287 + pub fn new_uri(v: &str) -> Value { 288 + assert_initialized_main_thread!(); 289 + unsafe { 290 + from_glib_full(ffi::i_cal_value_new_uri(v.to_glib_none().0)) 291 + } 292 + } 293 + 294 + #[doc(alias = "i_cal_value_new_utcoffset")] 295 + pub fn new_utcoffset(v: i32) -> Value { 296 + assert_initialized_main_thread!(); 297 + unsafe { 298 + from_glib_full(ffi::i_cal_value_new_utcoffset(v)) 299 + } 300 + } 301 + 302 + #[doc(alias = "i_cal_value_new_x")] 303 + pub fn new_x(v: &str) -> Value { 304 + assert_initialized_main_thread!(); 305 + unsafe { 306 + from_glib_full(ffi::i_cal_value_new_x(v.to_glib_none().0)) 307 + } 308 + } 309 + 310 + #[doc(alias = "i_cal_value_new_xlicclass")] 311 + pub fn new_xlicclass(v: PropertyXlicclass) -> Value { 312 + assert_initialized_main_thread!(); 313 + unsafe { 314 + from_glib_full(ffi::i_cal_value_new_xlicclass(v.into_glib())) 315 + } 316 + } 317 + 318 + #[doc(alias = "i_cal_value_as_ical_string")] 319 + pub fn as_ical_string(&self) -> Option<glib::GString> { 320 + unsafe { 321 + from_glib_full(ffi::i_cal_value_as_ical_string(self.to_glib_none().0)) 322 + } 323 + } 324 + 325 + #[doc(alias = "i_cal_value_clone")] 326 + #[must_use] 327 + pub fn clone(&self) -> Option<Value> { 328 + unsafe { 329 + from_glib_full(ffi::i_cal_value_clone(self.to_glib_none().0)) 330 + } 331 + } 332 + 333 + #[doc(alias = "i_cal_value_compare")] 334 + pub fn compare(&self, b: &Value) -> ParameterXliccomparetype { 335 + unsafe { 336 + from_glib(ffi::i_cal_value_compare(self.to_glib_none().0, b.to_glib_none().0)) 337 + } 338 + } 339 + 340 + #[doc(alias = "i_cal_value_get_action")] 341 + #[doc(alias = "get_action")] 342 + pub fn action(&self) -> PropertyAction { 343 + unsafe { 344 + from_glib(ffi::i_cal_value_get_action(self.to_glib_none().0)) 345 + } 346 + } 347 + 348 + //#[doc(alias = "i_cal_value_get_attach")] 349 + //#[doc(alias = "get_attach")] 350 + //pub fn attach(&self) -> /*Ignored*/Option<Attach> { 351 + // unsafe { TODO: call ffi:i_cal_value_get_attach() } 352 + //} 353 + 354 + #[doc(alias = "i_cal_value_get_binary")] 355 + #[doc(alias = "get_binary")] 356 + pub fn binary(&self) -> Option<glib::GString> { 357 + unsafe { 358 + from_glib_none(ffi::i_cal_value_get_binary(self.to_glib_none().0)) 359 + } 360 + } 361 + 362 + #[doc(alias = "i_cal_value_get_boolean")] 363 + #[doc(alias = "get_boolean")] 364 + pub fn boolean(&self) -> i32 { 365 + unsafe { 366 + ffi::i_cal_value_get_boolean(self.to_glib_none().0) 367 + } 368 + } 369 + 370 + #[doc(alias = "i_cal_value_get_busytype")] 371 + #[doc(alias = "get_busytype")] 372 + pub fn busytype(&self) -> PropertyBusytype { 373 + unsafe { 374 + from_glib(ffi::i_cal_value_get_busytype(self.to_glib_none().0)) 375 + } 376 + } 377 + 378 + #[doc(alias = "i_cal_value_get_caladdress")] 379 + #[doc(alias = "get_caladdress")] 380 + pub fn caladdress(&self) -> Option<glib::GString> { 381 + unsafe { 382 + from_glib_none(ffi::i_cal_value_get_caladdress(self.to_glib_none().0)) 383 + } 384 + } 385 + 386 + #[doc(alias = "i_cal_value_get_carlevel")] 387 + #[doc(alias = "get_carlevel")] 388 + pub fn carlevel(&self) -> PropertyCarlevel { 389 + unsafe { 390 + from_glib(ffi::i_cal_value_get_carlevel(self.to_glib_none().0)) 391 + } 392 + } 393 + 394 + #[doc(alias = "i_cal_value_get_class")] 395 + #[doc(alias = "get_class")] 396 + pub fn class(&self) -> Property_Class { 397 + unsafe { 398 + from_glib(ffi::i_cal_value_get_class(self.to_glib_none().0)) 399 + } 400 + } 401 + 402 + #[doc(alias = "i_cal_value_get_cmd")] 403 + #[doc(alias = "get_cmd")] 404 + pub fn cmd(&self) -> PropertyCmd { 405 + unsafe { 406 + from_glib(ffi::i_cal_value_get_cmd(self.to_glib_none().0)) 407 + } 408 + } 409 + 410 + #[doc(alias = "i_cal_value_get_date")] 411 + #[doc(alias = "get_date")] 412 + pub fn date(&self) -> Option<Time> { 413 + unsafe { 414 + from_glib_full(ffi::i_cal_value_get_date(self.to_glib_none().0)) 415 + } 416 + } 417 + 418 + #[doc(alias = "i_cal_value_get_datetime")] 419 + #[doc(alias = "get_datetime")] 420 + pub fn datetime(&self) -> Option<Time> { 421 + unsafe { 422 + from_glib_full(ffi::i_cal_value_get_datetime(self.to_glib_none().0)) 423 + } 424 + } 425 + 426 + #[doc(alias = "i_cal_value_get_datetimedate")] 427 + #[doc(alias = "get_datetimedate")] 428 + pub fn datetimedate(&self) -> Option<Time> { 429 + unsafe { 430 + from_glib_full(ffi::i_cal_value_get_datetimedate(self.to_glib_none().0)) 431 + } 432 + } 433 + 434 + #[doc(alias = "i_cal_value_get_datetimeperiod")] 435 + #[doc(alias = "get_datetimeperiod")] 436 + pub fn datetimeperiod(&self) -> Option<Datetimeperiod> { 437 + unsafe { 438 + from_glib_full(ffi::i_cal_value_get_datetimeperiod(self.to_glib_none().0)) 439 + } 440 + } 441 + 442 + #[doc(alias = "i_cal_value_get_duration")] 443 + #[doc(alias = "get_duration")] 444 + pub fn duration(&self) -> Option<Duration> { 445 + unsafe { 446 + from_glib_full(ffi::i_cal_value_get_duration(self.to_glib_none().0)) 447 + } 448 + } 449 + 450 + #[doc(alias = "i_cal_value_get_float")] 451 + #[doc(alias = "get_float")] 452 + pub fn float(&self) -> f64 { 453 + unsafe { 454 + ffi::i_cal_value_get_float(self.to_glib_none().0) 455 + } 456 + } 457 + 458 + #[doc(alias = "i_cal_value_get_geo")] 459 + #[doc(alias = "get_geo")] 460 + pub fn geo(&self) -> Option<Geo> { 461 + unsafe { 462 + from_glib_full(ffi::i_cal_value_get_geo(self.to_glib_none().0)) 463 + } 464 + } 465 + 466 + #[doc(alias = "i_cal_value_get_integer")] 467 + #[doc(alias = "get_integer")] 468 + pub fn integer(&self) -> i32 { 469 + unsafe { 470 + ffi::i_cal_value_get_integer(self.to_glib_none().0) 471 + } 472 + } 473 + 474 + #[doc(alias = "i_cal_value_get_method")] 475 + #[doc(alias = "get_method")] 476 + pub fn method(&self) -> PropertyMethod { 477 + unsafe { 478 + from_glib(ffi::i_cal_value_get_method(self.to_glib_none().0)) 479 + } 480 + } 481 + 482 + #[doc(alias = "i_cal_value_get_parent")] 483 + #[doc(alias = "get_parent")] 484 + pub fn parent(&self) -> Option<Property> { 485 + unsafe { 486 + from_glib_full(ffi::i_cal_value_get_parent(self.to_glib_none().0)) 487 + } 488 + } 489 + 490 + #[doc(alias = "i_cal_value_get_period")] 491 + #[doc(alias = "get_period")] 492 + pub fn period(&self) -> Option<Period> { 493 + unsafe { 494 + from_glib_full(ffi::i_cal_value_get_period(self.to_glib_none().0)) 495 + } 496 + } 497 + 498 + #[doc(alias = "i_cal_value_get_pollcompletion")] 499 + #[doc(alias = "get_pollcompletion")] 500 + pub fn pollcompletion(&self) -> PropertyPollcompletion { 501 + unsafe { 502 + from_glib(ffi::i_cal_value_get_pollcompletion(self.to_glib_none().0)) 503 + } 504 + } 505 + 506 + #[doc(alias = "i_cal_value_get_pollmode")] 507 + #[doc(alias = "get_pollmode")] 508 + pub fn pollmode(&self) -> PropertyPollmode { 509 + unsafe { 510 + from_glib(ffi::i_cal_value_get_pollmode(self.to_glib_none().0)) 511 + } 512 + } 513 + 514 + #[doc(alias = "i_cal_value_get_query")] 515 + #[doc(alias = "get_query")] 516 + pub fn query(&self) -> Option<glib::GString> { 517 + unsafe { 518 + from_glib_none(ffi::i_cal_value_get_query(self.to_glib_none().0)) 519 + } 520 + } 521 + 522 + #[doc(alias = "i_cal_value_get_querylevel")] 523 + #[doc(alias = "get_querylevel")] 524 + pub fn querylevel(&self) -> PropertyQuerylevel { 525 + unsafe { 526 + from_glib(ffi::i_cal_value_get_querylevel(self.to_glib_none().0)) 527 + } 528 + } 529 + 530 + #[doc(alias = "i_cal_value_get_recur")] 531 + #[doc(alias = "get_recur")] 532 + pub fn recur(&self) -> Option<Recurrence> { 533 + unsafe { 534 + from_glib_full(ffi::i_cal_value_get_recur(self.to_glib_none().0)) 535 + } 536 + } 537 + 538 + #[doc(alias = "i_cal_value_get_requeststatus")] 539 + #[doc(alias = "get_requeststatus")] 540 + pub fn requeststatus(&self) -> Option<Reqstat> { 541 + unsafe { 542 + from_glib_full(ffi::i_cal_value_get_requeststatus(self.to_glib_none().0)) 543 + } 544 + } 545 + 546 + #[doc(alias = "i_cal_value_get_status")] 547 + #[doc(alias = "get_status")] 548 + pub fn status(&self) -> PropertyStatus { 549 + unsafe { 550 + from_glib(ffi::i_cal_value_get_status(self.to_glib_none().0)) 551 + } 552 + } 553 + 554 + #[doc(alias = "i_cal_value_get_string")] 555 + #[doc(alias = "get_string")] 556 + pub fn string(&self) -> Option<glib::GString> { 557 + unsafe { 558 + from_glib_none(ffi::i_cal_value_get_string(self.to_glib_none().0)) 559 + } 560 + } 561 + 562 + #[doc(alias = "i_cal_value_get_taskmode")] 563 + #[doc(alias = "get_taskmode")] 564 + pub fn taskmode(&self) -> PropertyTaskmode { 565 + unsafe { 566 + from_glib(ffi::i_cal_value_get_taskmode(self.to_glib_none().0)) 567 + } 568 + } 569 + 570 + #[doc(alias = "i_cal_value_get_text")] 571 + #[doc(alias = "get_text")] 572 + pub fn text(&self) -> Option<glib::GString> { 573 + unsafe { 574 + from_glib_none(ffi::i_cal_value_get_text(self.to_glib_none().0)) 575 + } 576 + } 577 + 578 + #[doc(alias = "i_cal_value_get_transp")] 579 + #[doc(alias = "get_transp")] 580 + pub fn transp(&self) -> PropertyTransp { 581 + unsafe { 582 + from_glib(ffi::i_cal_value_get_transp(self.to_glib_none().0)) 583 + } 584 + } 585 + 586 + #[doc(alias = "i_cal_value_get_trigger")] 587 + #[doc(alias = "get_trigger")] 588 + pub fn trigger(&self) -> Option<Trigger> { 589 + unsafe { 590 + from_glib_full(ffi::i_cal_value_get_trigger(self.to_glib_none().0)) 591 + } 592 + } 593 + 594 + #[doc(alias = "i_cal_value_get_uri")] 595 + #[doc(alias = "get_uri")] 596 + pub fn uri(&self) -> Option<glib::GString> { 597 + unsafe { 598 + from_glib_none(ffi::i_cal_value_get_uri(self.to_glib_none().0)) 599 + } 600 + } 601 + 602 + #[doc(alias = "i_cal_value_get_utcoffset")] 603 + #[doc(alias = "get_utcoffset")] 604 + pub fn utcoffset(&self) -> i32 { 605 + unsafe { 606 + ffi::i_cal_value_get_utcoffset(self.to_glib_none().0) 607 + } 608 + } 609 + 610 + #[doc(alias = "i_cal_value_get_x")] 611 + #[doc(alias = "get_x")] 612 + pub fn x(&self) -> Option<glib::GString> { 613 + unsafe { 614 + from_glib_none(ffi::i_cal_value_get_x(self.to_glib_none().0)) 615 + } 616 + } 617 + 618 + #[doc(alias = "i_cal_value_get_xlicclass")] 619 + #[doc(alias = "get_xlicclass")] 620 + pub fn xlicclass(&self) -> PropertyXlicclass { 621 + unsafe { 622 + from_glib(ffi::i_cal_value_get_xlicclass(self.to_glib_none().0)) 623 + } 624 + } 625 + 626 + #[doc(alias = "i_cal_value_is_valid")] 627 + pub fn is_valid(&self) -> bool { 628 + unsafe { 629 + from_glib(ffi::i_cal_value_is_valid(self.to_glib_none().0)) 630 + } 631 + } 632 + 633 + #[doc(alias = "i_cal_value_isa")] 634 + pub fn isa(&self) -> ValueKind { 635 + unsafe { 636 + from_glib(ffi::i_cal_value_isa(self.to_glib_none().0)) 637 + } 638 + } 639 + 640 + #[doc(alias = "i_cal_value_isa_value")] 641 + pub fn isa_value(&self) -> i32 { 642 + unsafe { 643 + ffi::i_cal_value_isa_value(self.to_glib_none().0) 644 + } 645 + } 646 + 647 + #[doc(alias = "i_cal_value_reset_kind")] 648 + pub fn reset_kind(&self) { 649 + unsafe { 650 + ffi::i_cal_value_reset_kind(self.to_glib_none().0); 651 + } 652 + } 653 + 654 + #[doc(alias = "i_cal_value_set_action")] 655 + pub fn set_action(&self, v: PropertyAction) { 656 + unsafe { 657 + ffi::i_cal_value_set_action(self.to_glib_none().0, v.into_glib()); 658 + } 659 + } 660 + 661 + //#[doc(alias = "i_cal_value_set_attach")] 662 + //pub fn set_attach(&self, v: /*Ignored*/&Attach) { 663 + // unsafe { TODO: call ffi:i_cal_value_set_attach() } 664 + //} 665 + 666 + #[doc(alias = "i_cal_value_set_binary")] 667 + pub fn set_binary(&self, v: &str) { 668 + unsafe { 669 + ffi::i_cal_value_set_binary(self.to_glib_none().0, v.to_glib_none().0); 670 + } 671 + } 672 + 673 + #[doc(alias = "i_cal_value_set_boolean")] 674 + pub fn set_boolean(&self, v: i32) { 675 + unsafe { 676 + ffi::i_cal_value_set_boolean(self.to_glib_none().0, v); 677 + } 678 + } 679 + 680 + #[doc(alias = "i_cal_value_set_busytype")] 681 + pub fn set_busytype(&self, v: PropertyBusytype) { 682 + unsafe { 683 + ffi::i_cal_value_set_busytype(self.to_glib_none().0, v.into_glib()); 684 + } 685 + } 686 + 687 + #[doc(alias = "i_cal_value_set_caladdress")] 688 + pub fn set_caladdress(&self, v: &str) { 689 + unsafe { 690 + ffi::i_cal_value_set_caladdress(self.to_glib_none().0, v.to_glib_none().0); 691 + } 692 + } 693 + 694 + #[doc(alias = "i_cal_value_set_carlevel")] 695 + pub fn set_carlevel(&self, v: PropertyCarlevel) { 696 + unsafe { 697 + ffi::i_cal_value_set_carlevel(self.to_glib_none().0, v.into_glib()); 698 + } 699 + } 700 + 701 + #[doc(alias = "i_cal_value_set_class")] 702 + pub fn set_class(&self, v: Property_Class) { 703 + unsafe { 704 + ffi::i_cal_value_set_class(self.to_glib_none().0, v.into_glib()); 705 + } 706 + } 707 + 708 + #[doc(alias = "i_cal_value_set_cmd")] 709 + pub fn set_cmd(&self, v: PropertyCmd) { 710 + unsafe { 711 + ffi::i_cal_value_set_cmd(self.to_glib_none().0, v.into_glib()); 712 + } 713 + } 714 + 715 + #[doc(alias = "i_cal_value_set_date")] 716 + pub fn set_date(&self, v: &Time) { 717 + unsafe { 718 + ffi::i_cal_value_set_date(self.to_glib_none().0, v.to_glib_none().0); 719 + } 720 + } 721 + 722 + #[doc(alias = "i_cal_value_set_datetime")] 723 + pub fn set_datetime(&self, v: &Time) { 724 + unsafe { 725 + ffi::i_cal_value_set_datetime(self.to_glib_none().0, v.to_glib_none().0); 726 + } 727 + } 728 + 729 + #[doc(alias = "i_cal_value_set_datetimedate")] 730 + pub fn set_datetimedate(&self, v: &Time) { 731 + unsafe { 732 + ffi::i_cal_value_set_datetimedate(self.to_glib_none().0, v.to_glib_none().0); 733 + } 734 + } 735 + 736 + #[doc(alias = "i_cal_value_set_datetimeperiod")] 737 + pub fn set_datetimeperiod(&self, v: &Datetimeperiod) { 738 + unsafe { 739 + ffi::i_cal_value_set_datetimeperiod(self.to_glib_none().0, v.to_glib_none().0); 740 + } 741 + } 742 + 743 + #[doc(alias = "i_cal_value_set_duration")] 744 + pub fn set_duration(&self, v: &Duration) { 745 + unsafe { 746 + ffi::i_cal_value_set_duration(self.to_glib_none().0, v.to_glib_none().0); 747 + } 748 + } 749 + 750 + #[doc(alias = "i_cal_value_set_float")] 751 + pub fn set_float(&self, v: f64) { 752 + unsafe { 753 + ffi::i_cal_value_set_float(self.to_glib_none().0, v); 754 + } 755 + } 756 + 757 + #[doc(alias = "i_cal_value_set_geo")] 758 + pub fn set_geo(&self, v: &Geo) { 759 + unsafe { 760 + ffi::i_cal_value_set_geo(self.to_glib_none().0, v.to_glib_none().0); 761 + } 762 + } 763 + 764 + #[doc(alias = "i_cal_value_set_integer")] 765 + pub fn set_integer(&self, v: i32) { 766 + unsafe { 767 + ffi::i_cal_value_set_integer(self.to_glib_none().0, v); 768 + } 769 + } 770 + 771 + #[doc(alias = "i_cal_value_set_method")] 772 + pub fn set_method(&self, v: PropertyMethod) { 773 + unsafe { 774 + ffi::i_cal_value_set_method(self.to_glib_none().0, v.into_glib()); 775 + } 776 + } 777 + 778 + #[doc(alias = "i_cal_value_set_parent")] 779 + pub fn set_parent(&self, property: Option<&Property>) { 780 + unsafe { 781 + ffi::i_cal_value_set_parent(self.to_glib_none().0, property.to_glib_none().0); 782 + } 783 + } 784 + 785 + #[doc(alias = "i_cal_value_set_period")] 786 + pub fn set_period(&self, v: &Period) { 787 + unsafe { 788 + ffi::i_cal_value_set_period(self.to_glib_none().0, v.to_glib_none().0); 789 + } 790 + } 791 + 792 + #[doc(alias = "i_cal_value_set_pollcompletion")] 793 + pub fn set_pollcompletion(&self, v: PropertyPollcompletion) { 794 + unsafe { 795 + ffi::i_cal_value_set_pollcompletion(self.to_glib_none().0, v.into_glib()); 796 + } 797 + } 798 + 799 + #[doc(alias = "i_cal_value_set_pollmode")] 800 + pub fn set_pollmode(&self, v: PropertyPollmode) { 801 + unsafe { 802 + ffi::i_cal_value_set_pollmode(self.to_glib_none().0, v.into_glib()); 803 + } 804 + } 805 + 806 + #[doc(alias = "i_cal_value_set_query")] 807 + pub fn set_query(&self, v: &str) { 808 + unsafe { 809 + ffi::i_cal_value_set_query(self.to_glib_none().0, v.to_glib_none().0); 810 + } 811 + } 812 + 813 + #[doc(alias = "i_cal_value_set_querylevel")] 814 + pub fn set_querylevel(&self, v: PropertyQuerylevel) { 815 + unsafe { 816 + ffi::i_cal_value_set_querylevel(self.to_glib_none().0, v.into_glib()); 817 + } 818 + } 819 + 820 + #[doc(alias = "i_cal_value_set_recur")] 821 + pub fn set_recur(&self, v: &Recurrence) { 822 + unsafe { 823 + ffi::i_cal_value_set_recur(self.to_glib_none().0, v.to_glib_none().0); 824 + } 825 + } 826 + 827 + #[doc(alias = "i_cal_value_set_requeststatus")] 828 + pub fn set_requeststatus(&self, v: &Reqstat) { 829 + unsafe { 830 + ffi::i_cal_value_set_requeststatus(self.to_glib_none().0, v.to_glib_none().0); 831 + } 832 + } 833 + 834 + #[doc(alias = "i_cal_value_set_status")] 835 + pub fn set_status(&self, v: PropertyStatus) { 836 + unsafe { 837 + ffi::i_cal_value_set_status(self.to_glib_none().0, v.into_glib()); 838 + } 839 + } 840 + 841 + #[doc(alias = "i_cal_value_set_string")] 842 + pub fn set_string(&self, v: &str) { 843 + unsafe { 844 + ffi::i_cal_value_set_string(self.to_glib_none().0, v.to_glib_none().0); 845 + } 846 + } 847 + 848 + #[doc(alias = "i_cal_value_set_taskmode")] 849 + pub fn set_taskmode(&self, v: PropertyTaskmode) { 850 + unsafe { 851 + ffi::i_cal_value_set_taskmode(self.to_glib_none().0, v.into_glib()); 852 + } 853 + } 854 + 855 + #[doc(alias = "i_cal_value_set_text")] 856 + pub fn set_text(&self, v: &str) { 857 + unsafe { 858 + ffi::i_cal_value_set_text(self.to_glib_none().0, v.to_glib_none().0); 859 + } 860 + } 861 + 862 + #[doc(alias = "i_cal_value_set_transp")] 863 + pub fn set_transp(&self, v: PropertyTransp) { 864 + unsafe { 865 + ffi::i_cal_value_set_transp(self.to_glib_none().0, v.into_glib()); 866 + } 867 + } 868 + 869 + #[doc(alias = "i_cal_value_set_trigger")] 870 + pub fn set_trigger(&self, v: &Trigger) { 871 + unsafe { 872 + ffi::i_cal_value_set_trigger(self.to_glib_none().0, v.to_glib_none().0); 873 + } 874 + } 875 + 876 + #[doc(alias = "i_cal_value_set_uri")] 877 + pub fn set_uri(&self, v: &str) { 878 + unsafe { 879 + ffi::i_cal_value_set_uri(self.to_glib_none().0, v.to_glib_none().0); 880 + } 881 + } 882 + 883 + #[doc(alias = "i_cal_value_set_utcoffset")] 884 + pub fn set_utcoffset(&self, v: i32) { 885 + unsafe { 886 + ffi::i_cal_value_set_utcoffset(self.to_glib_none().0, v); 887 + } 888 + } 889 + 890 + #[doc(alias = "i_cal_value_set_x")] 891 + pub fn set_x(&self, v: &str) { 892 + unsafe { 893 + ffi::i_cal_value_set_x(self.to_glib_none().0, v.to_glib_none().0); 894 + } 895 + } 896 + 897 + #[doc(alias = "i_cal_value_set_xlicclass")] 898 + pub fn set_xlicclass(&self, v: PropertyXlicclass) { 899 + unsafe { 900 + ffi::i_cal_value_set_xlicclass(self.to_glib_none().0, v.into_glib()); 901 + } 902 + } 903 + 904 + #[doc(alias = "i_cal_value_decode_ical_string")] 905 + pub fn decode_ical_string(szText: &str) -> Option<glib::GString> { 906 + assert_initialized_main_thread!(); 907 + unsafe { 908 + from_glib_full(ffi::i_cal_value_decode_ical_string(szText.to_glib_none().0)) 909 + } 910 + } 911 + 912 + #[doc(alias = "i_cal_value_encode_ical_string")] 913 + pub fn encode_ical_string(szText: &str) -> Option<glib::GString> { 914 + assert_initialized_main_thread!(); 915 + unsafe { 916 + from_glib_full(ffi::i_cal_value_encode_ical_string(szText.to_glib_none().0)) 917 + } 918 + } 919 + 920 + #[doc(alias = "i_cal_value_kind_from_string")] 921 + pub fn kind_from_string(str: &str) -> ValueKind { 922 + assert_initialized_main_thread!(); 923 + unsafe { 924 + from_glib(ffi::i_cal_value_kind_from_string(str.to_glib_none().0)) 925 + } 926 + } 927 + 928 + #[doc(alias = "i_cal_value_kind_is_valid")] 929 + pub fn kind_is_valid(kind: ValueKind) -> bool { 930 + assert_initialized_main_thread!(); 931 + unsafe { 932 + from_glib(ffi::i_cal_value_kind_is_valid(kind.into_glib())) 933 + } 934 + } 935 + 936 + #[doc(alias = "i_cal_value_kind_to_property_kind")] 937 + pub fn kind_to_property_kind(kind: ValueKind) -> PropertyKind { 938 + assert_initialized_main_thread!(); 939 + unsafe { 940 + from_glib(ffi::i_cal_value_kind_to_property_kind(kind.into_glib())) 941 + } 942 + } 943 + 944 + #[doc(alias = "i_cal_value_kind_to_string")] 945 + pub fn kind_to_string(kind: ValueKind) -> Option<glib::GString> { 946 + assert_initialized_main_thread!(); 947 + unsafe { 948 + from_glib_none(ffi::i_cal_value_kind_to_string(kind.into_glib())) 949 + } 950 + } 951 + }
+1 -1
ical-glib/src/auto/versions.txt
··· 1 1 Generated by gir (https://github.com/gtk-rs/gir @ 3ddfba1db34e) 2 2 from ../gir-files (@ 01ea5f1a07cd) 3 - from gir-files (@ fa7d09299f2b) 3 + from gir-files (@ 472b91ab7e8a)
+14 -1
ical-glib/src/lib.rs
··· 1 1 #![cfg_attr(docsrs, feature(doc_cfg))] 2 2 3 + /// No-op. 4 + macro_rules! skip_assert_initialized { 5 + () => {}; 6 + } 7 + 8 + /// No-op. 9 + macro_rules! assert_initialized_main_thread { 10 + () => {}; 11 + } 12 + 3 13 use ffi; 14 + 15 + #[allow(non_snake_case)] 16 + #[allow(non_camel_case_types)] 17 + mod auto; 4 18 pub use auto::*; 5 - mod auto;