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

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 Mon Nov 18 2024 12:15:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.