19#ifndef DRUMSTICK_ALSAPORT_H
20#define DRUMSTICK_ALSAPORT_H
50 explicit PortInfo(snd_seq_port_info_t* other);
56 int getSizeOfInfo()
const;
60 QString getClientName()
const;
61 const snd_seq_addr_t* getAddr();
63 unsigned int getCapability();
64 unsigned int getType();
65 int getMidiChannels();
70 int getPortSpecified();
71 void setClient(
int client);
72 void setPort(
int port);
73 void setAddr(
const snd_seq_addr_t* addr);
74 void setName( QString
const& name );
75 void setCapability(
unsigned int capability);
76 void setType(
unsigned int type);
77 void setMidiChannels(
int channels);
78 void setMidiVoices(
int voices);
79 void setSynthVoices(
int voices);
80 void setPortSpecified(
int val);
84 bool getTimestamping();
85 bool getTimestampReal();
86 int getTimestampQueue();
87 void setTimestamping(
bool value);
88 void setTimestampReal(
bool value);
89 void setTimestampQueue(
int queueId);
93 void freeSubscribers();
94 void setClientName(QString name);
97 snd_seq_port_info_t* m_Info;
127 void unsubscribeAll();
128 void unsubscribeTo( QString
const& name );
129 void unsubscribeTo(
PortInfo* port );
130 void unsubscribeTo(
const snd_seq_addr_t* addr );
131 void unsubscribeFrom( QString
const& name );
132 void unsubscribeFrom(
PortInfo* port );
133 void unsubscribeFrom(
const snd_seq_addr_t* addr );
135 void subscribeTo(
int client,
int port );
136 void subscribeTo( QString
const& name );
137 void subscribeFrom(
PortInfo* port );
138 void subscribeFrom(
int client,
int port );
139 void subscribeFrom( QString
const& name );
140 void subscribeFromAnnounce();
141 void updateSubscribers();
146 void updateConnectionsFrom(
const PortInfoList& desired);
148 static bool containsAddress(
const snd_seq_addr_t* addr,
const PortInfoList& lst);
150 void applyPortInfo();
151 QString getPortName();
152 void setPortName( QString
const& newName);
154 unsigned int getCapability();
155 void setCapability(
unsigned int newValue);
156 unsigned int getPortType();
157 void setPortType(
unsigned int newValue);
158 int getMidiChannels();
159 void setMidiChannels(
int newValue);
161 void setMidiVoices(
int newValue);
162 int getSynthVoices();
163 void setSynthVoices(
int newValue);
164 bool getTimestamping();
165 bool getTimestampReal();
166 int getTimestampQueue();
167 void setTimestamping(
bool value);
168 void setTimestampReal(
bool value);
169 void setTimestampQueue(
int queueId);
197 void freeSubscriptions();
The QObject class is the base class of all Qt objects.
void detached(drumstick::ALSA::MidiPort *port)
Signal emitted when the port is detached from a MidiClient.
void attached(drumstick::ALSA::MidiPort *port)
Signal emitted when the port is attached to a MidiClient.
void subscribed(drumstick::ALSA::MidiPort *port, drumstick::ALSA::Subscription *subs)
Signal emitted when an internal subscription is done.
void midiClientChanged(drumstick::ALSA::MidiPort *port, drumstick::ALSA::MidiClient *seq)
Signal emitted when the MidiClient has changed.
Port information container.
QList< MidiPort * > MidiPortList
List of Ports instances.
QList< PortInfo > PortInfoList
List of port information objects.
QList< Subscription > SubscriptionsList
List of subscriptions.
QList< Subscriber > SubscribersList
List of subscribers.
Classes managing ALSA sequencer subscriptions.