Struct xpcom::interfaces::nsIRDFObserver
[−]
[src]
#[repr(C)]pub struct nsIRDFObserver { /* fields omitted */ }
interface nsIRDFObserver : nsISupports
Methods
impl nsIRDFObserver
[src]
pub fn coerce<T: nsIRDFObserverCoerce>(&self) -> &T
[src]
Cast this nsIRDFObserver
to one of its base interfaces.
impl nsIRDFObserver
[src]
pub unsafe fn OnAssert(
&self,
aDataSource: *const nsIRDFDataSource,
aSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aTarget: *const nsIRDFNode
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource,
aSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aTarget: *const nsIRDFNode
) -> nsresult
/**
* This method is called whenever a new assertion is made
* in the data source
* @param aDataSource the datasource that is issuing
* the notification.
* @param aSource the subject of the assertion
* @param aProperty the predicate of the assertion
* @param aTarget the object of the assertion
*/
void onAssert (in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget);
pub unsafe fn OnUnassert(
&self,
aDataSource: *const nsIRDFDataSource,
aSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aTarget: *const nsIRDFNode
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource,
aSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aTarget: *const nsIRDFNode
) -> nsresult
/**
* This method is called whenever an assertion is removed
* from the data source
* @param aDataSource the datasource that is issuing
* the notification.
* @param aSource the subject of the assertion
* @param aProperty the predicate of the assertion
* @param aTarget the object of the assertion
*/
void onUnassert (in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget);
pub unsafe fn OnChange(
&self,
aDataSource: *const nsIRDFDataSource,
aSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aOldTarget: *const nsIRDFNode,
aNewTarget: *const nsIRDFNode
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource,
aSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aOldTarget: *const nsIRDFNode,
aNewTarget: *const nsIRDFNode
) -> nsresult
/**
* This method is called when the object of an assertion
* changes from one value to another.
* @param aDataSource the datasource that is issuing
* the notification.
* @param aSource the subject of the assertion
* @param aProperty the predicate of the assertion
* @param aOldTarget the old object of the assertion
* @param aNewTarget the new object of the assertion
*/
void onChange (in nsIRDFDataSource aDataSource, in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aOldTarget, in nsIRDFNode aNewTarget);
pub unsafe fn OnMove(
&self,
aDataSource: *const nsIRDFDataSource,
aOldSource: *const nsIRDFResource,
aNewSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aTarget: *const nsIRDFNode
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource,
aOldSource: *const nsIRDFResource,
aNewSource: *const nsIRDFResource,
aProperty: *const nsIRDFResource,
aTarget: *const nsIRDFNode
) -> nsresult
/**
* This method is called when the subject of an assertion
* changes from one value to another.
* @param aDataSource the datasource that is issuing
* the notification.
* @param aOldSource the old subject of the assertion
* @param aNewSource the new subject of the assertion
* @param aProperty the predicate of the assertion
* @param aTarget the object of the assertion
*/
void onMove (in nsIRDFDataSource aDataSource, in nsIRDFResource aOldSource, in nsIRDFResource aNewSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget);
pub unsafe fn OnBeginUpdateBatch(
&self,
aDataSource: *const nsIRDFDataSource
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource
) -> nsresult
/**
* This method is called when a datasource is about to
* send several notifications at once. The observer can
* use this as a cue to optimize its behavior. The observer
* can expect the datasource to call endUpdateBatch() when
* the group of notifications has completed.
* @param aDataSource the datasource that is going to
* be issuing the notifications.
*/
void onBeginUpdateBatch (in nsIRDFDataSource aDataSource);
pub unsafe fn OnEndUpdateBatch(
&self,
aDataSource: *const nsIRDFDataSource
) -> nsresult
[src]
&self,
aDataSource: *const nsIRDFDataSource
) -> nsresult
/**
* This method is called when a datasource has completed
* issuing a notification group.
* @param aDataSource the datasource that has finished
* issuing a group of notifications
*/
void onEndUpdateBatch (in nsIRDFDataSource aDataSource);
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 nsIRDFObserver
[src]
const IID: nsIID
IID: nsIID = nsID(1019695968, 18506, 4562, [188, 22, 0, 128, 95, 145, 47, 231])
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 nsIRDFObserver
[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 nsIRDFObserver
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.