Back to index

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

#include <xptiprivate.h>

Collaboration diagram for xptiFile:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const nsInt64GetSize () const
const nsInt64GetDate () const
const char * GetName () const
const PRUint32 GetDirectory () const
xptiTypelibGutsGetGuts ()
 xptiFile ()
 xptiFile (const nsInt64 &aSize, const nsInt64 &aDate, PRUint32 aDirectory, const char *aName, xptiWorkingSet *aWorkingSet)
 xptiFile (const xptiFile &r, xptiWorkingSet *aWorkingSet)
 ~xptiFile ()
PRBool SetHeader (XPTHeader *aHeader, xptiWorkingSet *aWorkingSet)
PRBool Equals (const xptiFile &r) const
 xptiFile (const xptiFile &r)
xptiFileoperator= (const xptiFile &r)

Private Member Functions

void CopyFields (const xptiFile &r)

Private Attributes

nsInt64 mSize
nsInt64 mDate
const char * mName
xptiTypelibGutsmGuts
PRUint32 mDirectory

Detailed Description

Definition at line 185 of file xptiprivate.h.


Constructor & Destructor Documentation

Definition at line 46 of file xptiFile.cpp.

    :   
#ifdef DEBUG
        mDEBUG_WorkingSet(nsnull),
#endif
        mSize(),
        mDate(),
        mName(nsnull),
        mGuts(nsnull),
        mDirectory(0)
{
    // empty
    MOZ_COUNT_CTOR(xptiFile);
}
xptiFile::xptiFile ( const nsInt64 aSize,
const nsInt64 aDate,
PRUint32  aDirectory,
const char *  aName,
xptiWorkingSet aWorkingSet 
)

Definition at line 61 of file xptiFile.cpp.

    :   
#ifdef DEBUG
        mDEBUG_WorkingSet(aWorkingSet),
#endif
        mSize(aSize),
        mDate(aDate),
        mName(aName),
        mGuts(nsnull),
        mDirectory(aDirectory)
{
    NS_ASSERTION(aWorkingSet,"bad param");
    mName = XPT_STRDUP(aWorkingSet->GetStringArena(), aName);

    MOZ_COUNT_CTOR(xptiFile);
}

Here is the call graph for this function:

xptiFile::xptiFile ( const xptiFile r,
xptiWorkingSet aWorkingSet 
)

Definition at line 82 of file xptiFile.cpp.

    :   
#ifdef DEBUG
        mDEBUG_WorkingSet(aWorkingSet),
#endif
        mSize(r.mSize),
        mDate(r.mDate),
        mName(nsnull),
        mGuts(nsnull),
        mDirectory(r.mDirectory)
{
    NS_ASSERTION(aWorkingSet,"bad param");
    mName = XPT_STRDUP(aWorkingSet->GetStringArena(), r.mName);

    MOZ_COUNT_CTOR(xptiFile);
}

Here is the call graph for this function:

Definition at line 99 of file xptiFile.cpp.

xptiFile::xptiFile ( const xptiFile r) [inline]

Definition at line 216 of file xptiprivate.h.

{CopyFields(r);}

Here is the call graph for this function:


Member Function Documentation

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

Definition at line 225 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

        mSize      = r.mSize;
        mDate      = r.mDate;
        mName      = r.mName;
        mDirectory = r.mDirectory;
        mGuts      = r.mGuts;
    }

Here is the caller graph for this function:

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

Definition at line 208 of file xptiprivate.h.

    {
        return  mDirectory == r.mDirectory &&
                mSize == r.mSize &&
                mDate == r.mDate &&
                0 == PL_strcmp(mName, r.mName);
    }

Here is the caller graph for this function:

const nsInt64& xptiFile::GetDate ( ) const [inline]

Definition at line 189 of file xptiprivate.h.

{return mDate;}

Here is the caller graph for this function:

Definition at line 191 of file xptiprivate.h.

{return mDirectory;}

Here is the caller graph for this function:

Definition at line 192 of file xptiprivate.h.

{return mGuts;}

Here is the caller graph for this function:

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

Definition at line 190 of file xptiprivate.h.

{return mName;}

Here is the caller graph for this function:

const nsInt64& xptiFile::GetSize ( void  ) const [inline]

Definition at line 188 of file xptiprivate.h.

{return mSize;}

Here is the caller graph for this function:

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

Definition at line 217 of file xptiprivate.h.

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

Here is the call graph for this function:

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

Definition at line 105 of file xptiFile.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 247 of file xptiprivate.h.

Definition at line 250 of file xptiprivate.h.

Definition at line 249 of file xptiprivate.h.

const char* xptiFile::mName [private]

Definition at line 248 of file xptiprivate.h.

Definition at line 246 of file xptiprivate.h.


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