1 | /* This file is part of the KDE project |
2 | Copyright © 2008 Matthias Kretz <kretz@kde.org> |
3 | Copyright © 2010 Harald Sitter <apachelogger@ubuntu.com> |
4 | |
5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2.1 of the License, or (at your option) version 3, or any |
9 | later version accepted by the membership of KDE e.V. (or its |
10 | successor approved by the membership of KDE e.V.), Nokia Corporation |
11 | (or its successors, if any) and the KDE Free Qt Foundation, which shall |
12 | act as a proxy defined in Section 6 of version 3 of the license. |
13 | |
14 | This library is distributed in the hope that it will be useful, |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | Lesser General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Lesser General Public |
20 | License along with this library. If not, see <http://www.gnu.org/licenses/>. |
21 | |
22 | */ |
23 | #ifndef PHONON_EXPERIMENTAL_OBJECTDESCRIPTION_H |
24 | #define PHONON_EXPERIMENTAL_OBJECTDESCRIPTION_H |
25 | |
26 | #include "../objectdescription.h" |
27 | |
28 | namespace Phonon |
29 | { |
30 | namespace Experimental |
31 | { |
32 | |
33 | #ifndef PHONON_NO_VIDEOCAPTURE |
34 | |
35 | enum ObjectDescriptionType |
36 | { |
37 | VideoCaptureDeviceType = 0x10000 |
38 | }; |
39 | |
40 | typedef Phonon::ObjectDescription<static_cast<Phonon::ObjectDescriptionType>(Phonon::Experimental::VideoCaptureDeviceType)> VideoCaptureDevice; |
41 | |
42 | VideoCaptureDevice phononVcdToExperimentalVcd(const Phonon::VideoCaptureDevice &vcd); |
43 | |
44 | /** |
45 | * Generates a Phonon::VideoCaptureDevice from an equal object of |
46 | * the Phonon::Experimental namespace. |
47 | * |
48 | * @arg vcd the VideoCaptureDevice to take as reference |
49 | * @return a Phonon::VideoCaptureDevice instance with the same properties as the incoming vcd |
50 | */ |
51 | Phonon::VideoCaptureDevice phononExperimentalVcdToVcd(const Phonon::Experimental::VideoCaptureDevice &vcd); |
52 | |
53 | #endif // PHONON_NO_VIDEOCAPTURE |
54 | |
55 | } // namespace Experimental |
56 | } // namespace Phonon |
57 | |
58 | #endif // PHONON_EXPERIMENTAL_OBJECTDESCRIPTION_H |
59 | |