1
//=============================================================================
3
// Contents: Declarations for MessageWithAttachments
4
// Maintainer: Doug Sauder <dwsauder@fwb.gulf.net>
5
// WWW: http://www.fwb.gulf.net/~dwsauder/mimepp.html
7
// Copyright (c) 1996, 1997 Douglas W. Sauder
8
// All rights reserved.
10
// IN NO EVENT SHALL DOUGLAS W. SAUDER BE LIABLE TO ANY PARTY FOR DIRECT,
11
// INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
12
// THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF DOUGLAS W. SAUDER
13
// HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
15
// DOUGLAS W. SAUDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT
16
// NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
17
// PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS"
18
// BASIS, AND DOUGLAS W. SAUDER HAS NO OBLIGATION TO PROVIDE MAINTENANCE,
19
// SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
21
//=============================================================================
32
class MessageWithAttachments : public MultipartMessage {
36
MessageWithAttachments();
37
virtual ~MessageWithAttachments();
39
void SetText(const DwString& aStr);
40
int NumberOfAttachments() const;
41
void Attach7bitFile(const char* aFilename, int aType=DwMime::kTypeText,
42
int aSubtype=DwMime::kSubtypePlain);
43
void Attach8bitFile(const char* aFilename, int aType=DwMime::kTypeText,
44
int aSubtype=DwMime::kSubtypePlain);
45
void AttachBinaryFile(const char* aFilename, int aType=DwMime::kTypeApplication,
46
int aSubtype=DwMime::kSubtypeOctetStream);
50
int PutFileInString(const char* aFilename, DwString& str);