QtGStreamer 0.10.1
Public Member Functions | Related Functions

QGlib::Error Class Reference

Wrapper class for GError. More...

#include <QGlib/Error>

Inherits std::exception.

List of all members.

Public Member Functions

 Error (GError *error)
 Error (Quark domain, int code, const QString &message)
 Error (const Error &other)
Erroroperator= (const Error &other)
virtual const char * what () const throw ()
Quark domain () const
int code () const
QString message () const
 operator GError * ()
 operator const GError * () const

Related Functions

(Note that these are not member functions.)
QDebug operator<< (QDebug dbg, const Error &error)

Detailed Description

Wrapper class for GError.

Examples:

recorder/main.cpp.

Definition at line 29 of file error.h.


Constructor & Destructor Documentation

build buildd qt gstreamer src QGlib error cpp QGlib::Error::Error ( GError *  error)

Wraps an existing GError into an Error.

Note:
the constructed Error takes ownership of error

Definition at line 24 of file error.cpp.

QGlib::Error::Error ( Quark  domain,
int  code,
const QString &  message 
)

Creates a new Error with the given domain, code and message

Definition at line 30 of file error.cpp.


Member Function Documentation

const char * QGlib::Error::what ( ) const throw () [virtual]

Use message() instead. This method is provided to implement the std::exception interface.

Definition at line 54 of file error.cpp.

Quark QGlib::Error::domain ( ) const
Returns:
the domain of the error. The domain indicates the module where the error has happened.

Definition at line 59 of file error.cpp.

int QGlib::Error::code ( ) const
Returns:
a code that describes the error

Definition at line 64 of file error.cpp.

QString QGlib::Error::message ( ) const
Returns:
a human-readable message that describes the error
Examples:
recorder/main.cpp.

Definition at line 69 of file error.cpp.

QGlib::Error::operator GError * ( )
Returns:
a pointer to the underlying GError
Note:
no copy is made

Definition at line 74 of file error.cpp.

QGlib::Error::operator const GError * ( ) const
Returns:
a const pointer to the underlying GError
Note:
no copy is made

Definition at line 79 of file error.cpp.


Friends And Related Function Documentation

QDebug operator<< ( QDebug  dbg,
const Error error 
) [related]

Definition at line 84 of file error.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator