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

Global timer information container. More...

#include <alsatimer.h>

Public Member Functions

 TimerGlobalInfo ()
 Default constructor.
 
 TimerGlobalInfo (const TimerGlobalInfo &other)
 Copy constructor. More...
 
 TimerGlobalInfo (const snd_timer_ginfo_t *other)
 Constructor. More...
 
virtual ~TimerGlobalInfo ()
 Destructor.
 
TimerGlobalInfoclone ()
 Copy the current object. More...
 
TimerGlobalInfooperator= (const TimerGlobalInfo &other)
 Assignment operator. More...
 
int getSizeOfInfo () const
 Gets the size of the ALSA timer global info object. More...
 
void setTimerId (const TimerId &tid)
 Sets the timer identifier. More...
 
TimerIdgetTimerId ()
 Gets the timer identifier. More...
 
unsigned int getFlags ()
 Gets the flags. More...
 
int getCard ()
 Gets the card number. More...
 
QString getId ()
 Gets the timer ID string. More...
 
QString getName ()
 Gets the timer name. More...
 
unsigned long getResolution ()
 Gets the timer resolution in ns. More...
 
unsigned long getMinResolution ()
 Gets timer minimal resolution in ns. More...
 
unsigned long getMaxResolution ()
 Gets timer maximal resolution in ns. More...
 
unsigned int getClients ()
 Gets current timer clients. More...
 

Detailed Description

Global timer information container.

This class provides global timer parameters.

Definition at line 136 of file alsatimer.h.

Constructor & Destructor Documentation

◆ TimerGlobalInfo() [1/2]

TimerGlobalInfo ( const TimerGlobalInfo other)

Copy constructor.

Parameters
otherExisting TimerGlobalInfo object reference

Definition at line 571 of file alsatimer.cpp.

◆ TimerGlobalInfo() [2/2]

TimerGlobalInfo ( const snd_timer_ginfo_t *  other)
explicit

Constructor.

Parameters
otherALSA global info object pointer

Definition at line 561 of file alsatimer.cpp.

Member Function Documentation

◆ clone()

TimerGlobalInfo * clone ( )

Copy the current object.

Returns
Pointer to the new object

Definition at line 590 of file alsatimer.cpp.

References TimerGlobalInfo::TimerGlobalInfo().

◆ getCard()

int getCard ( )

Gets the card number.

Returns
Card number

Definition at line 646 of file alsatimer.cpp.

◆ getClients()

unsigned int getClients ( )

Gets current timer clients.

Returns
Current clients

Definition at line 706 of file alsatimer.cpp.

◆ getFlags()

unsigned int getFlags ( )

Gets the flags.

Returns
Undocumented flags

Definition at line 636 of file alsatimer.cpp.

◆ getId()

QString getId ( )

Gets the timer ID string.

Returns
Timer ID string

Definition at line 656 of file alsatimer.cpp.

◆ getMaxResolution()

unsigned long getMaxResolution ( )

Gets timer maximal resolution in ns.

Returns
Maximal resolution in ns

Definition at line 696 of file alsatimer.cpp.

◆ getMinResolution()

unsigned long getMinResolution ( )

Gets timer minimal resolution in ns.

Returns
Minimal resolution in ns

Definition at line 686 of file alsatimer.cpp.

◆ getName()

QString getName ( )

Gets the timer name.

Returns
Timer name

Definition at line 666 of file alsatimer.cpp.

◆ getResolution()

unsigned long getResolution ( )

Gets the timer resolution in ns.

Returns
Timer resolution in ns

Definition at line 676 of file alsatimer.cpp.

◆ getSizeOfInfo()

int getSizeOfInfo ( ) const

Gets the size of the ALSA timer global info object.

Returns
Size of the ALSA object

Definition at line 716 of file alsatimer.cpp.

◆ getTimerId()

TimerId & getTimerId ( )

Gets the timer identifier.

Returns
TimerId object reference

Definition at line 625 of file alsatimer.cpp.

◆ operator=()

TimerGlobalInfo & operator= ( const TimerGlobalInfo other)

Assignment operator.

Parameters
otherExisting TimerGlobalInfo object reference
Returns
This object

Definition at line 601 of file alsatimer.cpp.

◆ setTimerId()

void setTimerId ( const TimerId tid)

Sets the timer identifier.

Parameters
tidTimerId object reference

Definition at line 614 of file alsatimer.cpp.


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