|
Public Member Functions |
| | CAdvFileAttr (CFile *file=NULL) |
|
| ~CAdvFileAttr (void) |
| | Check if there is a worker thread, signal it to terminate and wait.
|
| bool | MakeSparse (bool forceScan=false) |
| bool | MakeCompressed (bool makeCompressed=true) |
| void | SetFilePtr (CFile *file=NULL) |
| bool | LoadAttributes (void) |
|
void | Cancel (void) |
| | Tell the thread to terminate by nullifying its structure pointer and pulsing its Cancel Event.
|
|
uint32 | GetTempFSCappabilities (void) |
| | Returns the partfile's file system capabilities.
|
|
uint32 | GetFileAttributes (void) |
| | Returns the partfile's attributes.
|
|
bool | isSparse (void) |
| | Returns true if the file is Sparse.
|
|
bool | isCompressed (void) |
| | Returns true if the file is Compressed.
|
|
bool | isFSSparse (void) |
| | Returns true if the file system supports Sparse files.
|
|
bool | isFSCompressed (void) |
| | Returns true if the file system supports Compressed files.
|
|
bool | isBusy (void) |
| | Returns true if the worker thread is running.
|
|
bool | isCancel (void) |
| | Returns true if the worker thread is running.
|
|
void | ThreadWork (void) |
| | Dispatches the queued workloads.
|
Private Types |
| enum | { TOps_Nothing,
TOps_Compress,
TOps_Sparse,
TOps_Cancel
} |
| | Tells ThreadWork what to do.
|
Private Member Functions |
| bool | WorkSparse (void) |
| void | WorkCompress (void) |
|
void | QueueDelCB (void) |
| | Workload removal from queue callback.
|
Private Attributes |
|
enum CAdvFileAttr:: { ... } | m_LastOp |
| | Tells ThreadWork what to do.
|
|
uint32 | m_FileAttributes |
| | Holds the file attributes from the last time attributes have been loaded.
|
|
uint32 | m_TempFSCapabilities |
| | Holds the file system capabilities from the last time capabilities have been loaded.
|
|
CFile * | m_pCFile |
| | Pointer to the file that goes with this instance.
|
Static Private Attributes |
|
CWorkQueue | m_WorkQueue |
| | Counts the number of threads that have been started.
|