![]() |
LeechCraft Monocle
0.6.70-13729-g7046a9d2a7
Modular document viewer for LeechCraft
|
A proxy object for a pending font info request. More...
#include "ihavefontinfo.h"
Public Member Functions | |
virtual | ~IPendingFontInfoRequest () |
virtual QObject * | GetQObject ()=0 |
Returns this object as a QObject. More... | |
virtual QList< FontInfo > | GetFontInfos () const =0 |
Returns the font information list for the document. More... | |
Protected Member Functions | |
virtual void | ready ()=0 |
Notifies that the request is completed. More... | |
A proxy object for a pending font info request.
The IPendingFontInfoRequest object is returned from the IHaveFontInfo::RequestFontInfos() method. The object is initially in pending state until the ready() signal is emitted, after which the font info can be obtained via the GetFontInfos() method. The GetQObject() method can be used to get a QObject*
to pass in connect()
.
The object is used to support asynchronous font info fetching, though some single-threaded format implementations may block.
The IPendingFontInfoRequest objects are self-owning, that is, they schedule their own destruction shortly after emitting the ready() signal. The object can be used no later than in slots connected to the ready() signal via Qt::DirectConnection
.
Definition at line 85 of file ihavefontinfo.h.
|
inlinevirtual |
Definition at line 88 of file ihavefontinfo.h.
|
pure virtual |
|
pure virtual |
Returns this object as a QObject.
|
protectedpure virtual |
Notifies that the request is completed.
This signal is emitted to notify that the IPendingFontInfoRequest object became ready and can now be queried via the GetFontInfos() method.
The IPendingFontInfoRequest will schedule the self deletion after emitting this signal.