Messagelib

attachmenttemporaryfilesdirs.h
1 /*
2  SPDX-FileCopyrightText: 2013-2020 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef ATTACHMENTTEMPORARYFILESDIRS_H
8 #define ATTACHMENTTEMPORARYFILESDIRS_H
9 
10 #include <QObject>
11 #include <QStringList>
12 #include "mimetreeparser_export.h"
13 
14 namespace MimeTreeParser {
15 class AttachmentTemporaryFilesDirsPrivate;
20 class MIMETREEPARSER_EXPORT AttachmentTemporaryFilesDirs : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit AttachmentTemporaryFilesDirs(QObject *parent = nullptr);
26 
27  void addTempFile(const QString &file);
28  void addTempDir(const QString &dir);
29  Q_REQUIRED_RESULT QStringList temporaryFiles() const;
30  void removeTempFiles();
31  void forceCleanTempFiles();
32 
33  Q_REQUIRED_RESULT QStringList temporaryDirs() const;
34 
35  void setDelayRemoveAllInMs(int ms);
36 
37 private Q_SLOTS:
38  void slotRemoveTempFiles();
39 
40 private:
41  AttachmentTemporaryFilesDirsPrivate *const d;
42 };
43 }
44 
45 #endif // ATTACHMENTTEMPORARYFILESDIRS_H
The AttachmentTemporaryFilesDirs class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:14:03 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.