lokalize
importplugin.cpp
Go to the documentation of this file.
101 ConversionStatus CatalogImportPlugin::open(QIODevice* device, GettextStorage* catalog, int* line)
134 for( QLinkedList<CatalogItem>::const_iterator it = d->_entries.begin(); it != d->_entries.end(); ++it/*,++i*/ )
bool _updateCatalogExtraData
Definition: importplugin_private.h:55
void setCatalogExtraData(const QStringList &data)
set extra data for the catalog, which can't be stored in CatalogItem.
Definition: importplugin.cpp:72
CatalogItem _header
Definition: importplugin_private.h:60
void append(const T &value)
const QString & msgid(const int form=0) const
Definition: catalogitem.cpp:73
GettextStorage * _catalog
Definition: importplugin_private.h:50
This class represents an entry in a catalog.
Definition: catalogitem.h:55
QList< int > _errorList
Definition: importplugin_private.h:62
QLinkedList< CatalogItem > _obsoleteEntries
Definition: importplugin_private.h:59
virtual ~CatalogImportPlugin()
Definition: importplugin.cpp:57
virtual ConversionStatus load(QIODevice *)=0
Reimplement this method to load the local file passed as an argument.
CatalogImportPlugin()
Definition: importplugin.cpp:51
bool _updateCodec
Definition: importplugin_private.h:53
void commitTransaction()
commit the data in the current transaction.
Definition: importplugin.cpp:125
Header error that could be recovered.
Definition: catalogfileplugin.h:63
bool isEmpty() const
void setErrorIndex(const QList< int > &errors)
set the list of parse error indexes
Definition: importplugin.cpp:84
void appendCatalogItem(const CatalogItem &item, const bool obsolete=false)
Append a new catalog item, either as normal or as an obsolete one.
Definition: importplugin.cpp:62
bool _updateErrorList
Definition: importplugin_private.h:54
void setCodec(QTextCodec *codec)
Set the character encoding used in the catalog file.
Definition: importplugin.cpp:96
bool _generatedFromDocbook
Definition: importplugin_private.h:57
void reserve(int size)
short _maxLineLength
Definition: catalogfileplugin.h:140
QStringList _catalogExtraData
Definition: importplugin_private.h:63
QTextCodec * _codec
Definition: importplugin_private.h:61
bool _updateGeneratedFromDocbook
Definition: importplugin_private.h:52
void setGeneratedFromDocbook(const bool fromDocbook)
set flag that the file is generated from DocBook
Definition: importplugin.cpp:78
QLinkedList< CatalogItem > _entries
Definition: importplugin_private.h:58
void setHeader(const CatalogItem &header)
set the header catalog item
Definition: importplugin.cpp:90
bool _updateHeader
Definition: importplugin_private.h:51
Implementation of storage for Gettext PO.
Definition: gettextstorage.h:39
ConversionStatus open(QIODevice *, GettextStorage *catalog, int *errorLine)
Load the file and fill the corresponding catalog.
Definition: importplugin.cpp:101
short _trailingNewLines
Definition: catalogfileplugin.h:141
Definition: catalogfileplugin.h:54
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.