Back to index

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

#include <nsMacResources.h>

List of all members.

Static Public Member Functions

static nsresult OpenLocalResourceFile ()
static nsresult CloseLocalResourceFile ()
static void SetLocalResourceFile (short aRefNum)
static short GetLocalResourceFile ()
static nsresult OpenLocalResourceFile ()
static nsresult CloseLocalResourceFile ()
static void SetLocalResourceFile (short aRefNum)
static short GetLocalResourceFile ()

Static Private Attributes

static short mRefNum = kResFileNotOpened
static short mSaveResFile = 0

Detailed Description

Definition at line 43 of file nsMacResources.h.


Member Function Documentation

Definition at line 101 of file nsMacResources.cpp.

{
       if (mRefNum == kResFileNotOpened)
              return NS_ERROR_NOT_INITIALIZED;

       ::UseResFile(mSaveResFile);

       return (::ResError() == noErr ? NS_OK : NS_ERROR_FAILURE);
}

Here is the caller graph for this function:

static short nsMacResources::GetLocalResourceFile ( ) [inline, static]

Definition at line 51 of file nsMacResources.h.

{return mRefNum;}

Here is the caller graph for this function:

static short nsMacResources::GetLocalResourceFile ( ) [inline, static]

Definition at line 51 of file nsMacResources.h.

{return mRefNum;}

Definition at line 85 of file nsMacResources.cpp.

{
       if (mRefNum == kResFileNotOpened)
              return NS_ERROR_NOT_INITIALIZED;

       mSaveResFile = ::CurResFile();
       ::UseResFile(mRefNum);

       return (::ResError() == noErr ? NS_OK : NS_ERROR_FAILURE);
}

Here is the caller graph for this function:

static void nsMacResources::SetLocalResourceFile ( short  aRefNum) [inline, static]

Definition at line 50 of file nsMacResources.h.

{mRefNum = aRefNum;}
static void nsMacResources::SetLocalResourceFile ( short  aRefNum) [inline, static]

Definition at line 50 of file nsMacResources.h.

{mRefNum = aRefNum;}

Here is the caller graph for this function:


Member Data Documentation

static short nsMacResources::mRefNum = kResFileNotOpened [static, private]

Definition at line 54 of file nsMacResources.h.

static short nsMacResources::mSaveResFile = 0 [static, private]

Definition at line 55 of file nsMacResources.h.


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