Struct xpcom::interfaces::nsPIPlacesDatabase
[−]
[src]
#[repr(C)]pub struct nsPIPlacesDatabase { /* fields omitted */ }
interface nsPIPlacesDatabase : nsISupports
/**
* This is a private interface used by Places components to get access to the
* database. If outside consumers wish to use this, they should only read from
* the database so they do not break any internal invariants.
*/
Methods
impl nsPIPlacesDatabase
[src]
pub fn coerce<T: nsPIPlacesDatabaseCoerce>(&self) -> &T
[src]
Cast this nsPIPlacesDatabase
to one of its base interfaces.
impl nsPIPlacesDatabase
[src]
pub unsafe fn GetDBConnection(
&self,
aDBConnection: *mut *const mozIStorageConnection
) -> nsresult
[src]
&self,
aDBConnection: *mut *const mozIStorageConnection
) -> nsresult
/**
* The database connection used by Places.
*/
readonly attribute mozIStorageConnection DBConnection;
pub unsafe fn AsyncExecuteLegacyQueries(
&self,
aQueries: *mut *const nsINavHistoryQuery,
aQueryCount: uint32_t,
aOptions: *const nsINavHistoryQueryOptions,
aCallback: *const mozIStorageStatementCallback,
_retval: *mut *const mozIStoragePendingStatement
) -> nsresult
[src]
&self,
aQueries: *mut *const nsINavHistoryQuery,
aQueryCount: uint32_t,
aOptions: *const nsINavHistoryQueryOptions,
aCallback: *const mozIStorageStatementCallback,
_retval: *mut *const mozIStoragePendingStatement
) -> nsresult
/**
* Asynchronously executes the statement created from queries.
*
* @see nsINavHistoryService::executeQueries
* @note THIS IS A TEMPORARY API. Don't rely on it, since it will be replaced
* in future versions by a real async querying API.
* @note Results obtained from this method differ from results obtained from
* executeQueries, because there is additional filtering and sorting
* done by the latter. Thus you should use executeQueries, unless you
* are absolutely sure that the returned results are fine for
* your use-case.
*/
mozIStoragePendingStatement asyncExecuteLegacyQueries ([array, size_is (aQueryCount)] in nsINavHistoryQuery aQueries, in unsigned long aQueryCount, in nsINavHistoryQueryOptions aOptions, in mozIStorageStatementCallback aCallback);
pub unsafe fn GetShutdownClient(
&self,
aShutdownClient: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aShutdownClient: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Hook for clients who need to perform actions during/by the end of
* the shutdown of the database.
* May be null if it's too late to get one.
*/
readonly attribute nsIAsyncShutdownClient shutdownClient;
pub unsafe fn GetConnectionShutdownClient(
&self,
aConnectionShutdownClient: *mut *const nsIAsyncShutdownClient
) -> nsresult
[src]
&self,
aConnectionShutdownClient: *mut *const nsIAsyncShutdownClient
) -> nsresult
/**
* Hook for internal clients who need to perform actions just before the
* connection gets closed.
* May be null if it's too late to get one.
*/
readonly attribute nsIAsyncShutdownClient connectionShutdownClient;
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 nsPIPlacesDatabase
[src]
const IID: nsIID
IID: nsIID = nsID(913237566, 42003, 18301, [154, 214, 141, 104, 99, 232, 148, 1])
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 nsPIPlacesDatabase
[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 nsPIPlacesDatabase
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.