appletfolder.c File Reference

#include <Folders.h>
#include <Script.h>
#include "appletdefs.h"
#include "appletmemory.h"
#include "appletstrings.h"
#include "appletfiles.h"
#include "appletfilesinternal.h"
#include "appletfilealias.h"
#include "appletfiledelete.h"
#include "appletfolder.h"

Include dependency graph for appletfolder.c:

Go to the source code of this file.

Functions

boolean diskloop (tyfileloopcallback diskcallback, long refcon)
boolean folderloop (ptrfilespec pfs, boolean flreverse, tyfileloopcallback filecallback, long refcon)
static boolean foldercontainsaliascallback (bigstring fname, tyfileinfo *info, long pxinfo)
boolean foldercontainsalias (FSSpec *fsfolder, FSSpec *fsfile, FSSpec *fsalias)
boolean getfolderfilespec (short vnum, long dirid, FSSpec *fsfolder)
boolean filegetparentfolderspec (FSSpec *fsfile, FSSpec *fsfolder)
boolean getsystemfolderfilespec (OSType subfolderid, FSSpec *fsfolder)
boolean systemfoldercontainsalias (OSType subfolderid, FSSpec *fsfile)
boolean addaliastospecialfolder (FSSpec *fsorig, OSType subfolderid)
static boolean deletealiasescallback (bigstring fname, tyfileinfo *info, long refcon)
boolean deletealiasesfromfolder (FSSpec *fsorig, FSSpec *fsfolder)
boolean deletealiasesfromspecialfolder (FSSpec *fsorig, OSType subfolderid)
boolean filecreatefolder (ptrfilespec fsfolder)
boolean filegetfolderid (ptrfilespec fsfolder, long *dirid)
boolean filegetsubitemspec (FSSpec *fsfolder, bigstring fname, FSSpec *fssubitem)
boolean filesetfolderview (FSSpec *fsfolder, short folderview)
boolean fileemptyfolder (FSSpec *fsfolder)
boolean foldercontainsfile (FSSpec *fsfolder, FSSpec *fsfile)
static boolean flushvolumevisit (bigstring bsitem, tyfileinfo *info, long refcon)
boolean fileflushvolumes (void)
boolean filesurefolder (ptrfilespec pfs)
boolean filesuresubfolder (ptrfilespec pfsfolder, bigstring foldername, ptrfilespec pfssubfolder)

Variables

struct {
   short   errornumber
   hdltreenode   htree
   hdlhashnode   hnode
   hdltreenode   hcode
   long   offset
   hdlheadrecord   hnode
   FSSpec *   fsfile
   FSSpec   fsalias
   boolean   fl
   boolean   launched
   OSType   apptype
   bigstring   errormessage
   short   fnum
   short   fsize
   short   fstyle
foldercontains


Function Documentation

boolean addaliastospecialfolder FSSpec fsorig,
OSType  subfolderid
 

Definition at line 237 of file appletfolder.c.

References bigstring, filegetfilename(), filegetfolderid(), filemakealias(), filemakespec(), fsalias, and getsystemfolderfilespec().

Here is the call graph for this function:

static boolean deletealiasescallback bigstring  fname,
tyfileinfo info,
long  refcon
[static]
 

Definition at line 256 of file appletfolder.c.

References equalfilespecs(), filedelete(), filemakespec(), and fileresolvealias().

Referenced by deletealiasesfromfolder().

Here is the call graph for this function:

boolean deletealiasesfromfolder FSSpec fsorig,
FSSpec fsfolder
 

Definition at line 277 of file appletfolder.c.

References deletealiasescallback(), and folderloop().

Referenced by deletealiasesfromspecialfolder().

Here is the call graph for this function:

boolean deletealiasesfromspecialfolder FSSpec fsorig,
OSType  subfolderid
 

Definition at line 289 of file appletfolder.c.

References deletealiasesfromfolder(), and getsystemfolderfilespec().

Here is the call graph for this function:

boolean diskloop tyfileloopcallback  diskcallback,
long  refcon
 

Definition at line 31 of file appletfolder.c.

References bigstring, clearbytes(), fileerror(), filegetvolumeinfo(), info, longsizeof, and nil.

Here is the call graph for this function:

boolean filecreatefolder ptrfilespec  fsfolder  ) 
 

Definition at line 300 of file appletfolder.c.

Referenced by claygetspecialfolder(), and filesurefolder().

boolean fileemptyfolder FSSpec fsfolder  ) 
 

Definition at line 357 of file appletfolder.c.

