Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions
NS_NO_VTABLE Protocol Reference

Private interface implemented by the nsXFormsUtilityService in XForms extension. More...

#include <GeckoContainer.h>

Inheritance diagram for NS_NO_VTABLE:
Inheritance graph
[legend]
Collaboration diagram for NS_NO_VTABLE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_IMETHOD GetRole (nsACString &aRole)=0
NS_IMETHOD GetContainerUI (GeckoContainerUI **pUI)=0
NS_IMETHOD Call (void)=0
NS_IMETHOD Say (const char *sayIt)=0
NS_IMETHOD Shout (const char *shoutIt)=0
NS_IMETHOD Poke (const char *with)=0
NS_IMETHOD Add (PRInt32 a, PRInt32 b, PRInt32 *_retval)=0
NS_IMETHOD Peek (char **_retval)=0
NS_IMETHOD Callback (testCallback *cb)=0
NS_IMETHOD GetIntProp (PRInt32 *aIntProp)=0
NS_IMETHOD SetIntProp (PRInt32 aIntProp)=0
NS_IMETHOD GetRoIntProp (PRInt32 *aRoIntProp)=0
NS_IMETHOD Say (const char *sayIt)=0
NS_IMETHOD Add (PRInt32 a, PRInt32 b)=0
NS_IMETHOD GetModelFromNode (nsIDOMNode *node, nsIDOMNode **_retval)=0
 Function to get the corresponding model element from a xforms node or a xforms instance data node.
NS_IMETHOD IsNodeAssocWithModel (nsIDOMNode *aNode, nsIDOMNode *aModel, PRBool *_retval)=0
 Function to see if the given node is associated with the given model.
NS_IMETHOD GetInstanceDocumentRoot (const nsAString &aID, nsIDOMNode *aModelNode, nsIDOMNode **_retval)=0
 Function to get the instance document root for the instance element with the given id.
NS_IMETHOD ValidateString (const nsAString &aValue, const nsAString &aType, const nsAString &aNamespace, PRBool *_retval)=0
 Function to ensure that aValue is of the schema type aType.
NS_IMETHOD GetRepeatIndexById (nsIDOMNode *aResolverNode, const nsAString &aId, PRInt32 *aIndex)=0
 Function to retrieve the index from the repeat element with the given id.
NS_IMETHOD GetMonths (const nsAString &aValue, PRInt32 *aMonths)=0
 Function to retrieve the number of months represented by the xsd:duration provided in aValue.
NS_IMETHOD GetSeconds (const nsAString &aValue, double *aSeconds)=0
 Function to retrieve the number of seconds represented by the xsd:duration provided in aValue.
NS_IMETHOD GetSecondsFromDateTime (const nsAString &aValue, double *aSeconds)=0
 Function to retrieve the number of seconds represented by the xsd:dateTime provided in aValue.
NS_IMETHOD GetDaysFromDateTime (const nsAString &aValue, PRInt32 *aDays)=0
 Function to retrieve the number of days represented by the xsd:dateTime provided in aValue.
NS_IMETHOD GetEventContextInfo (const nsAString &aContextName, nsIDOMNode *aNode, nsCOMArray< nsIDOMNode > *aResult)=0
 Function to retrieve the context info for the property 'aContextName'.
NS_IMETHOD GetTime (nsAString &aValue, PRBool aUTC)=0
 Function to retrieve the current time as a string.
NS_IMETHOD Context (nsIDOMNode *aResolverNode, nsIDOMNode **aResult)=0
 Function to retrieve the context node of the node that contained the XPath context() function.
NS_IMETHOD IsCardNumber (const nsAString &aNumber, PRBool *aResult)=0
 Function to determine if a number is a valid card number according to the Luhn algorithm.
NS_IMETHOD Digest (const nsAString &aData, const nsAString &aAlgorithm, const nsAString &aEncoding, nsIDOMNode *aResolverNode, nsAString &aResult)=0
 Function that applies the digest algorithm to a string.
NS_IMETHOD AdjustDateTimeToTimezone (const nsAString &aDateTime, nsAString &aResult)=0
 Function that adjusts an xsd:dateTime to the local timezone of the implementation.
NS_IMETHOD CreateExpression (const nsAString &aExpression, nsIDOMNode *aResolverNode, nsIDOMNode *aOrigCtxt, nsIDOMNSXPathExpression **aResult)=0
 Function to create a nsIDOMNSXPathExpression from the provided expression string.
NS_IMETHOD Evaluate (const nsAString &aExpression, nsIDOMNode *aContextNode, PRUint32 aContextPosition, PRUint32 aContextSize, nsIDOMNode *aResolverNode, nsIDOMNode *aOrigCtxt, PRUint16 aType, nsISupports *aInResult, nsISupports **aResult)=0
 Function to evaluate the given expression.
