|
QtService
1.1.0
A platform independent library to easily create system services and use some of their features
|
A helper class to be used with QtCoroutines to await io from a coroutine. More...
#include <terminal.h>
Public Types | |
| enum | SpecialReads : qint64 { ReadLine = 0, ReadSingle = 1 } |
| Special read modes. More... | |
Public Member Functions | |
| Awaitable (Terminal *terminal, qint64 readCnt=ReadSingle) | |
| Create an awaitable for the given terminal and specify how much data should be read. | |
| Awaitable (Awaitable &&other) noexcept | |
| Move constructor. | |
| Awaitable & | operator= (Awaitable &&other) noexcept |
| Move assignment operator. | |
A helper class to be used with QtCoroutines to await io from a coroutine.
Definition at line 28 of file terminal.h.
| enum QtService::Terminal::Awaitable::SpecialReads : qint64 |
Special read modes.
| Enumerator | |
|---|---|
| ReadLine | Read until the next newline (QIODevice::readLine) |
| ReadSingle | Read only a single character. |
Definition at line 32 of file terminal.h.
1.8.14