contextframework/cfwplugins/PSStateSourcePlugIn/inc/psstatesourceappstatedomainpskeys.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006-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:  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 #ifndef PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H
       
    23 #define PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H
       
    24 
       
    25 /**< The UID of the category we use. */
       
    26 const TUid KPCFWAppStatePSUid = {0x10282BC4}; 
       
    27 
       
    28 ///////////////////////////////////////////////////////////////////////////////////////////////////////
       
    29 ///                                                                                                 ///
       
    30 /// Each application has own P&S key for publishing state information. Following definitions define ///
       
    31 /// what key value corresponds to which application and what are the possible values for each				///
       
    32 /// application state(= key).																																				///
       
    33 ///                                                                                                 ///
       
    34 ///////////////////////////////////////////////////////////////////////////////////////////////////////
       
    35 
       
    36 /**
       
    37 * Music player app key
       
    38 * Value See <code>KPCFWAppStatePSMusicPlayerState</code>
       
    39 * Type <code>RProperty::EInt</code>.
       
    40 */
       
    41 const TUint32 KPCFWAppStatePSMusicPlayer = 0x00000000;
       
    42 
       
    43 /**
       
    44 * Possible states for music player
       
    45 */
       
    46 enum KPCFWAppStatePSMusicPlayerState
       
    47     {
       
    48     MusicPlayerTextInput
       
    49     };
       
    50     
       
    51 /**
       
    52 * Gallery app key
       
    53 * Value See <code>KPCFWAppStatePSGalleryState</code>
       
    54 * Type <code>RProperty::EInt</code>.
       
    55 */
       
    56 const TUint32 KPCFWAppStatePSGallery = 0x00000001;
       
    57 
       
    58 /**
       
    59 * Possible states for gallery application
       
    60 */
       
    61 enum KPCFWAppStatePSGalleryState
       
    62     {
       
    63     GalleryInCarouselView, 
       
    64     GalleryInFullScreenView,
       
    65     GalleryInZoomedView,
       
    66     GalleryInVideoPlaybackView,
       
    67     GalleryInSlideshowView,
       
    68     GalleryInListView, 		/**< Covers a multitude of misc. views all based on non-carousel lists */
       
    69     GalleryInTagBrowserView,
       
    70     GalleryInMapBrowserView,
       
    71     GalleryTextInput
       
    72     };        
       
    73     
       
    74 /**
       
    75 * NGI app key
       
    76 * Value See <code>KPCFWAppStatePSNGIState</code>
       
    77 * Type <code>RProperty::EInt</code>.
       
    78 */
       
    79 const TUint32 KPCFWAppStatePSNGI = 0x00000002;
       
    80 
       
    81 /**
       
    82 * Possible states for NGI (NGI inside)
       
    83 */
       
    84 enum KPCFWAppStatePSNGIState
       
    85     {
       
    86     NGIGameForegroundLandscape,                /**< NGI game in foreground and in landscape 90 degree mode */
       
    87     NGIGameForegroundLandscapeUpsideDown,      /**< NGI game in foreground and in landscape 270 degree mode */ 
       
    88     NGIGameForegroundPortrait,                 /**< NGI game in foreground and in portrait mode  */
       
    89     NGIGameBackground                          /**< NGI game in background or closing down */
       
    90     };
       
    91   
       
    92 /**
       
    93 * Camera app key
       
    94 * Value See <code>KPCFWAppStatePSNGIState</code>
       
    95 * Type <code>RProperty::EInt</code>.
       
    96 */
       
    97 const TUint32 KPCFWAppStatePSCamera = 0x00000003;
       
    98       
       
    99 enum KPCFWAppStatePSCameraState
       
   100     {
       
   101     CameraStartUp,  /** < Startup*/
       
   102     CameraMainStillCaptureView, /** <Main Camera Still Capture Viewfinding */
       
   103     CameraMainStillCaptureViewShortcuts, /** < Main Camera Still Capture Viewfinding with shortcuts */
       
   104     CameraMainMultishotView, /** < Main Camera Multishot Viewfinding */
       
   105     CameraMainMultishotViewShortCuts, /** < Main Camera Multishot Viewfinding with shortcuts */
       
   106     CameraSecondaryStillCaptureView, /** < Secondary Camera Still Capture Viewfinding */
       
   107     CameraSecondaryMultishotView, /** < Secondary Camera Multishot Viewfinding */
       
   108     CameraMainVideoCaptureView, /** < Main Camera Video Capture Viewfinding */
       
   109     CameraMainVideoCaptureViewShortcuts, /** < Main Camera Video Capture Viewfinding with shortcuts */
       
   110     CameraSecondaryVideoCaptureView, /** < Secondary Camera Video Capture Viewfinding */
       
   111     CapturingStillImage, /** < Capturing Still Image */
       
   112     PostStillCapture, /** < Post Still Capture */
       
   113     CapturingMultishotImages, /** < Capturing Multishot Images */
       
   114     PostMultishotCapture, /** < Post Multishot Capture */
       
   115     MainRecordingVideo, /** < Main Camera Recording Video */
       
   116     MainRecordingVideoShortCuts, /** < Main Camera Recording Video with shortcuts */
       
   117     SecondaryRecordingVideo, /** < Secondary Camera Recording Video */
       
   118     PostVideoCapture, /** < Post Video Capture */
       
   119     CameraSettings, /** < Settings */
       
   120     CameraTextInput /** < Text Input */	
       
   121     };
       
   122 
       
   123 /**
       
   124 * Visual radio app key
       
   125 * Value See <code>KPCFWAppStatePSVRState</code>
       
   126 * Type <code>RProperty::EInt</code>.
       
   127 */
       
   128 const TUint32 KPCFWAppStatePSVR = 0x00000004;
       
   129 
       
   130 /**
       
   131 * Possible states for Visual radio
       
   132 */
       
   133 enum KPCFWAppStatePSVRState
       
   134     {
       
   135     VisualRadioBackgroundPlaying,   
       
   136     VisualRadioForegroundPlaying,  
       
   137     VisualRadioForegroundPlayingDisplayLightsAlwaysOn  
       
   138     };
       
   139 
       
   140 /**
       
   141 * Video center app key
       
   142 * Value See <code>KPCFWAppStatePSVideoCenterPlayerState</code>
       
   143 * Type <code>RProperty::EInt</code>.
       
   144 */
       
   145 const TUint32 KPCFWAppStatePSVideoCenter = 0x00000005;
       
   146 
       
   147 /**
       
   148 * Possible states for Video center
       
   149 */
       
   150 enum KPCFWAppStatePSVideoCenterState
       
   151     {
       
   152     VideoCenterPlaying,
       
   153     VideoCenterPaused,
       
   154     VideoCenterStopped,
       
   155     VideoCenterTextInput
       
   156     };
       
   157 
       
   158 
       
   159 /**
       
   160 * Navi power targets
       
   161 */
       
   162 const TUint32 KNaviPowerPrimary =   0x00000006; 
       
   163 const TUint32 KNaviPowerSecondary = 0x00000007;
       
   164 
       
   165 /**
       
   166 * Navi power modes
       
   167 */
       
   168 enum TNaviPowerMode
       
   169     {
       
   170     ENaviPowerModeOff = 0,  
       
   171     ENaviPowerModeMin,      
       
   172     ENaviPowerModeNormal,  
       
   173     };
       
   174 
       
   175 /**
       
   176 * Cenrep page setting
       
   177 * @type RProperty::EInt
       
   178 */
       
   179 const TUint32 KNaviCenrepPage = 0x00000008;
       
   180 
       
   181 /**
       
   182 * Defines a cenrep page for Naviscroll
       
   183 */
       
   184 enum TNaviCenrepPage
       
   185     {     
       
   186     ENaviCenrepPage0 = 0,      
       
   187     ENaviCenrepPage1,
       
   188     ENaviCenrepPage2,
       
   189     ENaviCenrepPage3
       
   190     };
       
   191 #endif//PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H
       
   192