Framework for looking up contacts directly in nepomuk in addition to going through...
[kdepim.git] / mailcommon / folderjob.cpp
blob7ed35d63732a37669a7a390b8c327b8a8dd6fef5
1 /* -*- mode: C++; c-file-style: "gnu" -*-
3 * Copyright (c) 2003 Zack Rusin <zack@kde.org>
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License, version 2, as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 * In addition, as a special exception, the copyright holders give
19 * permission to link the code of this program with any edition of
20 * the Qt library by Trolltech AS, Norway (or with modified versions
21 * of Qt that use the same license as Qt), and distribute linked
22 * combinations including the two. You must obey the GNU General
23 * Public License in all respects for all of the code used other than
24 * Qt. If you modify this file, you may extend this exception to
25 * your version of the file, but you are not obligated to do so. If
26 * you do not wish to do so, delete this exception statement from
27 * your version.
30 #include "folderjob.h"
32 #include <kio/global.h> //krazy:exclude=camelcase as there is no such
35 namespace MailCommon {
37 //----------------------------------------------------------------------------
38 FolderJob::FolderJob() :
39 mErrorCode( 0 ), mStarted( false ), mCancellable( false )
43 //----------------------------------------------------------------------------
44 FolderJob::~FolderJob()
46 emit result( this );
47 emit finished();
50 //----------------------------------------------------------------------------
51 void FolderJob::start()
53 if ( !mStarted ) {
54 mStarted = true;
55 execute();
59 //----------------------------------------------------------------------------
60 void FolderJob::kill()
62 mErrorCode = KIO::ERR_USER_CANCELED;
63 delete this;
68 #include "folderjob.moc"