KIMAP

statusjob.h
1/*
2 SPDX-FileCopyrightText: 2016 Daniel Vrátil <dvratil@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "kimap_export.h"
10
11#include "job.h"
12#include <QList>
13
14namespace KIMAP
15{
16class Session;
17class StatusJobPrivate;
18
19class KIMAP_EXPORT StatusJob : public Job
20{
21 Q_OBJECT
22 Q_DECLARE_PRIVATE(StatusJob)
23
24 friend class StatusJobPrivate;
25
26public:
27 explicit StatusJob(Session *session);
28 ~StatusJob() override;
29
30 void setMailBox(const QString &mailBox);
31 [[nodiscard]] QString mailBox() const;
32
33 void setDataItems(const QList<QByteArray> &dataItems);
34 [[nodiscard]] QList<QByteArray> dataItems() const;
35
36 [[nodiscard]] QList<QPair<QByteArray, qint64>> status() const;
37
38protected:
39 void doStart() override;
40 void handleResponse(const Response &response) override;
41};
42
43}
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:06:50 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.