equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
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: Common interface for observing volume events provided by |
|
15 * either key presses or side volume keys |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef __MVRVOLUMEEVENTOBSERVER_H |
|
22 #define __MVRVOLUMEEVENTOBSERVER_H |
|
23 |
|
24 // CLASS DECLARATION |
|
25 |
|
26 /** |
|
27 * Interface for passing volume events to observer |
|
28 */ |
|
29 class MVRVolumeEventObserver |
|
30 { |
|
31 public: // New functions |
|
32 |
|
33 /** |
|
34 * Handles volume change event received from either side volume |
|
35 * keys or left-right rocker presses. |
|
36 * @param aKeyEvent The key event. Will be forwarded to CAknVolumeControl |
|
37 * @param aType The type of key event: EEventKey, EEventKeyUp |
|
38 * or EEventKeyDown. Will be forwarded to CAknVolumeControl |
|
39 */ |
|
40 |
|
41 virtual TInt HandleVolumeChangeL( const TKeyEvent& aKeyEvent, |
|
42 TEventCode aType ) = 0; |
|
43 |
|
44 }; |
|
45 |
|
46 #endif // MVRVOLUMEEVENTOBSERVER_H |
|
47 |
|
48 // End of File |
|