KFileMetaData

typeinfo.h
1 /*
2  SPDX-FileCopyrightText: 2014 Vishesh Handa <[email protected]>
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 
15 namespace KFileMetaData {
16 
17 class TypeInfoPrivate;
18 /**
19  * \class TypeInfo typeinfo.h <KFileMetaData/TypeInfo>
20  */
21 class KFILEMETADATA_EXPORT TypeInfo
22 {
23 public:
24  TypeInfo(Type::Type type);
25  TypeInfo(const TypeInfo& ti);
26  ~TypeInfo();
27 
28  TypeInfo& operator=(const TypeInfo& rhs);
29 
30 #if KFILEMETADATA_ENABLE_DEPRECATED_SINCE(5, 91)
31  /*
32  * @deprecated since 5.91 Use TypeInfo::operator==() const instead.
33  */
34 KFILEMETADATA_DEPRECATED_VERSION(5, 91, "Use TypeInfo::operator==() const instead")
35  bool operator==(const TypeInfo& rhs);
36 #endif
37  /*
38  * @since 5.91
39  */
40  bool operator==(const TypeInfo& rhs) const;
41 
42  /**
43  * The type identifier
44  */
45  Type::Type type() const;
46 
47  /**
48  * An internal unique name for the type
49  */
50  QString name() const;
51 
52  /**
53  * A user visible translated name for this type
54  */
55  QString displayName() const;
56 
57  /**
58  * Construct a TypeInfo from the internal type name.
59  * The internal type name is case insensitive
60  */
61  static TypeInfo fromName(const QString& name);
62 
63 private:
64  const std::unique_ptr<TypeInfoPrivate> d;
65 };
66 }
67 
68 #endif // KFILEMETADATA_TYPEINFO_H
Type type(const QSqlDatabase &db)
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
AKONADI_CALENDAR_EXPORT QString displayName(Akonadi::ETMCalendar *calendar, const Akonadi::Collection &collection)
const char * name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu May 26 2022 03:46:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.