drumstick 2.6.1
TimerParams Class Reference

ALSA Timer parameters container. More...

#include <alsatimer.h>

Public Member Functions

 TimerParams ()
 Default constructor.
 
 TimerParams (const TimerParams &other)
 Copy constructor. More...
 
 TimerParams (const snd_timer_params_t *other)
 Constructor. More...
 
virtual ~TimerParams ()
 Destructor. More...
 
TimerParamsclone ()
 Copy the current object. More...
 
TimerParamsoperator= (const TimerParams &other)
 Assignment operator. More...
 
int getSizeOfInfo () const
 Gets the size of the ALSA timer parameters object. More...
 
void setAutoStart (bool auto_start)
 Sets the automatic start flag. More...
 
bool getAutoStart ()
 Gets the automatic start flag. More...
 
void setExclusive (bool exclusive)
 Sets the exclusive flag. More...
 
bool getExclusive ()
 Gets the timer's exclusive flag. More...
 
void setEarlyEvent (bool early_event)
 Sets the timer early event. More...
 
bool getEarlyEvent ()
 Gets the timer early event. More...
 
void setTicks (long ticks)
 Sets the timer ticks. More...
 
long getTicks ()
 Gets the timer ticks. More...
 
void setQueueSize (long queue_size)
 Sets the queue size (32-1024) More...
 
long getQueueSize ()
 Gets the queue size. More...
 
void setFilter (unsigned int filter)
 Sets the event filter. More...
 
unsigned int getFilter ()
 Gets the event filter. More...
 

Detailed Description

ALSA Timer parameters container.

This class provides several parameters about a Timer.

Definition at line 191 of file alsatimer.h.

Constructor & Destructor Documentation

◆ TimerParams() [1/2]

TimerParams ( const TimerParams other)

Copy constructor.

Parameters
otherExisting TimerParams object reference

Definition at line 743 of file alsatimer.cpp.

◆ TimerParams() [2/2]

TimerParams ( const snd_timer_params_t *  other)
explicit

Constructor.

Parameters
otherPointer to an ALSA timer parameters object

Definition at line 733 of file alsatimer.cpp.

◆ ~TimerParams()

~TimerParams ( )
virtual

Destructor.

Returns

Definition at line 753 of file alsatimer.cpp.

Member Function Documentation

◆ clone()

TimerParams * clone ( )

Copy the current object.

Returns
Pointer to the new object

Definition at line 763 of file alsatimer.cpp.

References TimerParams::TimerParams().

◆ getAutoStart()

bool getAutoStart ( )

Gets the automatic start flag.

Returns
True if the timer starts automatically

Definition at line 797 of file alsatimer.cpp.

◆ getEarlyEvent()

bool getEarlyEvent ( )

Gets the timer early event.

Returns
Timer early event

Definition at line 837 of file alsatimer.cpp.

◆ getExclusive()

bool getExclusive ( )

Gets the timer's exclusive flag.

Returns
True if the timer has the exclusive flag

Definition at line 817 of file alsatimer.cpp.

◆ getFilter()

unsigned int getFilter ( )

Gets the event filter.

Returns
Event filter

Definition at line 897 of file alsatimer.cpp.

◆ getQueueSize()

long getQueueSize ( )

Gets the queue size.

Returns
Queue size

Definition at line 877 of file alsatimer.cpp.

◆ getSizeOfInfo()

int getSizeOfInfo ( ) const

Gets the size of the ALSA timer parameters object.

Returns
Size of the ALSA object

Definition at line 907 of file alsatimer.cpp.

◆ getTicks()

long getTicks ( )

Gets the timer ticks.

Returns
Timer ticks

Definition at line 857 of file alsatimer.cpp.

◆ operator=()

TimerParams & operator= ( const TimerParams other)

Assignment operator.

Parameters
otherExisting TimerParams object reference
Returns
This object

Definition at line 774 of file alsatimer.cpp.

◆ setAutoStart()

void setAutoStart ( bool  auto_start)

Sets the automatic start flag.

Parameters
auto_startValue for the automatic start flag

Definition at line 787 of file alsatimer.cpp.

◆ setEarlyEvent()

void setEarlyEvent ( bool  early_event)

Sets the timer early event.

Parameters
early_eventTimer early event

Definition at line 827 of file alsatimer.cpp.

◆ setExclusive()

void setExclusive ( bool  exclusive)

Sets the exclusive flag.

Parameters
exclusiveTrue if the timer has the exclusive flag

Definition at line 807 of file alsatimer.cpp.

◆ setFilter()

void setFilter ( unsigned int  filter)

Sets the event filter.

Parameters
filterEvent filter

Definition at line 887 of file alsatimer.cpp.

◆ setQueueSize()

void setQueueSize ( long  queue_size)

Sets the queue size (32-1024)

Parameters
queue_sizeQueue size

Definition at line 867 of file alsatimer.cpp.

◆ setTicks()

void setTicks ( long  ticks)

Sets the timer ticks.

Parameters
ticksTimer ticks

Definition at line 847 of file alsatimer.cpp.


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