#include <alsatimer.h>
Public Member Functions | |
TimerId () | |
Constructor. | |
TimerId (const TimerId &other) | |
Copy constructor. | |
TimerId (const snd_timer_id_t *other) | |
Constructor. | |
TimerId (int cls, int scls, int card, int dev, int sdev) | |
Constructor. | |
virtual | ~TimerId () |
Destructor. | |
TimerId * | clone () |
Copy the object. | |
TimerId & | operator= (const TimerId &other) |
Assignment operator. | |
int | getSizeOfInfo () const |
Gets the size of the ALSA timer ID object. | |
void | setClass (int devclass) |
Set the class identifier. | |
int | getClass () |
Gets the class identifier. | |
void | setSlaveClass (int devsclass) |
Sets the Slave class. | |
int | getSlaveClass () |
Gets the slave class. | |
void | setCard (int card) |
Sets the card number. | |
int | getCard () |
Gets the card number. | |
void | setDevice (int device) |
Sets the device number. | |
int | getDevice () |
Gets the device number. | |
void | setSubdevice (int subdevice) |
Sets the subdevice number. | |
int | getSubdevice () |
Gets the subdevice number. | |
Friends | |
class | TimerQuery |
class | TimerGlobalInfo |
class | QueueTimer |
This class provides an unique identifier for a Timer.
Definition at line 79 of file alsatimer.h.
TimerId | ( | ) |
Copy constructor.
other | Existing TimerId object reference |
Definition at line 256 of file alsatimer.cpp.
References TimerId::getCard(), TimerId::getDevice(), TimerId::getSubdevice(), TimerId::setCard(), TimerId::setDevice(), and TimerId::setSubdevice().
TimerId | ( | const snd_timer_id_t * | other | ) |
Constructor.
other | ALSA timer ID object pointer |
Definition at line 240 of file alsatimer.cpp.
References TimerId::getCard(), TimerId::getDevice(), TimerId::getSubdevice(), TimerId::setCard(), TimerId::setDevice(), and TimerId::setSubdevice().
TimerId | ( | int | cls, | |
int | scls, | |||
int | card, | |||
int | dev, | |||
int | sdev | |||
) |
Constructor.
cls | Class | |
scls | Subclass | |
card | Card | |
dev | Device | |
sdev | Subdevice |
Definition at line 276 of file alsatimer.cpp.
References TimerId::setCard(), TimerId::setClass(), TimerId::setDevice(), TimerId::setSlaveClass(), and TimerId::setSubdevice().
~TimerId | ( | ) | [virtual] |
TimerId * clone | ( | ) |
Copy the object.
Definition at line 299 of file alsatimer.cpp.
References TimerId::TimerId().
int getCard | ( | ) |
Gets the card number.
Definition at line 384 of file alsatimer.cpp.
Referenced by TimerId::operator=(), and TimerId::TimerId().
int getClass | ( | ) |
Gets the class identifier.
Definition at line 344 of file alsatimer.cpp.
Referenced by TimerQuery::readTimers().
int getDevice | ( | ) |
Gets the device number.
Definition at line 404 of file alsatimer.cpp.
Referenced by TimerId::operator=(), and TimerId::TimerId().
int getSizeOfInfo | ( | ) | const |
Gets the size of the ALSA timer ID object.
Definition at line 434 of file alsatimer.cpp.
int getSlaveClass | ( | ) |
int getSubdevice | ( | ) |
Gets the subdevice number.
Definition at line 424 of file alsatimer.cpp.
Referenced by TimerId::operator=(), and TimerId::TimerId().
Assignment operator.
other | Existing TimerId object reference |
Definition at line 310 of file alsatimer.cpp.
References TimerId::getCard(), TimerId::getDevice(), TimerId::getSubdevice(), TimerId::setCard(), TimerId::setDevice(), and TimerId::setSubdevice().
void setCard | ( | int | card | ) |
Sets the card number.
card | Card number |
Definition at line 374 of file alsatimer.cpp.
Referenced by TimerId::operator=(), and TimerId::TimerId().
void setClass | ( | int | devclass | ) |
Set the class identifier.
Existing classes:
devclass | Class identifier. |
Definition at line 333 of file alsatimer.cpp.
Referenced by TimerId::TimerId().
void setDevice | ( | int | device | ) |
Sets the device number.
device | Device number |
Definition at line 394 of file alsatimer.cpp.
Referenced by TimerId::operator=(), and TimerId::TimerId().
void setSlaveClass | ( | int | devsclass | ) |
Sets the Slave class.
devsclass | Slave class |
Definition at line 354 of file alsatimer.cpp.
Referenced by TimerId::TimerId().
void setSubdevice | ( | int | subdevice | ) |
Sets the subdevice number.
subdevice | Subdevice number |
Definition at line 414 of file alsatimer.cpp.
Referenced by TimerId::operator=(), and TimerId::TimerId().
friend class QueueTimer [friend] |
Definition at line 83 of file alsatimer.h.
friend class TimerGlobalInfo [friend] |
Definition at line 82 of file alsatimer.h.
friend class TimerQuery [friend] |
Definition at line 81 of file alsatimer.h.