Struct xpcom::interfaces::nsIINIParserWriter
[−]
[src]
#[repr(C)]pub struct nsIINIParserWriter { /* fields omitted */ }
interface nsIINIParserWriter : nsISupports
Methods
impl nsIINIParserWriter
[src]
pub fn coerce<T: nsIINIParserWriterCoerce>(&self) -> &T
[src]
Cast this nsIINIParserWriter
to one of its base interfaces.
impl nsIINIParserWriter
[src]
pub const WRITE_UTF16: i64
WRITE_UTF16: i64 = 1
/**
* Windows and the NSIS installer code sometimes expect INI files to be in
* UTF-16 encoding. On Windows only, this flag to writeFile can be used to
* change the encoding from its default UTF-8.
*/
pub unsafe fn SetString(
&self,
aSection: &nsACString,
aKey: &nsACString,
aValue: &nsACString
) -> nsresult
[src]
&self,
aSection: &nsACString,
aKey: &nsACString,
aValue: &nsACString
) -> nsresult
/**
* Set the value of a string for a particular section and key.
*/
void setString (in AUTF8String aSection, in AUTF8String aKey, in AUTF8String aValue);
pub unsafe fn WriteFile(
&self,
aINIFile: *const nsIFile,
aFlags: uint32_t
) -> nsresult
[src]
&self,
aINIFile: *const nsIFile,
aFlags: uint32_t
) -> nsresult
/**
* Write to the INI file.
*/
void writeFile ([optional] in nsIFile aINIFile, [optional] in unsigned long aFlags);
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 nsIINIParserWriter
[src]
const IID: nsIID
IID: nsIID = nsID(3061559883, 12707, 19050, [165, 217, 4, 133, 201, 175, 90, 4])
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 nsIINIParserWriter
[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 nsIINIParserWriter
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.