equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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: Avkon Sound Map |
|
15 * |
|
16 */ |
|
17 |
|
18 // AKNSOUNDMAP.H |
|
19 // |
|
20 // Copyright (c) 1997-2000 Symbian Ltd. All rights reserved. |
|
21 // |
|
22 |
|
23 // AknSoundMap - maps a set of keys to SID's |
|
24 |
|
25 |
|
26 #if !defined(__AKNSOUNDMAP_H__) |
|
27 #define __AKNSOUNDMAP_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 #include <w32std.h> |
|
31 #include <barsread.h> |
|
32 |
|
33 class TSKey |
|
34 { |
|
35 public: |
|
36 void Set(TInt aKeyCode, TInt aRepeatType, TInt aSid); |
|
37 public: |
|
38 TInt iKeyCode; |
|
39 TInt iSid; |
|
40 }; |
|
41 |
|
42 // CAknSoundStack - implements a single sound map |
|
43 |
|
44 class CAknKeySoundMap : public CArrayFixFlat<TSKey> |
|
45 { |
|
46 public: |
|
47 static CAknKeySoundMap* NewL(); |
|
48 ~CAknKeySoundMap(); |
|
49 void ConstructFromResourceL(TResourceReader& aReader); |
|
50 TBool Find(TSKey& aKey); |
|
51 private: |
|
52 CAknKeySoundMap(); |
|
53 }; |
|
54 |
|
55 |
|
56 // CAknKeySoundStack - provides logic for searching sound maps |
|
57 |
|
58 class CAknKeySoundStack : public CArrayPtrFlat<CAknKeySoundMap> |
|
59 { |
|
60 public: |
|
61 static CAknKeySoundStack* NewL(); |
|
62 ~CAknKeySoundStack(); |
|
63 TBool Find(const TKeyEvent& aKeyEvent, TInt& aSid); |
|
64 private: |
|
65 CAknKeySoundStack(); |
|
66 TKeyEvent iPreviousEvent; |
|
67 }; |
|
68 |
|
69 #endif |