lokalize
GettextCatalog::GettextImportPlugin Class Reference
#include <gettextimport.h>
Inheritance diagram for GettextCatalog::GettextImportPlugin:
Public Member Functions | |
GettextImportPlugin () | |
const QString | id () |
ConversionStatus | load (QIODevice *) |
Public Member Functions inherited from GettextCatalog::CatalogImportPlugin | |
CatalogImportPlugin () | |
virtual | ~CatalogImportPlugin () |
ConversionStatus | open (QIODevice *, GettextStorage *catalog, int *errorLine) |
Additional Inherited Members | |
Protected Member Functions inherited from GettextCatalog::CatalogImportPlugin | |
void | appendCatalogItem (const CatalogItem &item, const bool obsolete=false) |
void | commitTransaction () |
void | setCatalogExtraData (const QStringList &data) |
void | setCodec (QTextCodec *codec) |
void | setErrorIndex (const QList< int > &errors) |
void | setGeneratedFromDocbook (const bool fromDocbook) |
void | setHeader (const CatalogItem &header) |
void | startTransaction () |
Protected Attributes inherited from GettextCatalog::CatalogImportPlugin | |
int | _errorLine |
short | _maxLineLength |
short | _trailingNewLines |
Detailed Description
The class for importing GNU gettext PO files.
As an extra information, it stores the list of all obsolete entries. Gettext PO parser
Definition at line 70 of file gettextimport.h.
Constructor & Destructor Documentation
GettextImportPlugin::GettextImportPlugin | ( | ) |
Definition at line 63 of file gettextimport.cpp.
Member Function Documentation
|
inline |
Definition at line 77 of file gettextimport.h.
|
virtual |
Reimplement this method to load the local file passed as an argument.
Throughout the run, you can use the protected methods for setting the contents of the resulting catalog. This method must call
- See also
- setMimeTypes to setup correct MIME types for the loaded file. Also, it should use
- isStopped to abort loading and the signals for providing user feedback.
- Parameters
-
file file to be loaded mimetype the expected MIME type (the type used for plugin selection
Implements GettextCatalog::CatalogImportPlugin.
Definition at line 89 of file gettextimport.cpp.
The documentation for this class was generated from the following files:
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.