objc2_intents/generated/
INTaskList.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/intasklist?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct INTaskList;
14);
15
16extern_conformance!(
17    unsafe impl NSCoding for INTaskList {}
18);
19
20extern_conformance!(
21    unsafe impl NSCopying for INTaskList {}
22);
23
24unsafe impl CopyingHelper for INTaskList {
25    type Result = Self;
26}
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for INTaskList {}
30);
31
32extern_conformance!(
33    unsafe impl NSSecureCoding for INTaskList {}
34);
35
36impl INTaskList {
37    extern_methods!(
38        #[cfg(all(feature = "INSpeakableString", feature = "INTask"))]
39        #[unsafe(method(initWithTitle:tasks:groupName:createdDateComponents:modifiedDateComponents:identifier:))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn initWithTitle_tasks_groupName_createdDateComponents_modifiedDateComponents_identifier(
42            this: Allocated<Self>,
43            title: &INSpeakableString,
44            tasks: &NSArray<INTask>,
45            group_name: Option<&INSpeakableString>,
46            created_date_components: Option<&NSDateComponents>,
47            modified_date_components: Option<&NSDateComponents>,
48            identifier: Option<&NSString>,
49        ) -> Retained<Self>;
50
51        #[cfg(feature = "INSpeakableString")]
52        #[unsafe(method(title))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn title(&self) -> Retained<INSpeakableString>;
55
56        #[cfg(feature = "INTask")]
57        #[unsafe(method(tasks))]
58        #[unsafe(method_family = none)]
59        pub unsafe fn tasks(&self) -> Retained<NSArray<INTask>>;
60
61        #[cfg(feature = "INSpeakableString")]
62        #[unsafe(method(groupName))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn groupName(&self) -> Option<Retained<INSpeakableString>>;
65
66        #[unsafe(method(createdDateComponents))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn createdDateComponents(&self) -> Option<Retained<NSDateComponents>>;
69
70        #[unsafe(method(modifiedDateComponents))]
71        #[unsafe(method_family = none)]
72        pub unsafe fn modifiedDateComponents(&self) -> Option<Retained<NSDateComponents>>;
73
74        #[unsafe(method(identifier))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
77    );
78}
79
80/// Methods declared on superclass `NSObject`.
81impl INTaskList {
82    extern_methods!(
83        #[unsafe(method(init))]
84        #[unsafe(method_family = init)]
85        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
86
87        #[unsafe(method(new))]
88        #[unsafe(method_family = new)]
89        pub unsafe fn new() -> Retained<Self>;
90    );
91}