On Tue, Jan 22, 2002, Adam McDaniel wrote: > What I was thinking about is storing the actual pdb created by the > parser on the ext. memory and keep it there. Any cache or other > files related to the main pdb would be stored on internal memeory.
Well, I should have been more specific im my message. When I wrote "store" I wasn't talking about the Plucker document or associated meta database, but the "static" info stored in the PlkrDocList meta database, i.e. info about the name, size, category, etc ;-) Right now, I think it should be possible to add only two new items to this database, one that will keep track of the location of the document, 0 - RAM, 1 - /Palm/Programs/Plucker, etc. and one to store the filename in (can be different from the document name.) If we don't store the filename it will be quite a PITA to find the document, since we would have to open every document to find the wanted document. The volume reference has to be stored at runtime. When the user selects a document in the Document Library we know the volref + filename + path (VFS) or document name + cardNo (RAM), which makes it possible for us to find and open/delete/rename/beam the Plucker document. > Initially I was thinking about having a directory list of some common > locations where pdb files could exist. ie, /Palm/Launcher, > /Palm/Programs/Plucker, /Palm/Programs/MSFiles (memory stick specific). That is what I also intend to use (and later it should also be possible for the user to enter their own directory.) > When running InitDocList(), it would go through and search these > directories to see if they exist, if they do, find any files with the > Plkr creatorId, and Data documentId. The code I have today will traverse the directory and also any subdirectories on all mounted volumes (e.g. the Handera has both a CF and SD slot.) To make the file handling code simpler I will probably remove the possibility to traverse subdirs. > I guess the idea behind his is to include proper VFS support for OS4, > and to teach myself the API Go for it. Altough, I have finished major parts of the VFS support in the viewer there will always be room for improvements ;-) /Mike
