appletfiles.h File Reference

#include "appletdefs.h"

Include dependency graph for appletfiles.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tyfileinfo

Typedefs

typedef char tyfoldername [32]
typedef char tyfilename [32]
typedef FSSpec tyfilespec
typedef FSSpecptrfilespec
typedef short tyvolnum
typedef boolean(* sfcallback )(tyfileinfo *)

Enumerations

enum  tyfolderview {
  viewbysmallicon = 0, viewbyicon = 1, viewbyname = 2, viewbydate = 3,
  viewbysize = 4, viewbykind = 5, viewbycomment = 6, viewbycolor = 7,
  viewbyversion = 8
}

Functions

boolean fileexists (ptrfilespec)
boolean filemakespec (short, long, bigstring, ptrfilespec)
boolean filegetfilename (ptrfilespec, bigstring)
boolean equalfilespecs (ptrfilespec, ptrfilespec)
boolean sfdialog (boolean, bigstring, ptrfilespec, sfcallback, OSType)
boolean fileopen (ptrfilespec, short *)
boolean fileopenforreading (ptrfilespec, short *)
boolean fileopenresourcefork (ptrfilespec, short *)
boolean filereadwholefile (short, Handle *)
boolean filedeletefile (ptrfilespec)
boolean filenew (ptrfilespec, OSType, OSType, short *)
boolean filegetinfo (ptrfilespec, tyfileinfo *)
boolean filegetvolumeinfo (tyvolnum, tyfileinfo *)
boolean filesettype (ptrfilespec, OSType)
boolean filesetcreator (ptrfilespec, OSType)
void fileclose (short)
long filegetsize (short)
boolean fileseteof (short, long)
boolean filetruncate (short)
boolean filewrite (short, long, void *)
boolean fileread (short, long, void *)
boolean filewritehandle (short, Handle)
boolean filereadhandle (short, long, Handle *)
boolean filegetchar (short, byte *)
boolean filegetvolumename (short, bigstring)


Typedef Documentation

typedef FSSpec * ptrfilespec
 

Definition at line 102 of file appletfiles.h.

typedef boolean(* sfcallback)(tyfileinfo *)
 

Definition at line 107 of file appletfiles.h.

typedef char tyfilename[32]
 

Definition at line 20 of file appletfiles.h.

typedef FSSpec tyfilespec
 

Definition at line 102 of file appletfiles.h.

typedef char tyfoldername[32]
 

Definition at line 18 of file appletfiles.h.

typedef short tyvolnum
 

Definition at line 105 of file appletfiles.h.


Enumeration Type Documentation

enum tyfolderview
 

Enumerator:
viewbysmallicon 
viewbyicon 
viewbyname 
viewbydate 
viewbysize 
viewbykind 
viewbycomment 
viewbycolor 
viewbyversion 

Definition at line 23 of file appletfiles.h.


Function Documentation

boolean equalfilespecs ptrfilespec  ,
ptrfilespec 
 

Definition at line 78 of file appletfiles.c.

References equalstrings().

Here is the call graph for this function:

void fileclose short   ) 
 

Definition at line 483 of file appletfiles.c.

Referenced by closeappwindow(), copyonefile(), openappwindow(), openfilespec(), and saveaswindow().

boolean filedeletefile ptrfilespec   ) 
 

Definition at line 541 of file appletfiles.c.

References fileerror(), and setfileerrorfile().

Referenced by filenew().

Here is the call graph for this function:

boolean fileexists ptrfilespec   ) 
 

Definition at line 70 of file appletfiles.c.

References noErr.

boolean filegetchar short  ,
byte
 

Definition at line 647 of file appletfiles.c.

References fileread(), and noErr.

Here is the call graph for this function:

boolean filegetfilename ptrfilespec  ,
bigstring 
 

boolean filegetinfo ptrfilespec  ,
tyfileinfo
 

Definition at line 402 of file appletfiles.c.

