|
1 /* |
|
2 * Copyright (c) 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 the License "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 __ISIROUTERCHANNELIF_H__ |
|
21 #define __ISIROUTERCHANNELIF_H__ |
|
22 |
|
23 #include <e32def.h> // For TInt, TAny |
|
24 |
|
25 /* |
|
26 * Abstract interface for router to use channel services. |
|
27 */ |
|
28 class MISIRouterChannelIf |
|
29 { |
|
30 |
|
31 public: |
|
32 |
|
33 /* |
|
34 * Enques channel request completing DFC. |
|
35 * Called in P2P router ext thread context. |
|
36 * @param aRequest, request to be completed |
|
37 * @param aStatusToComplete, status to complete to client. |
|
38 */ |
|
39 virtual void EnqueChannelRequestCompleteDfc( TInt aRequest, TInt aStatusToComplete ) = 0; |
|
40 |
|
41 /* |
|
42 * Receive a message from router. |
|
43 * Responsibility to deallocate the message is transferred to channel. |
|
44 * Can be called in 1..N thread contextes. |
|
45 * Cat no be called with FM held. |
|
46 * Same restríctions than in IST API (see from MTrxMuxIf). |
|
47 * @param aMessage, message to receive |
|
48 */ |
|
49 virtual void ReceiveMsg( const TDesC8& aMessage ) = 0; |
|
50 |
|
51 }; |
|
52 |
|
53 |
|
54 |
|
55 #endif /* __ISIROUTERCHANNELIF_H__ */ |