KFileMetaData

typeinfo.h
1/*
2 SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef KFILEMETADATA_TYPEINFO_H
8#define KFILEMETADATA_TYPEINFO_H
9
10#include "types.h"
11#include "kfilemetadata_export.h"
12#include <QString>
13#include <memory>
14
15namespace KFileMetaData {
16
17class TypeInfoPrivate;
18/**
19 * \class TypeInfo typeinfo.h <KFileMetaData/TypeInfo>
20 */
21class KFILEMETADATA_EXPORT TypeInfo
22{
23public:
24 TypeInfo(Type::Type type);
25 TypeInfo(const TypeInfo& ti);
26 ~TypeInfo();
27
28 TypeInfo& operator=(const TypeInfo& rhs);
29
30 /*
31 * @since 5.91
32 */
33 bool operator==(const TypeInfo& rhs) const;
34
35 /**
36 * The type identifier
37 */
38 Type::Type type() const;
39
40 /**
41 * An internal unique name for the type
42 */
43 QString name() const;
44
45 /**
46 * A user visible translated name for this type
47 */
48 QString displayName() const;
49
50 /**
51 * Construct a TypeInfo from the internal type name.
52 * The internal type name is case insensitive
53 */
54 static TypeInfo fromName(const QString& name);
55
56private:
57 const std::unique_ptr<TypeInfoPrivate> d;
58};
59}
60
61#endif // KFILEMETADATA_TYPEINFO_H
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
Type type(const QSqlDatabase &db)
QString name(StandardShortcut id)
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.