CWLocalCacheManager


Discussion

This class provides trivial extensions to the CWCacheManager superclass for CWLocalFolder instances.

Superclass

CWCacheManager

Declared In

CWLocalCacheManager.h



Methods

-fileSize
-initWithPath:folder:
-modificationDate
-readAllMessages
-readMessagesInRange:
-setFileSize:
-setModificationDate:
-writeRecord:

fileSize


- (unsigned int) fileSize; 
Return Value

The size.

Discussion

This method is used to obtain the size of the associated CWLocalFolder's mailbox.


initWithPath:folder:


- (id) initWithPath: (NSString *) thePath folder: (id) theFolder; 
Parameters
thePath

The path where the cache file is.

theFolder

The CWLocalFolder instance to be used together with the cache file.

Return Value

A CWLocalCacheManager instance, nil otherwise.

Discussion

This is the designated initialization method for the local cache manager.


modificationDate


- (NSDate *) modificationDate; 
Return Value

The date.

Discussion

This method is used to obtain the modification date of the receiver. That is, the last time the cache was written to disk.


readAllMessages


- (void) readAllMessages; 

readMessagesInRange:


- (void) readMessagesInRange: (NSRange) theRange; 

setFileSize:


- (void) setFileSize: (unsigned int) theSize; 
Parameters
theSize

The new size value.

Discussion

This method is used to set the size of the associated LocalFolder's mailbox. Normally you should not invoke this method directly.


setModificationDate:


- (void) setModificationDate: (NSDate *) theDate; 
Parameters
theDate

The new date value.

Discussion

This method is used to set the modification date of the receiver. Normally you should not invoke this method directly.


writeRecord:


- (void) writeRecord: (cache_record *) theRecord; 
Parameters
theRecord

The record to write.

Discussion

This method is used to write a cache record to disk.


Member Data

_folder
_modification_date
_size

_folder


private

CWFolder *_folder;

_modification_date


private

unsigned int _modification_date;

_size


private

unsigned int _size;