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

Queue information container. More...

#include <alsaqueue.h>

Public Member Functions

 QueueInfo ()
 Default constructor.
 
 QueueInfo (const QueueInfo &other)
 Copy constructor. More...
 
 QueueInfo (snd_seq_queue_info_t *other)
 Constructor. More...
 
virtual ~QueueInfo ()
 Destructor.
 
QueueInfoclone ()
 Copy the current object and return the copy. More...
 
QueueInfooperator= (const QueueInfo &other)
 Assignment operator. More...
 
int getInfoSize () const
 Gets the size of the ALSA queue info object. More...
 
int getId ()
 Gets the queue's numeric identifier. More...
 
QString getName ()
 Gets the queue name. More...
 
int getOwner ()
 Gets the owner's client id of the queue. More...
 
bool isLocked ()
 Returns the locking status of the queue. More...
 
unsigned int getFlags ()
 Gets the flags of the queue. More...
 
void setName (QString value)
 Sets the queue name. More...
 
void setOwner (int value)
 Sets the client ID of the owner. More...
 
void setLocked (bool locked)
 Sets the locked status of the queue. More...
 
void setFlags (unsigned int value)
 Sets the bit flags of the queue. More...
 

Detailed Description

Queue information container.

This class is used to hold some properties about an ALSA queue object.

Examples
sysinfo.cpp.

Definition at line 59 of file alsaqueue.h.

Constructor & Destructor Documentation

◆ QueueInfo() [1/2]

QueueInfo ( const QueueInfo other)

Copy constructor.

Parameters
otherAn existing QueueInfo object reference.

Definition at line 86 of file alsaqueue.cpp.

◆ QueueInfo() [2/2]

QueueInfo ( snd_seq_queue_info_t *  other)
explicit

Constructor.

Parameters
otherALSA queue info object pointer

Definition at line 76 of file alsaqueue.cpp.

Member Function Documentation

◆ clone()

QueueInfo * clone ( )

Copy the current object and return the copy.

Returns
The pointer to the new object.

Definition at line 104 of file alsaqueue.cpp.

References QueueInfo::QueueInfo().

◆ getFlags()

unsigned int getFlags ( )

Gets the flags of the queue.

Returns
The flags of the queue.

Definition at line 162 of file alsaqueue.cpp.

◆ getId()

int getId ( )

Gets the queue's numeric identifier.

Returns
The numeric identifier.
Examples
sysinfo.cpp.

Definition at line 126 of file alsaqueue.cpp.

◆ getInfoSize()

int getInfoSize ( ) const

Gets the size of the ALSA queue info object.

Returns
The size of the ALSA object.

Definition at line 207 of file alsaqueue.cpp.

◆ getName()

QString getName ( )

Gets the queue name.

Returns
The queue name.
Examples
sysinfo.cpp.

Definition at line 135 of file alsaqueue.cpp.

◆ getOwner()

int getOwner ( )

Gets the owner's client id of the queue.

Returns
the owner's client id.
Examples
sysinfo.cpp.

Definition at line 144 of file alsaqueue.cpp.

◆ isLocked()

bool isLocked ( )

Returns the locking status of the queue.

Returns
The locking status.
Examples
sysinfo.cpp.

Definition at line 153 of file alsaqueue.cpp.

◆ operator=()

QueueInfo & operator= ( const QueueInfo other)

Assignment operator.

Parameters
otherAn existing QueueInfo object reference.
Returns
This object.

Definition at line 114 of file alsaqueue.cpp.

◆ setFlags()

void setFlags ( unsigned int  value)

Sets the bit flags of the queue.

Parameters
valueThe bit flags

Definition at line 189 of file alsaqueue.cpp.

◆ setLocked()

void setLocked ( bool  locked)

Sets the locked status of the queue.

Parameters
lockedThe locked status

Definition at line 198 of file alsaqueue.cpp.

◆ setName()

void setName ( QString  value)

Sets the queue name.

Parameters
valueThe queue name

Definition at line 171 of file alsaqueue.cpp.

◆ setOwner()

void setOwner ( int  value)

Sets the client ID of the owner.

Parameters
valueThe client ID of the owner

Definition at line 180 of file alsaqueue.cpp.


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