AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError Class Reference

#include <ManagedGError.h>

Public Member Functions

 ManagedGError (GError *error)
 
 ManagedGError ()
 
bool hasError ()
 
GError ** toOutputParameter ()
 
 ~ManagedGError ()
 
const char * getMessage ()
 

Detailed Description

Wrapper for GLib's GError returned by the most of DBus methods. This class is not thread safe.

Constructor & Destructor Documentation

◆ ManagedGError() [1/2]

alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::ManagedGError ( GError *  error)
inlineexplicit

A constructor initializing object with existing GError* value.

Parameters
errorerror to be attached.

◆ ManagedGError() [2/2]

alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::ManagedGError ( )
inline

A constructor initializing object with an emtpy (no error) value

◆ ~ManagedGError()

alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::~ManagedGError ( )
inline

A destructor

Member Function Documentation

◆ getMessage()

const char * alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::getMessage ( )
inline

Get the message associated with the error. Returns nullptr if there is no error. The pointer is valid as long as the ManagedGError object exists.

Returns
A message associated with the error.

◆ hasError()

bool alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::hasError ( )
inline

Check if object contains any error.

Returns
true if there is an error

◆ toOutputParameter()

GError ** alexaClientSDK::bluetoothImplementations::blueZ::ManagedGError::toOutputParameter ( )
inline

Get a pointer to GError* variable

Returns
A pointer to the internal variable holding the error

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

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0