class ChannelIOFormat

Base-class of all channel format implementations. More...

Definition#include <channelioformat.h>
Inherited byChannelIOFormatCSV, ChannelIOFormatKWinTV2, ChannelIOFormatXML
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods


Detailed Description

Base-class of all channel format implementations.

enum Flags { FormatRead = 0x1, FormatWrite = 0x2, FormatReadWrite = FormatRead | FormatWrite }

Flags

Flags indicating the level of support provided by the handler.

 ChannelIOFormat ( const char *name, int flags = FormatReadWrite )

ChannelIOFormat

 ~ChannelIOFormat ()

~ChannelIOFormat

[virtual]

const char * name ()

name

[const]

The name of the format.

bool  canRead ( const char *fmt=0 )

canRead

[const]

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() .

bool  canWrite ( const char *fmt=0 )

canWrite

[const]

Returns true iff this object can write the specified format.

See also: canRead(), .

bool  load ( ChannelStore *store, const QString &filename, const char *fmt )

load

Load the specified file into the specified store. Returns true on success, false otherwise.

bool  save ( ChannelStore *store, const QString &filename, const char *fmt )

save

Save the specified store into the specified file. Returns true on success, false otherwise.

bool  load ( ChannelStore *store, QIODevice *file, const char *fmt )

load

[virtual]

Load the contents of the specified QIODevice into the specified store. Returns true on success, false otherwise.

bool  save ( ChannelStore *store, QIODevice *file, const char *fmt )

save

[virtual]

Save the contents of the specified store into the specified QIODevice. Returns true on success, false otherwise.