--- qsampler/trunk/src/qsamplerDevice.h 2005/03/15 11:39:12 462 +++ qsampler/trunk/src/qsamplerDevice.h 2005/03/15 15:32:29 463 @@ -34,6 +34,9 @@ // Special QListViewItem::rtti() unique return value. #define QSAMPLER_DEVICE_ITEM 1001 +// Early forward declaration. +class qsamplerDevicePort; + //------------------------------------------------------------------------- // qsamplerDeviceParam - MIDI/Audio Device parameter structure. @@ -67,9 +70,12 @@ QString value; }; -// A typedef'd parameter QMap. +// Typedef'd parameter QMap. typedef QMap qsamplerDeviceParamMap; +// Typedef'd device port/channels QptrList. +typedef QPtrList qsamplerDevicePortList; + //------------------------------------------------------------------------- // qsamplerDevice - MIDI/Audio Device structure. @@ -103,12 +109,18 @@ const QString& driverName() const; const QString& deviceName() const; + // Set the proper device parameter value. + void setParam (const QString& sParam, const QString& sValue); + // Device parameters accessor. const qsamplerDeviceParamMap& params() const; - // Set the proper device parameter value. - void setParam (const QString& sParam, const QString& sValue); + // Device port/channel list accessor. + qsamplerDevicePortList& ports(); + // Device port/channel list refreshner. + void refresh(lscp_client_t *pClient); + // Device ids enumerator. static int *getDevices(lscp_client_t *pClient, qsamplerDeviceType deviceType); @@ -128,6 +140,9 @@ // Device parameter list. qsamplerDeviceParamMap m_params; + + // Device port/channel list. + qsamplerDevicePortList m_ports; };