87
|
1 |
/*
|
116
|
2 |
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
87
|
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: declaration of functions providing string constants
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef HOMESCREEN_DOMAIN_PS_KEYS_H
|
|
19 |
#define HOMESCREEN_DOMAIN_PS_KEYS_H
|
|
20 |
|
98
|
21 |
|
|
22 |
/*!
|
|
23 |
\file homescreendomainpskeys.h
|
|
24 |
\brief
|
|
25 |
*/
|
|
26 |
|
|
27 |
/*!
|
|
28 |
P&S Key path for all Home Screen information keys provided by this API.
|
|
29 |
*/
|
88
|
30 |
const char HsStatePSKeyPath[] = "/homescreen";
|
87
|
31 |
|
98
|
32 |
/*!
|
|
33 |
P&S Key sub path to represent the state of the Home Screen. This property is updated when
|
116
|
34 |
Home screen state is changed. Valid values are defined by the enum EPSHomescreenState.
|
98
|
35 |
|
116
|
36 |
\see EPSHomescreenState
|
98
|
37 |
*/
|
88
|
38 |
const char HsStatePSKeySubPath[] = "state";
|
87
|
39 |
|
99
|
40 |
#if defined(__SYMBIAN32__) || defined(SYMBIAN)
|
98
|
41 |
/*!
|
|
42 |
Home Screen P&S category Uid for pure Symbian usage.
|
|
43 |
*/
|
93
|
44 |
const TUid KHsCategoryUid = { 0x20022F35 };
|
|
45 |
|
98
|
46 |
/*!
|
|
47 |
P&S Key to represent the state of the Home Screen for pure Symbian usage.
|
|
48 |
This property is updated when Home screen state is changed. Valid values
|
116
|
49 |
are defined by the enum EPSHomescreenState.
|
98
|
50 |
*/
|
93
|
51 |
const TUint KHsCategoryStateKey = 0x1;
|
99
|
52 |
#endif //SYMBIAN
|
116
|
53 |
|
|
54 |
/*!
|
|
55 |
Home screen state.
|
|
56 |
As Homescreen and Application Library are in the same process
|
|
57 |
EHomeScreenApplicationBackground and EHomeScreenApplicationForeground
|
|
58 |
information considers both of them simultaneously.
|
|
59 |
*/
|
|
60 |
enum EPSHomescreenState
|
|
61 |
{
|
|
62 |
/**
|
|
63 |
Invalid state. P&S key not initialized.
|
|
64 |
*/
|
|
65 |
EHomeScreenInvalid = 0x0,
|
|
66 |
/**
|
|
67 |
Home Screen Application in background.
|
|
68 |
*/
|
|
69 |
EHomeScreenApplicationBackground = 0x1,
|
|
70 |
/**
|
|
71 |
Home Screen Application in foreground.
|
|
72 |
*/
|
|
73 |
EHomeScreenApplicationForeground = 0x2,
|
|
74 |
/**
|
|
75 |
Home Screen in widget view.
|
|
76 |
*/
|
|
77 |
EHomeScreenWidgetViewActive = 0x4,
|
|
78 |
/**
|
|
79 |
Home Screen in application library view.
|
|
80 |
*/
|
|
81 |
EHomeScreenApplicationLibraryViewActive = 0x8,
|
|
82 |
/**
|
|
83 |
Home Screen in widget view in foreground.
|
|
84 |
*/
|
|
85 |
EHomeScreenWidgetViewForeground = EHomeScreenApplicationForeground | EHomeScreenWidgetViewActive,
|
|
86 |
/**
|
|
87 |
Home Screen in application library view in foreground.
|
|
88 |
*/
|
|
89 |
EHomeScreenApplicationLibraryViewForeground = EHomeScreenApplicationForeground | EHomeScreenApplicationLibraryViewActive
|
|
90 |
};
|
93
|
91 |
|
98
|
92 |
/*!
|
|
93 |
Home screen state.
|
116
|
94 |
|
|
95 |
\deprecated EPSHsState
|
|
96 |
is deprecated. Please use EPSHomescreenState instead.
|
|
97 |
|
|
98 |
\see EPSHomescreenState
|
98
|
99 |
*/
|
87
|
100 |
enum EPSHsState
|
|
101 |
{
|
|
102 |
/**
|
|
103 |
Invalid state. P&S key not initialized.
|
|
104 |
*/
|
|
105 |
EHomeScreenInvalidState = 0,
|
|
106 |
/**
|
|
107 |
Home Screen inactive
|
|
108 |
*/
|
|
109 |
EHomeScreenInactive = 1,
|
|
110 |
/**
|
|
111 |
Home Screen in idle state
|
|
112 |
*/
|
|
113 |
EHomeScreenIdleState = 2
|
|
114 |
};
|
|
115 |
|
88
|
116 |
#endif //HOMESCREEN_DOMAIN_PS_KEYS_H
|