Music Hub ..
A session-wide music playback service
Loading...
Searching...
No Matches
lomiri::MediaHub::Error Class Reference

#include <error.h>

Collaboration diagram for lomiri::MediaHub::Error:

Public Types

enum  Code {
  NoError ,
  ResourceError ,
  FormatError ,
  NetworkError ,
  AccessDeniedError ,
  ServiceMissingError ,
  InternalError ,
  OutOfProcessBufferStreamingNotSupported
}

Public Member Functions

 Error (Code code=NoError, const QString &message=QString())
bool operator== (const Error &o) const
Code code () const
bool isError () const
const QString & message () const
QString toString () const

Detailed Description

Definition at line 29 of file error.h.

Member Enumeration Documentation

◆ Code

Enumerator
NoError 
ResourceError 
FormatError 
NetworkError 
AccessDeniedError 
ServiceMissingError 
InternalError 
OutOfProcessBufferStreamingNotSupported 

Definition at line 32 of file error.h.

Constructor & Destructor Documentation

◆ Error()

lomiri::MediaHub::Error::Error ( Code code = NoError,
const QString & message = QString() )
inline

Definition at line 43 of file error.h.

References code(), message(), and NoError.

Referenced by operator==().

Here is the call graph for this function:

Member Function Documentation

◆ code()

Code lomiri::MediaHub::Error::code ( ) const
inline

Definition at line 50 of file error.h.

Referenced by Error(), lomiri::MediaHub::operator<<(), and operator==().

◆ isError()

bool lomiri::MediaHub::Error::isError ( ) const
inline

Definition at line 51 of file error.h.

References NoError.

Referenced by lomiri::MediaHub::PlayerPrivate::onError().

◆ message()

const QString & lomiri::MediaHub::Error::message ( ) const
inline

Definition at line 53 of file error.h.

Referenced by Error(), lomiri::MediaHub::operator<<(), and operator==().

◆ operator==()

bool lomiri::MediaHub::Error::operator== ( const Error & o) const
inline

Definition at line 46 of file error.h.

References code(), Error(), and message().

Here is the call graph for this function:

◆ toString()

QString lomiri::MediaHub::Error::toString ( ) const
inline

Definition at line 55 of file error.h.

Referenced by lomiri::MediaHub::Player::Player().


The documentation for this class was generated from the following file:
  • /build/media-hub-4.7~20260316060616.27~fbd9644+ubports26.04.1/src/lib/MediaHub/error.h