HP Views Designer Assistant: D:/Documentos/ViewDesignerAssistant/Model/card.h Source File

| HP Views Designer Assistant 1.0.0 TFG - Alberto Gutierrez Perez - Universidad de Valladolid |

card.h
1 #ifndef CARD_H
2 #define CARD_H
3 #include <QStringList>
4
8 class Card
9 {
10 public:
14 Card();
15
21 void addProperty(QString name, QString value);
22
29 void editProperty(int index, QString name, QString value);
30
35 void removeProperty(int indexProperty);
36
42 QStringList getProperty(int indexProperty);
43
49 QStringList takeProperty(int indexProperty);
50
55 int getNumberOfProperties();
56
61 QString getIconImage() const;
62
67 void setIconImage(const QString &value);
68
73 QString getTitle() const;
74
79 void setTitle(const QString &value);
80
81 private:
82
86 QString iconImage;
87
91 QString title;
92
96 QStringList propertyNames;
97
101 QStringList propertyValues;
102 };
103
104 #endif // CARD_H
Card::takeProperty
QStringList takeProperty(int indexProperty)
takeProperty Returns and remove the property at the specified position.
Definition: card.cpp:36
Card::addProperty
void addProperty(QString name, QString value)
addProperty Adds card property.
Definition: card.cpp:8
Card::getNumberOfProperties
int getNumberOfProperties()
getNumberOfProperties Returns the number of properties.
Definition: card.cpp:53
Card::editProperty
void editProperty(int index, QString name, QString value)
editProperty Modifies card property.
Definition: card.cpp:14
Card::getIconImage
QString getIconImage() const
getIconImage Returns the image path of the card icon.
Definition: card.cpp:58
Card::getTitle
QString getTitle() const
getTitle Returns the title of the card.
Definition: card.cpp:43
Card::removeProperty
void removeProperty(int indexProperty)
removeProperty Removes card property.
Definition: card.cpp:20
Card::setTitle
void setTitle(const QString &value)
setTitle Replaces the title of the card.
Definition: card.cpp:48
Card::title
QString title
title Title of the card.
Definition: card.h:91
Card::getProperty
QStringList getProperty(int indexProperty)
getProperty Returns the property at the specified position.
Definition: card.cpp:26
Card::propertyNames
QStringList propertyNames
propertyNames Names of the properties.
Definition: card.h:96
Card::iconImage
QString iconImage
iconImage Path to the card icon image.
Definition: card.h:86
Card::propertyValues
QStringList propertyValues
propertyValues Value of the properties.
Definition: card.h:101
Card::Card
Card()
Card constructor.
Definition: card.cpp:3
Card
The card class. Represents the elements in information screens.
Definition: card.h:8
Card::setIconImage
void setIconImage(const QString &value)
setIconImage Replaces the card icon image.
Definition: card.cpp:63