KFileMetaData
7 #ifndef KFILEMETADATA_USERMETADATA_H
8 #define KFILEMETADATA_USERMETADATA_H
10 #include "kfilemetadata_export.h"
11 #include <QStringList>
16 namespace KFileMetaData {
18 class UserMetaDataPrivate;
22 class KFILEMETADATA_EXPORT UserMetaData {
24 UserMetaData(
const QString &filePath);
25 UserMetaData(
const UserMetaData &rhs);
26 virtual ~UserMetaData();
35 enum Attribute : uint32_t {
51 Q_DECLARE_FLAGS(Attributes, Attribute)
53 const UserMetaData& operator =(
const UserMetaData& rhs);
62 Error setRating(
int rating);
67 QUrl originUrl()
const;
68 Error setOriginUrl(
const QUrl &originUrl);
70 QString originEmailSubject()
const;
71 Error setOriginEmailSubject(
const QString &originEmailSubject);
73 QString originEmailSender()
const;
74 Error setOriginEmailSender(
const QString &originEmailSender);
76 QString originEmailMessageId()
const;
77 Error setOriginEmailMessageId(
const QString &originEmailMessageId);
81 bool hasAttribute(
const QString& name);
96 Attributes queryAttributes(Attributes attributes = Attribute::Any)
const;
99 const std::unique_ptr<UserMetaDataPrivate> d;
102 Q_DECLARE_OPERATORS_FOR_FLAGS(UserMetaData::Attributes)
105 #endif // KFILEMETADATA_USERMETADATA_H
@ OriginEmailSender
The sender of the email this file was originally attached to.
@ Rating
For ratings stored in Metadata tags.
@ OriginUrl
The URL this file has originally been downloaded from.
@ OriginEmailSubject
The subject of the email this file was originally attached to.
@ Comment
Represents a comment stored in the file.
bool isSupported(const QString &mimeType, Mode mode=Writing)
@ OriginEmailMessageId
The message ID of the email this file was originally attached to.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat May 21 2022 03:47:08 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.