• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

lokalize

  • GettextCatalog
  • GettextImportPlugin
Public Member Functions | List of all members
GettextCatalog::GettextImportPlugin Class Reference

#include <gettextimport.h>

Inheritance diagram for GettextCatalog::GettextImportPlugin:
Inheritance graph
[legend]

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

const QString GettextCatalog::GettextImportPlugin::id ( )
inline

Definition at line 77 of file gettextimport.h.

ConversionStatus GettextImportPlugin::load ( QIODevice *  )
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
filefile to be loaded
mimetypethe 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:
  • gettextimport.h
  • gettextimport.cpp
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

KDE's Doxygen guidelines are available online.

lokalize

Skip menu "lokalize"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal