KFileMetaData
7#ifndef KFILEMETADATA_USERMETADATA_H
8#define KFILEMETADATA_USERMETADATA_H
10#include "kfilemetadata_export.h"
16namespace KFileMetaData {
18class UserMetaDataPrivate;
22class 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;
102Q_DECLARE_OPERATORS_FOR_FLAGS(UserMetaData::Attributes)
QCA_EXPORT bool isSupported(const char *features, const QString &provider=QString())
@ Rating
For ratings stored in Metadata tags.
@ Comment
Represents a comment stored in the file.
@ OriginEmailSender
The sender of the email this file was originally attached to.
@ OriginUrl
The URL this file has originally been downloaded from.
@ OriginEmailSubject
The subject of the email this file was originally attached to.
@ OriginEmailMessageId
The message ID of the email this file was originally attached to.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:54 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.