equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MCCAUDIOROUTER_H |
|
23 #define MCCAUDIOROUTER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CMMFDevSound; |
|
38 class CAudioOutput; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * MCP AudioOutputRouter methods |
|
44 * |
|
45 * MMCCSubthreads.dll |
|
46 * @since Series 60 3.0 |
|
47 */ |
|
48 #ifdef EKA2 |
|
49 NONSHARABLE_CLASS( CMccAudioRouter ) : public CBase |
|
50 #else |
|
51 class CMccAudioRouter : public CBase |
|
52 #endif |
|
53 { |
|
54 public: // Constructors and destructor |
|
55 |
|
56 /** |
|
57 * Two-phased constructor. |
|
58 */ |
|
59 static CMccAudioRouter* NewL( CMMFDevSound& aDevSound ); |
|
60 |
|
61 /** |
|
62 * Destructor. |
|
63 */ |
|
64 ~CMccAudioRouter(); |
|
65 |
|
66 |
|
67 public: // New functions |
|
68 |
|
69 void SetAudioRouteL( TUint32 aRoutingDestination ); |
|
70 |
|
71 void GetAudioRouteL( TUint32& aRoutingDestination ); |
|
72 |
|
73 private: // Private constructors |
|
74 |
|
75 void ConstructL( CMMFDevSound& aDevSound ); |
|
76 |
|
77 CMccAudioRouter(); |
|
78 |
|
79 private: // Data |
|
80 |
|
81 CAudioOutput* iAudioRouter; |
|
82 |
|
83 TBool iRoutingSupported; |
|
84 |
|
85 }; |
|
86 |
|
87 #endif /* MCCAUDIOROUTER_H */ |
|
88 |