fix Messages.sh after yesterday change in extract-messages.sh
[kdepim.git] / messagecomposer / transparentjob.cpp
blob83377ed6c10b8709ba097b77b165ac2b7b56c758
1 /*
2 Copyright (C) 2009 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 Copyright (c) 2009 Leo Franchi <lfranchi@kde.org>
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
21 #include "transparentjob.h"
23 #include "contentjobbase_p.h"
25 #include <kdebug.h>
26 #include <kmime/kmime_message.h>
27 #include <kmime/kmime_content.h>
28 using namespace Message;
30 class Message::TransparentJobPrivate : public ContentJobBasePrivate
32 public:
33 TransparentJobPrivate( TransparentJob *qq )
34 : ContentJobBasePrivate( qq )
35 , content( 0 )
39 KMime::Content* content;
41 Q_DECLARE_PUBLIC( TransparentJob )
44 TransparentJob::TransparentJob( QObject *parent )
45 : ContentJobBase( *new TransparentJobPrivate( this ), parent )
49 TransparentJob::~TransparentJob()
54 void TransparentJob::setContent( KMime::Content* content )
56 Q_D( TransparentJob );
58 d->content = content;
62 void TransparentJob::process()
64 Q_D( TransparentJob );
65 d->resultContent = d->content;
66 emitResult();
69 #include "transparentjob.moc"