home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / YellowBox / Kits / MiscTableScroll-138.1 / Examples / LazyScrollDir / DirArray.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-31  |  2.5 KB  |  76 lines

  1. #ifndef __DirArray_h
  2. #define __DirArray_h
  3. //=============================================================================
  4. //
  5. //  Copyright (C) 1995,1996,1997,1998 by Paul S. McCarthy and Eric Sunshine.
  6. //        Written by Paul S. McCarthy and Eric Sunshine.
  7. //                All Rights Reserved.
  8. //
  9. //    This notice may not be removed from this source code.
  10. //
  11. //    This object is included in the MiscKit by permission from the authors
  12. //    and its use is governed by the MiscKit license, found in the file
  13. //    "License.rtf" in the MiscKit distribution.  Please refer to that file
  14. //    for a list of all applicable permissions and restrictions.
  15. //
  16. //=============================================================================
  17. //-----------------------------------------------------------------------------
  18. // DirArray.h
  19. //
  20. //    An extensible array of directory entries.
  21. //
  22. //-----------------------------------------------------------------------------
  23. //-----------------------------------------------------------------------------
  24. // $Id: DirArray.h,v 1.4 98/03/30 09:12:24 sunshine Exp $
  25. // $Log:    DirArray.h,v $
  26. // Revision 1.4  98/03/30  09:12:24  sunshine
  27. // v18.1: Now correctly types totalBytes as unsigned long long; not size_t.
  28. // 
  29. // Revision 1.3  97/06/24  07:57:50  sunshine
  30. // v15.1: Removed unused dictionary keys.  Fixed bug: Wasn't taking sticky bit
  31. // into account when computing canToggleLock.
  32. // 
  33. // Revision 1.2  97/04/25  19:53:04  sunshine
  34. // v14.2: Ported to OPENSTEP 4.2 (prerelease) for Mach & NT.
  35. // Completely rewrote to use NSFileManager rather than Unix directory-scanning
  36. // functions so that it works on Windows NT.
  37. //-----------------------------------------------------------------------------
  38. #import <Foundation/NSDictionary.h>
  39. @class DirArray, NSMutableArray;
  40.  
  41. extern NSString* const DA_SHORT_NAME;
  42. extern NSString* const DA_LONG_NAME;
  43. extern NSString* const DA_SOFT_LINK;
  44. extern NSString* const DA_IS_DIRECTORY;
  45. extern NSString* const DA_IS_LOCKED;
  46. extern NSString* const DA_CAN_TOGGLE_LOCK;
  47.  
  48. @interface NSDictionary(DirArray)
  49. - (id)scaledImage;
  50. - (id)unscaledImage;
  51. @end
  52.  
  53. @interface DirArray : NSObject
  54.     {
  55.     NSString* name;
  56.     NSMutableArray* files;
  57.     unsigned long long totalBytes;
  58.     BOOL writable;
  59.     BOOL sticky;
  60.     NSString* username;
  61.     };
  62.  
  63. - (id)init;
  64. - (void)dealloc;
  65. - (unsigned int)count;
  66. - (id)objectAtIndex:(unsigned int)n;
  67. - (BOOL)loadPath:(NSString*)path showHidden:(BOOL)flag;
  68. - (unsigned long long)totalBytes;
  69. - (BOOL)writable;
  70. - (BOOL)sticky;
  71. - (NSString*)username;
  72.  
  73. @end
  74.  
  75. #endif // __DirArray_h
  76.