Struct xpcom::interfaces::nsICategoryManager [] [src]

#[repr(C)]
pub struct nsICategoryManager { /* fields omitted */ }

interface nsICategoryManager : nsISupports

Methods

impl nsICategoryManager
[src]

[src]

Cast this nsICategoryManager to one of its base interfaces.

impl nsICategoryManager
[src]

[src]

/**
     * 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);

[src]

/**
     * 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);

[src]

/**
     * 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);

[src]

/**
     * Delete a category and all entries.
     * @param aCategory The category to be deleted.
     */

void deleteCategory (in string aCategory);

[src]

/**
     * 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);

[src]

/**
     * 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>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsICategoryManager
[src]

IID: nsIID = nsID(846574285, 44909, 17050, [128, 215, 240, 197, 18, 3, 66, 172])

[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]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsICategoryManager
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.