Commit 4b6d5803 authored by Laurent Montel's avatar Laurent Montel 😁

Start to implement update attachment job

parent e8c3dfe0
......@@ -23,6 +23,7 @@ set(messagecore_attachment_LIB_SRCS
attachment/attachmentloadjob.cpp
attachment/attachmentpart.cpp
attachment/attachmentpropertiesdialog.cpp
attachment/attachmentupdatejob.cpp
)
set(messagecore_misc_LIB_SRCS
......
/*
Copyright (c) 2014 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "attachmentupdatejob.h"
using namespace MessageCore;
class MessageCore::AttachmentUpdateJob::Private
{
public:
Private( AttachmentUpdateJob *qq );
AttachmentUpdateJob *const q;
AttachmentPart::Ptr mOriginalPart;
AttachmentPart::Ptr mUpdatedPart;
};
AttachmentUpdateJob::Private::Private( AttachmentUpdateJob *qq )
: q( qq )
{
}
AttachmentUpdateJob::AttachmentUpdateJob(const AttachmentPart::Ptr &part, QObject *parent)
: KJob(parent),
d( new Private( this ) )
{
d->mOriginalPart = part;
}
AttachmentUpdateJob::~AttachmentUpdateJob()
{
delete d;
}
/*
Copyright (c) 2014 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ATTACHMENTUPDATEJOB_H
#define ATTACHMENTUPDATEJOB_H
#include "messagecore_export.h"
#include <KJob>
#include "attachmentpart.h"
namespace MessageCore {
class MESSAGECORE_EXPORT AttachmentUpdateJob : public KJob
{
Q_OBJECT
public:
AttachmentUpdateJob(const AttachmentPart::Ptr &part, QObject *parent = 0);
~AttachmentUpdateJob();
private:
//@cond PRIVATE
class Private;
Private *const d;
};
}
#endif // ATTACHMENTUPDATEJOB_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment