Projet Bee-Honey't  1.0
BTS SN 2019
mimecontentformatter.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 MIMECONTENTFORMATTER_H
19 #define MIMECONTENTFORMATTER_H
20 
21 #include <QByteArray>
22 
23 #include "smtpexports.h"
24 
25 namespace SimpleMail {
26 
28 {
29 public:
30  explicit MimeContentFormatter(int max_length = 76);
31 
32  void setMaxLength(int l);
33  int maxLength() const;
34 
35  QByteArray format(const QByteArray &content, int &chars) const;
36  QByteArray formatQuotedPrintable(const QByteArray &content, int &chars) const;
37 
38 protected:
40 };
41 
42 }
43 
44 #endif // MIMECONTENTFORMATTER_H
Definition: mimecontentformatter.h:27
int max_length
Definition: mimecontentformatter.h:39
#define SMTP_EXPORT
Definition: smtpexports.h:7
Definition: emailaddress.h:26