qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
qTbot::FileWaiter Class Reference

The FileWaiter class. This is a simple storage for the shared pointer of files. All added files will be removed (shared object) after finish donwload or upload. More...

#include <filewaiter.h>

Public Member Functions

 FileWaiter ()
 
void wait (const QSharedPointer< iFile > &file)
 wait This method add shared pointer of file in to local storage, and remove it from this when file change state to finish.
 

Detailed Description

The FileWaiter class. This is a simple storage for the shared pointer of files. All added files will be removed (shared object) after finish donwload or upload.

Definition at line 20 of file filewaiter.h.

Inheritance diagram for qTbot::FileWaiter:
Inheritance graph
Collaboration diagram for qTbot::FileWaiter:
Collaboration graph

Constructor & Destructor Documentation

◆ FileWaiter()

qTbot::FileWaiter::FileWaiter ( )

Definition at line 10 of file filewaiter.cpp.

Member Function Documentation

◆ wait()

void qTbot::FileWaiter::wait ( const QSharedPointer< iFile > &  file)

wait This method add shared pointer of file in to local storage, and remove it from this when file change state to finish.

Parameters
fileThis is a processed file.
Note
The file will not added if the file alredey finished.
This method not stop thread, it is just save a file until it is is progres

Definition at line 15 of file filewaiter.cpp.

Here is the call graph for this function:

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