References clearbytes(), filegetinfofrompb(), getmacfileinfo(), info, internalerrorcode, and longsizeof.

Here is the call graph for this function:

long filegetsize short   ) 
 

Definition at line 596 of file appletfiles.c.

References filesize(), and noErr.

Here is the call graph for this function:

boolean filegetvolumeinfo tyvolnum  ,
tyfileinfo
 

Definition at line 237 of file appletfiles.c.

References bigstring, clearbytes(), getinfofromvolpb(), info, longsizeof, noErr, and setemptystring.

Here is the call graph for this function:

boolean filegetvolumename short  ,
bigstring 
 

Definition at line 759 of file fileops.c.

References clearbytes(), longsizeof, noErr, NULL, and setstringlength.

Here is the call graph for this function:

boolean filemakespec short  ,
long  ,
bigstring  ,
ptrfilespec 
 

Definition at line 60 of file appletfiles.c.

References noErr.

boolean filenew ptrfilespec  ,
OSType  ,
OSType  ,
short
 

Definition at line 557 of file appletfiles.c.

References filedeletefile(), fileerror(), noErr, and setfileerrorfile().

Referenced by copyonefile(), and saveappwindow().

Here is the call graph for this function:

boolean fileopen ptrfilespec  ,
short
 

Definition at line 505 of file appletfiles.c.

References fileerror(), and setfileerrorfile().

Referenced by openappwindow(), and openfilespec().

Here is the call graph for this function:

boolean fileopenforreading ptrfilespec  ,
short
 

Definition at line 517 of file appletfiles.c.

References fileerror(), and setfileerrorfile().

Here is the call graph for this function:

boolean fileopenresourcefork ptrfilespec  ,
short
 

Definition at line 529 of file appletfiles.c.

References fileerror(), and setfileerrorfile().

Here is the call graph for this function:

boolean fileread short  ,
long  ,
void * 
 

Definition at line 629 of file appletfiles.c.

References fileerror(), and nil.

Here is the call graph for this function:

boolean filereadhandle short  ,
long  ,
Handle
 

Definition at line 693 of file appletfiles.c.

References disposehandle(), filegetsize(), fileread(), filesize(), fl, h, lockhandle(), newclearhandle(), nil, and unlockhandle().

Here is the call graph for this function:

boolean filereadwholefile short  ,
Handle
 

Definition at line 728 of file appletfiles.c.

References filegetsize(), and filereadhandle().

Referenced by openappwindow(), and openfilespec().

Here is the call graph for this function:

boolean filesetcreator ptrfilespec  ,
OSType 
 

Definition at line 465 of file appletfiles.c.

References fileerror(), and info.

Here is the call graph for this function:

boolean fileseteof short  ,
long 
 

Definition at line 490 of file appletfiles.c.

References noErr.

boolean filesettype ptrfilespec  ,
OSType 
 

Definition at line 447 of file appletfiles.c.

References fileerror(), and info.

Here is the call graph for this function:

boolean filetruncate short   ) 
 

Definition at line 590 of file appletfiles.c.

References fileerror(), and nil.

Here is the call graph for this function:

boolean filewrite short  ,
long  ,
void * 
 

Definition at line 611 of file appletfiles.c.

References fileerror(), and nil.

Here is the call graph for this function:

boolean filewritehandle short  ,
Handle 
 

Definition at line 674 of file appletfiles.c.

References filewrite(), fl, GetHandleSize, HLock, and HUnlock.

Here is the call graph for this function:

boolean sfdialog boolean  ,
bigstring  ,
ptrfilespec  ,
sfcallback  ,
OSType 
 

Definition at line 776 of file appletfiles.c.

References arrowcursor(), clearbytes(), cometofront(), copystring(), longsizeof, nil, pt, quickdrawglobal, r, sffilterUPP, and sfglobalfilter.

Here is the call graph for this function:


Generated on Wed May 31 20:48:50 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6