drumstick  1.1.2
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 119 of file alsatimer.h.

Constructor & Destructor Documentation

◆ TimerGlobalInfo() [1/2]

TimerGlobalInfo ( const TimerGlobalInfo other)

Copy constructor.

Parameters
otherExisting TimerGlobalInfo object reference

Definition at line 565 of file alsatimer.cpp.

◆ TimerGlobalInfo() [2/2]

TimerGlobalInfo ( const snd_timer_ginfo_t *  other)

Constructor.

Parameters
otherALSA global info object pointer

Definition at line 555 of file alsatimer.cpp.

Member Function Documentation

◆ clone()

TimerGlobalInfo * clone ( )

Copy the current object.

Returns
Pointer to the new object

Definition at line 584 of file alsatimer.cpp.

References TimerGlobalInfo::TimerGlobalInfo().

◆ getCard()

int getCard ( )

Gets the card number.

Returns
Card number

Definition at line 638 of file alsatimer.cpp.

◆ getClients()

unsigned int getClients ( )

Gets current timer clients.

Returns
Current clients

Definition at line 698 of file alsatimer.cpp.

◆ getFlags()

unsigned int getFlags ( )

Gets the flags.

Returns
Undocumented flags

Definition at line 628 of file alsatimer.cpp.

◆ getId()

QString getId ( )

Gets the timer ID string.

Returns
Timer ID string

Definition at line 648 of file alsatimer.cpp.

◆ getMaxResolution()

unsigned long getMaxResolution ( )

Gets timer maximal resolution in ns.

Returns
Maximal resolution in ns

Definition at line 688 of file alsatimer.cpp.

◆ getMinResolution()

unsigned long getMinResolution ( )

Gets timer minimal resolution in ns.

Returns
Minimal resolution in ns

Definition at line 678 of file alsatimer.cpp.

◆ getName()

QString getName ( void  )

Gets the timer name.

Returns
Timer name

Definition at line 658 of file alsatimer.cpp.

◆ getResolution()

unsigned long getResolution ( )

Gets the timer resolution in ns.

Returns
Timer resolution in ns

Definition at line 668 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 708 of file alsatimer.cpp.

◆ getTimerId()

TimerId & getTimerId ( )

Gets the timer identifier.

Returns
TimerId object reference

Definition at line 617 of file alsatimer.cpp.

◆ operator=()

TimerGlobalInfo & operator= ( const TimerGlobalInfo other)

Assignment operator.

Parameters
otherExisting TimerGlobalInfo object reference
Returns
This object

Definition at line 595 of file alsatimer.cpp.

◆ setTimerId()

void setTimerId ( const TimerId tid)

Sets the timer identifier.

Parameters
tidTimerId object reference

Definition at line 606 of file alsatimer.cpp.


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