Music Hub  ..
A session-wide music playback service
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.

Member Function Documentation

◆ code()

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

Definition at line 50 of file error.h.

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

◆ isError()

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

Definition at line 51 of file error.h.

References DBusConstants::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 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(), 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: