appletfilecopy.c File Reference

#include <Script.h>
#include "applet.h"
#include "appletmain.h"
#include "appletfilesinternal.h"
#include "appletfolder.h"
#include "appletfilealias.h"
#include "appletfiledelete.h"
#include "appletfiledesktop.h"
#include "appletsyserror.h"
#include "appletfilecopy.h"

Include dependency graph for appletfilecopy.c:

Go to the source code of this file.

Functions

static boolean copyfork (short fsource, short fdest, Handle hbuffer)
static boolean largefilebuffer (Handle *hbuffer)
static boolean openforkforcopy (FSSpec *fs, boolean flresource, short *fnum)
static boolean copyonefile (FSSpec *fsource, FSSpec *fdest, boolean fldata, boolean flresources)
boolean foldercopy (ptrfilespec fssource, ptrfilespec fsdest, long *dirid)
boolean filteredcopy (FSSpec *, FSSpec *)
static boolean foldercopyvisit (bigstring bsitem, tyfileinfo *info, long refcon)
boolean filecopy (FSSpec *fssource, FSSpec *fsdest, tyfilecopycallback callback)

Variables

static tyfilecopycallback copyfilter = nil


Function Documentation

static boolean copyfork short  fsource,
short  fdest,
Handle  hbuffer
[static]
 

Definition at line 20 of file appletfilecopy.c.

References appserviceeventqueue(), fileerror(), GetHandleSize, HLock, HUnlock, nil, noErr, and rollbeachball().

Referenced by copyonefile().

Here is the call graph for this function:

static boolean copyonefile FSSpec fsource,
FSSpec fdest,
boolean  fldata,
boolean  flresources
[static]
 

Definition at line 176 of file appletfilecopy.c.

References copyfork(), disposehandle(), error, fileclose(), filecopycomment(), filedelete(), fileerror(), filenew(), filetype, getmacfileinfo(), largefilebuffer(), nil, openforkforcopy(), setfileerrorfile(), and setmacfileinfo().

Referenced by filteredcopy().

Here is the call graph for this function:

boolean filecopy FSSpec fssource,
FSSpec fsdest,
tyfilecopycallback  callback
 

Definition at line 395 of file appletfilecopy.c.

References copyfilter, and filteredcopy().

Here is the call graph for this function:

boolean filteredcopy FSSpec ,
FSSpec
 

Definition at line 344 of file appletfilecopy.c.

References copyfilter, copyonefile(), filegetinfo(), filemakealias(), fileresolvealias(), foldercopy(), foldercopyvisit(), folderloop(), getfolderfilespec(), info, and nil.

Referenced by filecopy(), and foldercopyvisit().

Here is the call graph for this function:

boolean foldercopy ptrfilespec  fssource,
ptrfilespec  fsdest,
long dirid
 

Definition at line 294 of file appletfilecopy.c.

References assert, filecopycomment(), fileerror(), getmacfileinfo(), noErr, and setmacfileinfo().

Referenced by filteredcopy().

Here is the call graph for this function:

static boolean foldercopyvisit bigstring  bsitem,
tyfileinfo info,
long  refcon
[static]
 

Definition at line 328 of file appletfilecopy.c.

References filegetsubitemspec(), filemakespec(), and filteredcopy().

Referenced by filteredcopy().

Here is the call graph for this function:

static boolean largefilebuffer Handle hbuffer  )  [static]
 

Definition at line 81 of file appletfilecopy.c.

References appnewhandle(), h, memavail(), nil, and sysmemoryerror().

Here is the call graph for this function:

static boolean openforkforcopy FSSpec fs,
boolean  flresource,
short fnum
[static]
 

Definition at line 138 of file appletfilecopy.c.

References clearbytes(), fileerror(), and longsizeof.

Referenced by copyonefile().

Here is the call graph for this function:


Variable Documentation

tyfilecopycallback copyfilter = nil [static]
 

Definition at line 341 of file appletfilecopy.c.

Referenced by filecopy(), and filteredcopy().


Generated on Wed May 31 20:47:53 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6