Attica::Category Class

class Attica::Category

Represents a single content category. More...

Header: #include <Attica/Category>
CMake: find_package(KF6 REQUIRED COMPONENTS Attica)
target_link_libraries(mytarget PRIVATE KF6::Attica)

Public Types

Public Functions

Category()
(since 5.31) QString displayName() const
QString id() const
bool isValid() const
QString name() const
(since 5.31) void setDisplayName(const QString &name)
void setId(const QString &)
void setName(const QString &name)

Detailed Description

Member Type Documentation

Category::List

Member Function Documentation

Category::Category()

Creates an empty Category

[since 5.31] QString Category::displayName() const

Returns the display name of the Category.

This name is guaranteed to be user friendly, while name may be internal for the server

This function was introduced in 5.31.

See also setDisplayName().

QString Category::id() const

Returns the id of the Category.

The id uniquely identifies a Category with the OCS API.

See also setId().

bool Category::isValid() const

Returns whether this Category has an id

QString Category::name() const

Returns the name of the Category.

See also setName().

[since 5.31] void Category::setDisplayName(const QString &name)

Sets the display name of the Category.

This name is guaranteed to be user friendly, while name may be internal for the server

name the new name

This function was introduced in 5.31.

See also displayName().

void Category::setId(const QString &)

Sets the id of the Category.

The id uniquely identifies a Category with the OCS API.

id the new id

See also id().

void Category::setName(const QString &name)

Sets the name of the Category.

name the new name

See also name().