Attica 5.109.0
|
Represents a single content category. More...
#include <Attica/Category>
Public Types | |
typedef QList< Category > | List |
Public Member Functions | |
Category () | |
Creates an empty Category. | |
Category (const Category &other) | |
Copy constructor. | |
~Category () | |
Destructor. | |
QString | displayName () const |
Gets the display name of the Category. | |
QString | id () const |
Gets the id of the Category. | |
bool | isValid () const |
Checks whether this Category has an id. | |
QString | name () const |
Gets the name of the Category. | |
Category & | operator= (const Category &other) |
Assignment operator. | |
void | setDisplayName (const QString &name) |
Sets the display name of the Category. | |
void | setId (const QString &) |
Sets the id of the Category. | |
void | setName (const QString &name) |
Sets the name of the Category. | |
Represents a single content category.
Attica::Category::Category | ( | ) |
Creates an empty Category.
Attica::Category::Category | ( | const Category & | other | ) |
Copy constructor.
other | the Category to copy from |
Attica::Category::~Category | ( | ) |
Destructor.
QString Attica::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
QString Attica::Category::id | ( | ) | const |
bool Attica::Category::isValid | ( | ) | const |
Checks whether this Category has an id.
true
if an id has been set, false
otherwise QString Attica::Category::name | ( | ) | const |
Gets the name of the Category.
void Attica::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 |
void Attica::Category::setId | ( | const QString & | ) |
void Attica::Category::setName | ( | const QString & | name | ) |
Sets the name of the Category.
name | the new name |