MeVisLabToolboxReference
macx::FileManager Class Reference

File operations. More...

#include <macFileManager.h>

List of all members.

Public Types

enum  FMFolderType {
  LocalApplicationSupportFolder = 0x000, LocalPreferencesFolderType, LocalCachesFolderType, UserDocumentsFolder = 0x100,
  UserDesktopFolder, UserDownloadsFolder, UserApplicationSupportFolder, UserPreferencesFolderType,
  UserCachesFolderType
}
 Specifies the different folder types. More...

Static Public Member Functions

static std::string locateFolder (FMFolderType type)
 Obtains location information for system-related directories (UTF8)
static bool isFilePackageAtPath (const std::string &path)
 Determines whether the specified path is a file package (UTF8)
static bool moveFileToTrash (const std::string &file)
 The file is moved to the trash folder on the volume containing the file. Returns 'true' if successful (UTF8)
static bool showFileInFileSystemBrowser (const std::string &file)
 Activates the Finder and opens one window selecting the specified file.
static std::string getItemUTI (const std::string &path)
 Returns the Uniform Type Identifier (UTI) of this filesystem item or an empty string (UTF8)
static bool itemConformsToUTI (const std::string &path, const std::string &uti)
 Returns 'true' if the given filesystem item conforms to the specified Uniform Type Identifier (UTI)

Detailed Description

File operations.

Definition at line 16 of file macFileManager.h.


Member Enumeration Documentation

Specifies the different folder types.

Enumerator:
LocalApplicationSupportFolder 

Specifies the Application Support folder. This folder contains code and data files needed by third-party applications.

LocalPreferencesFolderType 

Specifies the Preferences folder.

LocalCachesFolderType 

Specifies the Caches folder (location of discardable cache files)

UserDocumentsFolder 

Specifies the Documents folder.

UserDesktopFolder 

Specifies the Desktop folder.

UserDownloadsFolder 

Specifies the Downloads folder.

UserApplicationSupportFolder 

Specifies the Application Support folder. This folder contains code and data files needed by third-party applications.

UserPreferencesFolderType 

Specifies the Preferences folder.

UserCachesFolderType 

Specifies the Caches folder (location of discardable cache files)

Definition at line 21 of file macFileManager.h.


Member Function Documentation

static std::string macx::FileManager::getItemUTI ( const std::string &  path) [static]

Returns the Uniform Type Identifier (UTI) of this filesystem item or an empty string (UTF8)

static bool macx::FileManager::isFilePackageAtPath ( const std::string &  path) [static]

Determines whether the specified path is a file package (UTF8)

static bool macx::FileManager::itemConformsToUTI ( const std::string &  path,
const std::string &  uti 
) [static]

Returns 'true' if the given filesystem item conforms to the specified Uniform Type Identifier (UTI)

static std::string macx::FileManager::locateFolder ( FMFolderType  type) [static]

Obtains location information for system-related directories (UTF8)

static bool macx::FileManager::moveFileToTrash ( const std::string &  file) [static]

The file is moved to the trash folder on the volume containing the file. Returns 'true' if successful (UTF8)

static bool macx::FileManager::showFileInFileSystemBrowser ( const std::string &  file) [static]

Activates the Finder and opens one window selecting the specified file.

If the file item is a directory show the directory contents in Finder. Returns 'true' if successful (UTF8)


The documentation for this class was generated from the following file: