Messagelib

composerattachmentinterface.h
1 /*
2  SPDX-FileCopyrightText: 2019-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "messagecomposer_export.h"
10 #include <QObject>
11 
12 namespace MessageComposer
13 {
14 /**
15  * @brief The ComposerAttachmentInterface class
16  * @author Laurent Montel <[email protected]>
17  */
18 class MESSAGECOMPOSER_EXPORT ComposerAttachmentInterface
19 {
20 public:
23 
24  Q_REQUIRED_RESULT QStringList fileNames() const;
25  void setFileNames(const QStringList &fileName);
26 
27  Q_REQUIRED_RESULT int count() const;
28  void setCount(int count);
29 
30  Q_REQUIRED_RESULT QStringList namesAndSize() const;
31  void setNamesAndSize(const QStringList &nameAndSize);
32 
33  Q_REQUIRED_RESULT QStringList names() const;
34  void setNames(const QStringList &name);
35 
36 private:
37  QStringList mFileNames;
38  QStringList mNamesAndSize;
39  QStringList mNames;
40  int mCount = 0;
41 };
42 }
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Wed May 25 2022 03:55:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.