VMime
fileAttachment::fileInfo Class Reference

Public Member Functions

 fileInfo ()
 
 ~fileInfo ()
 
bool hasFilename () const
 
const wordgetFilename () const
 
void setFilename (const string &name)
 
void setFilename (const word &name)
 
bool hasCreationDate () const
 
const datetimegetCreationDate () const
 
void setCreationDate (const datetime &date)
 
bool hasModificationDate () const
 
const datetimegetModificationDate () const
 
void setModificationDate (const datetime &date)
 
bool hasReadDate () const
 
const datetimegetReadDate () const
 
void setReadDate (const datetime &date)
 
bool hasSize () const
 
size_t getSize () const
 
void setSize (const size_t size)
 

Detailed Description

Stores information about a file attachment.

Constructor & Destructor Documentation

fileInfo ( )
~fileInfo ( )

Member Function Documentation

const datetime & getCreationDate ( ) const

Return the value of the 'creation-date' property.

Returns
file creation time
const word & getFilename ( ) const

Return the value of the 'filename' property.

Returns
file name
const datetime & getModificationDate ( ) const

Return the value of the 'modification-date' property.

Returns
file modification time
const datetime & getReadDate ( ) const

Return the value of the 'read-date' property.

Returns
file access time
size_t getSize ( ) const

Return the value of the 'size' property.

Returns
file size
bool hasCreationDate ( ) const

Check whether the 'creation-date' property is present.

Returns
true if the 'creation-date' property is set, false otherwise
bool hasFilename ( ) const

Check whether the 'filename' property is present.

Returns
true if the 'filename' property is set, false otherwise
bool hasModificationDate ( ) const

Check whether the 'modification-date' property is present.

Returns
true if the 'modification-date' property is set, false otherwise
bool hasReadDate ( ) const

Check whether the 'read-date' property is set.

Returns
true if the 'read-date' property is set, false otherwise
bool hasSize ( ) const

Check whether the value of the 'size' property is set.

Returns
true if the 'size' property is set, false otherwise
void setCreationDate ( const datetime date)

Set the value of the 'creation-date' property.

Parameters
datefile creation time
void setFilename ( const string name)

Set the value of the 'filename' property.

Parameters
namefile name

Referenced by fileAttachment::fileAttachment().

void setFilename ( const word name)

Set the value of the 'filename' property.

Parameters
namefile name
void setModificationDate ( const datetime date)

Set the value of the 'modification-date' property.

Parameters
datefile modification time
void setReadDate ( const datetime date)

Set the value of the 'read-date' property.

Parameters
datefile access time
void setSize ( const size_t  size)

Set the value of the 'size' property.

Parameters
sizefile size

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