drumstick  1.0.2
TimerParams Class Reference

ALSA Timer parameters container. More...

#include <alsatimer.h>

List of all members.

Public Member Functions

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

Detailed Description

ALSA Timer parameters container.

This class provides several parameters about a Timer.

Examples:
timertest.cpp.

Definition at line 185 of file alsatimer.h.


Constructor & Destructor Documentation

TimerParams ( const TimerParams other)

Copy constructor.

Parameters:
otherExisting TimerParams object reference

Definition at line 736 of file alsatimer.cpp.

TimerParams ( const snd_timer_params_t *  other)

Constructor.

Parameters:
otherPointer to an ALSA timer parameters object

Definition at line 726 of file alsatimer.cpp.

~TimerParams ( ) [virtual]

Destructor.

Returns:

Definition at line 746 of file alsatimer.cpp.


Member Function Documentation

Copy the current object.

Returns:
Pointer to the new object

Definition at line 756 of file alsatimer.cpp.

References TimerParams::TimerParams().

bool getAutoStart ( )

Gets the automatic start flag.

Returns:
True if the timer starts automatically

Definition at line 788 of file alsatimer.cpp.

bool getEarlyEvent ( )

Gets the timer early event.

Returns:
Timer early event

Definition at line 828 of file alsatimer.cpp.

bool getExclusive ( )

Gets the timer's exclusive flag.

Returns:
True if the timer has the exclusive flag

Definition at line 808 of file alsatimer.cpp.

unsigned int getFilter ( )

Gets the event filter.

Returns:
Event filter

Definition at line 888 of file alsatimer.cpp.

long getQueueSize ( )

Gets the queue size.

Returns:
Queue size

Definition at line 868 of file alsatimer.cpp.

int getSizeOfInfo ( ) const

Gets the size of the ALSA timer parameters object.

Returns:
Size of the ALSA object

Definition at line 898 of file alsatimer.cpp.

long getTicks ( )

Gets the timer ticks.

Returns:
Timer ticks

Definition at line 848 of file alsatimer.cpp.

TimerParams & operator= ( const TimerParams other)

Assignment operator.

Parameters:
otherExisting TimerParams object reference
Returns:
This object

Definition at line 767 of file alsatimer.cpp.

void setAutoStart ( bool  auto_start)

Sets the automatic start flag.

Parameters:
auto_startValue for the automatic start flag

Definition at line 778 of file alsatimer.cpp.

void setEarlyEvent ( bool  early_event)

Sets the timer early event.

Parameters:
early_eventTimer early event

Definition at line 818 of file alsatimer.cpp.

void setExclusive ( bool  exclusive)

Sets the exclusive flag.

Parameters:
exclusiveTrue if the timer has the exclusive flag

Definition at line 798 of file alsatimer.cpp.

void setFilter ( unsigned int  filter)

Sets the event filter.

Parameters:
filterEvent filter

Definition at line 878 of file alsatimer.cpp.

void setQueueSize ( long  queue_size)

Sets the queue size (32-1024)

Parameters:
queue_sizeQueue size

Definition at line 858 of file alsatimer.cpp.

void setTicks ( long  ticks)

Sets the timer ticks.

Parameters:
ticksTimer ticks

Definition at line 838 of file alsatimer.cpp.


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