QtlMovie 1.12 (A specialized FFmpeg front-end)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
QtlDataPullSynchronousWrapper Class Reference

A class which synchronously waits for a QtlDataPull. More...

Inheritance diagram for QtlDataPullSynchronousWrapper:

Public Member Functions

 QtlDataPullSynchronousWrapper (QtlDataPull *dataPull, QIODevice *device, QObject *parent=0)
 Synchronous contructor starting a QtlDataPull and waiting for its completion. More...
 
 QtlDataPullSynchronousWrapper (QtlDataPull *dataPull, const QList< QIODevice *> &devices, QObject *parent=0)
 Synchronous contructor starting a QtlDataPull and waiting for its completion. More...
 
bool success () const
 Check if the QtlDataPull completed without error. More...
 

Private Slots

void completed (bool success)
 Invoked when the transfer is completed on all devices. More...
 

Private Member Functions

 QtlDataPullSynchronousWrapper () Q_DECL_EQ_DELETE
 

Private Attributes

QEventLoop _loop
 Internal event loop for synchronous wait. More...
 
bool _success
 True if the QtlDataPull completed without error. More...
 

Detailed Description

A class which synchronously waits for a QtlDataPull.

Constructor & Destructor Documentation

◆ QtlDataPullSynchronousWrapper() [1/3]

QtlDataPullSynchronousWrapper::QtlDataPullSynchronousWrapper ( QtlDataPull dataPull,
QIODevice *  device,
QObject *  parent = 0 
)

Synchronous contructor starting a QtlDataPull and waiting for its completion.

Parameters
[in]dataPullThe QtlDataPull instance to start.
[in]deviceData destination. Must be open for write.
[in]parentOptional parent object.

◆ QtlDataPullSynchronousWrapper() [2/3]

QtlDataPullSynchronousWrapper::QtlDataPullSynchronousWrapper ( QtlDataPull dataPull,
const QList< QIODevice *> &  devices,
QObject *  parent = 0 
)

Synchronous contructor starting a QtlDataPull and waiting for its completion.

Parameters
[in]dataPullThe QtlDataPull instance to start.
[in]devicesData destinations. Must be open for write.
[in]parentOptional parent object.

◆ QtlDataPullSynchronousWrapper() [3/3]

QtlDataPullSynchronousWrapper::QtlDataPullSynchronousWrapper ( )
private

Member Function Documentation

◆ success()

bool QtlDataPullSynchronousWrapper::success ( ) const
inline

Check if the QtlDataPull completed without error.

Returns
True if the QtlDataPull completed without error.

◆ completed

void QtlDataPullSynchronousWrapper::completed ( bool  success)
privateslot

Invoked when the transfer is completed on all devices.

Parameters
[in]successTrue if all data were successfully transmitted.

Member Data Documentation

◆ _loop

QEventLoop QtlDataPullSynchronousWrapper::_loop
private

Internal event loop for synchronous wait.

◆ _success

bool QtlDataPullSynchronousWrapper::_success
private

True if the QtlDataPull completed without error.


The documentation for this class was generated from the following files: