Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
MethodInfo Struct Reference

#include <nsSwitchToUIThread.h>

Collaboration diagram for MethodInfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 MethodInfo (nsISupports *ref, nsSwitchToUIThread *obj, uint32 id, int numArgs=0, uint32 *arguments=0)
 ~MethodInfo ()
bool Invoke ()
 MethodInfo (nsSwitchToUIThread *obj, UINT id, int numArgs=0, ULONG *arguments=0)
BOOL Invoke ()
 MethodInfo (nsSwitchToUIThread *obj, UINT id, int numArgs=0, DWORD *arguments=0)
BOOL Invoke ()

Public Attributes

nsISupports * widget
nsSwitchToUIThreadtarget
uint32 methodId
int nArgs
uint32args
UINT methodId
ULONGargs
DWORDargs

Detailed Description

Definition at line 92 of file nsSwitchToUIThread.h.


Constructor & Destructor Documentation

MethodInfo::MethodInfo ( nsISupports *  ref,
nsSwitchToUIThread obj,
uint32  id,
int  numArgs = 0,
uint32 arguments = 0 
) [inline]

Definition at line 99 of file nsSwitchToUIThread.h.

    {
              widget = ref;
              NS_ADDREF(ref);
              target   = obj;
              methodId = id;
              nArgs    = numArgs;
              args = new uint32 [numArgs];
              memcpy(args, arguments, sizeof(uint32) * numArgs);
    }

Here is the call graph for this function:

Definition at line 110 of file nsSwitchToUIThread.h.

       {
              delete [] args;
              NS_RELEASE(widget);
       }
MethodInfo::MethodInfo ( nsSwitchToUIThread obj,
UINT  id,
int  numArgs = 0,
ULONG arguments = 0 
) [inline]

Definition at line 66 of file nsSwitchToUIThread.h.

                                                                                      {
        target   = obj;
        methodId = id;
        nArgs    = numArgs;
        args     = arguments;
    }
MethodInfo::MethodInfo ( nsSwitchToUIThread obj,
UINT  id,
int  numArgs = 0,
DWORD arguments = 0 
) [inline]

Definition at line 66 of file nsSwitchToUIThread.h.

                                                                                      {
        target   = obj;
        methodId = id;
        nArgs    = numArgs;
        args     = arguments;
    }

Member Function Documentation

BOOL MethodInfo::Invoke ( ) [inline]

Definition at line 73 of file nsSwitchToUIThread.h.

{ return target->CallMethod(this); }
BOOL MethodInfo::Invoke ( ) [inline]

Definition at line 73 of file nsSwitchToUIThread.h.

{ return target->CallMethod(this); }
bool MethodInfo::Invoke ( ) [inline]

Definition at line 116 of file nsSwitchToUIThread.h.

{ return target->CallMethod(this); }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 64 of file nsSwitchToUIThread.h.

Definition at line 64 of file nsSwitchToUIThread.h.

Definition at line 97 of file nsSwitchToUIThread.h.

Definition at line 62 of file nsSwitchToUIThread.h.

Definition at line 95 of file nsSwitchToUIThread.h.

Definition at line 96 of file nsSwitchToUIThread.h.

Definition at line 94 of file nsSwitchToUIThread.h.

nsISupports* MethodInfo::widget

Definition at line 93 of file nsSwitchToUIThread.h.


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