Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
EvalMessage Class Reference
Inheritance diagram for EvalMessage:
Inheritance graph
[legend]
Collaboration diagram for EvalMessage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 EvalMessage (MRJPluginInstance *pluginInstance, jsobject obj, const jchar *script, jsize length, jobject *javaResult)
virtual void execute (JNIEnv *env)
 EvalMessage (MRJPluginInstance *pluginInstance, jsobject obj, const jchar *script, jsize length, jobject *javaResult)
virtual void execute (JNIEnv *env)
void setNext (JavaMessage *next)
void setNext (JavaMessage *next)
JavaMessagegetNext ()
JavaMessagegetNext ()

Private Attributes

MRJPluginInstancemPluginInstance
jsobject mObject
const jcharmScript
jsize mLength
jobjectmJavaResult

Detailed Description

Definition at line 825 of file LiveConnectNativeMethods.cpp.


Constructor & Destructor Documentation

EvalMessage::EvalMessage ( MRJPluginInstance pluginInstance,
jsobject  obj,
const jchar script,
jsize  length,
jobject javaResult 
) [inline]

Definition at line 832 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(obj), mScript(script), mLength(length), mJavaResult(javaResult)
    {
    }
EvalMessage::EvalMessage ( MRJPluginInstance pluginInstance,
jsobject  obj,
const jchar script,
jsize  length,
jobject javaResult 
) [inline]

Definition at line 842 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(obj), mScript(script), mLength(length), mJavaResult(javaResult)
    {
    }

Member Function Documentation

virtual void EvalMessage::execute ( JNIEnv env) [inline, virtual]

Implements JavaMessage.

Definition at line 837 of file LiveConnectNativeMethods.cpp.

    {
        jobject jresult = NULL;
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        nsresult result = connection->Eval(env, mObject, mScript, mLength, NULL, 0, securityContext, &jresult);
        if (result == NS_OK && jresult != NULL)
            *mJavaResult = ToGlobalRef(env, jresult);
    }

Here is the call graph for this function:

virtual void EvalMessage::execute ( JNIEnv env) [inline, virtual]

Implements JavaMessage.

Definition at line 847 of file LiveConnectNativeMethods.cpp.

    {
        jobject jresult = NULL;
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        nsresult result = connection->Eval(env, mObject, mScript, mLength, NULL, 0, securityContext, &jresult);
        if (result == NS_OK && jresult != NULL)
            *mJavaResult = ToGlobalRef(env, jresult);
    }

Here is the call graph for this function:

JavaMessage* JavaMessage::getNext ( ) [inline, inherited]

Definition at line 55 of file JavaMessageQueue.h.

{ return mNext; }

Here is the caller graph for this function:

JavaMessage* JavaMessage::getNext ( ) [inline, inherited]

Definition at line 56 of file JavaMessageQueue.h.

{ return mNext; }
void JavaMessage::setNext ( JavaMessage next) [inline, inherited]

Definition at line 54 of file JavaMessageQueue.h.

{ mNext = next; }

Here is the caller graph for this function:

void JavaMessage::setNext ( JavaMessage next) [inline, inherited]

Definition at line 55 of file JavaMessageQueue.h.

{ mNext = next; }

Member Data Documentation

Definition at line 830 of file LiveConnectNativeMethods.cpp.

Definition at line 829 of file LiveConnectNativeMethods.cpp.

Definition at line 827 of file LiveConnectNativeMethods.cpp.

Definition at line 826 of file LiveConnectNativeMethods.cpp.

Definition at line 828 of file LiveConnectNativeMethods.cpp.


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