Attica

category.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2008 Cornelius Schumacher <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 #ifndef ATTICA_CATEGORY_H
9 #define ATTICA_CATEGORY_H
10 
11 #include <QSharedDataPointer>
12 #include <QList>
13 
14 #include "attica_export.h"
15 
16 namespace Attica
17 {
18 
22 class ATTICA_EXPORT Category
23 {
24 public:
25  typedef QList<Category> List;
26  class Parser;
27 
31  Category();
32 
37  Category(const Category &other);
38 
44  Category &operator=(const Category &other);
45 
49  ~Category();
50 
56  void setId(const QString &);
57 
63  QString id() const;
64 
69  void setName(const QString &name);
70 
75  QString name() const;
76 
81  bool isValid() const;
82 
90  void setDisplayName(const QString &name);
91 
99  QString displayName() const;
100 
101 private:
102  class Private;
104 };
105 
106 }
107 
109 
110 #endif
Represents a single content category.
Definition: category.h:22
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Nov 26 2020 22:59:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.