Main Page   Class Hierarchy   Compound List   File List   Compound Members  

ChannelIOFormatZapping Class Reference

Implements the Zapping (http://zapping.sf.net) XML channel format. More...

#include <channeliozapping.h>

Inheritance diagram for ChannelIOFormatZapping::

ChannelIOFormat List of all members.

Public Methods

 ChannelIOFormatZapping ()
virtual ~ChannelIOFormatZapping ()
virtual bool load (ChannelStore *store, QIODevice *file, const char *fmt)
virtual ChannelFileMetaInfo getMetaInfo (QIODevice *file, const char *fmt)
bool handlesFile (const QString &filename, int rflags) const

Protected Methods

bool readDocument (ChannelStore *store, const QDomDocument &doc)

Static Protected Methods

QDomNode FindSubtree (const QDomNode &node, const QString &name)

Detailed Description

Implements the Zapping (http://zapping.sf.net) XML channel format.

This is a read only channel format.

Version:
Id:
channeliozapping.h,v 1.1 2002/09/11 03:26:54 staikos Exp
Author:
Zsolt Rizsanyi, rizsanyi@myrealbox.com


Member Function Documentation

virtual bool ChannelIOFormatZapping::load ChannelStore * store,
QIODevice * file,
const char * fmt
[virtual]
 

Load the contents of the specified QIODevice into the specified store.

Returns true on success, false otherwise.

Reimplemented from ChannelIOFormat.

bool ChannelIOFormatZapping::handlesFile const QString & filename,
int rflags
const [virtual]
 

Returns true if this object can handle the specified file.

This function should do a quick test about the file, so the proper format could be easily selected. The default implementation only checks, if a filename ends with the name of the format. If thats not appropriate, then you should override this method. rflags the requested flags

Reimplemented from ChannelIOFormat.

QDomNode ChannelIOFormatZapping::FindSubtree const QDomNode & node,
const QString & name
[static, protected]
 

Finds a subtree of node with name name.


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:03 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001