References filedeletevisit(), and folderloop().

Here is the call graph for this function:

boolean fileflushvolumes void   ) 
 

Definition at line 389 of file appletfolder.c.

References diskloop(), and flushvolumevisit().

Here is the call graph for this function:

boolean filegetfolderid ptrfilespec  fsfolder,
long dirid
 

Definition at line 311 of file appletfolder.c.

References getmacfileinfo().

Referenced by addaliastospecialfolder(), filegetsubitemspec(), and foldercontainsfile().

Here is the call graph for this function:

boolean filegetparentfolderspec FSSpec fsfile,
FSSpec fsfolder
 

Definition at line 200 of file appletfolder.c.

References getfolderfilespec().

Referenced by filetouchallparentfolders(), filetouchparentfolder(), and getcurrentappfolder().

Here is the call graph for this function:

boolean filegetsubitemspec FSSpec fsfolder,
bigstring  fname,
FSSpec fssubitem
 

Definition at line 324 of file appletfolder.c.

References filegetfolderid(), and filemakespec().

Referenced by filesuresubfolder(), foldercopyvisit(), and gethelperfolder().

Here is the call graph for this function:

boolean filesetfolderview FSSpec fsfolder,
short  folderview
 

Definition at line 339 of file appletfolder.c.

References getmacfileinfo(), and setmacfileinfo().

Here is the call graph for this function:

boolean filesurefolder ptrfilespec  pfs  ) 
 

Definition at line 395 of file appletfolder.c.

References alertdialog(), bigstring, copystring(), filecreatefolder(), fileexists(), and pushstring().

Referenced by filesuresubfolder().

Here is the call graph for this function:

boolean filesuresubfolder ptrfilespec  pfsfolder,
bigstring  foldername,
ptrfilespec  pfssubfolder
 

Definition at line 418 of file appletfolder.c.

References filegetsubitemspec(), and filesurefolder().

Here is the call graph for this function:

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

Definition at line 379 of file appletfolder.c.

References nil.

Referenced by fileflushvolumes().

boolean foldercontainsalias FSSpec fsfolder,
FSSpec fsfile,
FSSpec fsalias
 

Definition at line 168 of file appletfolder.c.

References clearbytes(), foldercontains, foldercontainsaliascallback(), folderloop(), fsalias, fsfile, and longsizeof.

Here is the call graph for this function:

static boolean foldercontainsaliascallback bigstring  fname,
tyfileinfo info,
long  pxinfo
[static]
 

Definition at line 142 of file appletfolder.c.

References equalfilespecs(), filemakespec(), fileresolvealias(), foldercontains, and fsalias.

Referenced by foldercontainsalias().

Here is the call graph for this function:

boolean foldercontainsfile FSSpec fsfolder,
FSSpec fsfile
 

Definition at line 363 of file appletfolder.c.

References filegetfolderid().

Here is the call graph for this function:

boolean folderloop ptrfilespec  pfs,
boolean  flreverse,
tyfileloopcallback  filecallback,
long  refcon
 

Definition at line 70 of file appletfolder.c.

References assert, bigstring, fileerror(), filegetinfofrompb(), getmacfileinfo(), info, nil, and setfileerrorfile().

Here is the call graph for this function:

boolean getfolderfilespec short  vnum,
long  dirid,
FSSpec fsfolder
 

Definition at line 194 of file appletfolder.c.

References filemakespec().

Referenced by filegetparentfolderspec(), filteredcopy(), and getsystemfolderfilespec().

Here is the call graph for this function:

boolean getsystemfolderfilespec OSType  subfolderid,
FSSpec fsfolder
 

Definition at line 206 of file appletfolder.c.

References fileerror(), getfolderfilespec(), and nil.

Referenced by addaliastospecialfolder(), deletealiasesfromspecialfolder(), and systemfoldercontainsalias().

Here is the call graph for this function:

boolean systemfoldercontainsalias OSType  subfolderid,
FSSpec fsfile
 

Definition at line 221 of file appletfolder.c.

References foldercontainsalias(), fsalias, fsfile, and getsystemfolderfilespec().

Here is the call graph for this function:


Variable Documentation

boolean fl
 

Definition at line 27 of file appletfolder.c.

