Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Please Vote! Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

# SFlags

  Returns flags for disk objects.

[ Mac | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

## Quick Index

  DESCRIPTION

## Class Summary

class SFlags
{
public:

  static ErrCode getDiskVolumeFlags( long vRef, unsigned long *flags );
  static ErrCode setDiskVolumeFlags( long vRef, unsigned long flagMask, unsigned long newFlags );
  static ErrCode getDiskVolumeReadFlagsMask( long vRef, unsigned long *masks );
  static ErrCode getDiskVolumeWriteFlagsMask( long vRef, unsigned long *masks );
  static ErrCode getDiskFileFlags( const CFSpec *theSpec, unsigned long *flags );
  static ErrCode setDiskFileFlags( const CFSpec *theSpec, unsigned long flagMask, unsigned long newFlags );
  static ErrCode getDiskFileReadFlagsMask( const CFSpec *theSpec, unsigned long *masks );
  static ErrCode getDiskFileWriteFlagsMask( const CFSpec *theSpec, unsigned long *masks );
  static ErrCode isShared( const CFSpec *theSpec, long finderFlags, long attribs, long type, BOOL *bIsShared );
  enum eDiskVolumeFlags;
  Unnamed_Enum UEnum_SFlags_h_1;

protected:

}; // SFlags

Back to the top of SFlags

### DESCRIPTION

Returns flags for disk objects.

Back to the top of SFlags

### ErrCode getDiskVolumeFlags( long vRef, unsigned long *flags );

Get flags associated with a volume.

    	static	ErrCode getDiskVolumeFlags( long vRef, unsigned long *flags );

Back to the top of SFlags

### ErrCode setDiskVolumeFlags( long vRef, unsigned long flagMask, unsigned long newFlags );

Set flags associated with a volume.

    	static	ErrCode setDiskVolumeFlags( long vRef, unsigned long flagMask, unsigned long newFlags );

Back to the top of SFlags

### ErrCode getDiskVolumeReadFlagsMask( long vRef, unsigned long *masks );

Get the mask indicating which bits of 'getDiskVolumeFlags' are significant.

    	static	ErrCode getDiskVolumeReadFlagsMask( long vRef, unsigned long *masks );

Back to the top of SFlags

### ErrCode getDiskVolumeWriteFlagsMask( long vRef, unsigned long *masks );

Get the mask indicating which bits of 'setDiskVolumeFlags' are significant.

    	static	ErrCode getDiskVolumeWriteFlagsMask( long vRef, unsigned long *masks );

Back to the top of SFlags

### ErrCode getDiskFileFlags( const CFSpec *theSpec, unsigned long *flags );

Get flags associated with a file or folder.

    	static	ErrCode getDiskFileFlags( const CFSpec *theSpec, unsigned long *flags );

Back to the top of SFlags

### ErrCode setDiskFileFlags( const CFSpec *theSpec, unsigned long flagMask, unsigned long newFlags );

Set flags associated with a file or folder.

    	static	ErrCode setDiskFileFlags( const CFSpec *theSpec, unsigned long flagMask, unsigned long newFlags );

Back to the top of SFlags

### ErrCode getDiskFileReadFlagsMask( const CFSpec *theSpec, unsigned long *masks );

Get the mask indicating which bits of 'getDiskFileFlags' are significant.

    	static	ErrCode getDiskFileReadFlagsMask( const CFSpec *theSpec, unsigned long *masks );

Back to the top of SFlags

### ErrCode getDiskFileWriteFlagsMask( const CFSpec *theSpec, unsigned long *masks );

Get the mask indicating which bits of 'setDiskFileFlags' are significant.

    	static	ErrCode getDiskFileWriteFlagsMask( const CFSpec *theSpec, unsigned long *masks );

Back to the top of SFlags

### ErrCode isShared( const CFSpec *theSpec, long finderFlags, long attribs, long type, BOOL *bIsShared );

Indicates whether the given file/dir is "shared". For .exe's, "shared" means the kIsShared finder flag is set For regular files, the status of the containing folder is checked. For folders, whether the 3rd bit of ioDirAttrib is set

    	static	ErrCode	isShared( const CFSpec *theSpec, long finderFlags, long attribs, long type, BOOL *bIsShared );

Back to the top of SFlags

### enum eDiskVolumeFlags;

Flags for DiskVolume's.

    	enum {
    		kMaskCaseIsPreserved = 0x01,
    		kMaskCaseSensitive = 0x02,
    		kMaskUnicodeSupported = 0x04,
    		kMaskFilesCompressed = 0x08,
    		kMaskVolumeCompressed = 0x10,
    		kMaskRemovable = 0x20,
    		kMaskFixed = 0x40,
    		kMaskRemote = 0x80,
    		kMaskCDROM = 0x100,
    		kMaskRAM = 0x200,
    		kMaskSystem = 0x400,
    		kStdDiskVolumeReadFlagsMask = ( kMaskCaseIsPreserved | kMaskCaseSensitive |
    										kMaskRemovable | kMaskFixed |
    										kMaskRemote | kMaskCDROM |
    										kMaskSystem ),
    		kStdDiskVolumeWriteFlagsMask = 0
    	} eDiskVolumeFlags;

Back to the top of SFlags

### Unnamed_Enum UEnum_SFlags_h_1;

Flags for DiskFile's (files or folders).

    	enum {
    		kFileAttributes_FILE_EXECUTABLE = 0x01,
    		kFileAttributes_FILE_DIR = 0x02,
    		kFileAttributes_FILE_HIDDEN = 0x04,
    		kFileAttributes_FILE_STATIONERY = 0x08,
    		kFileAttributes_FILE_HAS_BNDL = 0x10,
    		kFileAttributes_FILE_BEEN_INITED = 0x20,
    		kFileAttributes_FILE_NO_INITS = 0x40,
    		kFileAttributes_FILE_SHARED = 0x80,
    		kFileAttributes_FILE_NAME_LOCKED = 0x100,
    		kFileAttributes_FILE_CUSTOM_ICON = 0x200,
    		kFileAttributes_FILE_SYSTEM = 0x400,
    		kFileAttributes_FILE_ARCHIVE = 0x800,
    		kFileAttributes_FILE_DEVICE = 0x1000,
    		kFileAttributes_FILE_TEMP = 0x2000,
    		kFileAttributes_FILE_SPARSE = 0x4000,
    		kFileAttributes_FILE_REPARSEPOINT = 0x8000,
    		kFileAttributes_FILE_COMPRESSED = 0x10000,
    		kFileAttributes_FILE_OFFLINE = 0x20000,
    		kFileAttributes_FILE_NOT_CONTENT_INDEXED = 0x40000,
    		kFileAttributes_FILE_ENCRYPTED = 0x80000,
    		kFileAttributes_FILE_READONLY = 0x100000,

Back to the top of SFlags

## All Members

public:
  static ErrCode getDiskVolumeFlags( long vRef, unsigned long *flags );
  static ErrCode setDiskVolumeFlags( long vRef, unsigned long flagMask, unsigned long newFlags );
  static ErrCode getDiskVolumeReadFlagsMask( long vRef, unsigned long *masks );
  static ErrCode getDiskVolumeWriteFlagsMask( long vRef, unsigned long *masks );
  static ErrCode getDiskFileFlags( const CFSpec *theSpec, unsigned long *flags );
  static ErrCode setDiskFileFlags( const CFSpec *theSpec, unsigned long flagMask, unsigned long newFlags );
  static ErrCode getDiskFileReadFlagsMask( const CFSpec *theSpec, unsigned long *masks );
  static ErrCode getDiskFileWriteFlagsMask( const CFSpec *theSpec, unsigned long *masks );
  static ErrCode isShared( const CFSpec *theSpec, long finderFlags, long attribs, long type, BOOL *bIsShared );
  enum eDiskVolumeFlags;
  Unnamed_Enum UEnum_SFlags_h_1;
protected:

Back to the top of SFlags

## Ancestors

Class does not inherit from any other class.

Back to the top of SFlags

## Descendants

Class is not inherited by any others.

Back to the top of SFlags

Generated from source by the Cocoon utilities on Mon May 28 10:11:10 2001 .

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.