diff options
Diffstat (limited to 'vmime/fileAttachment.hpp')
| -rw-r--r-- | vmime/fileAttachment.hpp | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/vmime/fileAttachment.hpp b/vmime/fileAttachment.hpp index 0662c8ec..1516a9da 100644 --- a/vmime/fileAttachment.hpp +++ b/vmime/fileAttachment.hpp @@ -41,9 +41,13 @@ class fileAttachment : public defaultAttachment { public: - fileAttachment(const string& filename, const mediaType& type); - fileAttachment(const string& filename, const mediaType& type, const text& desc); - fileAttachment(const string& filename, const mediaType& type, const text& desc, const encoding& enc); + fileAttachment(const string& filepath, const mediaType& type); + fileAttachment(const string& filepath, const mediaType& type, const text& desc); + fileAttachment(const string& filepath, const mediaType& type, const text& desc, const encoding& enc); + + fileAttachment(ref <utility::inputStream> is, const word& filename, const mediaType& type); + fileAttachment(ref <utility::inputStream> is, const word& filename, const mediaType& type, const text& desc); + fileAttachment(ref <utility::inputStream> is, const word& filename, const mediaType& type, const text& desc, const encoding& enc); /** Stores information about a file attachment. */ @@ -65,7 +69,7 @@ public: * * @return file name */ - const string& getFilename() const; + const word& getFilename() const; /** Set the value of the 'filename' property. * @@ -73,6 +77,12 @@ public: */ void setFilename(const string& name); + /** Set the value of the 'filename' property. + * + * @param name file name + */ + void setFilename(const word& name); + /** Check whether the 'creation-date' property is present. * * @return true if the 'creation-date' property is set, @@ -151,7 +161,7 @@ public: private: - string* m_filename; + word* m_filename; unsigned int* m_size; datetime* m_creationDate; datetime* m_modifDate; @@ -163,7 +173,8 @@ public: private: - void setData(const string& filename); + void setData(const string& filepath); + void setData(ref <utility::inputStream> is); fileInfo m_fileInfo; |
