Struct xpcom::interfaces::nsIFormatConverter
[−]
[src]
#[repr(C)]pub struct nsIFormatConverter { /* fields omitted */ }
interface nsIFormatConverter : nsISupports
Methods
impl nsIFormatConverter
[src]
pub fn coerce<T: nsIFormatConverterCoerce>(&self) -> &T
[src]
Cast this nsIFormatConverter
to one of its base interfaces.
impl nsIFormatConverter
[src]
pub unsafe fn GetInputDataFlavors(
&self,
_retval: *mut *const nsIArray
) -> nsresult
[src]
&self,
_retval: *mut *const nsIArray
) -> nsresult
/**
* Get the list of the "input" data flavors (mime types as nsISupportsCString),
* in otherwords, the flavors that this converter can convert "from" (the
* incoming data to the converter).
*/
nsIArray getInputDataFlavors ();
pub unsafe fn GetOutputDataFlavors(
&self,
_retval: *mut *const nsIArray
) -> nsresult
[src]
&self,
_retval: *mut *const nsIArray
) -> nsresult
/**
* Get the list of the "output" data flavors (mime types as nsISupportsCString),
* in otherwords, the flavors that this converter can convert "to" (the
* outgoing data to the converter).
*
* @param aDataFlavorList fills list with supported flavors
*/
nsIArray getOutputDataFlavors ();
pub unsafe fn CanConvert(
&self,
aFromDataFlavor: *const c_char,
aToDataFlavor: *const c_char,
_retval: *mut bool
) -> nsresult
[src]
&self,
aFromDataFlavor: *const c_char,
aToDataFlavor: *const c_char,
_retval: *mut bool
) -> nsresult
/**
* Determines whether a conversion from one flavor to another is supported
*
* @param aFromFormatConverter flavor to convert from
* @param aFromFormatConverter flavor to convert to
*/
boolean canConvert (in string aFromDataFlavor, in string aToDataFlavor);
pub unsafe fn Convert(
&self,
aFromDataFlavor: *const c_char,
aFromData: *const nsISupports,
aDataLen: uint32_t,
aToDataFlavor: *const c_char,
aToData: *mut *const nsISupports,
aDataToLen: *mut uint32_t
) -> nsresult
[src]
&self,
aFromDataFlavor: *const c_char,
aFromData: *const nsISupports,
aDataLen: uint32_t,
aToDataFlavor: *const c_char,
aToData: *mut *const nsISupports,
aDataToLen: *mut uint32_t
) -> nsresult
/**
* Converts from one flavor to another.
*
* @param aFromFormatConverter flavor to convert from
* @param aFromFormatConverter flavor to convert to (destination own the memory)
* @returns returns NS_OK if it was converted
*/
void convert (in string aFromDataFlavor, in nsISupports aFromData, in unsigned long aDataLen, in string aToDataFlavor, out nsISupports aToData, out unsigned long aDataToLen);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIFormatConverter
[src]
const IID: nsIID
IID: nsIID = nsID(2492071971, 58279, 4562, [150, 207, 0, 96, 176, 251, 153, 86])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIFormatConverter
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIFormatConverter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.