Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Member Functions | Private Attributes
xptiZipItem Class Reference

#include <xptiprivate.h>

Collaboration diagram for xptiZipItem:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const char * GetName () const
xptiTypelibGutsGetGuts ()
 xptiZipItem ()
 xptiZipItem (const char *aName, xptiWorkingSet *aWorkingSet)
 xptiZipItem (const xptiZipItem &r, xptiWorkingSet *aWorkingSet)
 ~xptiZipItem ()
PRBool SetHeader (XPTHeader *aHeader, xptiWorkingSet *aWorkingSet)
PRBool Equals (const xptiZipItem &r) const
 xptiZipItem (const xptiZipItem &r)
xptiZipItemoperator= (const xptiZipItem &r)

Private Member Functions

void CopyFields (const xptiZipItem &r)

Private Attributes

const char * mName
xptiTypelibGutsmGuts

Detailed Description

Definition at line 255 of file xptiprivate.h.


Constructor & Destructor Documentation

Definition at line 46 of file xptiZipItem.cpp.

    :   
#ifdef DEBUG
        mDEBUG_WorkingSet(nsnull),
#endif
        mName(nsnull),
        mGuts(nsnull)
{
    MOZ_COUNT_CTOR(xptiZipItem);
    // empty
}
xptiZipItem::xptiZipItem ( const char *  aName,
xptiWorkingSet aWorkingSet 
)

Definition at line 58 of file xptiZipItem.cpp.

    :   
#ifdef DEBUG
        mDEBUG_WorkingSet(aWorkingSet),
#endif
        mName(aName),
        mGuts(nsnull)
{
    MOZ_COUNT_CTOR(xptiZipItem);

    NS_ASSERTION(aWorkingSet,"bad param");
    mName = XPT_STRDUP(aWorkingSet->GetStringArena(), aName);
}

Here is the call graph for this function:

Definition at line 74 of file xptiZipItem.cpp.

    :   
#ifdef DEBUG
        mDEBUG_WorkingSet(aWorkingSet),
#endif
        mName(nsnull),
        mGuts(nsnull)
{
    MOZ_COUNT_CTOR(xptiZipItem);

    NS_ASSERTION(aWorkingSet,"bad param");
    mName = XPT_STRDUP(aWorkingSet->GetStringArena(), r.mName);
}

Here is the call graph for this function:

Definition at line 88 of file xptiZipItem.cpp.

Definition at line 277 of file xptiprivate.h.

{CopyFields(r);}

Here is the call graph for this function:


Member Function Documentation

void xptiZipItem::CopyFields ( const xptiZipItem r) [inline, private]

Definition at line 286 of file xptiprivate.h.

    {
#ifdef DEBUG
        // If 'this' has a workingset then it better match that of the assigner. 
        NS_ASSERTION(!mDEBUG_WorkingSet || 
                     mDEBUG_WorkingSet == r.mDEBUG_WorkingSet,
                     "illegal xptiFile assignment");
        mDEBUG_WorkingSet = r.mDEBUG_WorkingSet;
#endif

        mName = r.mName;
        mGuts = r.mGuts;
    }

Here is the caller graph for this function:

PRBool xptiZipItem::Equals ( const xptiZipItem r) const [inline]

Definition at line 272 of file xptiprivate.h.

    {
        return 0 == PL_strcmp(mName, r.mName);
    }

Here is the caller graph for this function:

Definition at line 259 of file xptiprivate.h.

{return mGuts;}

Here is the caller graph for this function:

const char* xptiZipItem::GetName ( void  ) const [inline]

Definition at line 258 of file xptiprivate.h.

{return mName;}

Here is the caller graph for this function:

xptiZipItem& xptiZipItem::operator= ( const xptiZipItem r) [inline]

Definition at line 278 of file xptiprivate.h.

    {
        if(this != &r)
            CopyFields(r);
        return *this;
    }

Here is the call graph for this function:

PRBool xptiZipItem::SetHeader ( XPTHeader aHeader,
xptiWorkingSet aWorkingSet 
)

Definition at line 94 of file xptiZipItem.cpp.

{
    NS_ASSERTION(!mGuts,"bad state");
    NS_ASSERTION(aHeader,"bad param");
    NS_ASSERTION(aWorkingSet,"bad param");

    mGuts = xptiTypelibGuts::NewGuts(aHeader, aWorkingSet);
    return mGuts != nsnull;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 305 of file xptiprivate.h.

const char* xptiZipItem::mName [private]

Definition at line 304 of file xptiprivate.h.


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