drumstick  1.0.2
TimerInfo Class Reference

ALSA Timer information container. More...

#include <alsatimer.h>

List of all members.

Public Member Functions

 TimerInfo ()
 Constructor.
 TimerInfo (const TimerInfo &other)
 Copy constructor.
 TimerInfo (const snd_timer_info_t *other)
 Cosntructor.
virtual ~TimerInfo ()
 Destructor.
TimerInfoclone ()
 Copy the current object.
TimerInfooperator= (const TimerInfo &other)
 Assignment operator.
int getSizeOfInfo () const
 Gets the size of the ALSA timer info object.
bool isSlave ()
 Check if the timer is slave (depends on another device)
int getCard ()
 Gets the card number.
QString getId ()
 Gets the string identifier.
QString getName ()
 Gets the timer name.
long getResolution ()
 Gets the timer resolution (timer period in nanoseconds)
long getFrequency ()
 Gets the timer frequency in Hz.

Protected Member Functions

long getTicks () __attribute__((deprecated))
 Gets the maximum timer ticks.

Detailed Description

ALSA Timer information container.

This class is used to hold properties about ALSA Timers.

Examples:
sysinfo.cpp, and timertest.cpp.

Definition at line 47 of file alsatimer.h.


Constructor & Destructor Documentation

TimerInfo ( const TimerInfo other)

Copy constructor.

Parameters:
otherExisting TimerInfo object reference

Definition at line 107 of file alsatimer.cpp.

TimerInfo ( const snd_timer_info_t *  other)

Cosntructor.

Parameters:
otherALSA timer info object pointer

Definition at line 97 of file alsatimer.cpp.


Member Function Documentation

Copy the current object.

Returns:
Pointer to the new object

Definition at line 126 of file alsatimer.cpp.

References TimerInfo::TimerInfo().

int getCard ( )

Gets the card number.

Returns:
Card number

Definition at line 157 of file alsatimer.cpp.

long getFrequency ( )

Gets the timer frequency in Hz.

Returns:
Timer frequency in Hz
Examples:
sysinfo.cpp.

Definition at line 197 of file alsatimer.cpp.

References TimerInfo::getResolution().

QString getId ( )

Gets the string identifier.

Returns:
String identifier
Examples:
sysinfo.cpp.

Definition at line 167 of file alsatimer.cpp.

QString getName ( void  )

Gets the timer name.

Returns:
Timer name
Examples:
sysinfo.cpp.

Definition at line 177 of file alsatimer.cpp.

long getResolution ( )

Gets the timer resolution (timer period in nanoseconds)

Returns:
Timer resolution in nanos

Definition at line 187 of file alsatimer.cpp.

Referenced by TimerInfo::getFrequency().

int getSizeOfInfo ( ) const

Gets the size of the ALSA timer info object.

Returns:
Size of the ALSA object

Definition at line 212 of file alsatimer.cpp.

long getTicks ( ) [protected]

Gets the maximum timer ticks.

Deprecated:
Returns:
Maximum timer ticks

Definition at line 223 of file alsatimer.cpp.

bool isSlave ( )

Check if the timer is slave (depends on another device)

Returns:
True if the timer is slave
Examples:
sysinfo.cpp.

Definition at line 147 of file alsatimer.cpp.

TimerInfo & operator= ( const TimerInfo other)

Assignment operator.

Parameters:
otherExisting TimerInfo object reference

Definition at line 136 of file alsatimer.cpp.


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