KEduVocKvtmlReader

Search for usage in LXR

KEduVocKvtmlReader Class Reference

#include <keduvockvtmlreader.h>

Inheritance diagram for KEduVocKvtmlReader:

Public Member Functions

 KEduVocKvtmlReader (QIODevice &file)
 
 ~KEduVocKvtmlReader () override
 
bool addLanguage (int languageId, const QString &language)
 
virtual QString errorMessage () const
 
virtual bool isParsable ()
 
virtual KEduVocDocument::ErrorCode read (KEduVocDocument &doc)
 
bool readArticle (QDomElement &domElementParent)
 
bool readBody (QDomElement &domElementParent)
 
bool readComparison (QDomElement &domElementParent, KEduVocTranslation *translation)
 
bool readConjugation (QDomElement &domElementParent, KEduVocConjugation &conjugation)
 
bool readExpression (QDomElement &domElementParent)
 
bool readExpressionChildAttributes (QDomElement &domElementExpressionChild, QString &lang, grade_t &grade, grade_t &rev_grade, int &count, int &rev_count, QDateTime &date, QDateTime &rev_date, QString &remark, int &bcount, int &rev_bcount, QString &query_id, QString &pronunciation, int &width, QString &type, QString &faux_ami_f, QString &faux_ami_t, QString &synonym, QString &example, QString &antonym, QSet< QString > &usage, QString &paraphrase)
 
bool readLesson (QDomElement &domElementParent)
 
bool readMultipleChoice (QDomElement &domElementParent, KEduVocTranslation *translation)
 
bool readPersonalPronouns (QDomElement &domElementParent, KEduVocPersonalPronoun &pronouns)
 
bool readTense (QDomElement &domElementParent)
 
bool readTranslationConjugations (QDomElement &domElementParent, KEduVocTranslation *translation)
 
bool readType (QDomElement &domElementParent)
 
bool readUsage (QDomElement &domElementParent)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- Properties inherited from QObject
 objectName
 
- Static Public Member Functions inherited from QObject
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- Protected Member Functions inherited from QObject
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
int receivers (const char *signal) const const
 
QObjectsender () const const
 
int senderSignalIndex () const const
 
virtual void timerEvent (QTimerEvent *event)
 

Detailed Description

Reader for KVTML 1.0.

Author
Eric Pignet

Definition at line 31 of file keduvockvtmlreader.h.

Constructor & Destructor Documentation

◆ KEduVocKvtmlReader()

KEduVocKvtmlReader::KEduVocKvtmlReader ( QIODevice & file)
explicit

constructor

Parameters
filean open device

Definition at line 24 of file keduvockvtmlreader.cpp.

◆ ~KEduVocKvtmlReader()

KEduVocKvtmlReader::~KEduVocKvtmlReader ( )
inlineoverride

destructor

Definition at line 40 of file keduvockvtmlreader.h.

Member Function Documentation

◆ addLanguage()

bool KEduVocKvtmlReader::addLanguage ( int languageId,
const QString & language )

Attempt to add a language/locale.

Language/locale are set to the same value. No error if already there with the same value.

Parameters
languageIdidentifier number
languagename
Returns
true if successful

Definition at line 1077 of file keduvockvtmlreader.cpp.

◆ errorMessage()

virtual QString KEduVocKvtmlReader::errorMessage ( ) const
inlinevirtual

an error message.

Returns
the error message

Definition at line 58 of file keduvockvtmlreader.h.

◆ isParsable()

bool KEduVocKvtmlReader::isParsable ( )
virtual

Can this reader parse this file.

Read a small portion of the header of the file and decide if it is a suitable type.

Returns
true if parsable

Definition at line 31 of file keduvockvtmlreader.cpp.

◆ read()

KEduVocDocument::ErrorCode KEduVocKvtmlReader::read ( KEduVocDocument & doc)
virtual

Parse file and write into doc.

Parameters
docto be written
Returns
error status of the read.

currently not used anywhere

Definition at line 41 of file keduvockvtmlreader.cpp.

◆ readArticle()

bool KEduVocKvtmlReader::readArticle ( QDomElement & domElementParent)

Definition at line 235 of file keduvockvtmlreader.cpp.

◆ readBody()

bool KEduVocKvtmlReader::readBody ( QDomElement & domElementParent)

Definition at line 110 of file keduvockvtmlreader.cpp.

◆ readComparison()

bool KEduVocKvtmlReader::readComparison ( QDomElement & domElementParent,
KEduVocTranslation * translation )

Definition at line 629 of file keduvockvtmlreader.cpp.

◆ readConjugation()

bool KEduVocKvtmlReader::readConjugation ( QDomElement & domElementParent,
KEduVocConjugation & conjugation )

Definition at line 355 of file keduvockvtmlreader.cpp.

◆ readExpression()

bool KEduVocKvtmlReader::readExpression ( QDomElement & domElementParent)
Todo
can this happen? does it need a while loop?
Todo
include false friends from kvtml-1 again?
Todo
include synonyms from kvtml-1 again?

Definition at line 838 of file keduvockvtmlreader.cpp.

◆ readExpressionChildAttributes()

bool KEduVocKvtmlReader::readExpressionChildAttributes ( QDomElement & domElementExpressionChild,
QString & lang,
grade_t & grade,
grade_t & rev_grade,
int & count,
int & rev_count,
QDateTime & date,
QDateTime & rev_date,
QString & remark,
int & bcount,
int & rev_bcount,
QString & query_id,
QString & pronunciation,
int & width,
QString & type,
QString & faux_ami_f,
QString & faux_ami_t,
QString & synonym,
QString & example,
QString & antonym,
QSet< QString > & usage,
QString & paraphrase )

Definition at line 694 of file keduvockvtmlreader.cpp.

◆ readLesson()

bool KEduVocKvtmlReader::readLesson ( QDomElement & domElementParent)

Definition at line 192 of file keduvockvtmlreader.cpp.

◆ readMultipleChoice()

bool KEduVocKvtmlReader::readMultipleChoice ( QDomElement & domElementParent,
KEduVocTranslation * translation )

Definition at line 649 of file keduvockvtmlreader.cpp.

◆ readPersonalPronouns()

bool KEduVocKvtmlReader::readPersonalPronouns ( QDomElement & domElementParent,
KEduVocPersonalPronoun & pronouns )

Definition at line 485 of file keduvockvtmlreader.cpp.

◆ readTense()

bool KEduVocKvtmlReader::readTense ( QDomElement & domElementParent)

Definition at line 616 of file keduvockvtmlreader.cpp.

◆ readTranslationConjugations()

bool KEduVocKvtmlReader::readTranslationConjugations ( QDomElement & domElementParent,
KEduVocTranslation * translation )

Definition at line 335 of file keduvockvtmlreader.cpp.

◆ readType()

bool KEduVocKvtmlReader::readType ( QDomElement & domElementParent)

Definition at line 588 of file keduvockvtmlreader.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 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.