Attica::Category

Search for usage in LXR

Attica::Category Class Reference

#include <Attica/Category>

Public Types

typedef QList< CategoryList
 

Public Member Functions

 Category ()
 
 Category (const Category &other)
 
 ~Category ()
 
QString displayName () const
 
QString id () const
 
bool isValid () const
 
QString name () const
 
Categoryoperator= (const Category &other)
 
void setDisplayName (const QString &name)
 
void setId (const QString &)
 
void setName (const QString &name)
 

Detailed Description

Represents a single content category.

Definition at line 23 of file category.h.

Member Typedef Documentation

◆ List

Definition at line 26 of file category.h.

Constructor & Destructor Documentation

◆ Category() [1/2]

Category::Category ( )

Creates an empty Category.

Definition at line 24 of file category.cpp.

◆ Category() [2/2]

Category::Category ( const Category & other)

Copy constructor.

Parameters
otherthe Category to copy from

Definition at line 29 of file category.cpp.

◆ ~Category()

Category::~Category ( )

Destructor.

Definition at line 40 of file category.cpp.

Member Function Documentation

◆ displayName()

QString Category::displayName ( ) const

Gets the display name of the Category.

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

Returns
the name
Since
5.31

Definition at line 69 of file category.cpp.

◆ id()

QString Category::id ( ) const

Gets the id of the Category.

The id uniquely identifies a Category with the OCS API.

Returns
the id

Definition at line 49 of file category.cpp.

◆ isValid()

bool Category::isValid ( ) const

Checks whether this Category has an id.

Returns
true if an id has been set, false otherwise

Definition at line 74 of file category.cpp.

◆ name()

QString Category::name ( ) const

Gets the name of the Category.

Returns
the name

Definition at line 59 of file category.cpp.

◆ operator=()

Category & Category::operator= ( const Category & other)

Assignment operator.

Parameters
otherthe Category to assign from
Returns
pointer to this Category

Definition at line 34 of file category.cpp.

◆ setDisplayName()

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

Parameters
namethe new name
Since
5.31

Definition at line 64 of file category.cpp.

◆ setId()

void Category::setId ( const QString & u)

Sets the id of the Category.

The id uniquely identifies a Category with the OCS API.

Parameters
idthe new id

Definition at line 44 of file category.cpp.

◆ setName()

void Category::setName ( const QString & name)

Sets the name of the Category.

Parameters
namethe new name

Definition at line 54 of file category.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:46:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.