objc2_itunes_library/generated/
ITLibAlbum.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct ITLibAlbum;
16);
17
18extern_conformance!(
19 unsafe impl NSObjectProtocol for ITLibAlbum {}
20);
21
22impl ITLibAlbum {
23 extern_methods!(
24 #[unsafe(method(title))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn title(&self) -> Option<Retained<NSString>>;
28
29 #[unsafe(method(sortTitle))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn sortTitle(&self) -> Option<Retained<NSString>>;
33
34 #[unsafe(method(isCompilation))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn isCompilation(&self) -> bool;
38
39 #[cfg(feature = "ITLibArtist")]
40 #[unsafe(method(artist))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn artist(&self) -> Option<Retained<ITLibArtist>>;
44
45 #[unsafe(method(discCount))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn discCount(&self) -> NSUInteger;
49
50 #[unsafe(method(discNumber))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn discNumber(&self) -> NSUInteger;
54
55 #[unsafe(method(rating))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn rating(&self) -> NSInteger;
59
60 #[unsafe(method(isRatingComputed))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn isRatingComputed(&self) -> bool;
64
65 #[unsafe(method(isGapless))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn isGapless(&self) -> bool;
69
70 #[unsafe(method(trackCount))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn trackCount(&self) -> NSUInteger;
74
75 #[unsafe(method(albumArtist))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn albumArtist(&self) -> Option<Retained<NSString>>;
79
80 #[unsafe(method(sortAlbumArtist))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn sortAlbumArtist(&self) -> Option<Retained<NSString>>;
84
85 #[unsafe(method(persistentID))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn persistentID(&self) -> Retained<NSNumber>;
89 );
90}
91
92impl ITLibAlbum {
94 extern_methods!(
95 #[unsafe(method(init))]
96 #[unsafe(method_family = init)]
97 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
98
99 #[unsafe(method(new))]
100 #[unsafe(method_family = new)]
101 pub unsafe fn new() -> Retained<Self>;
102 );
103}