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 #[deprecated]
42 #[unsafe(method(artist))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn artist(&self) -> Option<Retained<ITLibArtist>>;
45
46 #[unsafe(method(discCount))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn discCount(&self) -> NSUInteger;
50
51 #[unsafe(method(discNumber))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn discNumber(&self) -> NSUInteger;
55
56 #[unsafe(method(rating))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn rating(&self) -> NSInteger;
60
61 #[unsafe(method(isRatingComputed))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn isRatingComputed(&self) -> bool;
65
66 #[unsafe(method(isGapless))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn isGapless(&self) -> bool;
70
71 #[unsafe(method(trackCount))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn trackCount(&self) -> NSUInteger;
75
76 #[unsafe(method(albumArtist))]
78 #[unsafe(method_family = none)]
79 pub unsafe fn albumArtist(&self) -> Option<Retained<NSString>>;
80
81 #[unsafe(method(sortAlbumArtist))]
83 #[unsafe(method_family = none)]
84 pub unsafe fn sortAlbumArtist(&self) -> Option<Retained<NSString>>;
85
86 #[unsafe(method(persistentID))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn persistentID(&self) -> Retained<NSNumber>;
90 );
91}
92
93impl ITLibAlbum {
95 extern_methods!(
96 #[unsafe(method(init))]
97 #[unsafe(method_family = init)]
98 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
99
100 #[unsafe(method(new))]
101 #[unsafe(method_family = new)]
102 pub unsafe fn new() -> Retained<Self>;
103 );
104}