Attica::Comment
#include <Attica/Comment>
Public Types | |
typedef QList< Comment > | List |
enum | Type { ContentComment , ForumComment , KnowledgeBaseComment , EventComment } |
Public Member Functions | |
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 |
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) |
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 Public Member Functions | |
static QString | commentTypeToString (const Comment::Type type) |
Detailed Description
Member Typedef Documentation
◆ List
Member Enumeration Documentation
◆ Type
Constructor & Destructor Documentation
◆ Comment() [1/2]
Comment::Comment | ( | ) |
Definition at line 52 of file comment.cpp.
◆ Comment() [2/2]
Comment::Comment | ( | const Comment & | other | ) |
Definition at line 57 of file comment.cpp.
◆ ~Comment()
Comment::~Comment | ( | ) |
Definition at line 68 of file comment.cpp.
Member Function Documentation
◆ childCount()
int Comment::childCount | ( | ) | const |
Definition at line 107 of file comment.cpp.
◆ children()
Definition at line 147 of file comment.cpp.
◆ commentTypeToString()
|
static |
Definition at line 16 of file comment.cpp.
◆ date()
QDateTime Comment::date | ( | ) | const |
Definition at line 127 of file comment.cpp.
◆ id()
QString Comment::id | ( | ) | const |
Definition at line 77 of file comment.cpp.
◆ isValid()
bool Comment::isValid | ( | ) | const |
Definition at line 152 of file comment.cpp.
◆ operator=()
Definition at line 62 of file comment.cpp.
◆ score()
int Comment::score | ( | ) | const |
Returns score of this comment.
- Parameters
-
score average comment score in scale from 0 to 100
Definition at line 137 of file comment.cpp.
◆ setChildCount()
void Comment::setChildCount | ( | const int | childCount | ) |
Definition at line 102 of file comment.cpp.
◆ setChildren()
Definition at line 142 of file comment.cpp.
◆ setDate()
void Comment::setDate | ( | const QDateTime & | date | ) |
Definition at line 122 of file comment.cpp.
◆ setId()
void Comment::setId | ( | const QString & | id | ) |
Definition at line 72 of file comment.cpp.
◆ setScore()
void 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
Definition at line 132 of file comment.cpp.
◆ setSubject()
void Comment::setSubject | ( | const QString & | subject | ) |
Definition at line 82 of file comment.cpp.
◆ setText()
void Comment::setText | ( | const QString & | text | ) |
Definition at line 92 of file comment.cpp.
◆ setUser()
void Comment::setUser | ( | const QString & | user | ) |
Definition at line 112 of file comment.cpp.
◆ subject()
QString Comment::subject | ( | ) | const |
Definition at line 87 of file comment.cpp.
◆ text()
QString Comment::text | ( | ) | const |
Definition at line 97 of file comment.cpp.
◆ user()
QString Comment::user | ( | ) | const |
Definition at line 117 of file comment.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.