diff -r ea65f74e6de4 -r 8e5f6eea9c9f inc/glxpsstatesourceappstatedomainpskeys.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/glxpsstatesourceappstatedomainpskeys.h Tue Aug 31 15:14:51 2010 +0300 @@ -0,0 +1,144 @@ +/* +* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This header file contains the definition for the app state P&S +* API. Purpose of this API is for applications to publish their internal +* state information. This information is used for example in light control +* use cases +* +*/ + + + +#ifndef PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H +#define PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H + +/**< The UID of the category we use. */ +const TUid KPCFWAppStatePSUid = {0x10282BC4}; + +/////////////////////////////////////////////////////////////////////////////////////////////////////// +/// /// +/// Each application has own P&S key for publishing state information. Following definitions define /// +/// what key value corresponds to which application and what are the possible values for each /// +/// application state(= key). /// +/// /// +/////////////////////////////////////////////////////////////////////////////////////////////////////// + +/** +* Music player app key +* Value See KPCFWAppStatePSMusicPlayerState +* Type RProperty::EInt. +*/ +const TUint32 KPCFWAppStatePSMusicPlayer = 0x00000000; + +/** +* Possible states for music player +*/ +enum KPCFWAppStatePSMusicPlayerStoppedState + { + MusicPlayerPlayPaused, /**< Music player playback in play or pause mode */ + MusicPlayerStopped /**< Music player playback in stop mode*/ + }; + +/** +* Gallery app key +* Value See KPCFWAppStatePSGalleryState +* Type RProperty::EInt. +*/ +const TUint32 KPCFWAppStatePSGallery = 0x00000001; + +/** +* Possible states for gallery application +*/ +enum KPCFWAppStatePSGalleryState + { + GalleryInCarouselView, + GalleryInFullScreenView, + GalleryInZoomedView, + GalleryInVideoPlaybackView, + GalleryInSlideshowView, + GalleryInListView, /**< Covers a multitude of misc. views all based on non-carousel lists */ + GalleryInTagBrowserView, + GalleryInMapBrowserView, + GalleryInTextEntry + }; + +/** +* NGI app key +* Value See KPCFWAppStatePSNGIState +* Type RProperty::EInt. +*/ +const TUint32 KPCFWAppStatePSNGI = 0x00000002; + +/** +* Possible states for NGI (N-Gage inside) +*/ +enum KPCFWAppStatePSNGIState + { + NGIGameForegroundLandscape, /**< NGI game in foreground and in landscape 90 degree mode */ + NGIGameForegroundLandscapeUpsideDown, /**< NGI game in foreground and in landscape 270 degree mode */ + NGIGameForegroundPortrait, /**< NGI game in foreground and in portrait mode */ + NGIGameBackground /**< NGI game in background or closing down */ + }; + +/** +* NGI app key +* Value See KPCFWAppStatePSNGIState +* Type RProperty::EInt. +*/ +const TUint32 KPCFWAppStatePSCamera = 0x00000003; + +enum KPCFWAppStatePSCameraState + { + CameraStartUp, /** < Startup*/ + CameraMainStillCaptureView, /**
KPCFWAppStatePSVRState +* Type RProperty::EInt. +*/ +const TUint32 KPCFWAppStatePSVR = 0x00000004; + +/** +* Possible states for NGI (N-Gage inside) +*/ +enum KPCFWAppStatePSVRState + { + VisualRadioBackgroundPlaying, + VisualRadioForegroundPlaying, + VisualRadioForegroundPlayingDisplayLightsAlwaysOn + }; + +#endif//PSSTATESOURCEAPPSTATEDOMAINPSKEYS_H