Back to index

kdeartwork  4.3.2
Public Member Functions | Private Attributes
KXSXml Class Reference

#include <kxsxml.h>

Collaboration diagram for KXSXml:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KXSXml (QWidget *p)
bool parse (const QString &filename)
QList< KXSConfigItem * > items () const
QString description () const

Private Attributes

QWidget * parent
KXSXmlHandlerhandler

Detailed Description

Definition at line 33 of file kxsxml.h.


Constructor & Destructor Documentation

KXSXml::KXSXml ( QWidget *  p)

Definition at line 30 of file kxsxml.cpp.

    : parent(p), handler(0)
{
}

Member Function Documentation

QString KXSXml::description ( ) const

Definition at line 55 of file kxsxml.cpp.

{
    if ( handler )
       return handler->description();
    return QString();
}

Here is the call graph for this function:

Here is the caller graph for this function:

QList< KXSConfigItem * > KXSXml::items ( ) const

Definition at line 48 of file kxsxml.cpp.

{
    if ( handler )
       return handler->items();
    return QList<KXSConfigItem*>();
}

Here is the call graph for this function:

Here is the caller graph for this function:

bool KXSXml::parse ( const QString &  filename)

Definition at line 35 of file kxsxml.cpp.

{
    QFile file( filename );
    handler = new KXSXmlHandler( parent );
    QXmlInputSource source( &file );
    QXmlSimpleReader reader;
    reader.setContentHandler( handler );
    if ( !reader.parse( &source, false ) )
       return false;

    return true;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 44 of file kxsxml.h.

QWidget* KXSXml::parent [private]

Definition at line 43 of file kxsxml.h.


The documentation for this class was generated from the following files: