重新改进支持Qt4.6-Qt6.1

This commit is contained in:
feiyangqingyun
2021-05-30 15:45:43 +08:00
parent 71acdd7151
commit b2ca4d05da
286 changed files with 2571 additions and 1965 deletions

View File

@@ -0,0 +1,37 @@
#ifndef MIMEMULTIPART_H
#define MIMEMULTIPART_H
#include "mimepart.h"
class MimeMultiPart : public MimePart
{
Q_OBJECT
public:
enum MultiPartType {
Mixed = 0, // RFC 2046, section 5.1.3
Digest = 1, // RFC 2046, section 5.1.5
Alternative = 2, // RFC 2046, section 5.1.4
Related = 3, // RFC 2387
Report = 4, // RFC 6522
Signed = 5, // RFC 1847, section 2.1
Encrypted = 6 // RFC 1847, section 2.2
};
MimeMultiPart(const MultiPartType type = Related);
~MimeMultiPart();
void setMimeType(const MultiPartType type);
MultiPartType getMimeType() const;
const QList<MimePart *> &getParts() const;
void addPart(MimePart *part);
virtual void prepare();
protected:
QList<MimePart *> parts;
MultiPartType type;
};
#endif // MIMEMULTIPART_H