File indexing completed on 2024-05-12 05:17:14
0001 /* 0002 SPDX-FileCopyrightText: 2015 Christian Mollekopf <mollekopf@kolabsys.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "kimap_export.h" 0010 0011 #include "job.h" 0012 0013 namespace KIMAP 0014 { 0015 class Session; 0016 struct Message; 0017 class IdJobPrivate; 0018 0019 /** 0020 * Reports client id. 0021 * 0022 * This job can be run in any open session. 0023 */ 0024 class KIMAP_EXPORT IdJob : public Job 0025 { 0026 Q_OBJECT 0027 Q_DECLARE_PRIVATE(IdJob) 0028 0029 friend class SessionPrivate; 0030 0031 public: 0032 IdJob(Session *session); 0033 ~IdJob() override; 0034 0035 void setField(const QByteArray &name, const QByteArray &field); 0036 0037 protected: 0038 void doStart() override; 0039 void handleResponse(const Response &response) override; 0040 }; 0041 0042 }