Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
MRJSession.cpp File Reference
#include "MRJSession.h"
#include "MRJPlugin.h"
#include "MRJContext.h"
#include "MRJConsole.h"
#include "MRJMonitor.h"
#include "TimedMessage.h"
#include <ControlDefinitions.h>
#include <string.h>
#include <Memory.h>
#include <Files.h>
#include <Dialogs.h>
#include <Appearance.h>
#include <Resources.h>
#include <Gestalt.h>
#include <Folders.h>
#include <Script.h>
#include <JavaControl.h>
#include <CFString.h>
#include <string>

Go to the source code of this file.

Functions

StringPtr c2p (const char *cstr, StringPtr pstr)
static OSStatus ref2path (const FSRef &ref, char *path, UInt32 maxPathSize)
static OSStatus spec2path (const FSSpec &spec, char *path, UInt32 maxPathSize)

Variables

MRJConsoletheConsole
short thePluginRefnum
FSSpec thePluginSpec
static MRJSessiontheSession

Function Documentation

StringPtr c2p ( const char *  cstr,
StringPtr  pstr 
) [inline]

Definition at line 339 of file MRJSession.cpp.

{
       pstr[0] = (unsigned char)strlen(cstr);
       ::BlockMoveData(cstr, pstr + 1, pstr[0]);
       return pstr;
}
static OSStatus ref2path ( const FSRef ref,
char *  path,
UInt32  maxPathSize 
) [static]

Definition at line 491 of file MRJSession.cpp.

{
    return FSRefMakePath(&ref, (UInt8*)path, maxPathSize);
}

Here is the caller graph for this function:

static OSStatus spec2path ( const FSSpec spec,
char *  path,
UInt32  maxPathSize 
) [static]

Definition at line 496 of file MRJSession.cpp.

{
    FSRef ref;
    OSStatus status = FSpMakeFSRef(&spec, &ref);
    if (status == noErr)
        status = ref2path(ref, path, maxPathSize);
    return status;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 59 of file MRJConsole.cpp.

Definition at line 78 of file MRJPlugin.cpp.

Definition at line 77 of file MRJPlugin.cpp.

Definition at line 73 of file MRJSession.cpp.