KIMAP

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

KDE's Doxygen guidelines are available online.