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

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

QtAV::AVError::AVError ( )
QtAV::AVError::AVError ( ErrorCode  code,
int  ffmpegError = 0 
)
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.
QtAV::AVError::AVError ( const AVError other)

Member Function Documentation

ErrorCode QtAV::AVError::error ( ) const
int QtAV::AVError::ffmpegErrorCode ( ) const
QString QtAV::AVError::ffmpegErrorString ( ) const
bool QtAV::AVError::operator!= ( const AVError other) const
inline
AVError& QtAV::AVError::operator= ( const AVError other)
bool QtAV::AVError::operator== ( const AVError other) const
void QtAV::AVError::setError ( ErrorCode  ec)
QString QtAV::AVError::string ( ) const

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