|
Thumbnailer Qt API
|
Holds a thumbnailer request. More...
#include <unity/thumbnailer/qt/thumbnailer-qt.h>
Signals | |
| void | finished () |
| This signal is emitted when the request completes. More... | |
Public Member Functions | |
| bool | isFinished () const |
| Returns whether the request has completed. More... | |
| QImage | image () const |
| Returns the thumbnail. More... | |
| QString | errorMessage () const |
| Returns the error message for a failed request. More... | |
| bool | isValid () const |
| Returns whether the request completed successfully. More... | |
| void | waitForFinished () |
| Blocks the calling thread until the request completes. More... | |
| void | cancel () |
| Cancel the thumbnail request. More... | |
Holds a thumbnailer request.
This class stores the state of an in-progress or completed thumbnail request.
| void unity::thumbnailer::qt::Request::cancel | ( | ) |
Cancel the thumbnail request.
The finished signal will be emitted and the request will be considered to be in an invalid state with an error message set.
| QString unity::thumbnailer::qt::Request::errorMessage | ( | ) | const |
Returns the error message for a failed request.
QString, otherwise.
|
signal |
This signal is emitted when the request completes.
| QImage unity::thumbnailer::qt::Request::image | ( | ) | const |
Returns the thumbnail.
QImage, otherwise. | bool unity::thumbnailer::qt::Request::isFinished | ( | ) | const |
Returns whether the request has completed.
false if the request is still in progress. Otherwise, the return value is true (whether the request completed successfully or not). | bool unity::thumbnailer::qt::Request::isValid | ( | ) | const |
Returns whether the request completed successfully.
true if the request completed successfully. Otherwise, if the request is still in progress or has failed, the return value is false. | void unity::thumbnailer::qt::Request::waitForFinished | ( | ) |
Blocks the calling thread until the request completes.