virtual JSObjectGetJSObject (JSContext *cx)=0
virtual nsresult GetFormValue (nsAString &aValue)=0
virtual void PushPopupsEnabledState (PRBool aEnabled)=0
virtual void PopPopupsEnabledState ()=0
virtual PRUint16 GetPluginAPIVersion ()=0
virtual void OnQueryComplete (nsresult status, const nsCString &pacString)=0
 This method is invoked on the same thread that called AsyncGetProxyForURI.
virtual void OnLookupComplete (nsHostResolver *resolver, nsHostRecord *record, nsresult status)=0
 OnLookupComplete.
NS_IMETHOD GetPIPNSSBundleString (const char *name, nsAString &outString)=0
NS_IMETHOD PIPBundleFormatStringFromName (const char *name, const PRUnichar **params, PRUint32 numParams, nsAString &outString)=0
NS_IMETHOD SkipOcsp ()=0
NS_IMETHOD SkipOcspOff ()=0
NS_IMETHOD RememberCert (CERTCertificate *cert)=0
NS_IMETHOD RemoveCrlFromList (nsAutoString)=0
NS_IMETHOD DefineNextTimer ()=0
NS_IMETHOD DownloadCRLDirectly (nsAutoString, nsAutoString)=0
NS_IMETHOD LogoutAuthenticatedPK11 ()=0
NS_IMETHOD LaunchSmartCardThread (SECMODModule *module)=0
NS_IMETHOD ShutdownSmartCardThread (SECMODModule *module)=0
NS_IMETHOD PostEvent (const nsAString &eventType, const nsAString &token)=0
NS_IMETHOD DispatchEvent (const nsAString &eventType, const nsAString &token)=0
NS_IMETHOD GetClientAuthRememberService (nsClientAuthRememberService **cars)=0
NS_IMETHOD GetPluginClipRect (nsRect &outClipRect, nsPoint &outOrigin, PRBool &outWidgetVisible)=0
NS_IMETHOD StartDrawPlugin (void)=0
NS_IMETHOD EndDrawPlugin (void)=0
virtual void EntryAdded (const nsCString &aValue)=0
virtual void EntryRemoved (const nsCString &aValue)=0
virtual void CategoryCleared ()=0
Methods
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0
 A run time mechanism for interface discovery.
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
 Increases the reference count for this interface.
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 Decreases the reference count for this interface.
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0
 A run time mechanism for interface discovery.
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
 Increases the reference count for this interface.
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 Decreases the reference count for this interface.

Protected Member Functions

 ~nsCategoryListener ()

Detailed Description

Private interface implemented by the nsXFormsUtilityService in XForms extension.

Basic component object model interface.

ResolveHost callback object.

This class defines a callback interface used by AsyncGetProxyForURI.

Private interface implemented by the nsXFormsXPathEvaluator in Transformiix and will move to the XForms extension when XPath is made extensible.

Defining it here to prevent XPath requiring XForms extension.

We are using this interface instead of nsIDOMXPathEvaluator since we can don't really need all of that overhead. For example, this interface uses a resolver node from the xforms document rather than forcing XForms to create a namespace resolver node prior to creating the expression or running an evaluation.

It's PRCList members are used by the nsHostResolver and should not be used by anything else.

Objects which implement this interface support runtime interface discovery (QueryInterface) and a reference counted memory model (AddRef/Release). This is modelled after the win32 IUnknown API.

Definition at line 64 of file GeckoContainer.h.


Constructor & Destructor Documentation

NS_NO_VTABLE::~nsCategoryListener ( ) [inline, protected]

Definition at line 57 of file nsCategoryCache.h.

{}

Member Function Documentation

NS_IMETHOD NS_NO_VTABLE::Add ( PRInt32  a,
PRInt32  b,
PRInt32 _retval 
) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Add ( PRInt32  a,
PRInt32  b 
) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::AdjustDateTimeToTimezone ( const nsAString &  aDateTime,
nsAString &  aResult 
) [pure virtual]

Function that adjusts an xsd:dateTime to the local timezone of the implementation.

NS_IMETHOD NS_NO_VTABLE::Call ( void  ) [pure virtual]
virtual void NS_NO_VTABLE::CategoryCleared ( ) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Context ( nsIDOMNode aResolverNode,
nsIDOMNode **  aResult 
) [pure virtual]

Function to retrieve the context node of the node that contained the XPath context() function.

NS_IMETHOD NS_NO_VTABLE::CreateExpression ( const nsAString &  aExpression,
nsIDOMNode aResolverNode,
nsIDOMNode aOrigCtxt,
nsIDOMNSXPathExpression **  aResult 
) [pure virtual]

Function to create a nsIDOMNSXPathExpression from the provided expression string.

