Back to index

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

List of all members.

Public Member Functions

 GetMemberMessage (MRJPluginInstance *pluginInstance, jsobject js_obj, const jchar *propertyName, jsize nameLength, jobject *member)
virtual void execute (JNIEnv *env)
 GetMemberMessage (MRJPluginInstance *pluginInstance, jsobject js_obj, const jchar *propertyName, jsize nameLength, jobject *member)
virtual void execute (JNIEnv *env)
void setNext (JavaMessage *next)
void setNext (JavaMessage *next)
JavaMessagegetNext ()
JavaMessagegetNext ()

Private Attributes

MRJPluginInstancemPluginInstance
jsobject mObject
const jcharmPropertyName
jsize mLength
jobjectmResultObject

Detailed Description

Definition at line 464 of file LiveConnectNativeMethods.cpp.


Constructor & Destructor Documentation

GetMemberMessage::GetMemberMessage ( MRJPluginInstance pluginInstance,
jsobject  js_obj,
const jchar propertyName,
jsize  nameLength,
jobject member 
) [inline]

Definition at line 471 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(js_obj), mPropertyName(propertyName),
            mLength(nameLength), mResultObject(member)
    {
    }
GetMemberMessage::GetMemberMessage ( MRJPluginInstance pluginInstance,
jsobject  js_obj,
const jchar propertyName,
jsize  nameLength,
jobject member 
) [inline]

Definition at line 491 of file LiveConnectNativeMethods.cpp.

        :   mPluginInstance(pluginInstance), mObject(js_obj), mPropertyName(propertyName),
            mLength(nameLength), mResultObject(member)
    {
    }

Member Function Documentation

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

Implements JavaMessage.

Definition at line 478 of file LiveConnectNativeMethods.cpp.

    {
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        jobject member;
        nsresult result = connection->GetMember(env, mObject, mPropertyName, mLength, 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 GetMemberMessage::execute ( JNIEnv env) [inline, virtual]

Implements JavaMessage.

Definition at line 498 of file LiveConnectNativeMethods.cpp.

    {
        MRJSecurityContext* securityContext = getSecurityContext(mPluginInstance);
        nsILiveconnect* connection = getLiveconnectInstance(securityContext);
        jobject member;
        nsresult result = connection->GetMember(env, mObject, mPropertyName, mLength, 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 468 of file LiveConnectNativeMethods.cpp.

Definition at line 466 of file LiveConnectNativeMethods.cpp.

Definition at line 465 of file LiveConnectNativeMethods.cpp.

Definition at line 467 of file LiveConnectNativeMethods.cpp.

Definition at line 469 of file LiveConnectNativeMethods.cpp.


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