Projet Bee-Honey't  1.0
BTS SN 2019
mimepart_p.h
Aller à la documentation de ce fichier.
1 /*
2  * Copyright (C) 2015 Daniel Nicoletti <dantti12@gmail.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this library; see the file COPYING.LIB. If not, write to
16  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
20 #ifndef MIMEPART_P_H
21 #define MIMEPART_P_H
22 
23 #include "mimepart.h"
24 
25 class QFile;
26 namespace SimpleMail {
27 
29 {
30 public:
31  virtual ~MimePartPrivate();
32 
33  bool writeRaw(QIODevice *input, QIODevice *out);
34  bool writeBase64(QIODevice *input, QIODevice *out);
35  bool writeQuotedPrintable(QIODevice *input, QIODevice *out);
36 
37  QByteArray header;
38  QIODevice *contentDevice = nullptr;
39 
40  QByteArray contentId;
41  QByteArray contentName;
42  QByteArray contentType;
43  QByteArray contentCharset;
44  QByteArray contentBoundary;
45 
48 };
49 
50 }
51 
52 #endif // MIMEPART_P_H
53 
Definition: mimecontentformatter.h:27
QByteArray header
Definition: mimepart_p.h:37
QByteArray contentCharset
Definition: mimepart_p.h:43
Definition: mimepart.h:36
virtual ~MimePartPrivate()
Definition: mimepart.cpp:331
Encoding
Definition: mimepart.h:35
QByteArray contentBoundary
Definition: mimepart_p.h:44
bool writeBase64(QIODevice *input, QIODevice *out)
Definition: mimepart.cpp:354
bool writeRaw(QIODevice *input, QIODevice *out)
Definition: mimepart.cpp:336
MimePart::Encoding contentEncoding
Definition: mimepart_p.h:47
bool writeQuotedPrintable(QIODevice *input, QIODevice *out)
Definition: mimepart.cpp:375
QIODevice * contentDevice
Definition: mimepart_p.h:38
MimeContentFormatter formatter
Definition: mimepart_p.h:46
QByteArray contentType
Definition: mimepart_p.h:42
Definition: mimepart_p.h:28
Definition: emailaddress.h:26
QByteArray contentName
Definition: mimepart_p.h:41
QByteArray contentId
Definition: mimepart_p.h:40