Warning, file /pim/mailcommon/src/job/folderjob.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 * 0003 * SPDX-FileCopyrightText: 2003 Zack Rusin <zack@kde.org> 0004 * 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "folderjob.h" 0009 0010 #include <KIO/Global> 0011 0012 using namespace MailCommon; 0013 0014 //---------------------------------------------------------------------------- 0015 FolderJob::FolderJob(QObject *parent) 0016 : QObject(parent) 0017 { 0018 } 0019 0020 //---------------------------------------------------------------------------- 0021 FolderJob::~FolderJob() 0022 { 0023 Q_EMIT result(this); 0024 Q_EMIT finished(); 0025 } 0026 0027 //---------------------------------------------------------------------------- 0028 void FolderJob::start() 0029 { 0030 if (!mStarted) { 0031 mStarted = true; 0032 execute(); 0033 } 0034 } 0035 0036 //---------------------------------------------------------------------------- 0037 void FolderJob::kill() 0038 { 0039 mErrorCode = KIO::ERR_USER_CANCELED; 0040 delete this; 0041 } 0042 0043 int FolderJob::error() const 0044 { 0045 return mErrorCode; 0046 } 0047 0048 bool FolderJob::isCancellable() const 0049 { 0050 return mCancellable; 0051 } 0052 0053 void FolderJob::setCancellable(bool b) 0054 { 0055 mCancellable = b; 0056 } 0057 0058 #include "moc_folderjob.cpp"