williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: This file contains the constant definitions of the Central
|
williamr@2
|
15 |
* Repository keys and the Central Repository UID of Profiles
|
williamr@2
|
16 |
* Engine Active Profile Settings API.
|
williamr@2
|
17 |
*
|
williamr@2
|
18 |
*/
|
williamr@2
|
19 |
|
williamr@2
|
20 |
|
williamr@2
|
21 |
|
williamr@2
|
22 |
#ifndef PROFILEENGINESDKCRKEYS_H
|
williamr@2
|
23 |
#define PROFILEENGINESDKCRKEYS_H
|
williamr@2
|
24 |
|
williamr@2
|
25 |
|
williamr@2
|
26 |
// INCLUDES
|
williamr@2
|
27 |
#include <e32std.h>
|
williamr@2
|
28 |
|
williamr@2
|
29 |
// CONSTANTS
|
williamr@2
|
30 |
|
williamr@2
|
31 |
/**
|
williamr@2
|
32 |
* This is a READ-ONLY API to get information about the settings of the
|
williamr@2
|
33 |
* currently active profile.
|
williamr@2
|
34 |
*
|
williamr@2
|
35 |
* How to use:
|
williamr@2
|
36 |
*
|
williamr@2
|
37 |
* @code
|
williamr@2
|
38 |
* #include <centralrepository.h>
|
williamr@2
|
39 |
* #include <ProfileEngineSDKCRKeys.h>
|
williamr@2
|
40 |
*
|
williamr@2
|
41 |
* CRepository* cr = CRepository::NewLC( KCRUidProfileEngine );
|
williamr@2
|
42 |
* TInt value;
|
williamr@2
|
43 |
*
|
williamr@2
|
44 |
* // Get the ID of the currently active profile:
|
williamr@2
|
45 |
* User::LeaveIfError( cr->Get( KProEngActiveProfile, value ) );
|
williamr@2
|
46 |
* // use value
|
williamr@2
|
47 |
*
|
williamr@2
|
48 |
* // Get the ringing type of the active profile:
|
williamr@2
|
49 |
* User::LeaveIfError( cr->Get( KProEngActiveRingingType, value ) );
|
williamr@2
|
50 |
* // use value
|
williamr@2
|
51 |
*
|
williamr@2
|
52 |
* // Get the keypad tones volume level of the active profile:
|
williamr@2
|
53 |
* User::LeaveIfError( cr->Get( KProEngActiveKeypadVolume, value ) );
|
williamr@2
|
54 |
* // use value
|
williamr@2
|
55 |
*
|
williamr@2
|
56 |
* // Get the ringing volume of the active profile:
|
williamr@2
|
57 |
* User::LeaveIfError( cr->Get( KProEngActiveRingingVolume, value ) );
|
williamr@2
|
58 |
* // use value
|
williamr@2
|
59 |
*
|
williamr@2
|
60 |
* // Get the game and warning tone setting of the active profile:
|
williamr@2
|
61 |
* User::LeaveIfError( cr->Get( KProEngActiveWarningTones, value ) );
|
williamr@2
|
62 |
* // use value
|
williamr@2
|
63 |
*
|
williamr@2
|
64 |
* // Get the message alert setting of the active profile:
|
williamr@2
|
65 |
* User::LeaveIfError( cr->Get( KProEngActiveMessageAlert, value ) );
|
williamr@2
|
66 |
* // use value
|
williamr@2
|
67 |
*
|
williamr@2
|
68 |
* CleanupStack::PopAndDestroy( cr );
|
williamr@2
|
69 |
* @endcode
|
williamr@2
|
70 |
*
|
williamr@2
|
71 |
* The UID of the Central Repository file containing the settings. Should be
|
williamr@2
|
72 |
* given as a parameter in CRepository::NewL() call.
|
williamr@2
|
73 |
*/
|
williamr@2
|
74 |
const TUid KCRUidProfileEngine = {0x101F8798};
|
williamr@2
|
75 |
|
williamr@2
|
76 |
/**
|
williamr@2
|
77 |
* The id of the currently active profile, integer value.
|
williamr@2
|
78 |
* Possible values:
|
williamr@2
|
79 |
*
|
williamr@2
|
80 |
* 0 = General profile (default value)<br>
|
williamr@2
|
81 |
* 1 = Silent profile<br>
|
williamr@2
|
82 |
* 2 = Meeting profile<br>
|
williamr@2
|
83 |
* 3 = Outdoor profile<br>
|
williamr@2
|
84 |
* 4 = Pager profile<br>
|
williamr@2
|
85 |
* 5 = Off-line profile<br>
|
williamr@2
|
86 |
* 6 = Drive profile<br>
|
williamr@2
|
87 |
* 30-49 = User-created profiles<br>
|
williamr@2
|
88 |
**/
|
williamr@2
|
89 |
const TUint32 KProEngActiveProfile = 0x7E000001;
|
williamr@2
|
90 |
|
williamr@2
|
91 |
/**
|
williamr@2
|
92 |
* Ringing type of the active profile, integer value.
|
williamr@2
|
93 |
*
|
williamr@2
|
94 |
* Possible values:
|
williamr@2
|
95 |
*
|
williamr@2
|
96 |
* 0 = Ringing (default value)<br>
|
williamr@2
|
97 |
* 1 = Ascending<br>
|
williamr@2
|
98 |
* 2 = Ring once<br>
|
williamr@2
|
99 |
* 3 = Beep once<br>
|
williamr@2
|
100 |
* 4 = Silent<br>
|
williamr@2
|
101 |
**/
|
williamr@2
|
102 |
const TUint32 KProEngActiveRingingType = 0x7E000002;
|
williamr@2
|
103 |
|
williamr@2
|
104 |
/**
|
williamr@2
|
105 |
* Keypad volume of the active profile, integer value.
|
williamr@2
|
106 |
*
|
williamr@2
|
107 |
* Possible values:
|
williamr@2
|
108 |
*
|
williamr@2
|
109 |
* 0 (keypad tones off)<br>
|
williamr@2
|
110 |
* 1<br>
|
williamr@2
|
111 |
* 2 (default)<br>
|
williamr@2
|
112 |
* 3<br>
|
williamr@2
|
113 |
**/
|
williamr@2
|
114 |
const TUint32 KProEngActiveKeypadVolume = 0x7E000004;
|
williamr@2
|
115 |
|
williamr@2
|
116 |
/**
|
williamr@2
|
117 |
* Ringing volume of the active profile, integer value.
|
williamr@2
|
118 |
*
|
williamr@2
|
119 |
* Possible value range: 1-10
|
williamr@2
|
120 |
*
|
williamr@2
|
121 |
* Default value : 7
|
williamr@2
|
122 |
**/
|
williamr@2
|
123 |
const TUint32 KProEngActiveRingingVolume = 0x7E000008;
|
williamr@2
|
124 |
|
williamr@2
|
125 |
/**
|
williamr@2
|
126 |
* Warning & Game Tones of the active profile, integer value.
|
williamr@2
|
127 |
*
|
williamr@2
|
128 |
* Possible values:
|
williamr@2
|
129 |
*
|
williamr@2
|
130 |
* 0 = off<br>
|
williamr@2
|
131 |
* 1 = on (default value)<br>
|
williamr@2
|
132 |
**/
|
williamr@2
|
133 |
const TUint32 KProEngActiveWarningTones = 0x7E000020;
|
williamr@2
|
134 |
|
williamr@2
|
135 |
/**
|
williamr@2
|
136 |
* Message Alert Tone of the active profile, integer value.
|
williamr@2
|
137 |
*
|
williamr@2
|
138 |
* Possible values:
|
williamr@2
|
139 |
*
|
williamr@2
|
140 |
* 0 = Off (= the profile is silent)<br>
|
williamr@2
|
141 |
* 1 = On (default value)<br>
|
williamr@2
|
142 |
**/
|
williamr@2
|
143 |
const TUint32 KProEngActiveMessageAlert = 0x7E000040;
|
williamr@2
|
144 |
|
williamr@2
|
145 |
|
williamr@2
|
146 |
#endif // PROFILEENGINESDKCRKEYS_H
|
williamr@2
|
147 |
|
williamr@2
|
148 |
// End of File
|