objc2_quick_look_ui/generated/
QLFilePreviewRequest.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    /// This class contains information about the preview that should be provided.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/quicklookui/qlfilepreviewrequest?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct QLFilePreviewRequest;
16);
17
18extern_conformance!(
19    unsafe impl NSObjectProtocol for QLFilePreviewRequest {}
20);
21
22impl QLFilePreviewRequest {
23    extern_methods!(
24        /// The url of the file for which a preview is being requested.
25        #[unsafe(method(fileURL))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn fileURL(&self) -> Retained<NSURL>;
28    );
29}
30
31/// Methods declared on superclass `NSObject`.
32impl QLFilePreviewRequest {
33    extern_methods!(
34        #[unsafe(method(init))]
35        #[unsafe(method_family = init)]
36        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
37
38        #[unsafe(method(new))]
39        #[unsafe(method_family = new)]
40        pub unsafe fn new() -> Retained<Self>;
41    );
42}