Attica::Comment

Search for usage in LXR

#include <Attica/Comment>

Public Types

typedef QList< CommentList
 
enum  Type { ContentComment, ForumComment, KnowledgeBaseComment, EventComment }
 

Public Member Functions

 Comment (const Comment &other)
 
int childCount () const
 
QList< Commentchildren () const
 
QDateTime date () const
 
QString id () const
 
bool isValid () const
 
Commentoperator= (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

Represents a comment.

Definition at line 28 of file comment.h.

Member Function Documentation

◆ score()

int Comment::score ( ) const

Returns score of this comment.

Parameters
scoreaverage comment score in scale from 0 to 100

Definition at line 137 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
scoreaverage comment score in scale from 0 to 100

Definition at line 132 of file comment.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 04:07:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.