drumstick 2.10.0
C++ MIDI libraries using Qt objects, idioms, and style.

Auxiliary class to remove events from an ALSA queue. More...

#include <alsaevent.h>

Public Member Functions

 RemoveEvents ()
 Default constructor.
 
 RemoveEvents (const RemoveEvents &other)
 Copy constructor. More...
 
 RemoveEvents (snd_seq_remove_events_t *other)
 Constructor from an ALSA remove events object pointer. More...
 
virtual ~RemoveEvents ()
 Destructor.
 
RemoveEventsclone ()
 Create a new object copied from this object and return a pointer to the copy. More...
 
RemoveEventsoperator= (const RemoveEvents &other)
 Assignment operator. More...
 
int getSizeOfInfo () const
 Gets the allocated size of the ALSA remove events object. More...
 
int getChannel ()
 Gets the MIDI channel. More...
 
unsigned int getCondition ()
 Gets the condition. More...
 
const snd_seq_addr_t * getDest ()
 Gets the destination. More...
 
int getEventType ()
 Gets the event type. More...
 
int getQueue ()
 Gets the queue number. More...
 
int getTag ()
 Gets the numeric tag. More...
 
const snd_seq_timestamp_t * getTime ()
 Gets the timestamp. More...
 
void setChannel (int chan)
 Gets the MIDI channel. More...
 
void setCondition (unsigned int cond)
 Sets the flags of the conditional event's removal. More...
 
void setDest (const snd_seq_addr_t *dest)
 Set the destination address. More...
 
void setEventType (int type)
 Sets the event type. More...
 
void setQueue (int queue)
 Sets the queue number. More...
 
void setTag (int tag)
 Sets the numeric tag. More...
 
void setTime (const snd_seq_timestamp_t *time)
 Sets the timestamp. More...
 

Detailed Description

Auxiliary class to remove events from an ALSA queue.

See also
MidiClient::removeEvents()

Definition at line 751 of file alsaevent.h.

Constructor & Destructor Documentation

◆ RemoveEvents() [1/2]

RemoveEvents ( const RemoveEvents other)

Copy constructor.

Parameters
otherAn existing RemoveEvents object reference.

Definition at line 935 of file alsaevent.cpp.

◆ RemoveEvents() [2/2]

RemoveEvents ( snd_seq_remove_events_t *  other)
explicit

Constructor from an ALSA remove events object pointer.

Parameters
otherAn ALSA remove events object pointer.

Definition at line 945 of file alsaevent.cpp.

Member Function Documentation

◆ clone()

RemoveEvents * clone ( )

Create a new object copied from this object and return a pointer to the copy.

Returns
A pointer to the new object.

Definition at line 964 of file alsaevent.cpp.

References RemoveEvents::RemoveEvents().

◆ getChannel()

int getChannel ( )

Gets the MIDI channel.

Returns
The MIDI channel.
See also
setChannel()

Definition at line 999 of file alsaevent.cpp.

◆ getCondition()

unsigned int getCondition ( )

Gets the condition.

Returns
The condition.
See also
setCondition()

Definition at line 1010 of file alsaevent.cpp.

◆ getDest()

const snd_seq_addr_t * getDest ( )

Gets the destination.

Returns
The destination record pointer.
See also
setDest()

Definition at line 1021 of file alsaevent.cpp.

◆ getEventType()

int getEventType ( )

Gets the event type.

Returns
The event type.
See also
setEventType()

Definition at line 1032 of file alsaevent.cpp.

◆ getQueue()

int getQueue ( )

Gets the queue number.

Returns
The queue number.
See also
setQueue()

Definition at line 1043 of file alsaevent.cpp.

◆ getSizeOfInfo()

int getSizeOfInfo ( ) const

Gets the allocated size of the ALSA remove events object.

Returns
The size of the ALSA remove events object.

Definition at line 988 of file alsaevent.cpp.

◆ getTag()

int getTag ( )

Gets the numeric tag.

Returns
The numeric tag.
See also
setTag()

Definition at line 1054 of file alsaevent.cpp.

◆ getTime()

const snd_seq_timestamp_t * getTime ( )

Gets the timestamp.

Returns
The timestamp.
See also
setTime()

Definition at line 1065 of file alsaevent.cpp.

◆ operator=()

RemoveEvents & operator= ( const RemoveEvents other)

Assignment operator.

Parameters
otherAn existing RemoveEvents object reference.
Returns
This object.

Definition at line 975 of file alsaevent.cpp.

◆ setChannel()

void setChannel ( int  chan)

Gets the MIDI channel.

Parameters
chanThe MIDI channel.
See also
getChannel()

Definition at line 1076 of file alsaevent.cpp.

◆ setCondition()

void setCondition ( unsigned int  cond)

Sets the flags of the conditional event's removal.

This condition is a bitmap of the combination (OR) the following auto-described flags:

  • SND_SEQ_REMOVE_INPUT
  • SND_SEQ_REMOVE_OUTPUT
  • SND_SEQ_REMOVE_DEST
  • SND_SEQ_REMOVE_DEST_CHANNEL
  • SND_SEQ_REMOVE_TIME_BEFORE
  • SND_SEQ_REMOVE_TIME_AFTER
  • SND_SEQ_REMOVE_TIME_TICK
  • SND_SEQ_REMOVE_EVENT_TYPE
  • SND_SEQ_REMOVE_IGNORE_OFF
  • SND_SEQ_REMOVE_TAG_MATCH
Parameters
condThe condition bitmap.
See also
getCondition()

Definition at line 1100 of file alsaevent.cpp.

◆ setDest()

void setDest ( const snd_seq_addr_t *  dest)

Set the destination address.

Parameters
destA pointer to the destination address record.
See also
getDest()

Definition at line 1111 of file alsaevent.cpp.

◆ setEventType()

void setEventType ( int  type)

Sets the event type.

Parameters
typeThe event type.
See also
getEventType()

Definition at line 1122 of file alsaevent.cpp.

◆ setQueue()

void setQueue ( int  queue)

Sets the queue number.

Parameters
queueThe queue number.
See also
getQueue()

Definition at line 1133 of file alsaevent.cpp.

◆ setTag()

void setTag ( int  tag)

Sets the numeric tag.

Parameters
tagThe numeric tag.
See also
getTag()

Definition at line 1144 of file alsaevent.cpp.

◆ setTime()

void setTime ( const snd_seq_timestamp_t *  time)

Sets the timestamp.

Parameters
timeA pointer to the timestamp record.
See also
getTime()

Definition at line 1155 of file alsaevent.cpp.


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