New methods to unsubscribe all readable/writeable ports of a midiPort object.

Moved the code to unsubscribe all readable and/or writeable ports to own
methods and thus made them publically available to avoid duplicate code.

Signed-off-by: Tobias Doerffel <tobias.doerffel@gmail.com>
This commit is contained in:
Achim Settelmeier
2009-05-31 02:06:31 +02:00
committed by Tobias Doerffel
parent 227de591bd
commit de26ba5f00
3 changed files with 43 additions and 28 deletions

View File

@@ -126,6 +126,14 @@ public:
return( m_writablePorts );
}
void unsubscribeAllReadablePorts( void );
void unsubscribeAllWriteablePorts( void );
inline void unsubscribeAllPorts( void )
{
unsubscribeAllReadablePorts();
unsubscribeAllWriteablePorts();
}
midiPortMenu * m_readablePortsMenu;
midiPortMenu * m_writablePortsMenu;