KFileMetaData

writedata.h
1 /*
2  * This file is part of the KFileMetaData project
3  * Copyright (C) 2016 Varun Joshi <[email protected]>
4  * Copyright (C) 2016 Vishesh Handa <[email protected]>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) version 3, or any
10  * later version accepted by the membership of KDE e.V. (or its
11  * successor approved by the membership of KDE e.V.), which shall
12  * act as a proxy defined in Section 6 of version 3 of the license.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
21  *
22  */
23 
24 #ifndef _KFILEMETADATA_WRITEDATA_H
25 #define _KFILEMETADATA_WRITEDATA_H
26 
27 #include "kfilemetadata_export.h"
28 
29 #include <QString>
30 #include <QMap>
31 #include <QVariant>
32 
33 #include "properties.h"
34 #include "types.h"
35 
36 namespace KFileMetaData {
37 
41 class KFILEMETADATA_EXPORT WriteData
42 {
43 public:
44  WriteData(const QString& url, const QString& mimetype);
45  WriteData(const WriteData& rhs);
46  virtual ~WriteData();
47  WriteData& operator=(const WriteData& rhs);
48  bool operator==(const WriteData& rhs) const;
49 
50  QString inputUrl() const;
51 
52  QString inputMimetype() const;
53 
54  void add(Property::Property property, const QVariant& value);
55 
56  QMap<Property::Property, QVariant> getAllProperties() const;
57 
58 private:
59  class WriteDataPrivate;
60  WriteDataPrivate* d_ptr;
61  Q_DECLARE_PRIVATE(WriteData)
62 };
63 }
64 
65 #endif // _KFILEMETADATA_WRITEDATA_H
KIOFILEWIDGETS_EXPORT void add(const QString &fileClass, const QString &directory)
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
<KFileMetaData/Properties>
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed May 27 2020 23:08:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.