19#ifndef DRUMSTICK_ALSAPORT_H
20#define DRUMSTICK_ALSAPORT_H
48 PortInfo(snd_seq_port_info_t* other);
54 int getSizeOfInfo()
const;
60 const snd_seq_addr_t* getAddr();
62 unsigned int getCapability();
63 unsigned int getType();
64 int getMidiChannels();
69 int getPortSpecified();
70 void setClient(
int client);
71 void setPort(
int port);
72 void setAddr(
const snd_seq_addr_t* addr);
73 void setName( QString
const& name );
74 void setCapability(
unsigned int capability);
75 void setType(
unsigned int type);
76 void setMidiChannels(
int channels);
77 void setMidiVoices(
int voices);
78 void setSynthVoices(
int voices);
79 void setPortSpecified(
int val);
83 bool getTimestamping();
84 bool getTimestampReal();
85 int getTimestampQueue();
86 void setTimestamping(
bool value);
87 void setTimestampReal(
bool value);
88 void setTimestampQueue(
int queueId);
92 void freeSubscribers();
101 snd_seq_port_info_t* m_Info;
102 QString m_ClientName;
131 void unsubscribeAll();
132 void unsubscribeTo( QString
const& name );
133 void unsubscribeTo(
PortInfo* port );
134 void unsubscribeTo(
const snd_seq_addr_t* addr );
135 void unsubscribeFrom( QString
const& name );
136 void unsubscribeFrom(
PortInfo* port );
137 void unsubscribeFrom(
const snd_seq_addr_t* addr );
139 void subscribeTo(
int client,
int port );
140 void subscribeTo( QString
const& name );
141 void subscribeFrom(
PortInfo* port );
142 void subscribeFrom(
int client,
int port );
143 void subscribeFrom( QString
const& name );
144 void subscribeFromAnnounce();
145 void updateSubscribers();
150 void updateConnectionsFrom(
const PortInfoList& desired);
152 static bool containsAddress(
const snd_seq_addr_t* addr,
const PortInfoList& lst);
154 void applyPortInfo();
155 QString getPortName();
156 void setPortName( QString
const& newName);
158 unsigned int getCapability();
159 void setCapability(
unsigned int newValue);
160 unsigned int getPortType();
161 void setPortType(
unsigned int newValue);
162 int getMidiChannels();
163 void setMidiChannels(
int newValue);
165 void setMidiVoices(
int newValue);
166 int getSynthVoices();
167 void setSynthVoices(
int newValue);
168 bool getTimestamping();
169 bool getTimestampReal();
170 int getTimestampQueue();
171 void setTimestamping(
bool value);
172 void setTimestampReal(
bool value);
173 void setTimestampQueue(
int queueId);
201 void freeSubscriptions();
QList< MidiPort * > MidiPortList
List of Ports instances.
QList< PortInfo > PortInfoList
List of port information objects.
The QObject class is the base class of all Qt objects.
void detached(MidiPort *port)
Signal emitted when the port is detached from a MidiClient.
void attached(MidiPort *port)
Signal emitted when the port is attached to a MidiClient.
void midiClientChanged(MidiPort *port, MidiClient *seq)
Signal emitted when the MidiClient has changed.
void subscribed(MidiPort *port, Subscription *subs)
Signal emitted when an internal subscription is done.
Port information container.
QString getClientName() const
Gets the client name.
void setClientName(QString name)
Sets the client name.
Classes managing ALSA sequencer subscriptions.
QList< Subscription > SubscriptionsList
List of subscriptions.
QList< Subscriber > SubscribersList
List of subscribers.