LibKEduVocDocument

keduvocarticle.h
1/*
2 * SPDX-FileCopyrightText: 1999-2001 Ewald Arnold <kvoctrain@ewald-arnold.de>
3 * SPDX-FileCopyrightText: 2005, 2007 Peter Hedlund <peter.hedlund@kdemail.net>
4 * SPDX-FileCopyrightText: 2007-2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net> *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef KEDUVOCARTICLE_H
9#define KEDUVOCARTICLE_H
10
11#include "keduvocdocument_export.h"
12
13#include <QStringList>
14
15#include "keduvocwordflags.h"
16
17/**
18 * Class representing the articles of a language
19 *
20 * It contains all available articles of the language as QString
21 */
22class KEDUVOCDOCUMENT_EXPORT KEduVocArticle
23{
24public:
25 /**
26 * The constructor without arguments
27 */
28 explicit KEduVocArticle();
29
30 /** copy constructor for d-pointer safety
31 * @param other article object to copy
32 */
33 KEduVocArticle(const KEduVocArticle &other);
34
35 /**
36 * DEPRECATED The constructor with arguments, assumes singular!
37 * @param fem_def reference to a QString with the definite female article
38 * @param fem_indef reference to a QString with the indefinite female article
39 * @param mal_def reference to a QString with the definite male article
40 * @param mal_indef reference to a QString with the indefinite male article
41 * @param nat_def reference to a QString with the definite neutral article
42 * @param nat_indef reference to a QString with the indefinite neutral article
43 */
44 KEDUVOCDOCUMENT_DEPRECATED KEduVocArticle(const QString &fem_def,
45 const QString &fem_indef,
46 const QString &mal_def,
47 const QString &mal_indef,
48 const QString &nat_def,
49 const QString &nat_indef);
50
51 /**
52 * default destructor, deletes the d pointer
53 */
55
56 /**
57 * assignment operator for d-pointer copying
58 */
59 KEduVocArticle &operator=(const KEduVocArticle &other);
60
62
63 void setArticle(const QString &article, KEduVocWordFlags);
64
65 bool isArticle(const QString &article) const;
66
67 bool isEmpty();
68
69private:
70 class Private;
71 Private *const d;
72};
73
74#endif
Class representing the articles of a language.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 27 2024 11:48:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.