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 */
27class KFILEMETADATA_EXPORT WriteData
28{
29public:
30 WriteData(const QString& url, const QString& mimetype);
31 WriteData(const WriteData& rhs);
32 virtual ~WriteData();
33 WriteData& operator=(const WriteData& rhs);
34 bool operator==(const WriteData& rhs) const;
35
36 QString inputUrl() const;
37
38 QString inputMimetype() const;
39
40 void add(Property::Property property, const QVariant& value);
41 void addImageData(const QMap<EmbeddedImageData::ImageType, QByteArray>& images);
42
43 /// @since 5.89
44 PropertyMultiMap properties() const;
45
47
48private:
49 std::unique_ptr<WriteDataPrivate> d_ptr;
50 Q_DECLARE_PRIVATE(WriteData)
51};
52}
53
54#endif // _KFILEMETADATA_WRITEDATA_H
KIOCORE_EXPORT void add(const QString &fileClass, const QString &directory)
KGuiItem properties()
<KFileMetaData/Properties>
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:44:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.