|
1 /* |
|
2 * Copyright (c) 2009 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: P&S keys defined in Camcorder area. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CAMERAPLATPSKEYS_H |
|
19 #define CAMERAPLATPSKEYS_H |
|
20 |
|
21 /** |
|
22 * A namespace container for Camera related P&S keys. |
|
23 * |
|
24 * |
|
25 * In a practical usecase a product has camera slider and it must configure |
|
26 * cenrep value of CameraPlatPSKeys::KPSCameraPlatUid. |
|
27 * |
|
28 * When camera slider is opened , It must call |
|
29 * |
|
30 * RProperty::Set( CameraPlatPSKeys::KPSCameraPlatUid, |
|
31 * CameraPlatPSKeys::KLenscoverStatus, |
|
32 * ( TInt ) CcorUiPropertiesApi::EOpen ); |
|
33 * |
|
34 * When camera slider is closed , It must call |
|
35 * |
|
36 * RProperty::Set( CameraPlatPSKeys::KPSCameraPlatUid, |
|
37 * CameraPlatPSKeys::KLenscoverStatus, |
|
38 * ( TInt ) CcorUiPropertiesApi::EClosed ); |
|
39 * |
|
40 */ |
|
41 namespace CameraPlatPSKeys |
|
42 { |
|
43 /** The category of this P&S keys. */ |
|
44 const TUid KPSCameraPlatUid = { 0x101F857A }; // UID3 of Cameraapp |
|
45 |
|
46 /** Contains the availability state of camera resource. |
|
47 * It can have one of the values of TStatus. |
|
48 */ |
|
49 const TUint32 KLensCoverStatus = 0x00000001; |
|
50 |
|
51 /** |
|
52 * Indicates the status of KLenscoverStatus |
|
53 * |
|
54 * Possible values are: |
|
55 * |
|
56 * 1: Lens cover is open and camera is usable |
|
57 * 2: Lens cover is closed and camera cannot be used |
|
58 * |
|
59 */ |
|
60 enum TStatus |
|
61 { |
|
62 EOpen = 1, |
|
63 EClosed |
|
64 }; |
|
65 } |
|
66 |
|
67 #endif // CAMERAPLATPSKEYS_H |