KFileMetaData

writedata.h
1/*
2 This file is part of the KFileMetaData project
3 SPDX-FileCopyrightText: 2016 Varun Joshi <varunj.1011@gmail.com>
4 SPDX-FileCopyrightText: 2016 Vishesh Handa <me@vhanda.in>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef _KFILEMETADATA_WRITEDATA_H
10#define _KFILEMETADATA_WRITEDATA_H
11
12#include "kfilemetadata_export.h"
13
14#include <QString>
15#include <QMultiMap>
16#include <QVariant>
17
18#include "embeddedimagedata.h"
19#include "properties.h"
20#include "types.h"
21
22namespace KFileMetaData {
23class WriteDataPrivate;
24/**
25 * \class WriteData writedata.h <KFileMetaData/WriteData>
26 *
27 * \brief The WriteData class stores all the data to be written to a file.
28 */
29class KFILEMETADATA_EXPORT WriteData
30{
31public:
32 WriteData(const QString& url, const QString& mimetype);
33 WriteData(const WriteData& rhs);
34 virtual ~WriteData();
35 WriteData& operator=(const WriteData& rhs);
36 bool operator==(const WriteData& rhs) const;
37
38 QString inputUrl() const;
39
40 QString inputMimetype() const;
41
42 void add(Property::Property property, const QVariant& value);
43 void addImageData(const QMap<EmbeddedImageData::ImageType, QByteArray>& images);
44
45 /// @since 5.89
46 PropertyMultiMap properties() const;
47
49
50private:
51 std::unique_ptr<WriteDataPrivate> d_ptr;
52 Q_DECLARE_PRIVATE(WriteData)
53};
54}
55
56#endif // _KFILEMETADATA_WRITEDATA_H
The WriteData class stores all the data to be written to a file.
Definition writedata.h:30
Property
The Property enum contains all files property types that KFileMetaData manipulates.
Definition properties.h:26
The KFileMetaData namespace.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:09:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.