drumstick  0.5.0
ClientInfo Class Reference

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.
 
ClientInfoclone ()
 Clone the client info object. More...
 
ClientInfooperator= (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...
 

Detailed Description

Client information.

This class is used to retrieve, hold and set some data from sequencer clients, like the name or id.

Examples:
sysinfo.cpp.

Definition at line 50 of file alsaclient.h.

Constructor & Destructor Documentation

◆ ClientInfo() [1/3]

ClientInfo ( const ClientInfo other)

Copy constructor.

Parameters
otherAnother ClientInfo reference to be copied

Definition at line 1888 of file alsaclient.cpp.

◆ ClientInfo() [2/3]

ClientInfo ( snd_seq_client_info_t *  other)

Copy constructor.

Parameters
otherAn existing ALSA client info object

Definition at line 1899 of file alsaclient.cpp.

◆ ClientInfo() [3/3]

ClientInfo ( MidiClient seq,
int  id 
)

Constructor.

Parameters
seqA MidiClient object
idA numeric client id

Definition at line 1910 of file alsaclient.cpp.

References MidiClient::getHandle().

Member Function Documentation

◆ clone()

ClientInfo * clone ( )

Clone the client info object.

Returns
A pointer to the new object.

Definition at line 1930 of file alsaclient.cpp.

◆ getBroadcastFilter()

bool getBroadcastFilter ( )

Gets the client's broadcast filter.

Returns
The client's broadcast filter.

Definition at line 1983 of file alsaclient.cpp.

Referenced by MidiClient::getBroadcastFilter().

◆ getClientId()

int getClientId ( )

Gets the client's numeric identifier.

Returns
The client's numeric identifier.
Examples:
sysinfo.cpp.

Definition at line 1953 of file alsaclient.cpp.

Referenced by MidiClient::filterPorts(), and MidiClient::parseAddress().

◆ getClientType()

snd_seq_client_type_t getClientType ( )

Gets the client's type.

Returns
The client's type.
Examples:
sysinfo.cpp.

Definition at line 1963 of file alsaclient.cpp.

◆ getErrorBounce()

bool getErrorBounce ( )

Gets the client's error bounce.

Returns
The client's error bounce.

Definition at line 1993 of file alsaclient.cpp.

Referenced by MidiClient::getErrorBounce().

◆ getEventFilter()

const unsigned char * getEventFilter ( )
protected

Gets the client's event filter.

Returns
The client's event filter.
Deprecated:

Definition at line 2004 of file alsaclient.cpp.

◆ getEventLost()

int getEventLost ( )

Gets the number of lost events.

Returns
The number of lost events.

Definition at line 2024 of file alsaclient.cpp.

◆ getName()

QString getName ( )

Gets the client's name.

Returns
The client's name.
Examples:
sysinfo.cpp.

Definition at line 1973 of file alsaclient.cpp.

Referenced by MidiClient::getClientName(), MidiClient::parseAddress(), and MidiClient::setClientName().

◆ getNumPorts()

int getNumPorts ( )

Gets the client's port count.

Returns
The client's port count.

Definition at line 2014 of file alsaclient.cpp.

◆ getPorts()

PortInfoList getPorts ( ) const

Gets the ports list.

Returns
The ports list.
Examples:
sysinfo.cpp.

Definition at line 2112 of file alsaclient.cpp.

Referenced by MidiClient::filterPorts().

◆ getSizeOfInfo()

int getSizeOfInfo ( ) const

Gets the size of the internal object.

Returns
The size of the internal object.

Definition at line 2123 of file alsaclient.cpp.

◆ operator=()

ClientInfo & operator= ( const ClientInfo other)

Assignment operator.

Parameters
otherAnother ClientInfo object
Returns
This object

Definition at line 1941 of file alsaclient.cpp.

◆ readPorts()

void readPorts ( MidiClient seq)
protected

Read the client ports.

Parameters
seqThe client instance.

Definition at line 2085 of file alsaclient.cpp.

References MidiClient::getClientId(), MidiClient::getHandle(), PortInfo::readSubscribers(), PortInfo::setClient(), PortInfo::setClientName(), and PortInfo::setPort().

Referenced by MidiClient::readClients().

◆ setBroadcastFilter()

void setBroadcastFilter ( bool  val)

Sets the broadcast filter.

Parameters
valThe broadcast filter.

Definition at line 2054 of file alsaclient.cpp.

Referenced by MidiClient::setBroadcastFilter().

◆ setClient()

void setClient ( int  client)

Sets the client identifier number.

Parameters
clientThe client identifier number.

Definition at line 2034 of file alsaclient.cpp.

Referenced by MidiClient::readClients().

◆ setErrorBounce()

void setErrorBounce ( bool  val)

Sets the error bounce.

Parameters
valThe error bounce.

Definition at line 2064 of file alsaclient.cpp.

Referenced by MidiClient::setErrorBounce().

◆ setEventFilter()

void setEventFilter ( unsigned char *  filter)
protected

Sets the event filter.

Parameters
filterThe event filter.
Deprecated:

Definition at line 2075 of file alsaclient.cpp.

◆ setName()

void setName ( QString  name)

Sets the client name.

Parameters
nameThe client name.

Definition at line 2044 of file alsaclient.cpp.

Referenced by MidiClient::setClientName().


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