|
drumstick
1.0.2
|
Client information. More...
#include <alsaclient.h>
Public Member Functions | |
| ClientInfo () | |
| Default constructor. | |
| ClientInfo (const ClientInfo &other) | |
| Copy constructor. More... | |
| ClientInfo (snd_seq_client_info_t *other) | |
| Copy constructor. More... | |
| ClientInfo (MidiClient *seq, int id) | |
| Constructor. More... | |
| virtual | ~ClientInfo () |
| Destructor. | |
| ClientInfo * | clone () |
| Clone the client info object. More... | |
| ClientInfo & | operator= (const ClientInfo &other) |
| Assignment operator. More... | |
| int | getSizeOfInfo () const |
| Gets the size of the internal object. More... | |
| int | getClientId () |
| Gets the client's numeric identifier. More... | |
| snd_seq_client_type_t | getClientType () |
| Gets the client's type. More... | |
| QString | getName () |
| Gets the client's name. More... | |
| bool | getBroadcastFilter () |
| Gets the client's broadcast filter. More... | |
| bool | getErrorBounce () |
| Gets the client's error bounce. More... | |
| int | getNumPorts () |
| Gets the client's port count. More... | |
| int | getEventLost () |
| Gets the number of lost events. More... | |
| void | setClient (int client) |
| Sets the client identifier number. More... | |
| void | setName (QString name) |
| Sets the client name. More... | |
| void | setBroadcastFilter (bool val) |
| Sets the broadcast filter. More... | |
| void | setErrorBounce (bool val) |
| Sets the error bounce. More... | |
| PortInfoList | getPorts () const |
| Gets the ports list. More... | |
Protected Member Functions | |
| void | readPorts (MidiClient *seq) |
| Read the client ports. More... | |
| void | freePorts () |
| Release the ports list. | |
| const unsigned char * | getEventFilter () __attribute__((deprecated)) |
| Gets the client's event filter. More... | |
| void | setEventFilter (unsigned char *filter) __attribute__((deprecated)) |
| Sets the event filter. More... | |
Client information.
This class is used to retrieve, hold and set some data from sequencer clients, like the name or id.
Definition at line 50 of file alsaclient.h.
| ClientInfo | ( | const ClientInfo & | other | ) |
Copy constructor.
| other | Another ClientInfo reference to be copied |
Definition at line 1975 of file alsaclient.cpp.
| ClientInfo | ( | snd_seq_client_info_t * | other | ) |
Copy constructor.
| other | An existing ALSA client info object |
Definition at line 1986 of file alsaclient.cpp.
| ClientInfo | ( | MidiClient * | seq, |
| int | id | ||
| ) |
Constructor.
| seq | A MidiClient object |
| id | A numeric client id |
Definition at line 1997 of file alsaclient.cpp.
References MidiClient::getHandle().
| ClientInfo * clone | ( | ) |
Clone the client info object.
Definition at line 2017 of file alsaclient.cpp.
| bool getBroadcastFilter | ( | ) |
Gets the client's broadcast filter.
Definition at line 2070 of file alsaclient.cpp.
| int getClientId | ( | ) |
Gets the client's numeric identifier.
Definition at line 2040 of file alsaclient.cpp.
Referenced by MidiClient::filterPorts(), and MidiClient::parseAddress().
| snd_seq_client_type_t getClientType | ( | ) |
Gets the client's type.
Definition at line 2050 of file alsaclient.cpp.
| bool getErrorBounce | ( | ) |
Gets the client's error bounce.
Definition at line 2080 of file alsaclient.cpp.
|
protected |
Gets the client's event filter.
Definition at line 2091 of file alsaclient.cpp.
| int getEventLost | ( | ) |
Gets the number of lost events.
Definition at line 2111 of file alsaclient.cpp.
| QString getName | ( | void | ) |
Gets the client's name.
Definition at line 2060 of file alsaclient.cpp.
Referenced by MidiClient::parseAddress().
| int getNumPorts | ( | ) |
Gets the client's port count.
Definition at line 2101 of file alsaclient.cpp.
| PortInfoList getPorts | ( | ) | const |
Gets the ports list.
Definition at line 2199 of file alsaclient.cpp.
Referenced by MidiClient::filterPorts().
| int getSizeOfInfo | ( | ) | const |
Gets the size of the internal object.
Definition at line 2210 of file alsaclient.cpp.
| ClientInfo & operator= | ( | const ClientInfo & | other | ) |
Assignment operator.
| other | Another ClientInfo object |
Definition at line 2028 of file alsaclient.cpp.
|
protected |
Read the client ports.
| seq | The client instance. |
Definition at line 2172 of file alsaclient.cpp.
References MidiClient::getClientId(), MidiClient::getHandle(), PortInfo::readSubscribers(), PortInfo::setClient(), PortInfo::setClientName(), and PortInfo::setPort().
Referenced by MidiClient::readClients().
| void setBroadcastFilter | ( | bool | val | ) |
Sets the broadcast filter.
| val | The broadcast filter. |
Definition at line 2141 of file alsaclient.cpp.
| void setClient | ( | int | client | ) |
Sets the client identifier number.
| client | The client identifier number. |
Definition at line 2121 of file alsaclient.cpp.
Referenced by MidiClient::readClients().
| void setErrorBounce | ( | bool | val | ) |
Sets the error bounce.
| val | The error bounce. |
Definition at line 2151 of file alsaclient.cpp.
|
protected |
Sets the event filter.
| filter | The event filter. |
Definition at line 2162 of file alsaclient.cpp.
| void setName | ( | QString | name | ) |
Sets the client name.
| name | The client name. |
Definition at line 2131 of file alsaclient.cpp.