job_8h_source

namespacejob.h
1/*
2 SPDX-FileCopyrightText: 2009 Kevin Ottens <ervin@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
13namespace KIMAP
14{
15class Session;
16struct Response;
17struct MailBoxDescriptor;
18class NamespaceJobPrivate;
19
20class KIMAP_EXPORT NamespaceJob : public Job
21{
22 Q_OBJECT
23 Q_DECLARE_PRIVATE(NamespaceJob)
24
25 friend class SessionPrivate;
26
27public:
28 NamespaceJob(Session *session);
29 ~NamespaceJob() override;
30
31 [[nodiscard]] QList<MailBoxDescriptor> personalNamespaces() const;
32 [[nodiscard]] QList<MailBoxDescriptor> userNamespaces() const;
33 [[nodiscard]] QList<MailBoxDescriptor> sharedNamespaces() const;
34
35 [[nodiscard]] bool containsEmptyNamespace() const;
36
37protected:
38 void doStart() override;
39 void handleResponse(const Response &response) override;
40};
41
42}
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.