diff options
| author | Pekka Vuorela <pvuorela@iki.fi> | 2025-09-24 10:51:30 +0300 |
|---|---|---|
| committer | Pekka Vuorela <pvuorela@iki.fi> | 2025-09-26 18:33:52 +0300 |
| commit | 04f7226d3b89441ffc1c49d1ae393b8904d48db5 (patch) | |
| tree | 9886b0cacf2119b24043570646ac67eebc4cf9a3 /examples/qtmail/emailcomposer.cpp | |
| parent | cfd671150df2a38c918a8c95ac8562834e78bd93 (diff) | |
Deprecate Fwd classes in favor of just introducing enums in real classes
The Fwd classes were inherited by the actual classes, allowing to #include
only the fwd and not the bigger real class header. Such a compilation time
micro optimization shouldn't really be worth complicating the API.
Thus just moved the enum content to actual classes.
For some backwards compatibility made the Fwd classes typedeffed to the
real ones.
Crypto side didn't even have a proper class, only the Fwd and suppose
all the usage of the code just did include anyway for the whole crypto api.
The QMailFolderFwd::PredefinedFolderId was having a cyclic dependency
when moved to QMailFolder: QMailFolderId ctor variant was depending on
it and QMailFolder was depending on the Id. Moved the predefined id to
the Id class which feels like a better home anyway.
Change-Id: I9a9aa9c407ae90cc11b37179fe417e3a002ce94b
Reviewed-by: Damien Caliste <dcaliste@free.fr>
Reviewed-by: Pekka Vuorela <pvuorela@iki.fi>
Reviewed-by: <matti.viljanen@kapsi.fi>
Diffstat (limited to 'examples/qtmail/emailcomposer.cpp')
| -rw-r--r-- | examples/qtmail/emailcomposer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/qtmail/emailcomposer.cpp b/examples/qtmail/emailcomposer.cpp index 2131926d..d26778eb 100644 --- a/examples/qtmail/emailcomposer.cpp +++ b/examples/qtmail/emailcomposer.cpp @@ -813,8 +813,8 @@ QMailMessage EmailComposerInterface::message() const disposition.setFilename(partName.toLatin1()); disposition.setSize(fi.size()); - QMailMessageBodyFwd::TransferEncoding encoding(QMailMessageBody::Base64); - QMailMessageBodyFwd::EncodingStatus encodingStatus(QMailMessageBody::RequiresEncoding); + QMailMessageBody::TransferEncoding encoding(QMailMessageBody::Base64); + QMailMessageBody::EncodingStatus encodingStatus(QMailMessageBody::RequiresEncoding); if (mimeType == "message/rfc822") { encoding = QMailMessageBody::NoEncoding; encodingStatus = QMailMessageBody::AlreadyEncoded; |
