Build with non-standard boost locations.
[kdepim.git] / messagecore / attachmentloadjob.cpp
blob2c76dab4cb72304e275f9d3ececc9019103da1c4
1 /*
2 Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
20 #include "attachmentloadjob.h"
22 #include <boost/shared_ptr.hpp>
24 #include <QTimer>
26 using namespace KPIM;
28 class KPIM::AttachmentLoadJob::Private
30 public:
31 AttachmentPart::Ptr part;
36 AttachmentLoadJob::AttachmentLoadJob( QObject *parent )
37 : KJob( parent )
38 , d( new Private )
42 AttachmentLoadJob::~AttachmentLoadJob()
44 delete d;
47 void AttachmentLoadJob::start()
49 QTimer::singleShot( 0, this, SLOT(doStart()) );
52 AttachmentPart::Ptr AttachmentLoadJob::attachmentPart() const
54 return d->part;
57 void AttachmentLoadJob::setAttachmentPart( AttachmentPart::Ptr part )
59 d->part = part;
62 #include "attachmentloadjob.moc"