|
1 /* |
|
2 * Copyright (c) 2008-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: This header file contains the definition for the app state P&S |
|
15 * API. Purpose of this API is for applications to publish their internal |
|
16 * state information. This information is used for example in light control |
|
17 * use cases |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 #ifndef PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H |
|
25 #define PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H |
|
26 |
|
27 /**< The UID of the category we use. */ |
|
28 const TUid KPCFWAppStatePSUid = {0x10282BC4}; |
|
29 |
|
30 /////////////////////////////////////////////////////////////////////////////////////////////////////// |
|
31 /// /// |
|
32 /// Each application has own P&S key for publishing state information. Following definitions define /// |
|
33 /// what key value corresponds to which application and what are the possible values for each /// |
|
34 /// application state(= key). /// |
|
35 /// /// |
|
36 /////////////////////////////////////////////////////////////////////////////////////////////////////// |
|
37 |
|
38 /** |
|
39 * Music player app key |
|
40 * Value See <code>KPCFWAppStatePSMusicPlayerState</code> |
|
41 * Type <code>RProperty::EInt</code>. |
|
42 */ |
|
43 const TUint32 KPCFWAppStatePSMusicPlayer = 0x00000000; |
|
44 |
|
45 /** |
|
46 * Possible states for music player |
|
47 */ |
|
48 enum KPCFWAppStatePSMusicPlayerStoppedState |
|
49 { |
|
50 MusicPlayerPlayPaused, /**< Music player playback in play or pause mode */ |
|
51 MusicPlayerStopped /**< Music player playback in stop mode*/ |
|
52 }; |
|
53 |
|
54 /** |
|
55 * Gallery app key |
|
56 * Value See <code>KPCFWAppStatePSGalleryState</code> |
|
57 * Type <code>RProperty::EInt</code>. |
|
58 */ |
|
59 const TUint32 KPCFWAppStatePSGallery = 0x00000001; |
|
60 |
|
61 /** |
|
62 * Possible states for gallery application |
|
63 */ |
|
64 enum KPCFWAppStatePSGalleryState |
|
65 { |
|
66 GalleryInCarouselView, |
|
67 GalleryInFullScreenView, |
|
68 GalleryInZoomedView, |
|
69 GalleryInVideoPlaybackView, |
|
70 GalleryInSlideshowView, |
|
71 GalleryInListView, /**< Covers a multitude of misc. views all based on non-carousel lists */ |
|
72 GalleryInTagBrowserView, |
|
73 GalleryInMapBrowserView, |
|
74 GalleryInTextEntry |
|
75 }; |
|
76 |
|
77 /** |
|
78 * NGI app key |
|
79 * Value See <code>KPCFWAppStatePSNGIState</code> |
|
80 * Type <code>RProperty::EInt</code>. |
|
81 */ |
|
82 const TUint32 KPCFWAppStatePSNGI = 0x00000002; |
|
83 |
|
84 /** |
|
85 * Possible states for NGI (N-Gage inside) |
|
86 */ |
|
87 enum KPCFWAppStatePSNGIState |
|
88 { |
|
89 NGIGameForegroundLandscape, /**< NGI game in foreground and in landscape 90 degree mode */ |
|
90 NGIGameForegroundLandscapeUpsideDown, /**< NGI game in foreground and in landscape 270 degree mode */ |
|
91 NGIGameForegroundPortrait, /**< NGI game in foreground and in portrait mode */ |
|
92 NGIGameBackground /**< NGI game in background or closing down */ |
|
93 }; |
|
94 |
|
95 /** |
|
96 * NGI app key |
|
97 * Value See <code>KPCFWAppStatePSNGIState</code> |
|
98 * Type <code>RProperty::EInt</code>. |
|
99 */ |
|
100 const TUint32 KPCFWAppStatePSCamera = 0x00000003; |
|
101 |
|
102 enum KPCFWAppStatePSCameraState |
|
103 { |
|
104 CameraStartUp, /** < Startup*/ |
|
105 CameraMainStillCaptureView, /** <Main Camera Still Capture Viewfinding */ |
|
106 CameraMainStillCaptureViewShortcuts, /** < Main Camera Still Capture Viewfinding with shortcuts */ |
|
107 CameraMainMultishotView, /** < Main Camera Multishot Viewfinding */ |
|
108 CameraMainMultishotViewShortCuts, /** < Main Camera Multishot Viewfinding with shortcuts */ |
|
109 CameraSecondaryStillCaptureView, /** < Secondary Camera Still Capture Viewfinding */ |
|
110 CameraSecondaryMultishotView, /** < Secondary Camera Multishot Viewfinding */ |
|
111 CameraMainVideoCaptureView, /** < Main Camera Video Capture Viewfinding */ |
|
112 CameraMainVideoCaptureViewShortcuts, /** < Main Camera Video Capture Viewfinding with shortcuts */ |
|
113 CameraSecondaryVideoCaptureView, /** < Secondary Camera Video Capture Viewfinding */ |
|
114 CapturingStillImage, /** < Capturing Still Image */ |
|
115 PostStillCapture, /** < Post Still Capture */ |
|
116 CapturingMultishotImages, /** < Capturing Multishot Images */ |
|
117 PostMultishotCapture, /** < Post Multishot Capture */ |
|
118 MainRecordingVideo, /** < Main Camera Recording Video */ |
|
119 MainRecordingVideoShortCuts, /** < Main Camera Recording Video with shortcuts */ |
|
120 SecondaryRecordingVideo, /** < Secondary Camera Recording Video */ |
|
121 PostVideoCapture, /** < Post Video Capture */ |
|
122 CameraSettings, /** < Settings */ |
|
123 CameraTextInput /** < Text Input */ |
|
124 // CameraSettings /** < Settings */ |
|
125 // CameraTextInput /** < Text Input */ |
|
126 }; |
|
127 |
|
128 /** |
|
129 * Visual radio app key |
|
130 * Value See <code>KPCFWAppStatePSVRState</code> |
|
131 * Type <code>RProperty::EInt</code>. |
|
132 */ |
|
133 const TUint32 KPCFWAppStatePSVR = 0x00000004; |
|
134 |
|
135 /** |
|
136 * Possible states for NGI (N-Gage inside) |
|
137 */ |
|
138 enum KPCFWAppStatePSVRState |
|
139 { |
|
140 VisualRadioBackgroundPlaying, |
|
141 VisualRadioForegroundPlaying, |
|
142 VisualRadioForegroundPlayingDisplayLightsAlwaysOn |
|
143 }; |
|
144 |
|
145 #endif//PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H |