2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: This file contains the constant definitions of the Central
15 * Repository keys and the Central Repository UID of Profiles
16 * Engine Active Profile Settings API.
22 #ifndef PROFILEENGINESDKCRKEYS_H
23 #define PROFILEENGINESDKCRKEYS_H
32 * This is a READ-ONLY API to get information about the settings of the
33 * currently active profile.
38 * #include <centralrepository.h>
39 * #include <ProfileEngineSDKCRKeys.h>
41 * CRepository* cr = CRepository::NewLC( KCRUidProfileEngine );
44 * // Get the ID of the currently active profile:
45 * User::LeaveIfError( cr->Get( KProEngActiveProfile, value ) );
48 * // Get the ringing type of the active profile:
49 * User::LeaveIfError( cr->Get( KProEngActiveRingingType, value ) );
52 * // Get the keypad tones volume level of the active profile:
53 * User::LeaveIfError( cr->Get( KProEngActiveKeypadVolume, value ) );
56 * // Get the ringing volume of the active profile:
57 * User::LeaveIfError( cr->Get( KProEngActiveRingingVolume, value ) );
60 * // Get the game and warning tone setting of the active profile:
61 * User::LeaveIfError( cr->Get( KProEngActiveWarningTones, value ) );
64 * // Get the message alert setting of the active profile:
65 * User::LeaveIfError( cr->Get( KProEngActiveMessageAlert, value ) );
68 * CleanupStack::PopAndDestroy( cr );
71 * The UID of the Central Repository file containing the settings. Should be
72 * given as a parameter in CRepository::NewL() call.
74 const TUid KCRUidProfileEngine = {0x101F8798};
77 * The id of the currently active profile, integer value.
80 * 0 = General profile (default value)<br>
81 * 1 = Silent profile<br>
82 * 2 = Meeting profile<br>
83 * 3 = Outdoor profile<br>
84 * 4 = Pager profile<br>
85 * 5 = Off-line profile<br>
86 * 6 = Drive profile<br>
87 * 30-49 = User-created profiles<br>
89 const TUint32 KProEngActiveProfile = 0x7E000001;
92 * Ringing type of the active profile, integer value.
96 * 0 = Ringing (default value)<br>
102 const TUint32 KProEngActiveRingingType = 0x7E000002;
105 * Keypad volume of the active profile, integer value.
109 * 0 (keypad tones off)<br>
114 const TUint32 KProEngActiveKeypadVolume = 0x7E000004;
117 * Ringing volume of the active profile, integer value.
119 * Possible value range: 1-10
123 const TUint32 KProEngActiveRingingVolume = 0x7E000008;
126 * Warning & Game Tones of the active profile, integer value.
131 * 1 = on (default value)<br>
133 const TUint32 KProEngActiveWarningTones = 0x7E000020;
136 * Message Alert Tone of the active profile, integer value.
140 * 0 = Off (= the profile is silent)<br>
141 * 1 = On (default value)<br>
143 const TUint32 KProEngActiveMessageAlert = 0x7E000040;
146 #endif // PROFILEENGINESDKCRKEYS_H