Back to index

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

List of all members.

Public Member Functions

 GetSlotMessage (MRJPluginInstance *pluginInstance, jsobject js_obj, jint slot, jobject *member)
virtual void execute (JNIEnv *env)
 GetSlotMessage (MRJPluginInstance *pluginInstance, jsobject js_obj, jint slot, jobject *member)
virtual void execute (JNIEnv *env)
void setNext (JavaMessage *next)
void setNext (JavaMessage *next)
JavaMessagegetNext ()
JavaMessagegetNext ()

Private Attributes

MRJPluginInstancemPluginInstance
jsobject mObject
jint mSlot
jobjectmResultObject

Detailed Description

Definition at line 535 of file LiveConnectNativeMethods.cpp.


Constructor & Destructor Documentation

GetSlotMessage::GetSlotMessage ( MRJPluginInstance pluginInstance,
jsobject  js_obj,
jint  slot,
jobject member 
) [inline]

Definition at line 541 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(js_obj), mSlot(slot), mResultObject(member)
    {
    }
GetSlotMessage::GetSlotMessage ( MRJPluginInstance pluginInstance,
jsobject  js_obj,
jint  slot,
jobject member 
) [inline]

Definition at line 559 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(js_obj), mSlot(slot), mResultObject(member)
    {
    }

Member Function Documentation

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

Implements JavaMessage.

Definition at line 547 of file LiveConnectNativeMethods.cpp.

    {
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        jobject member;
        nsresult result = connection->GetSlot(env, mObject, mSlot, NULL, 0, securityContext, &member);
        if (result == NS_OK) {
            // convert reference to a global reference, in case we're switching threads.
            *mResultObject = ToGlobalRef(env, member);
        }
    }

Here is the call graph for this function:

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

Implements JavaMessage.

Definition at line 565 of file LiveConnectNativeMethods.cpp.

    {
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        jobject member;
        nsresult result = connection->GetSlot(env, mObject, mSlot, NULL, 0, securityContext, &member);
        if (result == NS_OK) {
            // convert reference to a global reference, in case we're switching threads.
            *mResultObject = ToGlobalRef(env, member);
        }
    }

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 537 of file LiveConnectNativeMethods.cpp.

Definition at line 536 of file LiveConnectNativeMethods.cpp.

Definition at line 539 of file LiveConnectNativeMethods.cpp.

Definition at line 538 of file LiveConnectNativeMethods.cpp.


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