|
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 - Custom Interface for AddedDevSoundControl. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ADDEDDEVSOUNDCONTROLCI_H |
|
20 #define ADDEDDEVSOUNDCONTROLCI_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <AddedDevSoundControlCI.h> |
|
25 |
|
26 // CONSTANTS |
|
27 |
|
28 // MACROS |
|
29 |
|
30 // DATA TYPES |
|
31 |
|
32 // FUNCTION PROTOTYPES |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Custom Interface for AddedDevSoundControl. |
|
40 * |
|
41 * @lib AddedDevSoundControlCIStub.lib |
|
42 * @since S60 3.2 |
|
43 */ |
|
44 class CAddedDevSoundControlCI : public CBase, |
|
45 public MAddedDevSoundControl |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 IMPORT_C static CAddedDevSoundControlCI* NewL(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 IMPORT_C virtual ~CAddedDevSoundControlCI(); |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 public: // Functions from MAddedDevSoundControl |
|
62 |
|
63 /** |
|
64 * Sets HW awareness for Pause. |
|
65 * |
|
66 * @since S60 3.2 |
|
67 * @param TBool - Toggles HW awareness |
|
68 * @return TInt - |
|
69 */ |
|
70 IMPORT_C virtual TInt SetHwAwareness(TBool aHwAware); |
|
71 |
|
72 /** |
|
73 * Pauses audio playback and flushes buffers. |
|
74 * |
|
75 * @since S60 3.2 |
|
76 * @return TInt - Status |
|
77 */ |
|
78 IMPORT_C virtual TInt PauseAndFlush(); |
|
79 |
|
80 |
|
81 protected: // New functions |
|
82 |
|
83 protected: // Functions from base classes |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * C++ default constructor. |
|
89 */ |
|
90 CAddedDevSoundControlCI(); |
|
91 |
|
92 /** |
|
93 * By default Symbian 2nd phase constructor is private. |
|
94 */ |
|
95 void ConstructL(); |
|
96 |
|
97 public: // Data |
|
98 protected: // Data |
|
99 private: // Data |
|
100 |
|
101 TBool iHwAware; |
|
102 |
|
103 }; |
|
104 |
|
105 #endif // ADDEDDEVSOUNDCONTROLCI_H |
|
106 |
|
107 // End of File |