1 /* |
|
2 * Copyright (c) 2008 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: LiveComm Videotelephony's Camera Handler |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LCVTCAMERAHANDLER_H |
|
19 #define LCVTCAMERAHANDLER_H |
|
20 |
|
21 #include <lccameracontrol.h> |
|
22 #include <lcbrightnesscontrol.h> |
|
23 #include <lczoomcontrol.h> |
|
24 |
|
25 class CLcVtSession; |
|
26 |
|
27 class TVtCameraHandler : |
|
28 public MLcCameraControl, |
|
29 public MLcBrightnessControl, |
|
30 public MLcZoomControl |
|
31 { |
|
32 public: // From MLcCameraControl |
|
33 |
|
34 TInt LcCameraCountL(); |
|
35 |
|
36 TInt CurrentLcCameraIndex(); |
|
37 |
|
38 void ToggleLcCameraL(); |
|
39 |
|
40 public: // From MLcBrightnessControl |
|
41 |
|
42 TInt MinLcBrightnessL(); |
|
43 |
|
44 TInt MaxLcBrightnessL(); |
|
45 |
|
46 TInt LcBrightnessL(); |
|
47 |
|
48 void SetLcBrightnessL( TInt aValue ); |
|
49 |
|
50 void IncreaseLcBrightnessL(); |
|
51 |
|
52 void DecreaseLcBrightnessL(); |
|
53 |
|
54 public: // From MLcZoomControl |
|
55 |
|
56 TInt MinLcZoomL(); |
|
57 |
|
58 TInt MaxLcZoomL(); |
|
59 |
|
60 TInt LcZoomValueL(); |
|
61 |
|
62 void SetLcZoomValueL( TInt aValue ); |
|
63 |
|
64 void LcZoomInL(); |
|
65 |
|
66 void LcZoomOutL(); |
|
67 |
|
68 public: |
|
69 |
|
70 TVtCameraHandler(); |
|
71 |
|
72 void SetSession( CLcVtSession* aSession ); |
|
73 |
|
74 private: |
|
75 |
|
76 enum TCurrentCamera |
|
77 { |
|
78 ECameraNotAvailable = KErrNotFound, |
|
79 EBackCamera = 0, |
|
80 EFrontCamera = 1 |
|
81 }; |
|
82 |
|
83 private: // Data |
|
84 |
|
85 CLcVtSession* ivtSession; // Not owned |
|
86 |
|
87 }; |
|
88 |
|
89 #endif //LCVTCAMERAHANDLER_H |
|