Referenced by aboutsetthreadstring(), addmenucommandverb(), appcopycommand(), askdialogverb(), askfunc(), assigntokenstringvalue(), backupfilepos(), bringtofrontverb(), browsercollisiondialog(), browsercommitchanges(), browserfileadded(), browserpreexpand(), buildmenubarstack(), buildtexthandle(), callproc(), callprocwithparams(), callprotocolhandler(), callstayresident(), callvolatile(), carbonStdSetup(), ccfunctionvalue(), ccloadsystemtable(), ccmsg(), checktablestructure(), claygetlinewidth(), closeappwindow(), closeclipboard(), closevalue(), closeverb(), closewindowverb(), cmdcheckrunbutton(), cmdiconhit(), cmdthreadmain(), coercetoaddress(), coercetoboolean(), coercetolist(), coercetolistposition(), coercetolongfortype(), coercionpossible(), continuetablesearch(), copyexemptvalue(), copyvaluedata(), datedayofweektostring(), datemonthtostring(), dballochandle(), dbassignhandle(), dbdefinedverb(), dbendsaveas(), dbflushheader(), dbnewverb(), dbrefhandle(), dbsavehandle(), dbstartsaveas(), dbwriteshadowavaillist(), decompilespecialtable(), decompilevisit(), delayticks(), deletefromprocesslist(), deletemenuitem(), deleteresource(), dockmenufillpopup(), dockmenugetaddresscallback(), dodllcall(), dosearch(), editappwindow(), editgetselectedtexthandle(), editverb(), enablealertverb(), equalsublists(), evaluateforinloop(), fifgetendoffile(), fifreadfile(), fifsetendoffile(), fifwritehandle(), filedialogverb(), filefunctionvalue(), fileopener(), filereadhandle(), filespecaddvalue(), filespecsubtractvalue(), filewritehandle(), findnamedtable(), findoneprotocolhandler(), fontmenuchecker(), frontierfunctionvalue(), fwsbackgroundtask(), fwsgetcallbackcodetree(), fwsNetEventMyAddress(), fwsNetEventWriteFileToStream(), fwsprocesspendingconnections(), fwstransmitfile(), getaddressvalue(), getboundsverb(), getdefaultcontainer(), getdirtywinparam(), geteditrect(), getfullpath(), getidvalue(), getintfunc(), getmachinename(), getnewhandle(), getnexttoken(), getnthresinfoverb(), getnthresourceverb(), getnthrestypeverb(), getObjectHandle(), getObjectValue(), getostypedisplaystring(), getostypevalnamevisit(), getscrap(), getscrapverb(), getsearchparams(), getsubmenuvalue(), gettitleverb(), gettokenname(), getuserinfofunc(), getwinparam(), handlemenu(), handlesearch(), handlewindoweventcommand(), haveselectionverb(), hexstringtonumber(), IACasynchinitcheck(), IACinit(), IACreturnerror(), initializetableoutline(), insertmenu(), Insertmenuitem(), iowaopenbitmap(), isFrontProcess(), isfrontverb(), ismenuscriptverb(), isTextEncodingAvailable(), isvisibleverb(), jugglervisit(), landaddclass(), landcomplexsend(), landemptyqueue(), landfilespeccallback(), landgetmenuarray(), landgetmenuhandles(), landgetparam(), landhandleverb(), landnewverb(), landsendverb(), landsystem6packparam(), landsystem6poll(), landsystem6returnhandle(), landsystem6send(), landsystem7newnetworkverb(), landsystem7send(), landverbrecordcallback(), langbackgroundtask(), langbuildnamedparamlist(), langbuildparamlist(), langcleartarget(), langclosehiddenwindow(), langdebuggercall(), langdialogitemhit(), langdialogsearch(), langerrornewwindow(), langexpandtodotparams(), langexternalcopyvalue(), langexternaldisposevalue(), langexternaledit(), langexternalfindusedblocks(), langexternalnewvalue(), langexternalrefdata(), langexternalsearch(), langexternalsetdirty(), langexternalsetreadonly(), langexternalsetsave(), langexternalunregisterwindow(), langfollowifaddressvalue(), langgetdotparams(), langgettableval(), langgettarget(), langgettargetfunc(), langgettypestring(), langgetuserflag(), langipcbuildparamlist(), langipccoerceparam(), langipcfindmenus(), langipcfindtraphandler(), langipcgetitemlangtext(), langipcgetmenuarray(), langipchandlerunscript(), langipchandletrapverb(), langipcruncode(), langipcrunitem(), langopruncallbackscripts(), langpackhandle(), langpackvalue(), langpackverb(), langpackwindowverb(), langpoplocalchain(), langpushlistaddress(), langpushlistlong(), langpushlisttext(), langpushlocalchain(), langreduceformula(), langrun(), langruncode(), langrundialog(), langrunhandle(), langrunhandletraperror(), langrunmodeless(), langrunscript(), langrunscriptcode(), langrunstring(), langrunstringnoerror(), langruntraperror(), langscanner(), langsetdialogitemenable(), langsetexternalsymbol(), langsetsymboltableval(), langsettarget(), langsymbolreference(), langunpackexternal(), langunpacktree(), langunpackvalue(), langvisitlistvaluesvisit(), langzoomobject(), listarrayvalue(), listassignvalue(), listcomparevalue(), listdeletevalue(), loadbufferfromfile(), loadfunctionprocessor(), loadhandlefromhandle(), loadsmallicon(), main(), mathfunctionvalue(), meactivate(), mebuildmenubar(), mecontinuesearch(), medisplayscriptbutton(), meexportscrap(), mefindnodevisit(), megetnodelangtext(), meloadoutline(), meloadscriptoutline(), memenuitemadded(), memenuitemchanged(), menuchildclose(), menufunctionvalue(), menugetmenuvariable(), menugetscriptverb(), menuverbfind(), menuverbfindusedblocks(), menuverbinmemory(), menuverbmemorypack(), menuverbpack(), menuverbpacktotext(), mepackmenustructure(), mepackscriptvisit(), mereduceformula(), mesavemenurecord(), mesavemenustructure(), mesaveoutline(), mescripterrorroutine(), mesmashscriptwindow(), metextualizerefconroutine(), meunpackmenustructure(), meuserselected(), minisearch(), movefile(), newappwindow(), newchildwindow(), newcomponentglobals(), newoutlinerecord(), newprocessvisit(), newrecord(), newvaluefunc(), newwindowverb(), notifyuser(), objtostring(), odbaccesswindow(), odbclosefile(), odbcountitems(), odbDefined(), odbdefined(), odbdelete(), odbgetmoddate(), odbgetnthitem(), odbgettype(), odbgetvalue(), odbNewFile(), odbnewfile(), odbnewtable(), odbopenfile(), odbsavefile(), odbsetvalue(), oldsendodoc(), opattributesgetoneattribute(), opattributesgetpackedtablevalue(), opattributesgettypestring(), opcompileverb(), opcopyheadrecord(), opcopyoutlinerecord(), opeditcango(), openappwindow(), openbitmap(), openverb(), opfillpopup(), opfindverb(), opfunctionvalue(), opgetcodeverb(), opgetlinetext(), opgetscrap(), opinserthandle(), oplangtextvisit(), opmoveoutlinevisit(), opoutlinetotextscrap(), opoutlinetotextstream(), opoutlinetoxml(), opoutlinetoxmlverb(), oppacklist(), oppackoutline(), oppopupruncallbackscript(), oppostfontchange(), oppromote(), opreorgcursor(), oprepeatedbump(), opscroll(), opsetcursorlinetext(), opsetlinetextverb(), opsetrefconverb(), optextscraptooutline(), opunpack(), opunpacklist(), opunpacktexttooutline(), opunpackversion2(), opvalidate(), opverbarrayreference(), opverbcopyvalue(), opverbfind(), opverbgetlangtext(), opverbinmemory(), opverbmemorypack(), opverbmemoryunpack(), opverbpack(), opverbpacktotext(), opvisitallverb(), opwinloadfile(), opwinsavefile(), opxmlbodyvisit(), opxmlbuildbody(), opxmlbuildhead(), opxmlbuildtaggedstring(), opxmldecodeattstablevalues(), opxmlgetonevalue(), opxmlgetwindowexpansionstate(), opxmlgetwindowscrollstate(), opxmlpullcloudattribute(), opxmlpushattributes(), opxmlpushcloudtag(), opxmlpushoneattribute(), opxmlpushonetag(), opxmlpushonetaglong(), opxmlpushoutlinetext(), opxmlsetcommentandbreakpoint(), opxmlsetrefcon(), opxmlsetwindowexpansionstate(), opxmltooutline(), opxmltooutlineverb(), parseaddress(), pastecommand(), pictfunctionvalue(), pictverbinmemory(), pictverbmemorypack(), pictverbmemoryunpack(), pictverbpack(), popupmenuhit(), printappwindow(), processruncode(), processrunstringnoerrorclear(), processsleep(), processtimeslice(), processwake(), processyieldtoagents(), pullstringsuffix(), pushfunctioncall(), pushhandle(), pushhandleonhandle(), pushheapstring(), pushkernelcall(), pushmenuitem(), putbinaryverb(), putpictverb(), putresourcehandle(), putscrap(), puttextverb(), QueryCloseAllChildren(), QueryCloseChild(), quitapplication(), rangetostring(), readhandlestreamfieldtohandle(), readwholefileverb(), rebuildmenubarlist(), recalcObject(), replaceallinhandle(), replacevariabledialog(), resolvexcmdglobal(), runCard(), runcardscript(), runprocessvisit(), runworldwideurl(), saveappwindow(), saveasverb(), saveiacdata(), scriptbackgroundtask(), scriptbuildtree(), scriptcompiler(), scriptdebugerrordebugger(), scriptdoubleclick(), scriptfindhashnode(), scriptgetcode(), scriptnewprocess(), scriptpushtable(), scriptstringlookup(), scriptzoomdotparams(), scrollappwindow(), scrolltoappwindow(), searchfunctionvalue(), selectallcommand(), selectallverb(), selectwindowverb(), sendodoc(), sendtobackverb(), setactivetextobject(), setboundsverb(), setdirtyverb(), setfiledates(), setObjectValue(), settargetverb(), settextattributes(), settitleverb(), setwinvalue(), shellbringtofront(), shellcloseall(), shellcopyprintinfo(), shelleditcommand(), shellfontmenuchecker(), shellgetdatabase(), shellgetexternaldata(), shellgettargetdata(), shellhandlejugglerevent(), shellhandlekeystroke(), shellnewfile(), shellopen(), shellopendefaultfile(), shellopenfile(), shellpagesetup(), shellpushmajortype(), shellpushminortype(), shellrunwindowconfirmationscript(), shellsave(), shellsaveas(), shellsetsuperglobals(), shellsetwindowchanges(), shellsizewindow(), shellsizewindowhidden(), shellstyleverb(), shellsysverbwaitroutine(), shellupdateopenrecentmenu(), shellyield(), showhideverb(), statsfindwindow(), stringdeletechars(), stringfindreplace(), stringfunctionvalue(), stringtolist(), stringtoobjspec(), stringtoostype(), sysmemoryerror(), systemscripterrorroutine(), tableassignverb(), tableclienttitlepopuphit(), tablecopyroutine(), tablecopyverb(), tabledrivesymbolchange(), tableexporttextscrap(), tableexportvaluescrap(), tableexportwpscrap(), tablefind(), tablegetscrapvalue(), tablegetwpedittext(), tablekindrecalc(), tablemakenewvalue(), tablemoveandrenameverb(), tablemoveverb(), tablepacktable(), tablepacktotextvisit(), tablepastevalue(), tablesavesystemtable(), tablesetwpedittext(), tablesymbolchangedvisit(), tableunpackformats(), tableverbchildclose(), tableverbfind(), tableverbfindusedblocks(), tableverbinmemory(), tableverbmemorypack(), tableverbpack(), tableverbpacktotext(), tableverbsearch(), testtostring(), threadcallscriptverb(), threadfunctionvalue(), uisHandleEvent(), unpacksingleobject(), updateverb(), valuetodescriptor(), visitprocessthreads(), wakeprocessthread(), windoweditcommand(), windowopencommand(), windowsetchanges(), winregdelete(), winregdeletekey(), winregdeletevalue(), winregdowrite(), winreggettype(), winreggetvalue(), winregpullhkeyfromtext(), winregtypestringtotype(), winregwrite(), wpfunctionvalue(), wpgettexthandle(), wpinserthandle(), wpinserttext(), wppack(), wppacktext(), wpsetname(), wpsettext(), wpsettexthandle(), wptrimhiddentext(), wpverbfind(), wpverbinmemory(), wpverbmemorypack(), wpverbpack(), wpverbpackrecord(), wpverbpacktotext(), xmladdstring(), xmlcompile(), xmldecompile(), xmlfrontiervaltotaggedtext(), xmlfunctionvalue(), xmlgetpathaddress(), xxxfinderevent(), zoomappwindow(), and zoomverb().

struct { ... } foldercontains [static]
 

Referenced by foldercontainsalias(), and foldercontainsaliascallback().

FSSpec fsalias
 

Definition at line 25 of file appletfolder.c.

Referenced by addaliastospecialfolder(), foldercontainsalias(), foldercontainsaliascallback(), and systemfoldercontainsalias().

FSSpec* fsfile
 

Definition at line 23 of file appletfolder.c.

Referenced by foldercontainsalias(), and systemfoldercontainsalias().


Generated on Wed May 31 20:49:10 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6