Attica::Category

Attica::Category Class Reference

#include <category.h>

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 22 of file category.h.

Constructor & Destructor Documentation

Category::Category ( )

Creates an empty Category.

Definition at line 31 of file category.cpp.

Category::Category ( const Category other)

Copy constructor.

Parameters
otherthe Category to copy from

Definition at line 35 of file category.cpp.

Category::~Category ( )

Destructor.

Definition at line 46 of file category.cpp.

Member Function Documentation

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 75 of file category.cpp.

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 55 of file category.cpp.

bool Category::isValid ( ) const

Checks whether this Category has an id.

Returns
true if an id has been set, false otherwise

Definition at line 80 of file category.cpp.

QString Category::name ( ) const

Gets the name of the Category.

Returns
the name

Definition at line 65 of file category.cpp.

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

Assignment operator.

Parameters
otherthe Category to assign from
Returns
pointer to this Category

Definition at line 40 of file category.cpp.

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 70 of file category.cpp.

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 50 of file category.cpp.

void Category::setName ( const QString name)

Sets the name of the Category.

Parameters
namethe new name

Definition at line 60 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-2020 The KDE developers.
Generated on Thu Oct 22 2020 23:05:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.