1 |
// qsamplerDevice.h |
// qsamplerDevice.h |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2005, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2006, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
GNU General Public License for more details. |
GNU General Public License for more details. |
15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License along |
17 |
along with this program; if not, write to the Free Software |
with this program; if not, write to the Free Software Foundation, Inc., |
18 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
19 |
|
|
20 |
*****************************************************************************/ |
*****************************************************************************/ |
21 |
|
|
90 |
enum qsamplerDeviceType { None, Midi, Audio }; |
enum qsamplerDeviceType { None, Midi, Audio }; |
91 |
|
|
92 |
// Constructor. |
// Constructor. |
93 |
qsamplerDevice(qsamplerMainForm *pMainForm, |
qsamplerDevice(qsamplerDeviceType deviceType, int iDeviceID = -1); |
|
qsamplerDeviceType deviceType, int iDeviceID = -1); |
|
94 |
// Copy constructor. |
// Copy constructor. |
95 |
qsamplerDevice(const qsamplerDevice& device); |
qsamplerDevice(const qsamplerDevice& device); |
96 |
// Default destructor. |
// Default destructor. |
102 |
// Driver name initializer. |
// Driver name initializer. |
103 |
void setDriver(const QString& sDriverName); |
void setDriver(const QString& sDriverName); |
104 |
|
|
|
// LSCP client descriptor accessor. |
|
|
lscp_client_t *client() const; |
|
|
|
|
105 |
// Device property accessors. |
// Device property accessors. |
106 |
int deviceID() const; |
int deviceID() const; |
107 |
qsamplerDeviceType deviceType() const; |
qsamplerDeviceType deviceType() const; |
217 |
public: |
public: |
218 |
|
|
219 |
// Constructors. |
// Constructors. |
220 |
qsamplerDeviceItem(QListView *pListView, qsamplerMainForm *pMainForm, |
qsamplerDeviceItem(QListView *pListView, |
221 |
qsamplerDevice::qsamplerDeviceType deviceType); |
qsamplerDevice::qsamplerDeviceType deviceType); |
222 |
qsamplerDeviceItem(QListViewItem *pItem, qsamplerMainForm *pMainForm, |
qsamplerDeviceItem(QListViewItem *pItem, |
223 |
qsamplerDevice::qsamplerDeviceType deviceType, int iDeviceID); |
qsamplerDevice::qsamplerDeviceType deviceType, int iDeviceID); |
224 |
// Default destructor. |
// Default destructor. |
225 |
~qsamplerDeviceItem(); |
~qsamplerDeviceItem(); |