pub struct IFrnStorageProvider { /* private fields */ }Implementations§
Source§impl IFrnStorageProvider
impl IFrnStorageProvider
Sourcepub fn from_impl<T: IFrnStorageProviderImpl + 'static>(
value: T,
) -> ComPtr<IFrnStorageProvider>
pub fn from_impl<T: IFrnStorageProviderImpl + 'static>( value: T, ) -> ComPtr<IFrnStorageProvider>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn select_folder_dialog(
&self,
parent_top_level: Option<&IFrnTopLevel>,
events: Option<&IFrnSystemDialogEvents>,
allow_multiple: bool,
title: Option<&CStr>,
initial_path: Option<&CStr>,
)
pub fn select_folder_dialog( &self, parent_top_level: Option<&IFrnTopLevel>, events: Option<&IFrnSystemDialogEvents>, allow_multiple: bool, title: Option<&CStr>, initial_path: Option<&CStr>, )
IFrnStorageProvider::SelectFolderDialog
Sourcepub fn open_file_dialog(
&self,
parent_top_level: Option<&IFrnTopLevel>,
events: Option<&IFrnSystemDialogEvents>,
allow_multiple: bool,
title: Option<&CStr>,
initial_directory: Option<&CStr>,
initial_file: Option<&CStr>,
filters: Option<&IFrnFilePickerFileTypes>,
)
pub fn open_file_dialog( &self, parent_top_level: Option<&IFrnTopLevel>, events: Option<&IFrnSystemDialogEvents>, allow_multiple: bool, title: Option<&CStr>, initial_directory: Option<&CStr>, initial_file: Option<&CStr>, filters: Option<&IFrnFilePickerFileTypes>, )
IFrnStorageProvider::OpenFileDialog
Sourcepub fn save_file_dialog(
&self,
parent_top_level: Option<&IFrnTopLevel>,
events: Option<&IFrnSystemDialogEvents>,
title: Option<&CStr>,
initial_directory: Option<&CStr>,
initial_file: Option<&CStr>,
filters: Option<&IFrnFilePickerFileTypes>,
)
pub fn save_file_dialog( &self, parent_top_level: Option<&IFrnTopLevel>, events: Option<&IFrnSystemDialogEvents>, title: Option<&CStr>, initial_directory: Option<&CStr>, initial_file: Option<&CStr>, filters: Option<&IFrnFilePickerFileTypes>, )
IFrnStorageProvider::SaveFileDialog
Sourcepub unsafe fn save_bookmark_to_bytes(
&self,
file_uri: Option<&IFrnString>,
err: *mut *mut c_void,
) -> Result<Option<ComPtr<IFrnString>>, HResult>
pub unsafe fn save_bookmark_to_bytes( &self, file_uri: Option<&IFrnString>, err: *mut *mut c_void, ) -> Result<Option<ComPtr<IFrnString>>, HResult>
IFrnStorageProvider::SaveBookmarkToBytes
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub unsafe fn read_bookmark_from_bytes(
&self,
ptr: *mut c_void,
len: i32,
) -> Result<Option<ComPtr<IFrnString>>, HResult>
pub unsafe fn read_bookmark_from_bytes( &self, ptr: *mut c_void, len: i32, ) -> Result<Option<ComPtr<IFrnString>>, HResult>
IFrnStorageProvider::ReadBookmarkFromBytes
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub fn release_bookmark(&self, file_uri: Option<&IFrnString>)
pub fn release_bookmark(&self, file_uri: Option<&IFrnString>)
IFrnStorageProvider::ReleaseBookmark
Sourcepub fn open_security_scope(&self, file_uri: Option<&IFrnString>) -> bool
pub fn open_security_scope(&self, file_uri: Option<&IFrnString>) -> bool
IFrnStorageProvider::OpenSecurityScope
Sourcepub fn close_security_scope(&self, file_uri: Option<&IFrnString>)
pub fn close_security_scope(&self, file_uri: Option<&IFrnString>)
IFrnStorageProvider::CloseSecurityScope
Sourcepub fn try_resolve_file_reference_uri(
&self,
file_uri: Option<&IFrnString>,
) -> Result<Option<ComPtr<IFrnString>>, HResult>
pub fn try_resolve_file_reference_uri( &self, file_uri: Option<&IFrnString>, ) -> Result<Option<ComPtr<IFrnString>>, HResult>
IFrnStorageProvider::TryResolveFileReferenceUri
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFrnStorageProvider
impl Deref for IFrnStorageProvider
Source§impl<T: IFrnStorageProviderImpl> ImplementedBy<T> for IFrnStorageProvider
impl<T: IFrnStorageProviderImpl> ImplementedBy<T> for IFrnStorageProvider
const VTBL: &'static IFrnStorageProviderVtbl
Source§impl Interface for IFrnStorageProvider
impl Interface for IFrnStorageProvider
type Vtbl = IFrnStorageProviderVtbl
Source§fn matches_iid(iid: &Guid) -> bool
fn matches_iid(iid: &Guid) -> bool
true if iid names this interface or one of its bases (including
IUnknown). Both the IDL value and the value materialized by com.h
(see Guid::as_com_h_materialized) are accepted.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnStorageProvider
impl !Sync for IFrnStorageProvider
impl Freeze for IFrnStorageProvider
impl RefUnwindSafe for IFrnStorageProvider
impl Unpin for IFrnStorageProvider
impl UnsafeUnpin for IFrnStorageProvider
impl UnwindSafe for IFrnStorageProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more