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

kaddressbook

Public Member Functions | List of all members
QCsvStandardBuilder Class Reference

#include <qcsvreader.h>

Inheritance diagram for QCsvStandardBuilder:
Inheritance graph
[legend]

Public Member Functions

 QCsvStandardBuilder ()
 
 ~QCsvStandardBuilder ()
 
void begin ()
 
void beginLine ()
 
uint columnCount () const
 
QString data (uint row, uint column) const
 
void end ()
 
void endLine ()
 
void error (const QString &errorMsg)
 
void field (const QString &data, uint row, uint column)
 
QString lastErrorString () const
 
uint rowCount () const
 
- Public Member Functions inherited from QCsvBuilderInterface
virtual ~QCsvBuilderInterface ()
 

Detailed Description

A convenience class that implements QCsvBuilderInterface.

QCsvStandardBuilder is a convenience class which stores the parsed data from a csv list.

Author
Tobias Koenig tokoe.nosp@m.@kde.nosp@m..org

Definition at line 186 of file qcsvreader.h.

Constructor & Destructor Documentation

QCsvStandardBuilder::QCsvStandardBuilder ( )

Creates a new csv standard builder.

Definition at line 336 of file qcsvreader.cpp.

QCsvStandardBuilder::~QCsvStandardBuilder ( )

Destroys the csv standard builder.

Definition at line 341 of file qcsvreader.cpp.

Member Function Documentation

void QCsvStandardBuilder::begin ( )
virtual

Implements QCsvBuilderInterface.

Definition at line 370 of file qcsvreader.cpp.

void QCsvStandardBuilder::beginLine ( )
virtual

This method is called whenever a new line starts.

Implements QCsvBuilderInterface.

Definition at line 375 of file qcsvreader.cpp.

uint QCsvStandardBuilder::columnCount ( ) const

Returns the number of columns.

Definition at line 356 of file qcsvreader.cpp.

QString QCsvStandardBuilder::data ( uint  row,
uint  column 
) const

Returns the data of the field at the given row and column.

Definition at line 361 of file qcsvreader.cpp.

void QCsvStandardBuilder::end ( )
virtual

This method is called at the end of parsing.

Implements QCsvBuilderInterface.

Definition at line 399 of file qcsvreader.cpp.

void QCsvStandardBuilder::endLine ( )
virtual

This method is called whenever a line ends.

Implements QCsvBuilderInterface.

Definition at line 395 of file qcsvreader.cpp.

void QCsvStandardBuilder::error ( const QString &  errorMsg)
virtual

This method is called whenever an error occurs during parsing.

Parameters
errorMsgThe error message.

Implements QCsvBuilderInterface.

Definition at line 403 of file qcsvreader.cpp.

void QCsvStandardBuilder::field ( const QString &  data,
uint  row,
uint  column 
)
virtual

This method is called for every parsed field.

Parameters
dataThe data of the field.
rowThe row of the field.
columnThe column of the field.

Implements QCsvBuilderInterface.

Definition at line 381 of file qcsvreader.cpp.

QString QCsvStandardBuilder::lastErrorString ( ) const

Returns the error message of the last error.

Definition at line 346 of file qcsvreader.cpp.

uint QCsvStandardBuilder::rowCount ( ) const

Returns the number of rows.

Definition at line 351 of file qcsvreader.cpp.


The documentation for this class was generated from the following files:
  • qcsvreader.h
  • qcsvreader.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

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