TUuidEventLoop Class
继承于QEventLoop, 但可以存储一个唯一编号和自定义数据; 一般用于调用多线程类, 需等待线程回复数据时; More...
| Header: | #include <TUuidEventLoop> |
| Inherits: | QEventLoop |
Public Functions
| TUuidEventLoop(QObject *parent = 0) | |
| TUuidEventLoop(const QString &iUuidStr, QObject *parent = 0) | |
| ~TUuidEventLoop() |
- 7 public functions inherited from QEventLoop
- 31 public functions inherited from QObject
Public Slots
| QVariantMap | data() const |
| void | quit(const QString &iUuidStr, const QVariantMap &iDataVarMap) |
| void | setUuid(const QString &iUuidStr) |
| QString | uuid() const |
- 1 public slot inherited from QEventLoop
- 1 public slot inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 2 signals inherited from QObject
- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
继承于QEventLoop, 但可以存储一个唯一编号和自定义数据; 一般用于调用多线程类, 需等待线程回复数据时;
Member Function Documentation
TUuidEventLoop::TUuidEventLoop(QObject *parent = 0)
TUuidEventLoop::TUuidEventLoop parent
TUuidEventLoop::TUuidEventLoop(const QString &iUuidStr, QObject *parent = 0)
Default constructs an instance of TUuidEventLoop.
TUuidEventLoop::~TUuidEventLoop()
Destroys the instance of TUuidEventLoop.
[slot] QVariantMap TUuidEventLoop::data() const
获取事件循环绑定的额外数据;
[slot] void TUuidEventLoop::quit(const QString &iUuidStr, const QVariantMap &iDataVarMap)
当 iUuidStr 与 uuid() 相等时, QEventLoop才会退出, 并将 iDataVarMap 赋值给 data() ;
[slot] void TUuidEventLoop::setUuid(const QString &iUuidStr)
设置事件循环的唯一编号;
See also uuid().
[slot] QString TUuidEventLoop::uuid() const
返回事件循环的唯一编号;
See also setUuid().