home *** CD-ROM | disk | FTP | other *** search
/ Openstep 4.2 (Developer) / Openstep Developer 4.2.iso / NextLibrary / PrivateFrameworks / ProjectBuilderSCM.framework / Versions / A / Headers / SCMFileStatus.h < prev   
Encoding:
Text File  |  1997-01-24  |  1.7 KB  |  65 lines

  1. //--------------------------------------------------------------------------
  2. //  Copyright (c) 1996 Next Software, Inc., All Rights Reserved
  3. //
  4. //  No part of this code may be reproduced in any form, compiled
  5. //  or source code, nor used for any purpose without the express
  6. //  written permission of the copyright holder.
  7. //
  8. //  $Id: SCMFileStatus.h,v 1.1 1997/01/24 20:21:21 mmonegan Exp $
  9. //--------------------------------------------------------------------------
  10.  
  11. #import <AppKit/AppKit.h>
  12.  
  13. @class SCMAdaptor;
  14.  
  15. @interface SCMFileStatus : NSObject
  16. {
  17.     NSString        *filename;
  18.     NSString        *wrapperName;
  19.     SCMAdaptor      *adaptor;
  20.     int             status;
  21. }
  22.  
  23. - (id) initWithFilename: (NSString *) filename adaptor: (SCMAdaptor *) adaptor;
  24. + (id) fileStatusWithFilename: (NSString *) filename
  25.     adaptor: (SCMAdaptor *) adaptor;
  26.  
  27. - (NSString *) filename;
  28. - (NSString *) status;
  29. - (SCMAdaptor *) adaptor;
  30.  
  31. - (NSComparisonResult) compare: (SCMFileStatus *) otherObject;
  32.  
  33. - (void) restoreFromDictionary: (NSDictionary *) dict;
  34. - (NSMutableDictionary *) objectAsDictionary;
  35.  
  36. - (NSString *) wrapperName;
  37.  
  38. @end
  39.  
  40. @interface SCMFileStatus (Private)
  41.  
  42. - (void) setStatusOr: (int) bits;
  43. - (void) setStatusAnd: (int) bits;
  44. - (void) setStatusBits: (int) value;
  45. - (int) statusBits;
  46.  
  47. @end
  48.  
  49. // statuses
  50.  
  51. #define SCMS_NO_BITS            0x0000
  52. #define SCMS_ALL_BITS           0xffff
  53.  
  54. #define SCMS_NEEDS_UPDATE       0x0001
  55. #define SCMS_ADDED              0x0002
  56. #define SCMS_REMOVED            0x0004
  57. #define SCMS_MODIFIED           0x0010
  58. #define SCMS_LOCKED             0x0020
  59. #define SCMS_LOCKED_BY_OTHERS      0x0040
  60. #define SCMS_CONFLICT           0x0100
  61. #define SCMS_UNKNOWN            0x0200
  62. #define SCMS_HIDDEN             0x0400
  63. #define SCMS_WRAPPER            0x1000
  64.  
  65.