ReaderManager

Search for usage in LXR

#include <readermanager.h>

Public Types

typedef QSharedPointer< ReaderBaseReaderPtr
 

Static Public Member Functions

static ReaderPtr reader (QIODevice &device)
 

Detailed Description

manages the choice of readers.

When ReaderManager goes out of scope it frees its reader.

Definition at line 19 of file readermanager.h.

Member Typedef Documentation

◆ ReaderPtr

a QSharedPointer to the ReaderBase class.

Definition at line 23 of file readermanager.h.

Member Function Documentation

◆ reader()

ReaderManager::ReaderPtr ReaderManager::reader ( QIODevice & device)
static

returns a reader that can read this device.

The device must be open for read and seekable. The manager checks all the readers that are known. If none of them can parse this file/device it returns a BadReader.

Parameters
devicean open readable, non-sequential device.
Returns
a QSharedPointer<ReaderBase> for the device.

Definition at line 21 of file readermanager.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:55:29 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.