File indexing completed on 2024-12-22 04:57:02
0001 /* 0002 SPDX-FileCopyrightText: 2015-2019 Krzysztof Nowicki <krissn@op.pl> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include <KCompositeJob> 0010 0011 #include "ewstypes.h" 0012 0013 class EwsJob : public KCompositeJob 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit EwsJob(QObject *parent); 0018 ~EwsJob() override; 0019 0020 EwsResponseCode ewsResponseCode() const 0021 { 0022 return m_ewsRespCode; 0023 } 0024 0025 protected: 0026 bool doKill() override; 0027 bool setErrorMsg(const QString &msg, int code = KJob::UserDefinedError); 0028 void setEwsResponseCode(EwsResponseCode code) 0029 { 0030 m_ewsRespCode = code; 0031 } 0032 0033 private: 0034 EwsResponseCode m_ewsRespCode; 0035 };