Workspace 6.21.5
Public Member Functions | List of all members
QmlLogStream Class Reference

#include <Workspace/Qml/qmlworkspacelog.h>

Inheritance diagram for QmlLogStream:
[legend]

Public Member Functions

 QmlLogStream ()=default
 
void addQmlObject (QmlWorkspaceLog &obj)
 
void flush () override
 
bool isStreamOkay () const override
 
- Public Member Functions inherited from LogStream
virtual ~LogStream ()
 
virtual void flush ()=0
 
virtual bool isStreamOkay () const =0
 
void logText (const QString &msg, const QDateTime &timestamp)
 

Constructor & Destructor Documentation

◆ QmlLogStream()

QmlLogStream ( )
default

Member Function Documentation

◆ addQmlObject()

void addQmlObject ( QmlWorkspaceLog obj)
inline

◆ flush()

void flush ( )
inlineoverridevirtual

Clients would not normally need to call this function, but if for some reason they want to be sure that all logged text has been sent to where it needs to go before performing some task, they can call flush(). When flush() returns, all underlying streams and buffers associated with the LogStream object will have been flushed to disk, etc.

Implements LogStream.

◆ isStreamOkay()

bool isStreamOkay ( ) const
inlineoverridevirtual
Returns
True if the stream is able to accept text for writing.

Implements LogStream.