VlcInstance Class Reference

Main instance. More...

#include <VLCQtCore/Instance.h>

Public Member Functions

 VlcInstance (const QStringList &args, QObject *parent=NULL)
 VlcInstance constructor. More...
 
 ~VlcInstance ()
 
libvlc_instance_t * core ()
 Returns libvlc instance object. More...
 
bool status () const
 Returns libvlc initialisation status. More...
 
Vlc::LogLevel logLevel () const
 Returns current log level (default Vlc::ErrorLevel) More...
 
void setLogLevel (Vlc::LogLevel level)
 Set current log level. More...
 
void setUserAgent (const QString &application, const QString &version)
 Sets the application name. More...
 
void setAppId (const QString &id, const QString &version, const QString &icon)
 Sets the application some meta-information. More...
 
QList< VlcModuleDescription * > audioFilterList () const
 List audio filter modules. More...
 
QList< VlcModuleDescription * > videoFilterList () const
 List video filter modules. More...
 

Static Public Member Functions

static QString libVersion ()
 VLC-Qt version info. More...
 
static int libVersionMajor ()
 VLC-Qt major version. More...
 
static int libVersionMinor ()
 VLC-Qt minor version. More...
 
static QString version ()
 libvlc version info More...
 
static QString compiler ()
 libvlc compiler info More...
 
static QString changeset ()
 libvlc changeset info More...
 

Detailed Description

Main instance.

A basic Instance manager for VLC-Qt library. It provides main instance controls.

Constructor & Destructor Documentation

VlcInstance::VlcInstance ( const QStringList &  args,
QObject *  parent = NULL 
)
explicit

VlcInstance constructor.

This is mandatory for using VLC-Qt and all its other classes.

Parameters
argslibvlc arguments (QStringList)
parentInstance's parent object (QObject *)
VlcInstance::~VlcInstance ( )

VlcInstance destructor

Member Function Documentation

QList< VlcModuleDescription * > VlcInstance::audioFilterList ( ) const

List audio filter modules.

Returns
audio filter module description list
QString VlcInstance::changeset ( )
static

libvlc changeset info

Returns
a string containing the changeset (QString)
QString VlcInstance::compiler ( )
static

libvlc compiler info

Returns
a string containing the compiler version (QString)
libvlc_instance_t * VlcInstance::core ( )

Returns libvlc instance object.

Returns
libvlc instance (libvlc_instance_t *)
QString VlcInstance::libVersion ( )
static

VLC-Qt version info.

Returns
a string containing the VLC-Qt version (QString)
int VlcInstance::libVersionMajor ( )
static

VLC-Qt major version.

Returns
VLC-Qt major version (int)
int VlcInstance::libVersionMinor ( )
static

VLC-Qt minor version.

Returns
VLC-Qt minor version (int)
Vlc::LogLevel VlcInstance::logLevel ( ) const

Returns current log level (default Vlc::ErrorLevel)

Returns
log level
Since
VLC-Qt 1.1
void VlcInstance::setAppId ( const QString &  id,
const QString &  version,
const QString &  icon 
)

Sets the application some meta-information.

Parameters
idJava-style application identifier, e.g. "com.acme.foobar"
versionapplication version numbers, e.g. "1.2.3"
iconapplication icon name, e.g. "foobar"
See also
setUserAgent
Since
VLC-Qt 1.1
void VlcInstance::setLogLevel ( Vlc::LogLevel  level)

Set current log level.

Parameters
leveldesired log level
See also
Vlc::LogLevel
Since
VLC-Qt 1.1
void VlcInstance::setUserAgent ( const QString &  application,
const QString &  version 
)

Sets the application name.

libvlc passes this as the user agent string when a protocol requires it.

Parameters
applicationApplication name (QString)
versionApplication version (QString)
See also
setAppId
bool VlcInstance::status ( ) const

Returns libvlc initialisation status.

Returns
libvlc status (bool)
QString VlcInstance::version ( )
static

libvlc version info

Returns
a string containing the libvlc version (QString)
QList< VlcModuleDescription * > VlcInstance::videoFilterList ( ) const

List video filter modules.

Returns
video filter module description list

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