LibKEduVocDocument

keduvocconjugation.h
1/*
2 * C++ Interface: keduvocconjugation
3 * SPDX-FileCopyrightText: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KEDUVOCCONJUGATION_H
8#define KEDUVOCCONJUGATION_H
9
10#include "keduvocdocument_export.h"
11#include "keduvoctext.h"
12#include "keduvocwordflags.h"
13
14#include <QStringList>
15
16/**
17 * The conjugation of a verb
18 */
19class KEDUVOCDOCUMENT_EXPORT KEduVocConjugation
20{
21public:
22 /**
23 * The constructor
24 */
25 explicit KEduVocConjugation();
26
28
30
31 KEduVocConjugation &operator=(const KEduVocConjugation &a);
32 bool operator==(const KEduVocConjugation &a) const;
33
34 /**
35 * Returns an existing conjugation object. It is an error and leads to undefined behavior
36 * to call this method with flags which are not in the list returned by keys().
37 *
38 * BCI: return a pointer instead of a reference.
39 *
40 * @param flags Flags obtained by a previous call to keys()
41 * @return The existing conjugation object with the specified properties
42 */
43 KEduVocText &conjugation(KEduVocWordFlags flags) const;
44 /**
45 * Updates or creates the conjugation object for the given word flags.
46 */
47 void setConjugation(const KEduVocText &conjugation, KEduVocWordFlags flags);
48
50
51 bool isEmpty();
52
53 /**
54 * Create xml for this declension
55 * @param parent
56 * @param tense
57 */
58 void toKVTML2(QDomElement &parent, const QString &tense);
59
60 /**
61 * Reads a declension from xml, returns 0 if it is empty
62 * @param parent
63 * @return
64 */
65 static KEduVocConjugation *fromKVTML2(QDomElement &parent);
66
67private:
68 class Private;
69 Private *const d;
70};
71
72#endif // KEDUVOCCONJUGATION_H
The conjugation of a verb.
A text in vocabulary documents.
Definition keduvoctext.h:50
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.