williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2009 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@4
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@4
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.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: Profile tone settings interface.
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
|
williamr@2
|
19 |
|
williamr@2
|
20 |
#ifndef MPROENGTONESETTINGS_H
|
williamr@2
|
21 |
#define MPROENGTONESETTINGS_H
|
williamr@2
|
22 |
|
williamr@2
|
23 |
// INCLUDES
|
williamr@2
|
24 |
#include <e32std.h>
|
williamr@4
|
25 |
#include <Profile.hrh>
|
williamr@2
|
26 |
|
williamr@2
|
27 |
// FORWARD DECLARATIONS
|
williamr@2
|
28 |
class MProEngToneSettingsExt;
|
williamr@2
|
29 |
|
williamr@2
|
30 |
// CLASS DECLARATION
|
williamr@2
|
31 |
|
williamr@2
|
32 |
/**
|
williamr@2
|
33 |
* Profile tone settings interface.
|
williamr@2
|
34 |
* This interface offers methods to set and get the following settings: ringing
|
williamr@2
|
35 |
* type, keypad volume, ringing volume, vibrating alert, warning and game tones
|
williamr@2
|
36 |
* and text-to-speech.
|
williamr@2
|
37 |
*
|
williamr@2
|
38 |
* @lib ProfileEngine.lib
|
williamr@2
|
39 |
* @since 3.1
|
williamr@2
|
40 |
*/
|
williamr@2
|
41 |
class MProEngToneSettings
|
williamr@2
|
42 |
{
|
williamr@2
|
43 |
protected: // Destructor
|
williamr@2
|
44 |
|
williamr@2
|
45 |
virtual ~MProEngToneSettings() {};
|
williamr@2
|
46 |
|
williamr@2
|
47 |
public:
|
williamr@2
|
48 |
|
williamr@2
|
49 |
/**
|
williamr@2
|
50 |
* Returns the ringing type.
|
williamr@2
|
51 |
* @since 3.1
|
williamr@2
|
52 |
* @return Returns the ringing type.
|
williamr@2
|
53 |
*/
|
williamr@2
|
54 |
virtual TProfileRingingType RingingType() const = 0;
|
williamr@2
|
55 |
|
williamr@2
|
56 |
/**
|
williamr@2
|
57 |
* Returns the keypad volume.
|
williamr@2
|
58 |
* @since 3.1
|
williamr@2
|
59 |
* @return Returns the keypad volume.
|
williamr@2
|
60 |
*/
|
williamr@2
|
61 |
virtual TProfileKeypadVolume KeypadVolume() const = 0;
|
williamr@2
|
62 |
|
williamr@2
|
63 |
/**
|
williamr@2
|
64 |
* Returns the ringing volume.
|
williamr@2
|
65 |
* @since 3.1
|
williamr@2
|
66 |
* @return Returns the ringing volume.
|
williamr@2
|
67 |
*/
|
williamr@2
|
68 |
virtual TProfileRingingVolume RingingVolume() const = 0;
|
williamr@2
|
69 |
|
williamr@2
|
70 |
/**
|
williamr@2
|
71 |
* Returns the state of vibrating alert setting.
|
williamr@2
|
72 |
* @since 3.1
|
williamr@2
|
73 |
* @return Returns the state of vibrating alert setting.
|
williamr@2
|
74 |
*/
|
williamr@2
|
75 |
virtual TBool VibratingAlert() const = 0;
|
williamr@2
|
76 |
|
williamr@2
|
77 |
/**
|
williamr@2
|
78 |
* Returns the state of warning and game tones setting.
|
williamr@2
|
79 |
* @since 3.1
|
williamr@2
|
80 |
* @return Returns the state of warning and game tones setting.
|
williamr@2
|
81 |
*/
|
williamr@2
|
82 |
virtual TBool WarningAndGameTones() const = 0;
|
williamr@2
|
83 |
|
williamr@2
|
84 |
/**
|
williamr@2
|
85 |
* Returns the state of text-to-speech setting.
|
williamr@2
|
86 |
* @since 3.1
|
williamr@2
|
87 |
* @return Returns the state of text-to-speech setting.
|
williamr@2
|
88 |
*/
|
williamr@2
|
89 |
virtual TBool TextToSpeech() const = 0;
|
williamr@2
|
90 |
|
williamr@2
|
91 |
/**
|
williamr@2
|
92 |
* Sets the ringing type.
|
williamr@2
|
93 |
* @since 3.1
|
williamr@2
|
94 |
* @param aRingingType The new value for ringing type.
|
williamr@2
|
95 |
* @return KErrNone if succesful, KErrAccessDenied if ringing type
|
williamr@2
|
96 |
* setting of this profile is read-only.
|
williamr@2
|
97 |
*/
|
williamr@2
|
98 |
virtual TInt SetRingingType( TProfileRingingType aRingingType ) = 0;
|
williamr@2
|
99 |
|
williamr@2
|
100 |
/**
|
williamr@2
|
101 |
* Sets the keypad volume.
|
williamr@2
|
102 |
* @since 3.1
|
williamr@2
|
103 |
* @param aKeypadVolume The new value for keypad tones volume.
|
williamr@2
|
104 |
* @return KErrNone if succesful, KErrAccessDenied if keypad tones
|
williamr@2
|
105 |
* setting of this profile is read-only.
|
williamr@2
|
106 |
*/
|
williamr@2
|
107 |
virtual TInt SetKeypadVolume( TProfileKeypadVolume aKeypadVolume ) = 0;
|
williamr@2
|
108 |
|
williamr@2
|
109 |
/**
|
williamr@2
|
110 |
* Sets the ringing volume.
|
williamr@2
|
111 |
* @since 3.1
|
williamr@2
|
112 |
* @param aRingingVolume The new value for ringing volume.
|
williamr@2
|
113 |
* @return KErrNone if succesful, KErrAccessDenied if ringing volume
|
williamr@2
|
114 |
* setting of this profile is read-only.
|
williamr@2
|
115 |
*/
|
williamr@2
|
116 |
virtual TInt SetRingingVolume(
|
williamr@2
|
117 |
TProfileRingingVolume aRingingVolume ) = 0;
|
williamr@2
|
118 |
|
williamr@2
|
119 |
/**
|
williamr@2
|
120 |
* Sets the state of vibrating alert setting.
|
williamr@2
|
121 |
* @since 3.1
|
williamr@2
|
122 |
* @param aVibratingAlert The new state for the vibrating alert setting.
|
williamr@2
|
123 |
* @return KErrNone if succesful, KErrAccessDenied if vibrating alert
|
williamr@2
|
124 |
* setting of this profile is read-only.
|
williamr@2
|
125 |
*/
|
williamr@2
|
126 |
virtual TInt SetVibratingAlert( TBool aVibratingAlert ) = 0;
|
williamr@2
|
127 |
|
williamr@2
|
128 |
/**
|
williamr@2
|
129 |
* Sets the state of warning and game tones setting.
|
williamr@2
|
130 |
* @since 3.1
|
williamr@2
|
131 |
* @param aWarningAndGameTones The new state for Warning and Game tones
|
williamr@2
|
132 |
* setting.
|
williamr@2
|
133 |
* @return KErrNone if succesful, KErrAccessDenied if warning and game
|
williamr@2
|
134 |
* tones setting of this profile is read-only.
|
williamr@2
|
135 |
*/
|
williamr@2
|
136 |
virtual TInt SetWarningAndGameTones( TBool aWarningAndGameTones ) = 0;
|
williamr@2
|
137 |
|
williamr@2
|
138 |
/**
|
williamr@2
|
139 |
* Sets the state of text-to-speech setting.
|
williamr@2
|
140 |
* @since 3.1
|
williamr@2
|
141 |
* @param aTextToSpeech The new state for text-to-speech setting.
|
williamr@2
|
142 |
* @return KErrNone if succesful, KErrAccessDenied if text-to-speech
|
williamr@2
|
143 |
* setting of this profile is read-only.
|
williamr@2
|
144 |
*/
|
williamr@2
|
145 |
virtual TInt SetTextToSpeech( TBool aTextToSpeech ) = 0;
|
williamr@2
|
146 |
|
williamr@2
|
147 |
private: // Extension interface
|
williamr@2
|
148 |
|
williamr@2
|
149 |
/**
|
williamr@2
|
150 |
* This member is internal and not intended for use.
|
williamr@2
|
151 |
*/
|
williamr@2
|
152 |
virtual MProEngToneSettingsExt* Extension() { return NULL; }
|
williamr@2
|
153 |
|
williamr@2
|
154 |
};
|
williamr@2
|
155 |
|
williamr@2
|
156 |
#endif // MPROENGTONESETTINGS_H
|
williamr@2
|
157 |
|
williamr@2
|
158 |
// End of File
|
williamr@2
|
159 |
|
williamr@2
|
160 |
|