Back to index

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

List of all members.

Public Member Functions

long Test (in long p1, in long p2)
void Test3 (in nsISupports p1, out nsISupports p2)
long Test (in long p1, in long p2)

Public Attributes

attribute string Foo
const short one = 1
const short five = 5
const short six = 6

Private Member Functions

nsTestXPCFoo ()
virtual ~nsTestXPCFoo ()
NS_DECL_ISUPPORTS NS_IMETHOD Test (PRInt32 p1, PRInt32 p2, PRInt32 *retval)
NS_IMETHOD Test3 (nsISupports *p1, nsISupports **p2)
 nsTestXPCFoo ()

Private Attributes

char * mFoo

Detailed Description

Definition at line 136 of file TestXPC.cpp.

Constructor & Destructor Documentation

Definition at line 185 of file TestXPC.cpp.

Here is the caller graph for this function:

nsTestXPCFoo::~nsTestXPCFoo ( ) [private, virtual]

Definition at line 191 of file TestXPC.cpp.


Member Function Documentation

long nsITestProxy::Test ( in long  p1,
in long  p2 
) [inherited]
long nsITestXPCFoo::Test ( in long  p1,
in long  p2 
) [inherited]
NS_IMETHODIMP nsTestXPCFoo::Test ( PRInt32  p1,
PRInt32  p2,
PRInt32 retval 
) [private]

Definition at line 146 of file TestXPC.cpp.

//    printf("nsTestXPCFoo::Test called with p1 = %d and p2 = %d\n", p1, p2);
    *retval = p1+p2;
    return NS_OK;

Implements nsITestProxy.

Definition at line 152 of file TestXPC.cpp.

//    printf("nsTestXPCFoo::Test2 called ");
    return NS_OK;
void nsITestProxy::Test3 ( in nsISupports  p1,
out nsISupports  p2 
) [inherited]
NS_IMETHODIMP nsTestXPCFoo::Test3 ( nsISupports *  p1,
nsISupports **  p2 
) [private]

Definition at line 93 of file proxytests.cpp.

    if (p1 != nsnull)
        nsITestProxy *test;

        p1->QueryInterface(NS_GET_IID(nsITestProxy), (void**)&test);
        PRInt32 a;
        test->Test( 1, 2, &a);

    *p2 = new nsTestXPCFoo();
    return NS_OK;

Here is the call graph for this function:

Member Data Documentation

const short nsITestXPCFoo::five = 5 [inherited]

Definition at line 64 of file xpctest.idl.

Definition at line 61 of file xpctest.idl.

char* nsTestXPCFoo::mFoo [private]

Definition at line 143 of file TestXPC.cpp.

const short nsITestXPCFoo::one = 1 [inherited]

Definition at line 63 of file xpctest.idl.

const short nsITestXPCFoo::six = 6 [inherited]

Definition at line 65 of file xpctest.idl.

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