File indexing completed on 2025-03-09 04:54:12

0001 /*
0002   SPDX-FileCopyrightText: 2009 Constantin Berzan <exit3219@gmail.com>
0003 
0004   SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "attachmentloadjob.h"
0008 
0009 #include <QTimer>
0010 
0011 using namespace MessageCore;
0012 
0013 class MessageCore::AttachmentLoadJob::AttachmentLoadJobPrivate
0014 {
0015 public:
0016     AttachmentPart::Ptr mPart;
0017 };
0018 
0019 AttachmentLoadJob::AttachmentLoadJob(QObject *parent)
0020     : KJob(parent)
0021     , d(new AttachmentLoadJobPrivate)
0022 {
0023 }
0024 
0025 AttachmentLoadJob::~AttachmentLoadJob() = default;
0026 
0027 void AttachmentLoadJob::start()
0028 {
0029     QTimer::singleShot(0, this, &AttachmentLoadJob::doStart);
0030 }
0031 
0032 AttachmentPart::Ptr AttachmentLoadJob::attachmentPart() const
0033 {
0034     return d->mPart;
0035 }
0036 
0037 void AttachmentLoadJob::setAttachmentPart(const AttachmentPart::Ptr &part)
0038 {
0039     d->mPart = part;
0040 }
0041 
0042 #include "moc_attachmentloadjob.cpp"