1 /* |
|
2 * Copyright (c) 2006 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MUSRESOURCEPROPERTIES_H |
|
20 #define MUSRESOURCEPROPERTIES_H |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 /** |
|
25 * A namespace container for MultimediaSharing Resource API constants. |
|
26 * This namespace has PS keys for dynamic resource setting which is used |
|
27 * in multimediasharing. |
|
28 * |
|
29 * For example : |
|
30 * If a product program configures the cenrep value of |
|
31 * MusSettingsKeys::KProductModeVariation ( refer mussettingskeys.h) |
|
32 * bit#2 and bit#5 to 1 ( means dynamic availability ) then it is upto |
|
33 * product program to inform multimediasharing when camera and keypad |
|
34 * resources will be available. |
|
35 * |
|
36 * In a practical usecase a product has camera slider and it must configure |
|
37 * cenrep value of MusSettingsKeys::KProductModeVariation bit#2 to 1. Also when |
|
38 * camera slider is open then it should call |
|
39 * |
|
40 * RProperty::Set( NMusResourceApi::KCategoryUid, |
|
41 * NMusResourceApi::KCameraAvailability, |
|
42 * ( TInt ) NMusResourceApi::EAvailable ); |
|
43 * |
|
44 * When camera slider is closed , It must call |
|
45 * |
|
46 * RProperty::Set( NMusResourceApi::KCategoryUid, |
|
47 * NMusResourceApi::KCameraAvailability, |
|
48 * ( TInt ) NMusResourceApi::ENotAvailable ); |
|
49 * |
|
50 */ |
|
51 namespace NMusResourceApi |
|
52 { |
|
53 /** The category of these P&S properties. */ |
|
54 #ifndef UNIT_TESTING |
|
55 const TUid KCategoryUid = { 0x101F85EE }; // UID3 of AO Server |
|
56 #else |
|
57 const TUid KCategoryUid = { 0x01700a21 }; // UID3 of EunitTest of AO |
|
58 #endif |
|
59 |
|
60 /** Contains the availability state of camera resource. |
|
61 * It can have one of the values of TAvailability. |
|
62 */ |
|
63 const TInt KCameraAvailability( 0x1028239B ); |
|
64 |
|
65 /** Contains the availability state of keypad resource. |
|
66 * It can have one of the values of TAvailability. |
|
67 */ |
|
68 const TInt KKeypadAvailability( 0x1028239C ); |
|
69 |
|
70 /** Contains the availability state of video resource. |
|
71 * It can have one of the values of TAvailability. |
|
72 */ |
|
73 const TInt KVideoPlayerAvailability( 0x1028239D ); |
|
74 |
|
75 /** Contains the possible values of availability properties. */ |
|
76 enum TAvailability |
|
77 { |
|
78 EAvailable = 1, |
|
79 ENotAvailable |
|
80 }; |
|
81 |
|
82 /** Contains the identifier of the preferred camera. |
|
83 * It can have one of the values of TCameraInformation |
|
84 */ |
|
85 const TInt KCameraInformation( 0x1028239E ); |
|
86 |
|
87 /** Contains the possible values of camera properties. */ |
|
88 enum TCameraInformation |
|
89 { |
|
90 EUsePrimaryCamera = 1, |
|
91 EUseSecondaryCamera |
|
92 }; |
|
93 |
|
94 } |
|
95 |
|
96 #endif // MUSRESOURCEPROPERTIES_H |
|