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 ( )

◆ ~fileInfo()

~fileInfo ( )

Member Function Documentation

◆ getCreationDate()

const datetime & getCreationDate ( ) const

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

Returns
file creation time

◆ getFilename()

const word & getFilename ( ) const

Return the value of the 'filename' property.

Returns
file name

◆ getModificationDate()

const datetime & getModificationDate ( ) const

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

Returns
file modification time

◆ getReadDate()

const datetime & getReadDate ( ) const

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

Returns
file access time

◆ getSize()

size_t getSize ( ) const

Return the value of the 'size' property.

Returns
file size

◆ hasCreationDate()

bool hasCreationDate ( ) const

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

Returns
true if the 'creation-date' property is set, false otherwise

◆ hasFilename()

bool hasFilename ( ) const

Check whether the 'filename' property is present.

Returns
true if the 'filename' property is set, false otherwise

◆ hasModificationDate()

bool hasModificationDate ( ) const

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

Returns
true if the 'modification-date' property is set, false otherwise

◆ hasReadDate()

bool hasReadDate ( ) const

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

Returns
true if the 'read-date' property is set, false otherwise

◆ hasSize()

bool hasSize ( ) const

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

Returns
true if the 'size' property is set, false otherwise

◆ setCreationDate()

void setCreationDate ( const datetime date)

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

Parameters
datefile creation time

◆ setFilename() [1/2]

void setFilename ( const string name)

Set the value of the 'filename' property.

Parameters
namefile name

Referenced by fileAttachment::fileAttachment().

◆ setFilename() [2/2]

void setFilename ( const word name)

Set the value of the 'filename' property.

Parameters
namefile name

◆ setModificationDate()

void setModificationDate ( const datetime date)

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

Parameters
datefile modification time

◆ setReadDate()

void setReadDate ( const datetime date)

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

Parameters
datefile access time

◆ setSize()

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: