|
1 /* |
|
2 * Copyright (c) 2006-2009 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 #ifndef MMFAUDIOSERVERPROXY_H |
|
21 #define MMFAUDIOSERVERPROXY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 #include <mmf/common/mmfipc.h> |
|
27 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
28 #include <mmf/common/mmfipcserver.h> |
|
29 #endif |
|
30 #include "mmfaudioclientserver.h" |
|
31 |
|
32 // FORWARD DECLARATIONS |
|
33 class RMMFAudioServerProxy; // declared here; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * Client side session for AudioServer. |
|
39 * |
|
40 * @lib |
|
41 * @since |
|
42 */ |
|
43 NONSHARABLE_CLASS( RMMFAudioServerProxy ): public RMmfSessionBase |
|
44 { |
|
45 public: // New functions |
|
46 |
|
47 /** |
|
48 * Creates a new session to AudioServer. The very first call will start |
|
49 * AudioServer. Upon successful completion of this method, a new instance |
|
50 * of DevSound server will be created. |
|
51 * @since |
|
52 * @return KErrNone if successful, otherwise one of the other system-wide |
|
53 * error codes. |
|
54 */ |
|
55 IMPORT_C TInt Open(); |
|
56 |
|
57 /** |
|
58 * Sets the DevSound info. This method is no longer used. |
|
59 * @since |
|
60 * @return KErrNone if successful, otherwise one of the other system-wide |
|
61 * error codes. |
|
62 */ |
|
63 IMPORT_C TInt SetDevSoundInfo(); |
|
64 |
|
65 /** |
|
66 * Returns handle to the DevSound server created by AudioServer session. |
|
67 * @since |
|
68 * @return TInt handle to the DevSound server. |
|
69 */ |
|
70 IMPORT_C TInt GetDevSoundSessionHandle(); |
|
71 }; |
|
72 |
|
73 #endif // MMFAUDIOSERVERPROXY_H |
|
74 |
|
75 // End of File |