Struct xpcom::interfaces::nsIStringBundleService
[−]
[src]
#[repr(C)]pub struct nsIStringBundleService { /* fields omitted */ }
interface nsIStringBundleService : nsISupports
Methods
impl nsIStringBundleService
[src]
pub fn coerce<T: nsIStringBundleServiceCoerce>(&self) -> &T
[src]
Cast this nsIStringBundleService
to one of its base interfaces.
impl nsIStringBundleService
[src]
pub unsafe fn CreateBundle(
&self,
aURLSpec: *const c_char,
_retval: *mut *const nsIStringBundle
) -> nsresult
[src]
&self,
aURLSpec: *const c_char,
_retval: *mut *const nsIStringBundle
) -> nsresult
nsIStringBundle createBundle (in string aURLSpec);
pub unsafe fn CreateExtensibleBundle(
&self,
aRegistryKey: *const c_char,
_retval: *mut *const nsIStringBundle
) -> nsresult
[src]
&self,
aRegistryKey: *const c_char,
_retval: *mut *const nsIStringBundle
) -> nsresult
nsIStringBundle createExtensibleBundle (in string aRegistryKey);
pub unsafe fn FormatStatusMessage(
&self,
aStatus: nsresult,
aStatusArg: *const int16_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aStatus: nsresult,
aStatusArg: *const int16_t,
_retval: &mut nsAString
) -> nsresult
/**
* Formats a message string from a status code and status arguments.
* @param aStatus - The status code. This is mapped into a string ID and
* and used in the string lookup process (see nsIErrorService).
* @param aStatusArg - The status message argument(s). Multiple arguments
* can be separated by newline ('\n') characters.
* @return the formatted message
*/
AString formatStatusMessage (in nsresult aStatus, in wstring aStatusArg);
pub unsafe fn FlushBundles(&self) -> nsresult
[src]
/**
* flushes the string bundle cache - useful when the locale changes or
* when we need to get some extra memory back
*
* at some point, we might want to make this flush all the bundles,
* because any bundles that are floating around when the locale changes
* will suddenly contain bad data
*
*/
void flushBundles ();
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 nsIStringBundleService
[src]
const IID: nsIID
IID: nsIID = nsID(3629782976, 43644, 4562, [155, 140, 0, 128, 95, 138, 22, 217])
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 nsIStringBundleService
[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 nsIStringBundleService
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.