Mailcommon

filteractionmissingfolderdialog.h
1/*
2
3 SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "mailcommon_private_export.h"
11#include <Akonadi/Collection>
12
13#include <QDialog>
14
16class QListWidget;
17class QListWidgetItem;
18class QModelIndex;
19class QPushButton;
20
21namespace MailCommon
22{
23class FolderRequester;
24}
25
26class MAILCOMMON_TESTS_EXPORT FilterActionMissingFolderDialog : public QDialog
27{
28 Q_OBJECT
29public:
30 explicit FilterActionMissingFolderDialog(const Akonadi::Collection::List &list,
31 const QString &filtername = QString(),
32 const QString &argStr = QString(),
33 QWidget *parent = nullptr);
34 ~FilterActionMissingFolderDialog() override;
35
36 [[nodiscard]] Akonadi::Collection selectedCollection() const;
37 [[nodiscard]] static Akonadi::Collection::List potentialCorrectFolders(const QString &path, bool &exactPath);
38
39private:
40 MAILCOMMON_NO_EXPORT void slotCurrentItemChanged();
41 MAILCOMMON_NO_EXPORT void slotFolderChanged(const Akonadi::Collection &col);
42 MAILCOMMON_NO_EXPORT void slotDoubleItemClicked(QListWidgetItem *item);
43 MAILCOMMON_NO_EXPORT static void
44 getPotentialFolders(const QAbstractItemModel *model, const QModelIndex &parentIndex, const QString &realPath, Akonadi::Collection::List &list);
45 MAILCOMMON_NO_EXPORT void writeConfig();
46 MAILCOMMON_NO_EXPORT void readConfig();
47 enum collectionEnum {
48 IdentifyCollection = Qt::UserRole + 1
49 };
50
51 MailCommon::FolderRequester *const mFolderRequester;
52 QListWidget *mListwidget = nullptr;
53 QPushButton *mOkButton = nullptr;
54};
The filter dialog.
UserRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.