Add remaining files
[juce-lv2.git] / juce / source / src / native / android / juce_android_CameraDevice.cpp
blob83a9ebcc24cc982b6732b9e88995777683ce6b74
1 /*
2 ==============================================================================
4 This file is part of the JUCE library - "Jules' Utility Class Extensions"
5 Copyright 2004-11 by Raw Material Software Ltd.
7 ------------------------------------------------------------------------------
9 JUCE can be redistributed and/or modified under the terms of the GNU General
10 Public License (Version 2), as published by the Free Software Foundation.
11 A copy of the license is included in the JUCE distribution, or can be found
12 online at www.gnu.org/licenses.
14 JUCE is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 A PARTICULAR PURPOSE. See the GNU General Public License for more details.
18 ------------------------------------------------------------------------------
20 To release a closed-source product which uses JUCE, commercial licenses are
21 available: visit www.rawmaterialsoftware.com/juce for more information.
23 ==============================================================================
26 // (This file gets included by juce_android_NativeCode.cpp, rather than being
27 // compiled on its own).
28 #if JUCE_INCLUDED_FILE && JUCE_USE_CAMERA
31 //==============================================================================
32 // TODO
33 class AndroidCameraInternal
35 public:
36 AndroidCameraInternal()
40 ~AndroidCameraInternal()
45 private:
46 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (AndroidCameraInternal);
49 //==============================================================================
50 CameraDevice::CameraDevice (const String& name_, int /*index*/)
51 : name (name_)
53 internal = new AndroidCameraInternal();
55 // TODO
58 CameraDevice::~CameraDevice()
60 stopRecording();
61 delete static_cast <AndroidCameraInternal*> (internal);
62 internal = 0;
65 Component* CameraDevice::createViewerComponent()
67 // TODO
69 return nullptr;
72 String CameraDevice::getFileExtension()
74 return ".m4a"; // TODO correct?
77 void CameraDevice::startRecordingToFile (const File& file, int quality)
79 // TODO
82 Time CameraDevice::getTimeOfFirstRecordedFrame() const
84 // TODO
85 return Time();
88 void CameraDevice::stopRecording()
90 // TODO
93 void CameraDevice::addListener (Listener* listenerToAdd)
95 // TODO
98 void CameraDevice::removeListener (Listener* listenerToRemove)
100 // TODO
103 StringArray CameraDevice::getAvailableDevices()
105 StringArray devs;
107 // TODO
109 return devs;
112 CameraDevice* CameraDevice::openDevice (int index,
113 int minWidth, int minHeight,
114 int maxWidth, int maxHeight)
116 // TODO
118 return nullptr;
122 #endif