Back to index

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

List of all members.

Public Member Functions

 IBar ()
virtual ~IBar ()
NS_IMETHOD QueryInterface (const nsIID &, void **)
 NS_IMETHOD_ (nsrefcnt) RefCnt()=0
 NS_IMETHOD_ (PRInt32) ID()=0
 NS_IMETHOD_ (nsrefcnt) AddRef()
 NS_IMETHOD_ (nsrefcnt) Release()
 NS_IMETHOD_ (nsrefcnt) AddRef()
 NS_IMETHOD_ (nsrefcnt) Release()
NS_IMETHOD SetString (const nsACString &aString)
NS_IMETHOD GetString (nsACString &aString)

Static Public Member Functions

static void print_totals ()
static void print_totals ()

Public Attributes

readonly attribute long id

Detailed Description

Definition at line 242 of file TestCOMPtr.cpp.


Constructor & Destructor Documentation

Definition at line 254 of file TestCOMPtr.cpp.

  {
    printf("  new IBar@%p\n", STATIC_CAST(void*, this));
  }
IBar::~IBar ( ) [virtual]

Definition at line 259 of file TestCOMPtr.cpp.

  {
    printf("IBar@%p::~IBar()\n", STATIC_CAST(void*, this));
  }

Member Function Documentation

nsresult IFoo::GetString ( nsACString &  aString) [inherited]

Definition at line 340 of file TestHashtables.cpp.

{
  aString = mString;
  return NS_OK;
}

Here is the caller graph for this function:

IFoo::NS_IMETHOD_ ( nsrefcnt  ) [pure virtual, inherited]

Implemented in Foo.

IFoo::NS_IMETHOD_ ( PRInt32  ) [pure virtual, inherited]

Implemented in Foo.

IFoo::NS_IMETHOD_ ( nsrefcnt  ) [inherited]

Reimplemented in Foo.

IFoo::NS_IMETHOD_ ( nsrefcnt  ) [inherited]

Reimplemented in Foo.

IFoo::NS_IMETHOD_ ( nsrefcnt  ) [inherited]

Reimplemented in Foo.

IFoo::NS_IMETHOD_ ( nsrefcnt  ) [inherited]

Reimplemented in Foo.

void IFoo::print_totals ( ) [static, inherited]

Definition at line 123 of file TestCOMPtr.cpp.

  {
    printf("total constructions/destructions --> %d/%d\n", 
           total_constructions_, total_destructions_);
  }

Here is the caller graph for this function:

static void IFoo::print_totals ( ) [static, inherited]
nsresult IBar::QueryInterface ( const nsIID aIID,
void **  aResult 
)

Reimplemented from IFoo.

Definition at line 265 of file TestCOMPtr.cpp.

       {
    printf("IBar@%p::QueryInterface()\n", STATIC_CAST(void*, this));
              nsISupports* rawPtr = 0;
              nsresult status = NS_OK;

              if ( aIID.Equals(GetIID()) )
                     rawPtr = this;
              else if ( aIID.Equals(NS_GET_IID(IFoo)) )
                     rawPtr = STATIC_CAST(IFoo*, this);
              else
                     {
                            nsID iid_of_ISupports = NS_ISUPPORTS_IID;
                            if ( aIID.Equals(iid_of_ISupports) )
                                   rawPtr = STATIC_CAST(nsISupports*, this);
                            else
                                   status = NS_ERROR_NO_INTERFACE;
                     }

              NS_IF_ADDREF(rawPtr);
              *aResult = rawPtr;

              return status;
       }

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult IFoo::SetString ( const nsACString &  aString) [inherited]

Definition at line 333 of file TestHashtables.cpp.

{
  mString = aString;
  return NS_OK;
}

Member Data Documentation

readonly attribute long IFoo::id [inherited]

Definition at line 43 of file IFoo.idl.


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