drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
TimerQuery Class Reference

ALSA Timer inquiry helper. More...

#include <alsatimer.h>

Public Member Functions

 TimerQuery (const QString &deviceName, int openMode)
 Constructor. More...
 
 TimerQuery (const QString &deviceName, int openMode, snd_config_t *conf)
 Constructor. More...
 
virtual ~TimerQuery ()
 Destructor.
 
TimerIdList getTimers () const
 Gets the list of available timers. More...
 
TimerGlobalInfogetGlobalInfo ()
 Get a TimerGlobalInfo object. More...
 
void setGlobalParams (snd_timer_gparams_t *params)
 Sets the global parameters. More...
 
void getGlobalParams (snd_timer_gparams_t *params)
 Gets the global timer parameters. More...
 
void getGlobalStatus (snd_timer_gstatus_t *status)
 Gets the global timer status. More...
 

Protected Member Functions

void readTimers ()
 Enumerate the available timers storing the results into an internal list.
 
void freeTimers ()
 Release the internal list of timers.
 

Detailed Description

ALSA Timer inquiry helper.

This class provides a mechanism to enumerate the available system timers.

Examples
sysinfo.cpp.

Definition at line 170 of file alsatimer.h.

Constructor & Destructor Documentation

◆ TimerQuery() [1/2]

TimerQuery ( const QString &  deviceName,
int  openMode 
)

Constructor.

Parameters
deviceNameDevice name, usually "hw"
openModeOpen mode (unknown values)

Definition at line 449 of file alsatimer.cpp.

References DRUMSTICK_ALSA_CHECK_WARNING, and TimerQuery::readTimers().

◆ TimerQuery() [2/2]

TimerQuery ( const QString &  deviceName,
int  openMode,
snd_config_t *  conf 
)

Constructor.

Parameters
deviceNameDevice name, usually "hw"
openModeOpen mode (unknown values)
confALSA configuration object pointer

Definition at line 463 of file alsatimer.cpp.

References DRUMSTICK_ALSA_CHECK_WARNING, and TimerQuery::readTimers().

Member Function Documentation

◆ getGlobalInfo()

TimerGlobalInfo & getGlobalInfo ( )

Get a TimerGlobalInfo object.

Returns
TimerGlobalInfo object reference

Definition at line 513 of file alsatimer.cpp.

◆ getGlobalParams()

void getGlobalParams ( snd_timer_gparams_t *  params)

Gets the global timer parameters.

Parameters
paramsPointer to an ALSA timer global parameters object

Definition at line 534 of file alsatimer.cpp.

◆ getGlobalStatus()

void getGlobalStatus ( snd_timer_gstatus_t *  status)

Gets the global timer status.

Parameters
statusPointer to an ALSA timer global status object

Definition at line 544 of file alsatimer.cpp.

◆ getTimers()

TimerIdList getTimers ( ) const
inline

Gets the list of available timers.

Returns
List of TimerId objects
Examples
sysinfo.cpp.

Definition at line 180 of file alsatimer.h.

◆ setGlobalParams()

void setGlobalParams ( snd_timer_gparams_t *  params)

Sets the global parameters.

Parameters
paramsPointer to an ALSA timer global parameters object

Definition at line 524 of file alsatimer.cpp.


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