LibKEduVocDocument

keduvocidentifier.h
1/*
2 * SPDX-FileCopyrightText: 2007-2008 Frederik Gladhorn <gladhorn@kde.org>
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
6#ifndef KEDUVOCIDENTIFIER_H
7#define KEDUVOCIDENTIFIER_H
8
9#include "keduvocdocument_export.h"
10
11#include "keduvocarticle.h"
12#include "keduvocpersonalpronoun.h"
13
14#include <QList>
15#include <QSet>
16#include <QString>
17
18/**
19Class to store meta information about a language or any other category in the vocabulary.
20*/
21class KEDUVOCDOCUMENT_EXPORT KEduVocIdentifier
22{
23public:
24 /**
25 * Default ctor.
26 */
27 explicit KEduVocIdentifier();
28
29 /**
30 * Copy ctor.
31 * @param other
32 */
34
35 /**
36 * dtor
37 */
39
40 /**
41 * assignment operator
42 * @param other
43 * @return
44 */
45 KEduVocIdentifier &operator=(const KEduVocIdentifier &other);
46
47public:
48 /**
49 * Name of this identifier. (English, Anatomy, Fruit salad...)
50 * @return name
51 */
52 QString name() const;
53 /**
54 * Set the name
55 * @param name
56 */
57 void setName(const QString &name);
58
59 /**
60 * The locale of the contents: en, de, es, ...
61 * @return locale
62 */
63 QString locale() const;
64 /**
65 * Set the locale
66 * @param name
67 */
68 void setLocale(const QString &name);
69
70 /**
71 * Articles (a, the in English, el, la,... in Spanish)
72 * @returns articles
73 */
74 KEduVocArticle &article() const;
75
76 /**
77 * Sets the articles for this identifier
78 * @param article article block
79 */
80 void setArticle(const KEduVocArticle &article);
81
82 /**
83 * Get the personal pronouns for this identifier
84 * @returns a KEduVocPersonalPronoun containing the personal pronouns
85 */
86 KEduVocPersonalPronoun &personalPronouns() const;
87
88 /**
89 * Sets personal pronouns
90 * @param pronouns a KEduVocConjugation containing the personal pronouns
91 */
92 void setPersonalPronouns(const KEduVocPersonalPronoun &pronouns);
93
94 /**
95 * Returns the name of tense number @p tenseIndex
96 * @param tenseIndex desired tense
97 * @return name of the tense
98 */
99 QString tense(int tenseIndex) const;
100
101 /**
102 * Sets the name of a tense for this language
103 * @param tenseIndex
104 * @param tense
105 */
106 void setTense(int tenseIndex, const QString &tense);
107
108 QStringList tenseList() const;
109
110 void setTenseList(const QStringList &tenses);
111
112private:
113 class Private;
114 Private *const d;
115};
116
117#endif
Class representing the articles of a language.
Class to store meta information about a language or any other category in the vocabulary.
The conjugation of a verb.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.