KEduVocIdentifier

Search for usage in LXR

KEduVocIdentifier Class Reference

#include <keduvocidentifier.h>

Public Member Functions

 KEduVocIdentifier ()
 
 KEduVocIdentifier (const KEduVocIdentifier &other)
 
 ~KEduVocIdentifier ()
 
KEduVocArticlearticle () const
 
QString locale () const
 
QString name () const
 
KEduVocIdentifieroperator= (const KEduVocIdentifier &other)
 
KEduVocPersonalPronounpersonalPronouns () const
 
void setArticle (const KEduVocArticle &article)
 
void setLocale (const QString &name)
 
void setName (const QString &name)
 
void setPersonalPronouns (const KEduVocPersonalPronoun &pronouns)
 
void setTense (int tenseIndex, const QString &tense)
 
void setTenseList (const QStringList &tenses)
 
QString tense (int tenseIndex) const
 
QStringList tenseList () const
 

Detailed Description

Class to store meta information about a language or any other category in the vocabulary.

Definition at line 21 of file keduvocidentifier.h.

Constructor & Destructor Documentation

◆ KEduVocIdentifier() [1/2]

KEduVocIdentifier::KEduVocIdentifier ( )
explicit

Default ctor.

Todo
maybe the user locale would be more appropriate

Definition at line 36 of file keduvocidentifier.cpp.

◆ KEduVocIdentifier() [2/2]

KEduVocIdentifier::KEduVocIdentifier ( const KEduVocIdentifier & other)

Copy ctor.

Parameters
other

Definition at line 48 of file keduvocidentifier.cpp.

◆ ~KEduVocIdentifier()

KEduVocIdentifier::~KEduVocIdentifier ( )

dtor

Definition at line 43 of file keduvocidentifier.cpp.

Member Function Documentation

◆ article()

KEduVocArticle & KEduVocIdentifier::article ( ) const

Articles (a, the in English, el, la,... in Spanish)

Returns
articles

Definition at line 99 of file keduvocidentifier.cpp.

◆ locale()

QString KEduVocIdentifier::locale ( ) const

The locale of the contents: en, de, es, ...

Returns
locale

Definition at line 84 of file keduvocidentifier.cpp.

◆ name()

QString KEduVocIdentifier::name ( ) const

Name of this identifier.

(English, Anatomy, Fruit salad...)

Returns
name

Definition at line 74 of file keduvocidentifier.cpp.

◆ operator=()

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

assignment operator

Parameters
other
Returns

Definition at line 62 of file keduvocidentifier.cpp.

◆ personalPronouns()

KEduVocPersonalPronoun & KEduVocIdentifier::personalPronouns ( ) const

Get the personal pronouns for this identifier.

Returns
a KEduVocPersonalPronoun containing the personal pronouns

Definition at line 104 of file keduvocidentifier.cpp.

◆ setArticle()

void KEduVocIdentifier::setArticle ( const KEduVocArticle & article)

Sets the articles for this identifier.

Parameters
articlearticle block

Definition at line 94 of file keduvocidentifier.cpp.

◆ setLocale()

void KEduVocIdentifier::setLocale ( const QString & name)

Set the locale.

Parameters
name

Definition at line 89 of file keduvocidentifier.cpp.

◆ setName()

void KEduVocIdentifier::setName ( const QString & name)

Set the name.

Parameters
name

Definition at line 79 of file keduvocidentifier.cpp.

◆ setPersonalPronouns()

void KEduVocIdentifier::setPersonalPronouns ( const KEduVocPersonalPronoun & pronouns)

Sets personal pronouns.

Parameters
pronounsa KEduVocConjugation containing the personal pronouns

Definition at line 109 of file keduvocidentifier.cpp.

◆ setTense()

void KEduVocIdentifier::setTense ( int tenseIndex,
const QString & tense )

Sets the name of a tense for this language.

Parameters
tenseIndex
tense

Definition at line 120 of file keduvocidentifier.cpp.

◆ setTenseList()

void KEduVocIdentifier::setTenseList ( const QStringList & tenses)

Definition at line 135 of file keduvocidentifier.cpp.

◆ tense()

QString KEduVocIdentifier::tense ( int tenseIndex) const

Returns the name of tense number tenseIndex.

Parameters
tenseIndexdesired tense
Returns
name of the tense

Definition at line 114 of file keduvocidentifier.cpp.

◆ tenseList()

QStringList KEduVocIdentifier::tenseList ( ) const

Definition at line 130 of file keduvocidentifier.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 Nov 22 2024 12:06:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.