aResolverNode is the xforms node that the expression is associated with. aOrigCtxt is the original context node that will be used to evaluate this expression. We need to remember it so that the current() XForms XPath function has access to it. This represents the parse context. The other context that XForms functions have access to is the evaluation context, but that won't help current().

NS_IMETHOD NS_NO_VTABLE::Digest ( const nsAString &  aData,
const nsAString &  aAlgorithm,
const nsAString &  aEncoding,
nsIDOMNode aResolverNode,
nsAString &  aResult 
) [pure virtual]

Function that applies the digest algorithm to a string.

DOMString Digest(in DOMString aData, in DOMString aAlgorithm, in DOMString aEncoding, in nsIDOMNode aResolverNode);

NS_IMETHOD NS_NO_VTABLE::DispatchEvent ( const nsAString &  eventType,
const nsAString &  token 
) [pure virtual]
virtual void NS_NO_VTABLE::EntryAdded ( const nsCString aValue) [pure virtual]
virtual void NS_NO_VTABLE::EntryRemoved ( const nsCString aValue) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Evaluate ( const nsAString &  aExpression,
nsIDOMNode aContextNode,
PRUint32  aContextPosition,
PRUint32  aContextSize,
nsIDOMNode aResolverNode,
nsIDOMNode aOrigCtxt,
PRUint16  aType,
nsISupports *  aInResult,
nsISupports **  aResult 
) [pure virtual]

Function to evaluate the given expression.

aResolverNode is the xforms node that the expression is associated with. The other parameters are as required by DOM's XPathEvaluator.

NS_IMETHOD NS_NO_VTABLE::GetDaysFromDateTime ( const nsAString &  aValue,
PRInt32 aDays 
) [pure virtual]

Function to retrieve the number of days represented by the xsd:dateTime provided in aValue.

NS_IMETHOD NS_NO_VTABLE::GetEventContextInfo ( const nsAString &  aContextName,
nsIDOMNode aNode,
nsCOMArray< nsIDOMNode > *  aResult 
) [pure virtual]

Function to retrieve the context info for the property 'aContextName'.

virtual nsresult NS_NO_VTABLE::GetFormValue ( nsAString &  aValue) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::GetInstanceDocumentRoot ( const nsAString &  aID,
nsIDOMNode aModelNode,
nsIDOMNode **  _retval 
) [pure virtual]

Function to get the instance document root for the instance element with the given id.

The instance element must be associated with the given model.

NS_IMETHOD NS_NO_VTABLE::GetIntProp ( PRInt32 aIntProp) [pure virtual]
virtual JSObject* NS_NO_VTABLE::GetJSObject ( JSContext cx) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::GetModelFromNode ( nsIDOMNode node,
nsIDOMNode **  _retval 
) [pure virtual]

Function to get the corresponding model element from a xforms node or a xforms instance data node.

NS_IMETHOD NS_NO_VTABLE::GetMonths ( const nsAString &  aValue,
PRInt32 aMonths 
) [pure virtual]

Function to retrieve the number of months represented by the xsd:duration provided in aValue.

NS_IMETHOD NS_NO_VTABLE::GetPIPNSSBundleString ( const char *  name,
nsAString &  outString 
) [pure virtual]
virtual PRUint16 NS_NO_VTABLE::GetPluginAPIVersion ( ) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::GetPluginClipRect ( nsRect outClipRect,
nsPoint outOrigin,
PRBool outWidgetVisible 
) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::GetRepeatIndexById ( nsIDOMNode aResolverNode,
const nsAString &  aId,
PRInt32 aIndex 
) [pure virtual]

Function to retrieve the index from the repeat element with the given id.

NS_IMETHOD NS_NO_VTABLE::GetRoIntProp ( PRInt32 aRoIntProp) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::GetRole ( nsACString &  aRole) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::GetSeconds ( const nsAString &  aValue,
double *  aSeconds 
) [pure virtual]

Function to retrieve the number of seconds represented by the xsd:duration provided in aValue.

NS_IMETHOD NS_NO_VTABLE::GetSecondsFromDateTime ( const nsAString &  aValue,
double *  aSeconds 
) [pure virtual]

Function to retrieve the number of seconds represented by the xsd:dateTime provided in aValue.

NS_IMETHOD NS_NO_VTABLE::GetTime ( nsAString &  aValue,
PRBool  aUTC 
) [pure virtual]

Function to retrieve the current time as a string.

For example, 2007-01-11T17:57:30-6:00 if UTC is not set and 2007-01-11T23:57:30Z if it is.

NS_IMETHOD NS_NO_VTABLE::IsCardNumber ( const nsAString &  aNumber,
PRBool aResult 
) [pure virtual]

Function to determine if a number is a valid card number according to the Luhn algorithm.

