2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, 2008 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
702 |
return piDeviceIDs; |
return piDeviceIDs; |
703 |
} |
} |
704 |
|
|
705 |
|
std::set<int> Device::getDeviceIDs(lscp_client_t *pClient, |
706 |
|
DeviceType deviceType) |
707 |
|
{ |
708 |
|
std::set<int> result; |
709 |
|
int* piDeviceIDs = getDevices(pClient, deviceType); |
710 |
|
if (!piDeviceIDs) return result; |
711 |
|
for (int i = 0; piDeviceIDs[i] != -1; ++i) |
712 |
|
result.insert(piDeviceIDs[i]); |
713 |
|
return result; |
714 |
|
} |
715 |
|
|
716 |
|
|
717 |
// Driver names enumerator. |
// Driver names enumerator. |
718 |
QStringList Device::getDrivers ( lscp_client_t *pClient, |
QStringList Device::getDrivers ( lscp_client_t *pClient, |