![]() |
drumstick 2.10.0
C++ MIDI libraries using Qt objects, idioms, and style.
|
Subscriber container class. More...
#include <subscription.h>
Public Member Functions | |
| Subscriber () | |
| Default constructor. | |
| Subscriber (const Subscriber &other) | |
| Copy constructor. More... | |
| Subscriber (snd_seq_query_subscribe_t *other) | |
| Constructor. More... | |
| virtual | ~Subscriber () |
| Destructor. | |
| Subscriber * | clone () |
| Copy the current object. More... | |
| int | getSizeOfInfo () const |
| Gets the size of the ALSA query subscriber object. More... | |
| int | getClient () |
| Gets the subscriber's client number. More... | |
| int | getPort () |
| Gets the subscriober's port number. More... | |
| const snd_seq_addr_t * | getRoot () |
| Gets the subscriber's root address. More... | |
| snd_seq_query_subs_type_t | getType () |
| Gets the subscription type (read or write). More... | |
| int | getIndex () |
| Gets the index of the subscriber container. More... | |
| int | getNumSubs () |
| Gets the number of subscribers returned by a query operation. More... | |
| const snd_seq_addr_t * | getAddr () |
| Gets the subscriber's address. More... | |
| int | getQueue () |
| Gets the subscriber's queue number. More... | |
| bool | getExclusive () |
| Gets the subscriber's exclusive flag. More... | |
| bool | getTimeUpdate () |
| Gets the susbcriber's time-update flag. More... | |
| bool | getTimeReal () |
| Gets the subscriber's time real time-stamp flag. More... | |
| void | setClient (int client) |
| Sets the subscriber's client number. More... | |
| void | setPort (int port) |
| Sets the subscriber's port number. More... | |
| void | setRoot (snd_seq_addr_t *addr) |
| Sets the subscriber's root address. More... | |
| void | setType (snd_seq_query_subs_type_t type) |
| Sets the subscription type. More... | |
| void | setIndex (int index) |
| Sets the index of the subscriber. More... | |
| Subscriber & | operator= (const Subscriber &other) |
| Assignment operator. More... | |
Subscriber container class.
This class is used to enumerate the subscribers of a given (root) port.
Definition at line 57 of file subscription.h.
| Subscriber | ( | const Subscriber & | other | ) |
Copy constructor.
| other | Existing Subscriber object reference |
Definition at line 63 of file subscription.cpp.
|
explicit |
Constructor.
| other | Pointer to an ALSA query subscribe object |
Definition at line 73 of file subscription.cpp.
| Subscriber * clone | ( | ) |
Copy the current object.
Definition at line 91 of file subscription.cpp.
References Subscriber::Subscriber().
| const snd_seq_addr_t * getAddr | ( | ) |
Gets the subscriber's address.
Definition at line 178 of file subscription.cpp.
Referenced by MidiPort::getReadSubscribers(), and MidiPort::getWriteSubscribers().
| int getClient | ( | ) |
Gets the subscriber's client number.
Definition at line 114 of file subscription.cpp.
| bool getExclusive | ( | ) |
Gets the subscriber's exclusive flag.
Definition at line 198 of file subscription.cpp.
| int getIndex | ( | ) |
Gets the index of the subscriber container.
Definition at line 158 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().
| int getNumSubs | ( | ) |
Gets the number of subscribers returned by a query operation.
Definition at line 168 of file subscription.cpp.
| int getPort | ( | ) |
Gets the subscriober's port number.
Definition at line 124 of file subscription.cpp.
| int getQueue | ( | ) |
Gets the subscriber's queue number.
Definition at line 188 of file subscription.cpp.
| const snd_seq_addr_t * getRoot | ( | ) |
Gets the subscriber's root address.
Definition at line 134 of file subscription.cpp.
| int getSizeOfInfo | ( | ) | const |
Gets the size of the ALSA query subscriber object.
Definition at line 282 of file subscription.cpp.
| bool getTimeReal | ( | ) |
Gets the subscriber's time real time-stamp flag.
Definition at line 218 of file subscription.cpp.
| bool getTimeUpdate | ( | ) |
Gets the susbcriber's time-update flag.
Definition at line 208 of file subscription.cpp.
| snd_seq_query_subs_type_t getType | ( | ) |
Gets the subscription type (read or write).
Definition at line 148 of file subscription.cpp.
| Subscriber & operator= | ( | const Subscriber & | other | ) |
Assignment operator.
| other | Existing Subscriber object reference |
Definition at line 101 of file subscription.cpp.
| void setClient | ( | int | client | ) |
Sets the subscriber's client number.
| client | Client number |
Definition at line 228 of file subscription.cpp.
| void setIndex | ( | int | index | ) |
Sets the index of the subscriber.
| index | Subscriber index |
Definition at line 272 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().
| void setPort | ( | int | port | ) |
Sets the subscriber's port number.
| port | Port number |
Definition at line 238 of file subscription.cpp.
| void setRoot | ( | snd_seq_addr_t * | addr | ) |
Sets the subscriber's root address.
| addr | Pointer to the root ALSA address record |
Definition at line 248 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().
| void setType | ( | snd_seq_query_subs_type_t | type | ) |
Sets the subscription type.
| type | Subscription type |
Definition at line 262 of file subscription.cpp.
Referenced by PortInfo::readSubscribers().