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 Typedef Documentation

◆ List

Definition at line 31 of file comment.h.

Member Enumeration Documentation

◆ Type

enum Attica::Comment::Type

Definition at line 34 of file comment.h.

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()

QList< Comment > Comment::children ( ) const

Definition at line 147 of file comment.cpp.

◆ commentTypeToString()

QString Comment::commentTypeToString ( const Comment::Type type)
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=()

Comment & Comment::operator= ( const Comment & other)

Definition at line 62 of file comment.cpp.

◆ 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.

◆ setChildCount()

void Comment::setChildCount ( const int childCount)

Definition at line 102 of file comment.cpp.

◆ setChildren()

void Comment::setChildren ( QList< Comment > comments)

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
scoreaverage 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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:04:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.