Back to index

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

List of all members.

Public Member Functions

 CallMessage (MRJPluginInstance *pluginInstance, jsobject obj, const jchar *functionName, jsize length, jobjectArray javaArgs, jobject *javaResult)
virtual void execute (JNIEnv *env)
 CallMessage (MRJPluginInstance *pluginInstance, jsobject obj, const jchar *functionName, jsize length, jobjectArray javaArgs, jobject *javaResult)
virtual void execute (JNIEnv *env)
void setNext (JavaMessage *next)
void setNext (JavaMessage *next)
JavaMessagegetNext ()
JavaMessagegetNext ()

Private Attributes

MRJPluginInstancemPluginInstance
jsobject mObject
const jcharmFunctionName
jsize mLength
jobjectArray mJavaArgs
jobjectmJavaResult

Detailed Description

Definition at line 756 of file LiveConnectNativeMethods.cpp.


Constructor & Destructor Documentation

CallMessage::CallMessage ( MRJPluginInstance pluginInstance,
jsobject  obj,
const jchar functionName,
jsize  length,
jobjectArray  javaArgs,
jobject javaResult 
) [inline]

Definition at line 764 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(obj), mFunctionName(functionName),
            mLength(length), mJavaArgs(javaArgs), mJavaResult(javaResult)
    {
    }
CallMessage::CallMessage ( MRJPluginInstance pluginInstance,
jsobject  obj,
const jchar functionName,
jsize  length,
jobjectArray  javaArgs,
jobject javaResult 
) [inline]

Definition at line 776 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(obj), mFunctionName(functionName),
            mLength(length), mJavaArgs(javaArgs), mJavaResult(javaResult)
    {
    }

Member Function Documentation

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

Implements JavaMessage.

Definition at line 771 of file LiveConnectNativeMethods.cpp.

    {
        /* If we have an applet, try to create a codebase principle. */
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        jobject jresult = NULL;
        nsresult result = connection->Call(env, mObject, mFunctionName, mLength, mJavaArgs, NULL, 0, securityContext, &jresult);
        if (result == NS_OK)
            *mJavaResult = ToGlobalRef(env, jresult);
    }

Here is the call graph for this function:

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

Implements JavaMessage.

Definition at line 783 of file LiveConnectNativeMethods.cpp.

    {
        /* If we have an applet, try to create a codebase principle. */
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        jobject jresult = NULL;
        nsresult result = connection->Call(env, mObject, mFunctionName, mLength, mJavaArgs, NULL, 0, securityContext, &jresult);
        if (result == NS_OK)
            *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 759 of file LiveConnectNativeMethods.cpp.

Definition at line 761 of file LiveConnectNativeMethods.cpp.

Definition at line 762 of file LiveConnectNativeMethods.cpp.

Definition at line 760 of file LiveConnectNativeMethods.cpp.

Definition at line 758 of file LiveConnectNativeMethods.cpp.

Definition at line 757 of file LiveConnectNativeMethods.cpp.


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