Logo Search packages:      
Sourcecode: kaider-kde4 version File versions  Download package

void CatalogImportPlugin::commitTransaction ( const QString &  a = QString()  )  [protected]

commit the data in the current transaction. You should never call this method.

Definition at line 140 of file importplugin.cpp.

References d, and id().

Referenced by open().

{
    if( d->_started )
    {
      d->_catalog->clear();

      // fill in the entries
      d->_catalog->d->_entries.reserve( d->_entries.count() ); //d->_catalog->setEntries( e );
        uint i=0;
      for( QLinkedList<CatalogItem>::const_iterator it = d->_entries.begin(); it != d->_entries.end(); ++it,++i )
        {
          d->_catalog->d->_entries.append( *it );
            if (it->isFuzzy())
                d->_catalog->d->_fuzzyIndex << i;
            if (it->isUntranslated())
                d->_catalog->d->_untransIndex << i;
        }

      
      
      
        d->_catalog->d->_obsoleteEntries=d->_obsoleteEntries;//d->_catalog->setObsoleteEntries( d->_obsoleteEntries );
      
        d->_catalog->d->_url=KUrl(file);

      if( d->_updateCodec )
            d->_catalog->setFileCodec(d->_codec);
      if( d->_updateCatalogExtraData )
          d->_catalog->d->_catalogExtraData=d->_catalogExtraData;
      if( d->_updateGeneratedFromDocbook ) 
          d->_catalog->d->_generatedFromDocbook=d->_generatedFromDocbook;
      if( d->_updateHeader ) 
          d->_catalog->setHeader(d->_header);
      if( d->_updateErrorList ) 
          d->_catalog->setErrorIndex(d->_errorList);
      
      d->_catalog->d->_importID=id();
      d->_catalog->setMimeTypes( d->_mimeTypes );

        d->_catalog->d->_maxLineLength=_maxLineLength;

        // notify of the finish, so that MergeCatalog
        d->_catalog->importFinished();
    }

    d->_started = false;
}


Generated by  Doxygen 1.6.0   Back to index