File: programming/cocoa/Filie.zip/Filie/Filie/UKFSDataSource.h


/* =============================================================================
    PROJECT:    Filie
    FILE:       UKFSDataSource.h
    
    COPYRIGHT:  (c) 2004 by M. Uli Kusterer, all rights reserved.
    
    AUTHORS:    M. Uli Kusterer - UK
    
    LICENSES:   GNU GPL
    
    REVISIONS:
        2004-12-10  UK  Created.
   ========================================================================== */
 
// -----------------------------------------------------------------------------
//  Headers:
// -----------------------------------------------------------------------------
 
#import <Cocoa/Cocoa.h>
 
 
// -----------------------------------------------------------------------------
//  Protocols:
// -----------------------------------------------------------------------------
 
/* All objects that add a new source of files to Filie must implement this
    protocol. It basically allows an FSItemController to list the files this
    object represents. E.g. if there was an UKFTPDataSource, you'd hand
    it an ftp:// URL and it would list the files on this server.
    
    You basically use this like a UKDirectoryEnumerator. */// Quickly get an icon to show for this item:
// More involved method for getting the correct icon for an item. May take some processing:
// Protocol the delegate of a UKFSDataSource must comply to:
// There'll be a short delay. Delegate should take the opportunity to update its progress display.
// If the data source supports icon previews, it will use this to ask the delegate whether it should return them as the icons:
 

This code uses the PclZip Zip File reading code, which is subject to the GNU LGPL. It also uses the GeSHi syntax highlighter, subject to the GPL. Ask if you want this for your own web site, it's free.