Represents a comment.
More...
#include <Attica/Comment>
|
typedef QList< Comment > | List |
|
enum | Type { ContentComment
, ForumComment
, KnowledgeBaseComment
, EventComment
} |
|
|
| Comment (const Comment &other) |
|
int | childCount () const |
|
QList< Comment > | children () const |
|
QDateTime | date () const |
|
QString | id () const |
|
bool | isValid () const |
|
Comment & | operator= (const Comment &other) |
|
int | score () const |
| Returns score of this comment.
|
|
void | setChildCount (const int childCount) |
|
void | setChildren (QList< Comment > comments) |
|
void | setDate (const QDateTime &date) |
|
void | setId (const QString &id) |
|
void | setScore (const int score) |
| This is for internal usage,.
|
|
void | setSubject (const QString &subject) |
|
void | setText (const QString &text) |
|
void | setUser (const QString &user) |
|
QString | subject () const |
|
QString | text () const |
|
QString | user () const |
|
|
static QString | commentTypeToString (const Comment::Type type) |
|
◆ score()
int Attica::Comment::score |
( |
| ) |
const |
Returns score of this comment.
- Parameters
-
score | average comment score in scale from 0 to 100 |
◆ setScore()
void Attica::Comment::setScore |
( |
const int |
score | ) |
|
This is for internal usage,.
- See also
- Provider::setCommentScore to set scores in comments.
- Parameters
-
score | average comment score in scale from 0 to 100 |