Messagelib

opensavedfilefolderwidget.h
1 /*
2  SPDX-FileCopyrightText: 2014-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <KMessageWidget>
10 #include <QUrl>
11 class QTimer;
12 namespace MessageViewer
13 {
14 class OpenSavedFileFolderWidget : public KMessageWidget
15 {
16  Q_OBJECT
17 public:
18  enum class FileType { Attachment, Pdf };
19 
20  explicit OpenSavedFileFolderWidget(QWidget *parent = nullptr);
21  ~OpenSavedFileFolderWidget() override;
22 
23  void setUrls(const QList<QUrl> &urls, MessageViewer::OpenSavedFileFolderWidget::FileType fileType);
24 
25 public Q_SLOTS:
26  void slotShowWarning();
27  void slotHideWarning();
28 
29 private:
30  void slotOpenSavedFileFolder();
31  void slotTimeOut();
32  void slotExplicitlyClosed();
33  QList<QUrl> mUrls;
34  QTimer *const mTimer;
35  QAction *const mShowFolderAction;
36 };
37 }
38 
KCOREADDONS_EXPORT void setUrls(const QList< QUrl > &urls, const QList< QUrl > &mostLocalUrls, QMimeData *mimeData)
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.