Miam-Player  0.8.0
A nice music player
QtAV::AVError Class Reference

#include <AVError.h>

Public Types

enum  ErrorCode {
  NoError, NetworkError, OpenTimedout, OpenError,
  ParseStreamTimedOut, FindStreamInfoTimedout = ParseStreamTimedOut, ParseStreamError, FindStreamInfoError = ParseStreamError,
  StreamNotFound, ReadTimedout, ReadError, SeekError,
  ResourceError, OpenCodecError, CloseCodecError, AudioCodecNotFound,
  VideoCodecNotFound, SubtitleCodecNotFound, CodecError, FormatError,
  AccessDenied, UnknowError
}
 

Public Member Functions

 AVError ()
 
 AVError (ErrorCode code, int ffmpegError=0)
 
 AVError (ErrorCode code, const QString &detail, int ffmpegError=0)
 AVError string() will be detail. More...
 
 AVError (const AVError &other)
 
AVErroroperator= (const AVError &other)
 
bool operator== (const AVError &other) const
 
bool operator!= (const AVError &other) const
 
void setError (ErrorCode ec)
 
ErrorCode error () const
 
QString string () const
 
int ffmpegErrorCode () const
 
QString ffmpegErrorString () const
 

Member Enumeration Documentation

◆ ErrorCode

Enumerator
NoError 
NetworkError 
OpenTimedout 
OpenError 
ParseStreamTimedOut 
FindStreamInfoTimedout 
ParseStreamError 
FindStreamInfoError 
StreamNotFound 
ReadTimedout 
ReadError 
SeekError 
ResourceError 
OpenCodecError 
CloseCodecError 
AudioCodecNotFound 
VideoCodecNotFound 
SubtitleCodecNotFound 
CodecError 
FormatError 
AccessDenied 
UnknowError 

Constructor & Destructor Documentation

◆ AVError() [1/4]

QtAV::AVError::AVError ( )

◆ AVError() [2/4]

QtAV::AVError::AVError ( ErrorCode  code,
int  ffmpegError = 0 
)

◆ AVError() [3/4]

QtAV::AVError::AVError ( ErrorCode  code,
const QString &  detail,
int  ffmpegError = 0 
)

AVError string() will be detail.

If ffmpeg error not 0, also contains ffmpegErrorString()

Parameters
codeErrorCode value
detailErrorCode string will be overrided by detail.
ffmpegErrorffmpeg error code. If not 0, string() will contains ffmpeg error string.

◆ AVError() [4/4]

QtAV::AVError::AVError ( const AVError other)

Member Function Documentation

◆ error()

ErrorCode QtAV::AVError::error ( ) const

◆ ffmpegErrorCode()

int QtAV::AVError::ffmpegErrorCode ( ) const

◆ ffmpegErrorString()

QString QtAV::AVError::ffmpegErrorString ( ) const

◆ operator!=()

bool QtAV::AVError::operator!= ( const AVError other) const
inline

◆ operator=()

AVError& QtAV::AVError::operator= ( const AVError other)

◆ operator==()

bool QtAV::AVError::operator== ( const AVError other) const

◆ setError()

void QtAV::AVError::setError ( ErrorCode  ec)

◆ string()

QString QtAV::AVError::string ( ) const

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