#include <channelioformat.h>
Inheritance diagram for ChannelIOFormat::
Public Types | |
enum | Flags { FormatRead = 0x1, FormatWrite = 0x2, FormatReadWrite = FormatRead | FormatWrite } |
Public Methods | |
ChannelIOFormat (const char *name, int flags=FormatReadWrite) | |
virtual | ~ChannelIOFormat () |
const char * | name () const |
bool | canRead (const char *fmt=0) const |
bool | canWrite (const char *fmt=0) const |
virtual bool | handlesFile (const QString &filename, int rflags) const |
bool | load (ChannelStore *store, const QString &filename, const char *fmt) |
bool | save (ChannelStore *store, const QString &filename, const char *fmt) |
virtual bool | load (ChannelStore *store, QIODevice *file, const char *fmt) |
virtual bool | save (ChannelStore *store, QIODevice *file, const char *fmt) |
ChannelFileMetaInfo | getMetaInfo (const QString &filename, const char *fmt) |
virtual ChannelFileMetaInfo | getMetaInfo (QIODevice *file, const char *fmt) |
Protected Attributes | |
PluginDesc | _description |
ChannelFileMetaInfo | metaInfo |
QtVision * | _qtv |
Friends | |
class | PluginFactory |
|
Flags indicating the level of support provided by the handler.
|
|
The name of the format.
|
|
Returns true iff this object can read the specified format. If no format is specified, then it is assumed that the user wants to know about the one returned by name() . |
|
Returns true iff this object can write the specified format.
|
|
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. Reimplemented in ChannelIOFormatZapping. |
|
Load the specified file into the specified store. Returns true on success, false otherwise. |
|
Save the specified store into the specified file. Returns true on success, false otherwise. |
|
Load the contents of the specified QIODevice into the specified store. Returns true on success, false otherwise. Reimplemented in ChannelIOFormatCSV, ChannelIOFormatKWinTV2, ChannelIOFormatXML, and ChannelIOFormatZapping. |
|
Save the contents of the specified store into the specified QIODevice. Returns true on success, false otherwise. Reimplemented in ChannelIOFormatCSV, ChannelIOFormatKWinTV2, and ChannelIOFormatXML. |
|
Load the metainfo for the given file.
|