|
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: Audio Stubs - Message handler for AddedDevSoundControl CI. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CADDEDDEVSOUNDCONTROLMSGHDLR_H |
|
20 #define CADDEDDEVSOUNDCONTROLMSGHDLR_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <mmfcontroller.h> |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // MACROS |
|
28 |
|
29 // DATA TYPES |
|
30 |
|
31 // FUNCTION PROTOTYPES |
|
32 |
|
33 // FORWARD DECLARATIONS |
|
34 class MAddedDevSoundControl; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Handle messages received from the interface proxy. |
|
40 * The class receives the messages sent by the custom interface proxy |
|
41 * and makes the appropriate call on its custom interface implementation. |
|
42 * |
|
43 * @lib AddedDevSoundControlMsgHdlr.lib |
|
44 * @since S60 3.2 |
|
45 */ |
|
46 class CAddedDevSoundControlMsgHdlr: public CMMFObject |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 */ |
|
53 IMPORT_C static CAddedDevSoundControlMsgHdlr* NewL( |
|
54 TAny* aAddedDSControlCI); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CAddedDevSoundControlMsgHdlr(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 public: // Functions from base classes |
|
64 |
|
65 /** |
|
66 * From CAddedDevSoundControl |
|
67 */ |
|
68 virtual void HandleRequest(TMMFMessage& aMessage); |
|
69 |
|
70 protected: // New functions |
|
71 protected: // Functions from base classes |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * C++ default constructor. |
|
77 */ |
|
78 CAddedDevSoundControlMsgHdlr(MAddedDevSoundControl* |
|
79 aAddedDSControlCI); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL(); |
|
85 |
|
86 /** |
|
87 * Determines which custom interface to call. |
|
88 * |
|
89 * @since S60 3.2 |
|
90 * @param TMMFMessage& - client/server message container. |
|
91 * @return void |
|
92 * |
|
93 */ |
|
94 void DoHandleRequestL(TMMFMessage& aMessage); |
|
95 |
|
96 /** |
|
97 * Handles EAddedDSControlSetHwAwareness message from the proxy and |
|
98 * calls custom interface method. |
|
99 * |
|
100 * @since S60 3.2 |
|
101 * @param TMMFMessage& - client/server message container. |
|
102 * @return void |
|
103 * |
|
104 */ |
|
105 void DoSetHwAwarenessL(TMMFMessage& aMessage); |
|
106 |
|
107 /** |
|
108 * Handles EAddedDSControlPauseAndFlush message from the proxy and |
|
109 * calls custom interface method. |
|
110 * |
|
111 * @since S60 3.2 |
|
112 * @param TMMFMessage& - client/server message container. |
|
113 * @return void |
|
114 * |
|
115 */ |
|
116 void DoPauseAndFlushL(TMMFMessage& aMessage); |
|
117 |
|
118 |
|
119 public: // Data |
|
120 protected: // Data |
|
121 private: // Data |
|
122 |
|
123 // Pointer to the actual custom interface implementation |
|
124 MAddedDevSoundControl* iAddedDSControlCI; |
|
125 |
|
126 public: // Friend classes |
|
127 protected: // Friend classes |
|
128 private: // Friend classes |
|
129 |
|
130 }; |
|
131 |
|
132 #endif // CADDEDDEVSOUNDCONTROLMSGHDLR_H |
|
133 |
|
134 // End of File |