1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 #ifndef CXECAMERADEVICECONTROLDESKTOP_H |
|
18 #define CXECAMERADEVICECONTROLDESKTOP_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QMetaType> |
|
22 #include "cxecameradevicecontrol.h" |
|
23 #include "cxenamespace.h" |
|
24 #include "cxeerror.h" |
|
25 |
|
26 class CxeCameraDeviceControlDesktop : public CxeCameraDeviceControl |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 |
|
32 CxeCameraDeviceControlDesktop(); |
|
33 ~CxeCameraDeviceControlDesktop(); |
|
34 |
|
35 public: // from CxeCameraDeviceControl |
|
36 virtual Cxe::CameraMode mode() const; |
|
37 virtual void setMode(Cxe::CameraMode mode); |
|
38 virtual void init(); |
|
39 virtual void reserve(); |
|
40 virtual void release(); |
|
41 virtual Cxe::CameraIndex cameraIndex() const; |
|
42 virtual CxeError::Id switchCamera(Cxe::CameraIndex index); |
|
43 virtual CxeCameraDeviceControl::State state() const; |
|
44 |
|
45 private: |
|
46 void setState(CxeCameraDeviceControl::State stateId, CxeError::Id error = CxeError::None); |
|
47 |
|
48 private: |
|
49 Cxe::CameraIndex mIndex; |
|
50 Cxe::CameraMode mMode; |
|
51 State mState; |
|
52 |
|
53 }; |
|
54 |
|
55 #endif // CXECAMERADEVICECONTROLDESKTOP_H |
|