tuned-switcher 1.1.0
Performance profile manager
Loading...
Searching...
No Matches
QTunedResult Struct Reference

#include <tunedtypes.h>

Public Member Functions

 QTunedResult ()
 
 QTunedResult (bool success, QString message)
 
 operator bool () const
 

Public Attributes

bool Success
 
QString Message
 

Friends

QDBusArgument & operator<< (QDBusArgument &argument, const QTunedResult &result)
 
const QDBusArgument & operator>> (const QDBusArgument &argument, QTunedResult &result)
 

Detailed Description

Structure for working with the return values of the Tuned methods.

Constructor & Destructor Documentation

◆ QTunedResult() [1/2]

QTunedResult::QTunedResult ( )
inline

Constructor of the QTunedResult structure.

◆ QTunedResult() [2/2]

QTunedResult::QTunedResult ( bool success,
QString message )
inline

Alternative constructor of the QTunedResult structure.

Parameters
successMethod result.
messageResult message.

Member Function Documentation

◆ operator bool()

QTunedResult::operator bool ( ) const
inline

QTunedResult check operator.

Returns
Method result.
Return values
trueMethod returned success.
falseMethod returned an error.

Friends And Related Symbol Documentation

◆ operator<<

QDBusArgument & operator<< ( QDBusArgument & argument,
const QTunedResult & result )
friend

Operator << of the QTunedResult structure.

Parameters
argumentInstance of the QDBusArgument class.
resultInstance of the QTunedResult class.

◆ operator>>

const QDBusArgument & operator>> ( const QDBusArgument & argument,
QTunedResult & result )
friend

Operator >> of the QTunedResult structure.

Parameters
argumentInstance of the QDBusArgument class.
resultInstance of the QTunedResult class.

Member Data Documentation

◆ Message

QString QTunedResult::Message

Result message.

◆ Success

bool QTunedResult::Success

Method result.


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