NS_IMETHOD NS_NO_VTABLE::IsNodeAssocWithModel ( nsIDOMNode aNode,
nsIDOMNode aModel,
PRBool _retval 
) [pure virtual]

Function to see if the given node is associated with the given model.

Right now this function is only called by XPath in the case of the instance() function. The provided node can be an instance node from an instance document and thus be associated to the model in that way (model elements contain instance elements). Otherwise the node will be an XForms element that was used as the context node of the XPath expression (i.e the XForms control has an attribute that contains an XPath expression). Form controls are associated with model elements either explicitly through single-node binding or implicitly (if model cannot by calculated, it will use the first model element encountered in the document). The model can also be inherited from a containing element like xforms:group or xforms:repeat.

NS_IMETHOD NS_NO_VTABLE::LaunchSmartCardThread ( SECMODModule *  module) [pure virtual]
NS_NO_VTABLE::NS_IMETHOD_ ( nsrefcnt  ) [pure virtual]

Increases the reference count for this interface.

The associated instance will not be deleted unless the reference count is returned to zero.

Returns:
The resulting reference count.
NS_NO_VTABLE::NS_IMETHOD_ ( nsrefcnt  ) [pure virtual]

Increases the reference count for this interface.

The associated instance will not be deleted unless the reference count is returned to zero.

Returns:
The resulting reference count.
NS_NO_VTABLE::NS_IMETHOD_ ( nsrefcnt  ) [pure virtual]

Decreases the reference count for this interface.

Generally, if the reference count returns to zero, the associated instance is deleted.

Returns:
The resulting reference count.
NS_NO_VTABLE::NS_IMETHOD_ ( nsrefcnt  ) [pure virtual]

Decreases the reference count for this interface.

Generally, if the reference count returns to zero, the associated instance is deleted.

Returns:
The resulting reference count.
virtual void NS_NO_VTABLE::OnLookupComplete ( nsHostResolver resolver,
nsHostRecord record,
nsresult  status 
) [pure virtual]

OnLookupComplete.

this function is called to complete a host lookup initiated by nsHostResolver::ResolveHost. it may be invoked recursively from ResolveHost or on an unspecified background thread.

NOTE: it is the responsibility of the implementor of this method to handle the callback in a thread safe manner.

Parameters:
resolvernsHostResolver object associated with this result
recordthe host record containing the results of the lookup
statusif successful, |record| contains non-null results
virtual void NS_NO_VTABLE::OnQueryComplete ( nsresult  status,
const nsCString pacString 
) [pure virtual]

This method is invoked on the same thread that called AsyncGetProxyForURI.

Parameters:
statusThis parameter indicates whether or not the PAC query succeeded.
pacStringThis parameter holds the value of the PAC string. It is empty when status is a failure code.
NS_IMETHOD NS_NO_VTABLE::Peek ( char **  _retval) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::PIPBundleFormatStringFromName ( const char *  name,
const PRUnichar **  params,
PRUint32  numParams,
nsAString &  outString 
) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Poke ( const char *  with) [pure virtual]
virtual void NS_NO_VTABLE::PopPopupsEnabledState ( ) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::PostEvent ( const nsAString &  eventType,
const nsAString &  token 
) [pure virtual]
virtual void NS_NO_VTABLE::PushPopupsEnabledState ( PRBool  aEnabled) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::QueryInterface ( REFNSIID  aIID,
void **  aInstancePtr 
) [pure virtual]

A run time mechanism for interface discovery.

Parameters:
aIID[in] A requested interface IID
aInstancePtr[out] A pointer to an interface pointer to receive the result.
Returns:
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not. NS_ERROR_INVALID_POINTER if aInstancePtr is NULL.
NS_IMETHOD NS_NO_VTABLE::QueryInterface ( REFNSIID  aIID,
void **  aInstancePtr 
) [pure virtual]

A run time mechanism for interface discovery.

Parameters:
aIID[in] A requested interface IID
aInstancePtr[out] A pointer to an interface pointer to receive the result.
Returns:
NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not. NS_ERROR_INVALID_POINTER if aInstancePtr is NULL.
NS_IMETHOD NS_NO_VTABLE::RememberCert ( CERTCertificate *  cert) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Say ( const char *  sayIt) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Say ( const char *  sayIt) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::SetIntProp ( PRInt32  aIntProp) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::Shout ( const char *  shoutIt) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::ShutdownSmartCardThread ( SECMODModule *  module) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::SkipOcsp ( ) [pure virtual]
NS_IMETHOD NS_NO_VTABLE::ValidateString ( const nsAString &  aValue,
const nsAString &  aType,
const nsAString &  aNamespace,
PRBool _retval 
) [pure virtual]

Function to ensure that aValue is of the schema type aType.

Will basically be a forwarder to the nsISchemaValidator function of the same name.


The documentation for this protocol was generated from the following files: