Projet Bee-Honey't  1.0
BTS SN 2019
mimemultipart.h
Aller à la documentation de ce fichier.
1 /*
2  Copyright (c) 2011-2012 - Tőkés Attila
3  Copyright (C) 2015 Daniel Nicoletti <dantti12@gmail.com>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  See the LICENSE file for more details.
16 */
17 
18 #ifndef MIMEMULTIPART_H
19 #define MIMEMULTIPART_H
20 
21 #include <QtCore/QList>
22 
23 #include "mimepart.h"
24 
25 #include "smtpexports.h"
26 
27 namespace SimpleMail {
28 
30 {
31 public:
33  Mixed = 0, // RFC 2046, section 5.1.3
34  Digest = 1, // RFC 2046, section 5.1.5
35  Alternative = 2, // RFC 2046, section 5.1.4
36  Related = 3, // RFC 2387
37  Report = 4, // RFC 6522
38  Signed = 5, // RFC 1847, section 2.1
39  Encrypted = 6 // RFC 1847, section 2.2
40  };
41 
42  MimeMultiPart(const MultiPartType type = Related);
43  virtual ~MimeMultiPart();
44 
45  void setMimeType(const MultiPartType type);
46  MultiPartType mimeType() const;
47 
48  QList<MimePart *> parts() const;
49  void addPart(MimePart *part);
50 
51 protected:
52  virtual bool writeData(QIODevice *device) Q_DECL_FINAL;
53 };
54 
55 }
56 
57 #endif // MIMEMULTIPART_H
#define SMTP_EXPORT
Definition: smtpexports.h:7
MultiPartType
Definition: mimemultipart.h:32
Definition: mimemultipart.h:29
Definition: mimepart.h:32
Definition: emailaddress.h:26