File indexing completed on 2024-05-05 04:44:40

0001 /*  This file is part of the KDE project
0002     Copyright (C) 2008 Matthias Kretz <kretz@kde.org>
0003 
0004     This program is free software; you can redistribute it and/or
0005     modify it under the terms of the GNU General Public License as
0006     published by the Free Software Foundation; either version 2 of
0007     the License or (at your option) version 3 or any later version
0008     accepted by the membership of KDE e.V. (or its successor approved
0009     by the membership of KDE e.V.), Nokia Corporation (or its successors,
0010     if any) and the KDE Free Qt Foundation, which shall act as a proxy
0011     defined in Section 14 of version 3 of the license.
0012 
0013     This program is distributed in the hope that it will be useful,
0014     but WITHOUT ANY WARRANTY; without even the implied warranty of
0015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016     GNU General Public License for more details.
0017 
0018     You should have received a copy of the GNU General Public License
0019     along with this program.  If not, see <http://www.gnu.org/licenses/>.
0020 
0021 */
0022 #include "backendcapabilities.h"
0023 #include "../backendcapabilities.h"
0024 #include "globalconfig.h"
0025 
0026 namespace Phonon
0027 {
0028 namespace Experimental
0029 {
0030 
0031 #ifndef PHONON_NO_VIDEOCAPTURE
0032 QList<VideoCaptureDevice> BackendCapabilities::availableVideoCaptureDevices()
0033 {
0034     QList<Phonon::VideoCaptureDevice> phononList;
0035     QList<VideoCaptureDevice> experimentalList;
0036 
0037     phononList = Phonon::BackendCapabilities::availableVideoCaptureDevices();
0038     foreach (const Phonon::VideoCaptureDevice &vcd, phononList) {
0039         experimentalList << phononVcdToExperimentalVcd(vcd);
0040     }
0041 
0042     return experimentalList;
0043 }
0044 #endif
0045 
0046 } // namespace Experimental
0047 } // namespace Phonon