LibKEduVocDocument

keduvocdeclension.h
1/*
2 * C++ Interface: keduvocdeclension
3 * SPDX-FileCopyrightText: 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KEDUVOCDECLENSION_H
8#define KEDUVOCDECLENSION_H
9
10#include "keduvocdocument_export.h"
11
12#include "keduvoctext.h"
13#include "keduvocwordflags.h"
14
15/**
16A declension contains all forms that a NOUN possibly can have.
17
18 @author Frederik Gladhorn <frederik.gladhorn@kdemail.net>
19*/
20class KEDUVOCDOCUMENT_EXPORT KEduVocDeclension
21{
22public:
23 /**
24 * The constructor without arguments
25 */
26 explicit KEduVocDeclension();
27
28 /** copy constructor
29 * @param other comparison object to copy
30 */
32
34
35 /** equality operator
36 * @param a object to compare to
37 * @returns true if comparisons are the same, false otherwise
38 */
39 // will probably not be necessary
40 // bool operator == ( const KEduVocDeclension& a ) const;
41
42 /** assignment operator for d-pointer copying
43 * @param other object to copy from
44 * @returns reference to this object
45 */
46 KEduVocDeclension &operator=(const KEduVocDeclension &other);
47
48 /**
49 * The grammatical number, there is singular and plural for english, some languages have dual for exactly two items.
50 * @param flags
51 * @return
52 */
53 KEduVocText &declension(KEduVocWordFlags flags);
54
55 /**
56 * Set a declension
57 * @param declension
58 * @param flags
59 */
60 void setDeclension(const KEduVocText &declension, KEduVocWordFlags flags);
61
62 bool isEmpty();
63
64 /**
65 * Create xml for this declension
66 * @param parent
67 */
68 void toKVTML2(QDomElement &parent);
69
70 /**
71 * Reads a declension from xml, returns 0 if it is empty
72 * @param parent
73 * @return
74 */
75 static KEduVocDeclension *fromKVTML2(QDomElement &parent);
76
77private:
78 class Private;
79 Private *const d;
80};
81
82#endif
A declension contains all forms that a NOUN possibly can have.
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 Fri May 17 2024 11:55:29 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.