QtService  1.1.0
A platform independent library to easily create system services and use some of their features
Public Types | Public Member Functions | List of all members
QtService::Terminal::Awaitable Class Reference

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.
 
Awaitableoperator= (Awaitable &&other) noexcept
 Move assignment operator.
 

Detailed Description

A helper class to be used with QtCoroutines to await io from a coroutine.

Definition at line 28 of file terminal.h.

Member Enumeration Documentation

◆ SpecialReads

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.


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