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