| 1 | /* This file is part of the KDE project |
| 2 | Copyright (C) 2008 Matthias Kretz <kretz@kde.org> |
| 3 | |
| 4 | This program is free software; you can redistribute it and/or |
| 5 | modify it under the terms of the GNU General Public License as |
| 6 | published by the Free Software Foundation; either version 2 of |
| 7 | the License or (at your option) version 3 or any later version |
| 8 | accepted by the membership of KDE e.V. (or its successor approved |
| 9 | by the membership of KDE e.V.), Nokia Corporation (or its successors, |
| 10 | if any) and the KDE Free Qt Foundation, which shall act as a proxy |
| 11 | defined in Section 14 of version 3 of the license. |
| 12 | |
| 13 | This program is distributed in the hope that it will be useful, |
| 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | GNU General Public License for more details. |
| 17 | |
| 18 | You should have received a copy of the GNU General Public License |
| 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 20 | |
| 21 | */ |
| 22 | #include "backendcapabilities.h" |
| 23 | #include "../backendcapabilities.h" |
| 24 | #include "globalconfig.h" |
| 25 | |
| 26 | namespace Phonon |
| 27 | { |
| 28 | namespace Experimental |
| 29 | { |
| 30 | |
| 31 | #ifndef PHONON_NO_VIDEOCAPTURE |
| 32 | QList<VideoCaptureDevice> BackendCapabilities::availableVideoCaptureDevices() |
| 33 | { |
| 34 | QList<Phonon::VideoCaptureDevice> phononList; |
| 35 | QList<VideoCaptureDevice> experimentalList; |
| 36 | |
| 37 | phononList = Phonon::BackendCapabilities::availableVideoCaptureDevices(); |
| 38 | foreach (const Phonon::VideoCaptureDevice &vcd, phononList) { |
| 39 | experimentalList << phononVcdToExperimentalVcd(vcd); |
| 40 | } |
| 41 | |
| 42 | return experimentalList; |
| 43 | } |
| 44 | #endif |
| 45 | |
| 46 | } // namespace Experimental |
| 47 | } // namespace Phonon |
| 48 | |