|
1 /* |
|
2 * Copyright (c) 2005 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 #ifndef CMCECOMENDPOINTPROXY_H |
|
22 #define CMCECOMENDPOINTPROXY_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 class CMceComEndpoint; |
|
27 |
|
28 |
|
29 /** |
|
30 * |
|
31 * |
|
32 * @lib |
|
33 */ |
|
34 class MMceComEndPointProxy |
|
35 { |
|
36 |
|
37 public: |
|
38 |
|
39 /** |
|
40 * Does proxy serve client |
|
41 * @param aClient a client |
|
42 * @return ETrue, if proxy serves client |
|
43 */ |
|
44 virtual TBool ServesProxyClient( const CMceComEndpoint& aClient ) const = 0; |
|
45 |
|
46 |
|
47 /** |
|
48 * Adds client to proxy |
|
49 * @param aClient a client |
|
50 */ |
|
51 virtual void AddProxyClientL( CMceComEndpoint& aClient ) = 0; |
|
52 |
|
53 /** |
|
54 * Removes client from proxy |
|
55 * @param aClient a client |
|
56 */ |
|
57 virtual void RemoveProxyClient( CMceComEndpoint& aClient ) = 0; |
|
58 |
|
59 /** |
|
60 * Enables defined client |
|
61 * @return EFalse if the endpoint does not support |
|
62 * client enabling, otherwise returns ETrue |
|
63 */ |
|
64 inline virtual TBool ClientEnableL( CMceComEndpoint& /*aClient*/, |
|
65 const CMceComCodec& /*aCodec*/ ) |
|
66 { return EFalse; } |
|
67 |
|
68 /** |
|
69 * Disables defined client |
|
70 * @return EFalse if the endpoint does not support |
|
71 * client disabling, otherwise returns ETrue |
|
72 */ |
|
73 inline virtual TBool ClientDisableL( CMceComEndpoint& /*aClient*/ ) |
|
74 { return EFalse; } |
|
75 |
|
76 /** |
|
77 * Client wants to change settings |
|
78 * @param aClient a client |
|
79 * @param aParam parameter name |
|
80 * @param aValue parameter value |
|
81 * @return EFalse if client does not support |
|
82 * this setting, otherwise returns ETrue |
|
83 */ |
|
84 inline virtual TBool SetParameterL( const CMceComEndpoint& /*aClient*/, |
|
85 TUint32 /*aParam*/, |
|
86 const TDesC8& /*aValue*/ ) |
|
87 { return EFalse; } |
|
88 |
|
89 }; |
|
90 |
|
91 |
|
92 #endif // CMCECOMENDPOINTPROXY_H |