Struct xpcom::interfaces::nsICategoryManager
[−]
[src]
#[repr(C)]pub struct nsICategoryManager { /* fields omitted */ }
interface nsICategoryManager : nsISupports
Methods
impl nsICategoryManager
[src]
pub fn coerce<T: nsICategoryManagerCoerce>(&self) -> &T
[src]
Cast this nsICategoryManager
to one of its base interfaces.
impl nsICategoryManager
[src]
pub unsafe fn GetCategoryEntry(
&self,
aCategory: *const c_char,
aEntry: *const c_char,
_retval: *mut *const c_char
) -> nsresult
[src]
&self,
aCategory: *const c_char,
aEntry: *const c_char,
_retval: *mut *const c_char
) -> nsresult
/**
* Get the value for the given category's entry.
* @param aCategory The name of the category ("protocol")
* @param aEntry The entry you're looking for ("http")
* @return The value.
*/
string getCategoryEntry (in string aCategory, in string aEntry);
pub unsafe fn AddCategoryEntry(
&self,
aCategory: *const c_char,
aEntry: *const c_char,
aValue: *const c_char,
aPersist: bool,
aReplace: bool,
_retval: *mut *const c_char
) -> nsresult
[src]
&self,
aCategory: *const c_char,
aEntry: *const c_char,
aValue: *const c_char,
aPersist: bool,
aReplace: bool,
_retval: *mut *const c_char
) -> nsresult
/**
* Add an entry to a category.
* @param aCategory The name of the category ("protocol")
* @param aEntry The entry to be added ("http")
* @param aValue The value for the entry ("moz.httprulez.1")
* @param aPersist Should this data persist between invocations?
* @param aReplace Should we replace an existing entry?
* @return Previous entry, if any
*/
string addCategoryEntry (in string aCategory, in string aEntry, in string aValue, in boolean aPersist, in boolean aReplace);
pub unsafe fn DeleteCategoryEntry(
&self,
aCategory: *const c_char,
aEntry: *const c_char,
aPersist: bool
) -> nsresult
[src]
&self,
aCategory: *const c_char,
aEntry: *const c_char,
aPersist: bool
) -> nsresult
/**
* Delete an entry from the category.
* @param aCategory The name of the category ("protocol")
* @param aEntry The entry to be added ("http")
* @param aPersist Delete persistent data from registry, if present?
*/
void deleteCategoryEntry (in string aCategory, in string aEntry, in boolean aPersist);
pub unsafe fn DeleteCategory(&self, aCategory: *const c_char) -> nsresult
[src]
/**
* Delete a category and all entries.
* @param aCategory The category to be deleted.
*/
void deleteCategory (in string aCategory);
pub unsafe fn EnumerateCategory(
&self,
aCategory: *const c_char,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
[src]
&self,
aCategory: *const c_char,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
/**
* Enumerate the entries in a category.
* @param aCategory The category to be enumerated.
* @return a simple enumerator, each result QIs to
* nsISupportsCString.
*/
nsISimpleEnumerator enumerateCategory (in string aCategory);
pub unsafe fn EnumerateCategories(
&self,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
[src]
&self,
_retval: *mut *const nsISimpleEnumerator
) -> nsresult
/**
* Enumerate all existing categories
* @param aCategory The category to be enumerated.
* @return a simple enumerator, each result QIs to
* nsISupportsCString.
*/
nsISimpleEnumerator enumerateCategories ();
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 nsICategoryManager
[src]
const IID: nsIID
IID: nsIID = nsID(846574285, 44909, 17050, [128, 215, 240, 197, 18, 3, 66, 172])
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 nsICategoryManager
[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 nsICategoryManager
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.