Attica 5.109.0
category.h
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2008 Cornelius Schumacher <schumacher@kde.org>
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 <QList>
12#include <QSharedDataPointer>
13
14#include "attica_export.h"
15
16namespace Attica
17{
23class ATTICA_EXPORT Category
24{
25public:
26 typedef QList<Category> List;
27 class Parser;
28
33
38 Category(const Category &other);
39
45 Category &operator=(const Category &other);
46
51
57 void setId(const QString &);
58
64 QString id() const;
65
70 void setName(const QString &name);
71
76 QString name() const;
77
82 bool isValid() const;
83
91 void setDisplayName(const QString &name);
92
100 QString displayName() const;
101
102private:
103 class Private;
104 QSharedDataPointer<Private> d;
105};
106
107}
108
109#endif
Represents a single content category.
Definition category.h:24
Category & operator=(const Category &other)
Assignment operator.
Category()
Creates an empty Category.
void setName(const QString &name)
Sets the name of the Category.
QString displayName() const
Gets the display name of the Category.
~Category()
Destructor.
QString id() const
Gets the id of the Category.
bool isValid() const
Checks whether this Category has an id.
Category(const Category &other)
Copy constructor.
QString name() const
Gets the name of the Category.
void setDisplayName(const QString &name)
Sets the display name of the Category.
void setId(const QString &)
Sets the id of the Category.
The Attica namespace,.
Definition activity.h:21