summaryrefslogtreecommitdiff
path: root/src/lib/emailer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-07 23:31:07 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-09 13:45:00 +0100
commit2852855f19fadb6d7e43282e545a0bcaedc1a3f7 (patch)
tree91618c9da669ad68733e8b12c8fcf555a3e848c3 /src/lib/emailer.h
parentfa8bdd16e1b3742e921b928708614613b6a21036 (diff)
Tweak naming of KDM emails and attachments.
Diffstat (limited to 'src/lib/emailer.h')
-rw-r--r--src/lib/emailer.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/emailer.h b/src/lib/emailer.h
index 4b4d1f6f7..9e6fca5b0 100644
--- a/src/lib/emailer.h
+++ b/src/lib/emailer.h
@@ -27,7 +27,7 @@ public:
void add_cc (std::string cc);
void add_bcc (std::string bcc);
- void add_attachment (boost::filesystem::path attachment, std::string);
+ void add_attachment (boost::filesystem::path file, std::string name, std::string mime_type);
void send (boost::shared_ptr<Job> job);
@@ -44,7 +44,14 @@ private:
std::string _body;
std::list<std::string> _cc;
std::list<std::string> _bcc;
- std::list<std::pair<boost::filesystem::path, std::string> > _attachments;
+
+ struct Attachment {
+ boost::filesystem::path file;
+ std::string name;
+ std::string mime_type;
+ };
+
+ std::list<Attachment> _attachments;
std::string _email;
size_t _offset;
boost::scoped_array<char> _notes_buffer;